/* ============================================
   Portfolio — Professional Dark Theme
   Palette: Deep Charcoal + Warm Amber/Gold
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg: #02040b;
    --bg-alt: #030713;
    --surface: #070d22;
    --surface-2: #0a1330;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0eeeb;
    --text-dim: rgba(240, 238, 235, 0.7);
    --text-muted: rgba(240, 238, 235, 0.45);
    --accent: #00f2fe;
    --accent-2: #0575e6;
    --accent-glow: rgba(0, 242, 254, 0.15);
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --container: 1200px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 70px;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background color spots for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(0, 242, 254, 0.04), transparent),
        radial-gradient(ellipse 500px 500px at 85% 60%, rgba(5, 117, 230, 0.035), transparent),
        radial-gradient(ellipse 700px 400px at 50% 90%, rgba(0, 242, 254, 0.03), transparent);
}

/* Ensure all sections are above the ambient layer */
.loader,
.nav,
.hero,
.section,
.footer,
.mobile-menu {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loaderCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.loader-hint {
    position: absolute;
    bottom: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.loader-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleX(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease);
}

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

.nav-inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: var(--accent);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.15), inset 0 0 12px rgba(0, 242, 254, 0.05);
}

.nav-links a.active,
.nav-links a:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 6, 9, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Premium Ambient Glowing Blobs */
.mobile-menu-bg-glow {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(0, 242, 254, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
    animation: pulseGlow 10s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-45%, -55%) scale(1.3);
        opacity: 1;
    }
}

.mobile-menu-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.menu-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.mobile-menu-links a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dim);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s, opacity 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.mobile-menu.open .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i) * 0.08s);
}

.mobile-menu-links a .num {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    min-width: 20px;
}

.mobile-menu-links a .text {
    position: relative;
    padding-bottom: 4px;
}

.mobile-menu-links a .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-links a:hover {
    color: var(--text);
    transform: translateX(8px);
}

.mobile-menu-links a:hover .text::after {
    width: 100%;
}

/* Staggered dimmer effect on links */
.mobile-menu-links:hover a:not(:hover) {
    opacity: 0.35;
    transform: translateY(0) scale(0.98);
}

.mobile-menu-footer {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.5s;
}

.mobile-menu.open .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-socials {
    display: flex;
    gap: 20px;
}

.menu-socials a {
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu-socials a:hover {
    color: var(--accent);
}

.menu-email a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.menu-email a:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    pointer-events: none;
}

.hero-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-tag.show {
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.hero-name-wrap {
    height: 200px;
    margin-bottom: 24px;
    /* Particle canvas fills this area via JS */
}

.hero-desc {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
}

.hero-desc.show {
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: auto;
}

.hero-cta.show {
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.35s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-2);
    box-shadow: 0 8px 32px rgba(0, 242, 254, 0.25);
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Scroll Circle */
.hero-scroll-circle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    border: 2px solid var(--accent);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    opacity: 0.5;
}

.hero-scroll-circle svg {
    transition: transform 0.4s var(--ease-out);
    animation: arrowPulse 2s infinite;
}

.hero-scroll-circle:hover {
    opacity: 1;
}

@keyframes arrowPulse {
    0% {
        transform: translateY(-3px);
    }

    50% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(-3px);
    }
}

/* --- Utilities --- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.no-scroll {
    overflow: hidden !important;
}

/* --- Sections --- */
.section {
    padding: 80px 24px;
    position: relative;
}

.section.work {
    padding: 0;
    overflow: visible;
}

.work-sticky-wrapper {
    position: sticky;
    top: 72px;
    /* Header height */
    height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 40px 0;
}

@media (max-width: 1024px) {
    .section.work {
        padding: 60px 24px;
    }

    .work-sticky-wrapper {
        position: relative;
        top: 0;
        height: auto;
        padding: 0;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .section.work {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .section.work {
        padding: 30px 15px;
    }
}

/* Horizontal Scroll Track */
.projects-scroll-track {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* Desktop default: hide overflow to prevent scroll conflicts */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 28px 0;
}

.projects-scroll-track::-webkit-scrollbar {
    display: none;
}

.projects-scroll-inner {
    display: flex;
    gap: 28px;
    padding: 0 max(24px, calc((100vw - 1200px) / 2));
    width: max-content;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth easing on desktop */
}

@media (max-width: 1024px) {
    .projects-scroll-track {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .projects-scroll-inner {
        will-change: auto;
        transition: none;
    }
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.label-num {
    color: var(--accent);
    font-weight: 600;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--border);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

.accent {
    color: var(--accent);
}

/* --- Universal Spotlight Card --- */
.spotlight-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, border-color 0.3s, box-shadow 0.3s;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 254, 0.15), transparent 80%);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
    perspective: 1000px;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
}

.stat-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    transform: translateZ(30px);
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
    transform: translateZ(30px);
}

.stat-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    transform: translateZ(20px);
}

/* --- Projects Showcase --- */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    font-family: var(--font);
}

.filter-btn:hover {
    color: var(--text);
    border-color: rgba(0, 242, 254, 0.4);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}


.showcase-card {
    flex: 0 0 360px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.4s var(--ease);
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
}

.showcase-card.hidden {
    display: none;
}

.showcase-card.filtering-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.showcase-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.showcase-card:hover .showcase-thumb img {
    transform: scale(1.08);
}

.showcase-hover {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.showcase-card:hover .showcase-hover {
    opacity: 1;
}

.showcase-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-card:hover .showcase-icon {
    transform: scale(1);
}

.showcase-meta {
    padding: 20px;
}

.showcase-cat {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.showcase-meta h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text);
}

/* --- Project Modal (Side-by-Side) --- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.project-modal.open {
    pointer-events: auto;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.92);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.project-modal.open .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1100px;
    max-height: 85vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
    will-change: opacity, transform;
}

.project-modal.open .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* Side-by-side body */
.modal-body {
    display: flex;
    height: 100%;
    max-height: 85vh;
}

/* Left: Thumbnail Gallery */
.modal-gallery {
    flex: 0 0 55%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 85vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.modal-gallery::-webkit-scrollbar {
    width: 4px;
}

.modal-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.modal-gallery::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb img,
.gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.3s ease;
    opacity: 0.75;
    will-change: transform;
}

.gallery-thumb:hover img,
.gallery-thumb:hover video {
    transform: scale(1.06);
    opacity: 1;
}

.gallery-thumb.has-more-overlay .more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(2px);
}

.gallery-thumb.has-more-overlay:hover .more-overlay {
    background: rgba(0, 242, 254, 0.4);
}

.gallery-thumb.has-more-overlay .more-overlay span {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.gallery-thumb .thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

.gallery-thumb .thumb-zoom {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-thumb:hover .thumb-zoom {
    opacity: 1;
}

/* Right: Details */
.modal-details {
    flex: 1;
    padding: 40px 36px;
    overflow-y: auto;
    max-height: 85vh;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
}

.modal-details::-webkit-scrollbar {
    width: 4px;
}

.modal-details::-webkit-scrollbar-track {
    background: transparent;
}

.modal-details::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
}

.modal-cat {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.modal-details h2 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin: 10px 0 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-details p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.modal-tech span {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.modal-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--accent);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.35s var(--ease);
}

.modal-visit-btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.3);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(2, 2, 6, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 242, 254, 0.2);
    border-color: rgba(0, 242, 254, 0.4);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-media {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-media video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    perspective: 1500px;
}

.service-card {
    background: linear-gradient(145deg, var(--surface), rgba(22, 22, 31, 0.6));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.05);
}

.service-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out);
    transform-style: preserve-3d;
}

.service-icon {
    width: 100%;
    height: 100%;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
    transform: translateZ(40px);
}

.icon-glow {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--accent);
    filter: blur(25px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.6s var(--ease-out);
}

.service-card:hover .service-icon-wrap {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.2);
    transform: scale(1.05);
}

.service-card:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
}

.service-card:hover .icon-glow {
    opacity: 0.5;
    transform: scale(1.8);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}

.service-card p {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Staggered Reveal Delays */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(5) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(6) {
    transition-delay: 0.3s;
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    perspective: 1000px;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 32px;
}

.skill-category:hover {
    border-color: rgba(0, 242, 254, 0.4);
}

.skill-cat-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.3px;
    animation: skillFloat 3s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes skillFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

.skill-item:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--accent);
    /* color: var(--accent); */
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
    z-index: 10;
}

/* --- Experience --- */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.experience-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.experience-card:hover {
    background: rgba(0, 242, 254, 0.04);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateX(10px);
}

.experience-card:hover::before {
    width: 4px;
}

.exp-date {
    padding-top: 4px;
    transition: color 0.4s;
}

.experience-card:hover .exp-year {
    color: var(--accent);
}

.exp-year {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.4s;
}

.exp-company {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.exp-role {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 8px 0 12px;
    color: var(--text);
    transition: transform 0.4s;
}

.experience-card:hover .exp-role {
    transform: translateX(5px);
}

.exp-content p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.exp-tags span {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s;
}

.experience-card:hover .exp-tags span {
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--text);
}

/* --- Contact --- */
.contact-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.contact-image-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    padding: 4px;
    background: rgba(0, 242, 254, 0.1);
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-title {
    margin-bottom: 20px;
}

.contact-desc {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    padding: 16px 32px;
    border: 1px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    background: transparent;
    transition: all 0.3s var(--ease);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-links a.contact-email svg {
    width: 20px;
    height: 20px;
}

.contact-links a.contact-email:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.social-links {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.social-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.back-top {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.back-top:hover {
    color: var(--accent);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1599px) {
    /* Adjustments for large laptops */
}

@media (max-width: 1366px) {
    /* Adjustments for standard laptops */
}

@media (max-width: 1199px) {
    /* Adjustments for smaller laptops */
}

@media (max-width: 1025px) {
    .work-sticky-header {
        top: 60px;
    }

    /* Tablet start */
    .showcase-card {
        flex: 0 0 320px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-gallery {
        flex: none;
        max-height: 40vh;
    }

    .modal-details {
        max-height: 45vh;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {

    /* Mobile start */
    .nav {
        padding: 0 20px;
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 25px 20px;
    }

    .section-label {
        margin-bottom: 24px;
    }

    h1,
    .section-title {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .showcase-card {
        flex: 0 0 280px;
    }

    .projects-scroll-inner {
        padding: 0 20px;
        gap: 16px;
    }

    .project-filters {
        gap: 8px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .modal-content {
        width: 96%;
        max-height: 90vh;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-gallery {
        flex: none;
        max-height: 35vh;
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-details {
        padding: 24px 20px 28px;
        max-height: 55vh;
    }

    .modal-details h2 {
        font-size: 22px;
    }

    .modal-visit-btn {
        width: 100%;
        justify-content: center;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px;
    }

    .hero-name-wrap {
        height: 60px;
        margin-bottom: 16px;
    }

    .hero-tag {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 24px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact-links {
        flex-direction: column;
        gap: 16px;
    }

    .contact-links a.contact-email {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 25px 15px;
    }

    h1,
    .section-title {
        font-size: 26px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-name-wrap {
        height: 50px;
    }
}