html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

    .h-45 {
        height: 4.5rem!important;
    }

    .pad {
    padding: 10px 30px !important;
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    background-image: linear-gradient(120deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72)), url('https://images.unsplash.com/photo-1512918728675-ed5a9ecdebfd?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    animation: heroShift 18s ease-in-out infinite alternate;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    animation: floatGlow 10s ease-in-out infinite alternate;
}

.hero-section::before {
    width: 18rem;
    height: 18rem;
    background: rgba(245, 158, 11, 0.35);
    top: -3rem;
    right: -2rem;
}

.hero-section::after {
    width: 22rem;
    height: 22rem;
    background: rgba(16, 185, 129, 0.22);
    bottom: -4rem;
    left: -4rem;
    animation-duration: 14s;
}

.hero-graphic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.95;
    pointer-events: none;
}

.hero-orb {
    animation: driftOrb 12s ease-in-out infinite alternate;
    transform-origin: center;
}

.hero-orb-2 {
    animation-duration: 16s;
}

.hero-line {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawLine 8s ease-in-out infinite alternate;
}

.hero-line-2 {
    animation-duration: 10s;
    animation-delay: 1s;
}

.hero-dot {
    animation: pulseDot 2.6s ease-in-out infinite;
}

.hero-dot-delay {
    animation-delay: 1.1s;
}

@keyframes heroShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes floatGlow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(20px, -25px, 0) scale(1.08); }
}

@keyframes driftOrb {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-20px, 24px, 0) scale(1.06); }
}

@keyframes drawLine {
    0% { stroke-dashoffset: 900; }
    100% { stroke-dashoffset: 0; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.project-img-1 {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.2)), url('images/pro01.jpg');
    background-size: cover;
    background-position: center;
}

.project-img-2 {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.2)), url('images/pro02.jpg');
    background-size: cover;
    background-position: center;
}

.project-img-3 {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.2)), url('images/pro03.jpg');
    background-size: cover;
    background-position: center;
}

.project-img-4 {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.2)), url('images/pro04.jpg');
    background-size: cover;
    background-position: center;
}

.project-img-5 {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.2)), url('images/pro05.jpg');
    background-size: cover;
    background-position: center;
}

.project-img-6 {
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.2)), url('images/pro06.jpg');
    background-size: cover;
    background-position: center;
}

::selection {
    background: #f59e0b;
    color: #111827;
}

.accessibility-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 0;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #fff;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.accessibility-panel {
    position: fixed;
    right: 1rem;
    bottom: 4.8rem;
    z-index: 60;
    width: min(20rem, calc(100vw - 2rem));
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    padding: 1rem;
}

.accessibility-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #334155;
    margin-bottom: 0.75rem;
}

.accessibility-actions {
    display: grid;
    gap: 0.6rem;
}

.accessibility-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accessibility-btn:hover {
    background: #eef2ff;
    border-color: #cbd5e1;
}

.accessibility-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.accessibility-btn.reset {
    background: #fff7ed;
    color: #9a2c00;
}

body.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast .bg-slate-950,
body.high-contrast .bg-slate-900,
body.high-contrast .bg-white,
body.high-contrast .bg-slate-50,
body.high-contrast .bg-white\/90,
body.high-contrast .bg-slate-900\/80,
body.high-contrast .bg-slate-950\/70,
body.high-contrast footer,
body.high-contrast header,
body.high-contrast section {
    background-color: #111 !important;
    color: #fff !important;
    border-color: #555 !important;
}

body.high-contrast .accessibility-toggle,
body.high-contrast .accessibility-panel,
body.high-contrast .accessibility-btn,
body.high-contrast .accessibility-title {
    background: #0f172a !important;
    color: #fff !important;
    border-color: #64748b !important;
    box-shadow: none !important;
}

body.high-contrast .accessibility-btn.reset {
    background: #7c2d12 !important;
    color: #fff !important;
}

body.high-contrast a,
body.high-contrast p,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast span,
body.high-contrast label,
body.high-contrast input,
body.high-contrast select,
body.high-contrast button {
    color: inherit;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.table-actions label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.search-box {
    flex: 1 1 320px;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.12);
}

.sort-button {
    width: 100%;
    border: none;
    background: none;
    color: #f8fafc;
    font: inherit;
    text-align: left;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.sort-button::after {
    content: '↕';
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    margin-left: auto;
}

.sort-button.asc::after {
    content: '↑';
}

.sort-button.desc::after {
    content: '↓';
}

.sort-button:focus {
    outline: 2px solid #bfdbfe;
    outline-offset: 2px;
}

.table-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #475569;
}

body.large-text {
    font-size: 1.05rem;
}

body.large-text p,
body.large-text span,
body.large-text li,
body.large-text label,
body.large-text input,
body.large-text select,
body.large-text button {
    line-height: 1.7;
}

body.large-text .accessibility-toggle,
body.large-text .accessibility-panel,
body.large-text .accessibility-btn,
body.large-text .accessibility-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

body.reduced-motion * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

body.reduced-motion .accessibility-toggle,
body.reduced-motion .accessibility-panel,
body.reduced-motion .accessibility-btn {
    animation: none !important;
    transition: none !important;
}

.table-page {
    max-width: 1080px;
    margin: 3rem auto;
    padding: 0 1.2rem;
    color: #0f172a;
}

.table-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.table-card h1 {
    margin: 0 0 1.25rem;
    font-size: 2rem;
    letter-spacing: -0.03em;
    color: #111827;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
}

.table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #ffffff;
}

.table th,
.table td {
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

.table th {
    background: #0f172a;
    color: #ffffff;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.table-striped tbody tr:nth-child(odd) {
    background: #f8fafc;
}

.table tbody tr:hover {
    background: #eef2ff;
}

.table td.empty-cell {
    color: #64748b;
    font-style: italic;
    text-align: center;
}

.table td:nth-child(1) {
    width: 6%;
    text-align: center;
}

.table td:nth-child(4),
.table td:nth-child(5),
.table td:nth-child(6) {
    text-align: center;
}

/* Developer Network Carousel - removed, now uses carousel structure */

/* Developer Network Items */
.dev-network-item {
    cursor: grab;
    user-select: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dev-network-item:active {
    cursor: grabbing;
}

.dev-network-item:hover {
    transform: translateY(-6px);
    border-color: #f59e0b;
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.15);
}

.dev-network-item img {
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(40%);
    opacity: 0.8;
}

.dev-network-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/*=====================
Animation
=====================*/

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/*=====================
Responsive
=====================*/

@media(max-width:768px){

    .dev-network-item {
        padding: 1rem;
    }

    .dev-network-item img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .table-card {
        padding: 1.25rem;
    }

    .table th,
    .table td {
        padding: 0.8rem 0.9rem;
    }
}

@media (max-width: 640px) {
    .accessibility-panel {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}