:root {
            --bg-dark: #080b12;
            --bg-card: #1f2937;
            --text-primary: #f9fafb;
            --text-secondary: #9ca3af;
            --accent: #3b82f6;
            --accent-glow: rgba(59, 130, 246, 0.3);
            --font-sans: "DM Sans", sans-serif;
            --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
        }

        html {
            font-size: 16px;
            scroll-behavior: smooth;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-padding-top: var(--nav-offset, 110px);
        }

        html::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        /* Light mode colors - inspired by resume */
        [data-theme="light"] {
            --bg-dark: #f5f4f0;
            --bg-card: #D1D5DB;
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --accent: #2563eb;
            --accent-glow: rgba(37, 99, 235, 0.2);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg-dark);
            color: var(--text-primary);
            overflow-x: hidden;
            line-height: 1.6;
            letter-spacing: -0.03em;
            transition: background-color 0.3s ease, color 0.3s ease;
            position: relative;
        }

        ::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }

        ::-webkit-scrollbar-track {
            display: none;
        }

        ::-webkit-scrollbar-thumb {
            display: none;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #7fb2ff 0%, #2563eb 100%);
            border: 2px solid transparent;
            background-clip: padding-box;
        }

/* Keep core content layered above decorative sections */
section,
footer {
    position: relative;
    z-index: 1;
}

/* Keep navbar always on top */
nav {
    position: relative;
    z-index: 1000;
}

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            padding: 30px 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: transparent;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
        }

        .logo {
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: 2rem;
            letter-spacing: 0.05em;
            color: var(--text-primary);
            text-decoration: none;
        }

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

        .nav-links {
            display: flex;
            gap: 40px;
            list-style: none;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            align-items: center;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.95rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--text-primary);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Theme Toggle Switch */
        .theme-switch-wrapper {
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        .theme-switch {
            position: relative;
            display: inline-block;
            width: 160px;
            height: 50px;
            cursor: pointer;
        }

        .theme-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e8e8e8;
            border-radius: 50px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        [data-theme="dark"] .slider {
            background-color: #1a1a1a;
        }

        .slider-text {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
        }

        /* Day mode: text on right side */
        .day-text {
            right: 15px;
            color: #666;
            opacity: 1;
        }

        [data-theme="dark"] .day-text {
            opacity: 0;
            transform: translateY(-50%) translateX(10px);
        }

        /* Night mode: text on left side */
        .night-text {
            left: 15px;
            color: #999;
            opacity: 0;
            transform: translateY(-50%) translateX(-10px);
        }

        [data-theme="dark"] .night-text {
            opacity: 1;
            color: #fff;
            transform: translateY(-50%) translateX(0);
        }

        .slider-icon {
            position: absolute;
            top: 50%;
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .slider-icon svg {
            color: #333;
        }

        /* Sun icon starts on left */
        .sun-icon {
            left: 5px;
            transform: translateY(-50%);
        }

        [data-theme="dark"] .sun-icon {
            transform: translateY(-50%) translateX(115px);
            opacity: 0;
        }

        /* Moon icon starts on right, hidden */
        .moon-icon {
            right: 5px;
            transform: translateY(-50%) translateX(115px);
            opacity: 0;
            background: #000;
        }

        .moon-icon svg {
            color: #fff;
        }

        [data-theme="dark"] .moon-icon {
            transform: translateY(-50%) translateX(0);
            opacity: 1;
        }

        .nav-hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 4px;
            background: none;
            border: none;
        }

        .nav-hamburger span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--text-primary);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .nav-hamburger.open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .nav-hamburger.open span:nth-child(2) {
            opacity: 0;
        }

        .nav-hamburger.open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .nav-mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(8, 11, 18, 0.97);
            z-index: 999;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2.5rem;
        }

        [data-theme="light"] .nav-mobile-menu {
            background: rgba(245, 244, 240, 0.97);
        }

        .nav-mobile-menu.open {
            display: flex;
        }

        .nav-mobile-menu a {
            font-size: 2rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

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

        .theme-switch:hover .slider {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        [data-theme="dark"] .theme-switch:hover .slider {
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .theme-switch:active .slider-icon {
            transform: translateY(-50%) scale(0.95);
        }

        [data-theme="dark"] .theme-switch:active .moon-icon {
            transform: translateY(-50%) scale(0.95);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            padding: 110px 0 0;
            background: transparent;
        }

        .hero::before {
            content: '';
            position: absolute;
            width: 54%;
            height: 90%;
            left: 22%;
            bottom: -10%;
            transform: translateX(-50%);
            background:
                radial-gradient(ellipse at 50% 64%, rgba(76, 132, 255, 0.12) 0%, rgba(76, 132, 255, 0.07) 26%, rgba(76, 132, 255, 0.03) 46%, rgba(76, 132, 255, 0) 72%),
                radial-gradient(ellipse at 50% 72%, rgba(24, 59, 128, 0.14) 0%, rgba(24, 59, 128, 0.06) 38%, rgba(24, 59, 128, 0) 74%);
            filter: blur(88px);
            opacity: 0.6;
            z-index: 0;
            pointer-events: none;
        }

        .hero-container {
            position: relative;
            display: grid;
            grid-template-columns: 40% 60%;
            gap: 0;
            align-items: stretch;
            max-width: 100%;
            width: 100%;
            height: calc(100vh - 110px);
            z-index: 2;
        }

        .hero-image-wrapper {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            height: 100%;
            overflow: hidden;
        }

        .hero-comments-layer {
            position: absolute;
            inset: 0;
            z-index: 4;
            pointer-events: none;
            overflow: hidden;
        }

        .hero-comment {
            position: absolute;
            width: clamp(134px, 11.2vw, 193px);
            opacity: 0;
            will-change: transform, opacity;
            filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.16));
            animation: heroCommentFloat var(--comment-duration, 5.1s) linear forwards;
        }

        .hero-comment img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 12px;
        }

        @keyframes heroCommentFloat {
            0% {
                opacity: 0;
                transform: translate3d(var(--comment-drift-x, 0px), 24px, 0) scale(var(--comment-scale, 0.96));
            }
            14% {
                opacity: 1;
            }
            82% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translate3d(var(--comment-drift-x, 0px), -58px, 0) scale(var(--comment-scale, 0.96));
            }
        }

        /* Blue gradient glow behind hero image */
        .hero-image-wrapper::before {
            content: none;
        }

        .hero-image {
            width: min(100%, clamp(520px, 52vw, 980px));
            height: auto;
            max-height: min(92vh, 980px);
            object-fit: contain;
            object-position: center bottom;
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            transform-origin: center bottom;
            transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
            z-index: 2;
            animation: slideUp 1s ease-out;
        }

        /* Default (Dark mode) - show dark image */
        .hero-image-light {
            opacity: 0;
            visibility: hidden;
        }

        .hero-image-dark {
            opacity: 1;
            visibility: visible;
        }

        /* Light mode - show light image */
        [data-theme="light"] .hero-image-light {
            opacity: 1;
            visibility: visible;
        }

        [data-theme="light"] .hero-image-dark {
            opacity: 0;
            visibility: hidden;
        }

        /* Animation on first load - Simple slide up */
        @keyframes slideUp {
            0% {
                opacity: 0;
                transform: translateX(-50%) translateY(100px);
            }
            100% {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left;
            z-index: 2;
            min-width: 0;
            padding: 0 60px;
        }

        .hero-subtitle {
            font-size: 0.85rem;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 30px;
            font-weight: 600;
            animation: fadeInDown 1s ease;
        }

        .hero-title {
            font-family: var(--font-sans);
            font-weight: 900;
            font-size: clamp(2.7rem, 4.5vw, 5rem);
            line-height: 0.92;
            letter-spacing: 0;
            margin-bottom: 32px;
            animation: fadeInUp 1s ease 0.2s backwards;
            color: var(--text-primary);
            max-width: 100%;
        }

        .typing-word {
            display: inline-block;
            color: var(--accent);
            font-family: var(--font-serif);
            font-weight: 400;
            font-style: italic;
            letter-spacing: -0.03em;
            white-space: nowrap;
            text-align: left;
        }

        .typing-cursor {
            display: inline-block;
            width: 2px;
            height: 0.9em;
            margin-left: 0.08em;
            background: var(--accent);
            vertical-align: -0.05em;
            animation: blink 1s steps(1, end) infinite;
        }

        .hero-line {
            display: block;
        }

        .hero-line-one {
            white-space: nowrap;
        }

        @keyframes blink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }

        .hero-description {
            font-size: clamp(1.05rem, 1.3vw, 1.25rem);
            color: var(--text-secondary);
            max-width: 600px;
            margin-bottom: 60px;
            font-weight: 400;
            line-height: 1.7;
            animation: fadeInUp 1s ease 0.4s backwards;
        }

        .hero-stats {
            display: grid;
            grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.9fr) minmax(150px, 0.7fr);
            gap: 18px;
            animation: fadeInUp 1s ease 0.6s backwards;
            max-width: 100%;
            align-items: start;
        }

        .stat {
            text-align: left;
            min-width: 0;
        }

        .stat-number {
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: clamp(1.75rem, 2.55vw, 2.7rem);
            color: var(--accent);
            display: block;
            line-height: 1;
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin-top: 10px;
            display: block;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .reveal-word {
            display: inline-block;
            opacity: 0;
            transform: translateY(18px);
        }

        .reveal-target.reveal-visible .reveal-word {
            animation: wordRise 1.05s cubic-bezier(0.18, 0.75, 0.2, 1) forwards;
            animation-delay: var(--reveal-delay, 0ms);
        }

        @keyframes wordRise {
            from {
                opacity: 0;
                transform: translateY(18px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

.scroll-indicator {
position: absolute;
bottom: 32px;
left: 50%;
transform: translateX(-50%);
z-index: 12;
opacity: 1;
}

.scroll-arrow {
font-size: 1.5rem;
color: var(--accent);
animation: arrowBounce 2s infinite;
filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

@keyframes arrowBounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
opacity: 0.6;
}
40% {
transform: translateY(-10px);
opacity: 1;
}
60% {
transform: translateY(-5px);
opacity: 0.8;
}
}

/* Portfolio Gallery */
.portfolio {
min-height: 170vh;
position: relative;
padding: 20px 0 0;
}

.portfolio-sticky {
position: sticky;
top: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
perspective: 1500px;
}

        .portfolio-title {
            position: absolute;
            top: 120px;
            left: 60px;
            font-family: var(--font-sans);
            font-weight: 900;
            font-size: clamp(2.5rem, 5vw, 4rem);
            line-height: 1;
            letter-spacing: -0.03em;
            z-index: 10;
        }

        .portfolio-title .lead {
            font-family: var(--font-serif);
            font-style: italic;
            color: var(--accent);
            font-weight: 400;
            margin-right: 10px;
        }

        .portfolio-swipe-indicator {
            display: none;
        }

        .video-cards-shell {
            display: contents;
        }

        /* Year indicator on cards */
        .card-year {
            position: absolute;
            top: 30px;
            left: 30px;
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: 4rem;
            line-height: 0.9;
            color: rgba(0, 0, 0, 0.3);
            z-index: 1;
            pointer-events: none;
        }

        [data-theme="light"] .card-year {
            color: rgba(0, 0, 0, 0.15);
        }

        .video-cards {
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
        }

        .video-card {
            position: absolute;
            width: min(390px, 66vw);
            aspect-ratio: 4 / 5;   /* 4:5 cover */
            height: auto;
            top: 50%;
            left: 50%;
            transform-style: preserve-3d;
            transform-origin: center center;
            will-change: transform, opacity;
            transition: opacity 0.28s ease;
        }


        .video-card-inner {
            width: 100%;
            height: 100%;
            border-radius: 15px;
            overflow: hidden;
            background: var(--bg-card);
            box-shadow: 
                0 30px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
            position: relative;
            isolation: isolate;
            transform-style: preserve-3d;
            will-change: filter, box-shadow;
            transition: background-color 0.3s ease, box-shadow 0.35s ease, filter 0.28s ease;
        }

        .video-card.is-desktop-focus .video-card-inner {
            box-shadow:
                0 38px 110px rgba(0, 0, 0, 0.58),
                0 0 0 1px rgba(255, 255, 255, 0.12),
                0 0 36px rgba(59, 130, 246, 0.16);
        }

        [data-theme="light"] .video-card.is-desktop-focus .video-card-inner {
            box-shadow:
                0 28px 68px rgba(15, 23, 42, 0.18),
                0 0 0 1px rgba(15, 23, 42, 0.08),
                0 0 28px rgba(37, 99, 235, 0.1);
        }

        .video-card video,
        .video-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            position: relative;
            z-index: 1;
        }

        .video-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 30px;
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 2;
        }

        .video-card:hover .video-overlay {
            opacity: 1;
        }

        .video-title {
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            margin-bottom: 10px;
            line-height: 1;
        }

        .video-meta {
            display: flex;
            gap: 15px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            flex-wrap: wrap;
        }

        .video-meta span {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .play-button::after {
            content: '';
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 12px 0 12px 20px;
            border-color: transparent transparent transparent white;
            margin-left: 4px;
        }

        /* Long-form Section */
        .longform {
            position: relative;
            padding: 34px 60px 40px;
            overflow: hidden;
            background: transparent;
        }

        .longform::before {
            content: '';
            position: absolute;
            inset: 0;
            background: transparent;
            pointer-events: none;
        }

        .longform-content {
            position: relative;
            z-index: 2;
            max-width: 1360px;
            margin: 0 auto;
        }

        .longform-title {
            margin-bottom: 40px;
            font-family: var(--font-sans);
            font-weight: 900;
            font-size: clamp(2.2rem, 5vw, 4rem);
            line-height: 1;
            letter-spacing: -0.03em;
        }

        .longform-title .lead {
            font-family: var(--font-serif);
            font-style: italic;
            color: var(--accent);
            font-weight: 400;
            margin-right: 10px;
        }

        .longform-subtitle {
            color: rgba(245, 247, 250, 0.78);
            max-width: 760px;
            font-size: 1.05rem;
            margin-bottom: 16px;
        }

        .longform-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px;
        }

        .longform-card {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            aspect-ratio: 16 / 9;
            background: #000;
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow:
                0 28px 60px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.03);
            display: flex;
            align-items: center;
            justify-content: center;
            isolation: isolate;
            transform-origin: center center;
            transition:
                transform 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                filter 0.3s ease;
        }

        .longform-card-media {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .longform-card video {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            background: #000;
            transform: scale(1.02);
            transform-origin: center;
            transition: transform 0.5s ease, filter 0.35s ease;
        }

        .longform-card:hover,
        .longform-card:focus-within {
            transform: scale(1.012);
            border-color: rgba(103, 171, 255, 0.32);
            box-shadow:
                0 34px 78px rgba(0, 0, 0, 0.42),
                0 0 0 1px rgba(103, 171, 255, 0.12),
                0 0 34px rgba(59, 130, 246, 0.14);
        }

        .longform-card:hover video,
        .longform-card:focus-within video {
            transform: scale(1.04);
            filter: saturate(1.04) contrast(1.03);
        }

        [data-theme="light"] .longform-card {
            border-color: rgba(15, 23, 42, 0.08);
            box-shadow:
                0 24px 54px rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.32);
        }

        [data-theme="light"] .longform-card:hover,
        [data-theme="light"] .longform-card:focus-within {
            border-color: rgba(37, 99, 235, 0.22);
            box-shadow:
                0 30px 70px rgba(15, 23, 42, 0.16),
                0 0 0 1px rgba(37, 99, 235, 0.1),
                0 0 24px rgba(37, 99, 235, 0.08);
        }


        /* About Section */
        .about {
    padding: 100px 60px;
    background: transparent;
}

        .about-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.95fr);
            gap: 28px;
            align-items: center;
        }

        .about-text {
            max-width: 42rem;
        }

        .about-title {
            font-family: var(--font-sans);
            font-weight: 900;
            font-size: clamp(3rem, 6vw, 4rem);
            margin-bottom: 26px;
            line-height: 0.96;
            letter-spacing: -0.03em;
        }

        .about-title .lead {
            font-family: var(--font-serif);
            font-style: italic;
            color: var(--accent);
            font-weight: 400;
            margin-right: 10px;
            letter-spacing: 0;
        }

        .about-text p {
            font-size: 1.22rem;
            color: var(--text-secondary);
            line-height: 1.9;
            margin-bottom: 22px;
            max-width: 40ch;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 40px;
        }

        .skill-item {
            background: var(--bg-card);
            padding: 20px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
        }

        .skill-item:hover {
            border-color: var(--accent);
            transform: translateY(-5px);
        }

        .about-image {
            position: relative;
            z-index: 0;
            width: min(100%, 430px);
            justify-self: end;
        }

        .about-image-mobile {
            display: none;
        }

        .about-image img {
            position: relative;
            z-index: 2;
            display: block;
            width: 100%;
            border-radius: 15px;
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: -12px;
            left: -12px;
            right: 12px;
            bottom: 12px;
            box-sizing: border-box;
            border: 2px solid var(--accent);
            border-radius: 15px;
            opacity: 0.95;
            z-index: 1;
            pointer-events: none;
        }

        /* Worked With Section */
        .worked-with {
            position: relative;
            isolation: isolate;
            padding: 84px 60px 92px;
            overflow: visible;
            background: transparent;
        }

        .worked-with::before {
            content: none;
        }

        .worked-with-content {
            width: min(100%, 1540px);
            margin: 0 auto;
            text-align: center;
        }

        .worked-with-kicker {
            margin-bottom: 46px;
            color: rgba(255, 255, 255, 0.58);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .worked-with-title {
            margin-bottom: 76px;
            color: #f5f5f5;
            font-size: clamp(1.8rem, 3.2vw, 2.8rem);
            line-height: 1;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .trusted-strip {
            display: flex;
            justify-content: center;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .trusted-marquee {
            display: flex;
            gap: var(--trusted-gap, 40px);
            width: max-content;
            align-items: center;
        }

        .trusted-track {
            display: flex;
            gap: 40px;
            align-items: center;
            width: max-content;
            flex: 0 0 auto;
        }

        @media (min-width: 769px) {
            .trusted-strip {
                overflow: visible;
            }

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

            .trusted-track {
                display: flex;
                flex-wrap: nowrap;
                justify-content: center;
                gap: 110px;
                animation: none !important;
                transform: none !important;
            }

            .trusted-track-duplicate {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .trusted-strip {
                -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
                mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
            }

            .trusted-marquee {
                --trusted-gap: 40px;
                --trusted-scroll-distance: calc(-50% - (var(--trusted-gap, 40px) / 2));
                animation: scrollLogos 28s linear infinite;
                will-change: transform;
            }

            .trusted-track {
                display: flex;
                flex-wrap: nowrap;
                gap: var(--trusted-gap, 40px);
            }
        }

        @keyframes scrollLogos {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(var(--trusted-scroll-distance, calc(-50% - (var(--trusted-gap, 40px) / 2))));
            }
        }

        .worked-with-logo {
            min-height: 78px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            opacity: 0;
            transform: translateY(18px);
            transition:
                opacity 0.5s ease,
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.3s ease;
            transition-delay: calc(var(--logo-index) * 70ms);
        }

        .worked-with.is-visible .worked-with-logo {
            opacity: 1;
            transform: translateY(0);
        }

        .worked-with-logo:hover {
            transform: translateY(-2px) scale(1.025);
        }

        .trusted-track img {
            max-width: 100px;
            height: auto;
            opacity: 0.8;
            transition: opacity 0.3s ease;
            filter: grayscale(1) brightness(0) invert(1);
        }

        .trusted-track img:hover {
            opacity: 1;
        }

        [data-theme="light"] .worked-with-kicker {
            color: rgba(26, 26, 26, 0.56);
        }

        [data-theme="light"] .trusted-track img {
            filter: grayscale(1) brightness(0);
            opacity: 0.6;
        }

        [data-theme="light"] .trusted-track img:hover {
            opacity: 0.9;
        }

        /* Client Feedback Section */
        .feedback {
            padding: 70px 0 84px;
            background: transparent;
        }

        .feedback-content {
            max-width: 680px;
            margin: 0 auto;
            padding: 0 24px;
            text-align: center;
        }

        .feedback-title {
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: clamp(2rem, 4.2vw, 3.2rem);
            line-height: 1;
            letter-spacing: -0.02em;
            margin-bottom: 10px;
            padding: 0;
        }

        .feedback-subtitle {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 24px;
            max-width: 560px;
            padding: 0;
            margin-left: auto;
            margin-right: auto;
        }

        .testimonials-accordion {
            display: grid;
            gap: 14px;
            width: min(100%, 555px);
            margin: 0 auto;
            text-align: left;
        }

        .testimonial-card {
            width: 100%;
            display: grid;
            grid-template-rows: auto 0fr;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.055);
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 8px;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
            transition:
                grid-template-rows 0.42s cubic-bezier(0.65, 0, 0.35, 1),
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
        }

        .testimonial-card:hover {
            background: rgba(255, 255, 255, 0.075);
            transform: translateY(-1px);
        }

        .testimonial-card.is-active {
            grid-template-rows: auto 1fr;
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(59, 130, 246, 0.42);
            box-shadow:
                0 20px 46px rgba(0, 0, 0, 0.24),
                0 0 0 1px rgba(59, 130, 246, 0.12);
            transform: translateY(-2px);
        }

        .testimonial-trigger {
            width: 100%;
            min-height: 72px;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
            border: 0;
            background: transparent;
            color: inherit;
            font: inherit;
            text-align: left;
            cursor: pointer;
        }

        .testimonial-trigger:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: -4px;
        }

        .testimonial-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
        }

        .testimonial-meta {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .testimonial-body {
            min-height: 0;
            overflow: hidden;
        }

        .testimonial-copy {
            max-width: 100%;
            padding: 18px 18px 18px;
            color: var(--text-primary);
            font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "DM Sans", sans-serif;
            font-size: clamp(1rem, 1.1vw, 1.12rem);
            line-height: 1.3;
            font-weight: 500;
            letter-spacing: -0.02em;
            opacity: 0;
            transform: translateY(10px);
            transition:
                opacity 0.34s ease 0.08s,
                transform 0.34s cubic-bezier(0.65, 0, 0.35, 1) 0.08s;
        }

        .testimonial-card.is-active .testimonial-copy {
            opacity: 1;
            transform: translateY(0);
        }

        .feedback-card {
            background: var(--bg-card);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 14px;
            padding: 24px 22px;
            width: min(360px, 74vw);
            flex: 0 0 auto;
            box-shadow:
                0 18px 40px rgba(0, 0, 0, 0.24),
                0 0 0 1px rgba(255, 255, 255, 0.02);
            transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        }

        .feedback-card:hover {
            transform: translateY(-4px);
            border-color: rgba(59, 130, 246, 0.55);
            box-shadow:
                0 24px 48px rgba(0, 0, 0, 0.28),
                0 0 0 1px rgba(59, 130, 246, 0.2);
        }

        .feedback-card p {
            color: var(--text-primary);
            font-size: 1.1rem;
            line-height: 1.72;
            margin-bottom: 16px;
        }

        .feedback-author {
            font-weight: 700;
            letter-spacing: 0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .feedback-role {
            color: var(--text-secondary);
            font-size: 0.86rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-top: 4px;
        }

        /* Contact Section */
        .contact {
            padding: 40px 60px 40px;
            text-align: center;
        }

        .end-brand {
            position: relative;
            padding: 60px 0 0 0;
            overflow: visible;
            margin-bottom: 0;
            pointer-events: none;
        }

        .end-brand::before {
            content: "";
            position: absolute;
            inset: 0;
            background: transparent;
            z-index: 0;
            pointer-events: none;
        }

        .end-brand-text {
            position: relative;
            left: 50%;
            transform: translateX(-50%) translateY(-80px);
            width: 60vw;
            max-width: 800px;
            height: auto;
            display: block;
            z-index: 10;
            opacity: 0.3;
            pointer-events: none;
            will-change: transform;
            margin-bottom: -40px;
        }

        .contact h2 {
            font-family: var(--font-sans);
            font-weight: 800;
            font-size: clamp(3rem, 5vw, 4.5rem);
            line-height: 0.95;
            letter-spacing: -0.03em;
            margin-bottom: 16px;
            white-space: nowrap;
        }

        .contact p {
            max-width: 420px;
            margin: 0 auto 32px;
            font-size: 1.05rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .contact-buttons {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        /* Base button */
        .btn {
            padding: 14px 28px;
            font-size: 0.95rem;
            font-weight: 600;
            border-radius: 999px;
            text-decoration: none;
            letter-spacing: 0.02em;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        /* Primary (Email Me) */
        .btn-primary {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            box-shadow:
                0 0 20px rgba(59,130,246,0.35),
                0 10px 30px rgba(59,130,246,0.2);
        }

        .btn-primary:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow:
                0 0 30px rgba(59,130,246,0.6),
                0 20px 50px rgba(59,130,246,0.3);
        }

        /* Secondary (Glass style) */
        .btn-secondary {
            background: rgba(255,255,255,0.04);
            color: var(--text-primary);
            border: 1px solid rgba(255,255,255,0.12);
            backdrop-filter: blur(10px);
        }

        [data-theme="light"] .btn-secondary {
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid rgba(15, 23, 42, 0.14);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        }

        .btn-secondary:hover {
            transform: translateY(-2px);
            border-color: rgba(59,130,246,0.4);
            box-shadow: 0 0 15px rgba(59,130,246,0.2);
        }

        /* Optional: subtle shine effect */
        .btn::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 999px;
            background: linear-gradient(
                120deg,
                transparent,
                rgba(255,255,255,0.15),
                transparent
            );
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .btn:hover::after {
            opacity: 1;
        }

        .contact::after {
            content: "";
            position: absolute;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            filter: blur(60px);
            z-index: 0;
        }

        .contact > * {
            position: relative;
            z-index: 1;
        }

        section:last-of-type {
            margin-bottom: 0;
            padding-bottom: 20px;
        }

        /* Footer */
        footer {
            position: relative;
            z-index: 5;
            border-top: none;
            color: var(--text-secondary);
            margin-bottom: 0;
        }

        .footer-top {
            position: relative;
            z-index: 5;
        }

        .footer-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 60px 0;
            margin-top: 0;
        }

        .footer-left {
            font-size: 1.2rem;
            letter-spacing: 0.02em;
            opacity: 0.85;
            color: var(--text-secondary);
        }

        .footer-left p {
            font-size: 1.2rem;
            margin: 0;
            line-height: 1.4;
        }

        .mobile-break {
            display: none;
        }

        .footer-socials {
            display: flex;
            align-items: center;
            gap: 32px;
        }

        .footer-socials a {
            font-size: 2.4rem;
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .footer-socials a:hover {
            color: var(--text-primary);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 30px;
        }

        .social-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 1.5rem;
            transition: color 0.3s ease;
        }

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

        @media (min-width: 1440px) {
            .longform {
                padding: 16px 60px 24px;
            }

            .longform-content {
                max-width: 1120px;
            }

            .longform-title {
                font-size: clamp(1.9rem, 3vw, 3rem);
                margin-bottom: 8px;
            }

            .longform-grid {
                gap: 16px;
            }

            .longform-card {
                aspect-ratio: 16 / 9;
            }

            .about {
                padding: 70px 60px 72px;
            }

            .worked-with {
                padding: 74px 60px 82px;
            }

            .worked-with-content {
                max-width: 1540px;
            }

            .worked-with-logo {
                min-height: 74px;
            }

            .worked-with-logo img {
                max-width: 266px;
                height: 106px;
            }

            .feedback {
                padding: 62px 0 76px;
            }

            .feedback-content {
                max-width: 680px;
                padding: 0 24px;
            }

            .feedback-title {
                font-size: clamp(1.85rem, 2.9vw, 2.5rem);
            }

            .feedback-subtitle {
                font-size: 0.9rem;
                margin-bottom: 18px;
            }

            .testimonials-accordion {
                width: min(100%, 555px);
                gap: 14px;
            }

            .testimonial-trigger {
                min-height: 72px;
                padding: 14px 18px;
            }

            .testimonial-copy {
                font-size: 1rem;
                padding: 18px 18px 18px;
            }

            .feedback-role {
                font-size: 0.78rem;
            }

            .about-content {
                max-width: 1080px;
                gap: 56px;
            }

            .about-title {
                font-size: clamp(2.3rem, 3.5vw, 3.2rem);
                margin-bottom: 20px;
            }

            .about-text p {
                font-size: 1rem;
                line-height: 1.7;
                margin-bottom: 16px;
            }

            .skills-grid {
                gap: 14px;
                margin-top: 28px;
            }

            .skill-item {
                padding: 16px;
            }

            .about-image img {
                max-width: 420px;
                margin-left: auto;
            }

            .contact {
                padding: 28px 60px 28px;
            }

            .contact h2 {
                font-size: clamp(1.9rem, 3.2vw, 2.9rem);
                margin-bottom: 12px;
            }

            .contact p {
                font-size: 0.95rem;
                margin-bottom: 18px;
            }

            .contact-buttons {
                gap: 14px;
            }

            .btn {
                padding: 12px 28px;
                font-size: 0.85rem;
            }

            footer {
                padding-top: 8px;
            }

            footer p {
                font-size: 0.82rem;
            }
        }

        /* Responsive */
        /* Tablet responsiveness */
        @media (max-width: 1024px) {
            .hero-container {
                grid-template-columns: 38% 62%;
            }

            .hero-image {
                width: min(100%, clamp(420px, 46vw, 760px));
                max-height: 86vh;
            }

            .hero-content {
                padding: 0 40px;
            }

            .hero-title {
                font-size: clamp(2.5rem, 4.6vw, 4rem);
            }

            .hero-stats {
                grid-template-columns: minmax(0, 1.45fr) minmax(145px, 0.9fr) minmax(120px, 0.7fr);
                gap: 14px;
            }

            .stat-number {
                font-size: clamp(1.45rem, 2.15vw, 2.1rem);
            }
        }

        @media (max-width: 768px) {
            html {
                font-size: 16px;
            }

            body {
                letter-spacing: -0.015em;
            }

            nav {
                padding: 14px 20px;
                flex-wrap: nowrap;
                gap: 10px;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1000;
            }

            .logo {
                font-size: 1.4rem;
                order: 2;
                margin-right: auto;
            }

            .nav-links {
                display: none !important;
                visibility: hidden;
                pointer-events: none;
            }

            .theme-switch-wrapper {
                position: static;
                order: 3;
                margin-left: auto;
                margin: 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .theme-switch {
                position: relative;
                display: block;
                flex: none;
                width: 42px !important;
                height: 42px !important;
                min-width: 42px;
                min-height: 42px;
                max-width: 42px;
                max-height: 42px;
                aspect-ratio: 1 / 1;
            }

            .slider {
                position: absolute;
                inset: 0;
                width: 42px;
                height: 42px;
                min-width: 42px;
                min-height: 42px;
                max-width: 42px;
                max-height: 42px;
                border-radius: 50% !important;
                background: radial-gradient(circle at 35% 35%, #7aa9ff 0%, #3b82f6 52%, #1d4ed8 100%);
                box-shadow:
                    inset 0 1px 4px rgba(255, 255, 255, 0.18),
                    0 4px 10px rgba(37, 99, 235, 0.18);
                overflow: hidden;
                transition: none !important;
            }

            [data-theme="dark"] .slider {
                background: radial-gradient(circle at 35% 35%, #5f76d8 0%, #354cae 52%, #1e285f 100%);
                box-shadow:
                    inset 0 2px 6px rgba(255, 255, 255, 0.12),
                    0 8px 18px rgba(16, 24, 58, 0.34);
            }

            .slider-text {
                display: none;
            }

            .slider-icon {
                top: 50%;
                left: 50%;
                right: auto;
                width: 35px;
                height: 35px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                transform: translate(-50%, -50%);
                transition: none !important;
            }

            .sun-icon {
                background: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.92),
                    0 1px 4px rgba(0, 0, 0, 0.12);
                opacity: 1;
            }

            .sun-icon svg {
                color: #2f3138;
            }

            .moon-icon {
                background: linear-gradient(180deg, #202538 0%, #121827 100%);
                box-shadow:
                    inset 0 1px 0 rgba(255, 255, 255, 0.06),
                    0 1px 5px rgba(0, 0, 0, 0.22);
                opacity: 0;
            }

            .moon-icon svg {
                color: #eef2ff;
            }

            .sun-icon,
            .moon-icon {
                top: 50%;
                left: 50%;
                right: auto;
                pointer-events: none;
                transform: translate(-50%, -50%);
            }

            .theme-switch *,
            .theme-switch::before,
            .theme-switch::after,
            .slider,
            .slider::before,
            .slider::after {
                transition: none !important;
                animation: none !important;
            }

            [data-theme="dark"] .sun-icon {
                top: 50%;
                left: 50%;
                right: auto;
                transform: translate(-50%, -50%);
                opacity: 0;
            }

            [data-theme="dark"] .moon-icon {
                top: 50%;
                left: 50%;
                right: auto;
                transform: translate(-50%, -50%);
                opacity: 1;
            }

            @keyframes mobileThemeTapOuter {
                0% {
                    transform: scale(1);
                }
                50% {
                    transform: scale(0.94);
                }
                100% {
                    transform: scale(1);
                }
            }

            @keyframes mobileThemeTapInner {
                0% {
                    transform: translate(-50%, -50%) scale(1);
                }
                50% {
                    transform: translate(-50%, -50%) scale(0.94);
                }
                100% {
                    transform: translate(-50%, -50%) scale(1);
                }
            }

            .theme-switch:active .slider {
                animation: mobileThemeTapOuter 0.18s ease-out !important;
            }

            .theme-switch:active .slider-icon,
            [data-theme="dark"] .theme-switch:active .moon-icon,
            [data-theme="dark"] .theme-switch:active .sun-icon {
                animation: mobileThemeTapInner 0.18s ease-out !important;
            }

            .nav-hamburger {
                display: flex;
                order: 1;
                margin-right: 10px;
            }

            .hero {
                height: auto;
                min-height: 100svh;
                padding-top: 70px;
                padding-bottom: 40px;
                align-items: flex-start;
            }

            .hero-container {
                grid-template-columns: 1fr;
                grid-template-rows: auto auto;
                height: auto;
                min-height: unset;
            }

            .hero-image-wrapper {
                height: 42svh;
                min-height: 220px;
                align-items: flex-end;
            }

            .hero-image {
                width: min(78vw, 520px);
                height: auto;
                max-height: 100%;
                max-width: 100%;
            }

            .hero-content {
                padding: 44px 20px;
                text-align: center;
            }

            .hero-title {
                font-size: clamp(2.45rem, 14vw, 4rem);
                margin-bottom: 14px;
                line-height: 0.96;
            }

            .hero-subtitle {
                margin-bottom: 14px;
                font-size: 0.72rem;
                letter-spacing: 0.18em;
            }

            .hero-description {
                max-width: 100%;
                margin-bottom: 24px;
                font-size: 0.95rem;
            }

            .hero-stats {
                width: 100%;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 12px;
                justify-content: center;
            }

            .stat {
                text-align: center;
                padding: 8px 0;
            }

            .stat-number {
                font-size: 1.45rem;
            }

            .scroll-indicator {
                display: none;
            }

            .portfolio {
                height: auto;
                min-height: unset;
                padding: 72px 0 40px;
            }

            .portfolio-sticky {
                position: relative;
                top: 0;
                height: auto;
                display: block;
                perspective: none;
            }

            .portfolio-title {
                position: static;
                margin: 0 0 18px;
                padding: 0 16px;
                left: auto;
                font-size: clamp(1.85rem, 9vw, 2.5rem);
            }

            .video-cards {
                position: relative;
                height: auto;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                padding: 0 16px;
                perspective: none;
                transform-style: flat;
            }

            .video-card {
                position: relative !important;
                top: auto !important;
                left: auto !important;
                aspect-ratio: 9 / 16;
                height: auto;
            }

            .video-card-inner {
                height: auto;
                aspect-ratio: 9 / 16;
            }

            .longform {
                padding: 24px 20px 30px;
            }

            .longform-title {
                font-size: clamp(1.85rem, 9vw, 2.5rem);
            }

            .longform-grid {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .about {
                padding: 80px 20px;
            }

            .worked-with {
                padding: 58px 20px 66px;
            }

            
            .worked-with-logo {
                min-height: 64px;
            }

            .worked-with-logo img {
                max-width: 218px;
                height: 87px;
            }

            .feedback {
                padding: 18px 0 36px;
            }

            .feedback-title {
                font-size: clamp(1.85rem, 9vw, 2.5rem);
            }

            .feedback-subtitle {
                font-size: 0.96rem;
                margin-bottom: 18px;
            }

            .feedback-content {
                padding: 0 20px;
            }

            .testimonials-accordion {
                gap: 10px;
            }

            .testimonial-trigger {
                min-height: 70px;
                gap: 12px;
                padding: 14px;
            }

            .testimonial-avatar {
                width: 40px;
                height: 40px;
            }

            .testimonial-copy {
                padding: 10px 14px 18px;
                font-size: 0.98rem;
                line-height: 1.5;
            }

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

            .about-title {
                font-size: clamp(1.85rem, 9vw, 2.5rem);
            }

            .about-text p {
                font-size: 0.98rem;
            }

            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
                margin-top: 28px;
            }

            .contact {
                padding: 60px 20px 16px;
            }

            .contact h2 {
                font-size: clamp(2rem, 11vw, 3rem);
            }

            .contact p {
                font-size: 0.98rem;
            }

            .contact-buttons {
                gap: 12px;
            }

            .btn {
                padding: 12px 24px;
                font-size: 0.85rem;
            }

        }

        /* Light mode specific adjustments */
        [data-theme="light"] .video-card-inner {
            box-shadow: 
                0 30px 80px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
        }

        [data-theme="light"] .skill-item {
            border: 1px solid rgba(0, 0, 0, 0.08);
        }

        [data-theme="light"] .about-image::before {
            border-color: var(--accent);
        }

        [data-theme="light"] .feedback-card {
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow:
                0 16px 36px rgba(3, 20, 50, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.45);
        }

        [data-theme="light"] .feedback-card:hover {
            border-color: rgba(37, 99, 235, 0.5);
            box-shadow:
                0 18px 40px rgba(3, 20, 50, 0.12),
                0 0 0 1px rgba(37, 99, 235, 0.2);
        }

        [data-theme="light"] .testimonial-card {
            background: rgba(255, 255, 255, 0.76);
            border-color: rgba(0, 0, 0, 0.08);
            box-shadow:
                0 12px 30px rgba(15, 23, 42, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.38);
        }

        [data-theme="light"] .testimonial-card:hover {
            border-color: rgba(37, 99, 235, 0.45);
            background: rgba(255, 255, 255, 0.9);
        }

        [data-theme="light"] .testimonial-card.is-active {
            background: rgba(255, 255, 255, 0.96);
            border-color: rgba(37, 99, 235, 0.42);
            box-shadow:
                0 20px 46px rgba(15, 23, 42, 0.13),
                0 0 0 1px rgba(37, 99, 235, 0.12);
        }

        [data-theme="light"] .testimonial-avatar {
            box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
        }


        [data-theme="light"] footer {
            border-top: none;
        }

        [data-theme="light"] nav {
            background: linear-gradient(to bottom, rgba(248, 249, 250, 0.95), transparent);
        }

        [data-theme="light"] .about {
            background: transparent;
        }

        [data-theme="light"] .longform {
            background: transparent;
        }

        [data-theme="light"] .longform-subtitle {
            color: rgba(10, 18, 35, 0.75);
        }

        [data-theme="light"] .longform-card {
            background: rgba(255, 255, 255, 0.7);
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 24px 48px rgba(3, 20, 50, 0.12);
        }

        html[data-theme="light"] .end-brand-text {
            filter: brightness(0);
        }

        
        .portfolio-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }


.unmute-btn {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    bottom: 18px;
    left: 18px;
    transform: none;
    min-width: 96px;
    min-height: 38px;
    padding: 10px 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        rgba(8, 11, 18, 0.42);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 8;
    pointer-events: auto !important;
    display: inline-flex;
    visibility: visible;
    opacity: 1;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 22px rgba(59, 130, 246, 0.08);
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease;
}

.unmute-btn::before {
    content: none;
}

.unmute-btn::after {
    content: none;
}

.unmute-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 168, 255, 0.4);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(110, 168, 255, 0.16),
        0 0 26px rgba(59, 130, 246, 0.12);
}

.unmute-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.unmute-btn[aria-pressed="true"] {
    background:
        linear-gradient(135deg, rgba(103, 171, 255, 0.16), rgba(37, 99, 235, 0.06)),
        rgba(8, 11, 18, 0.54);
    border-color: rgba(103, 171, 255, 0.3);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(103, 171, 255, 0.16),
        0 0 30px rgba(59, 130, 246, 0.14);
}

[data-theme="light"] .unmute-btn {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.24)),
        rgba(255, 255, 255, 0.34);
    color: #10213d;
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.28),
        0 0 18px rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .unmute-btn[aria-pressed="true"] {
    background:
        linear-gradient(135deg, rgba(215, 232, 255, 0.62), rgba(255, 255, 255, 0.38)),
        rgba(255, 255, 255, 0.46);
    border-color: rgba(37, 99, 235, 0.22);
}

@media (min-width: 769px) {
    .unmute-btn {
        display: inline-flex;
        left: 22px;
        bottom: 22px;
        min-width: 90px;
        min-height: 34px;
        padding: 8px 12px;
        font-size: 0.64rem;
        z-index: 12;
        opacity: 0;
        visibility: hidden;
        pointer-events: none !important;
        transform: translateY(8px);
        transition:
            opacity 0.26s ease,
            transform 0.26s ease,
            visibility 0s linear 0.26s,
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease,
            color 0.22s ease;
    }

    .video-card.active .unmute-btn {
        opacity: 1;
        visibility: visible;
        pointer-events: auto !important;
        transform: translateY(0);
        transition:
            opacity 0.26s ease,
            transform 0.26s ease,
            visibility 0s linear 0s,
            background 0.22s ease,
            border-color 0.22s ease,
            box-shadow 0.22s ease,
            color 0.22s ease;
    }

}
/* Remove all native video UI */
.portfolio-video::-webkit-media-controls {
    display: none !important;
}

.portfolio-video::-webkit-media-controls-play-button {
    display: none !important;
}

.portfolio-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.portfolio-video {
    pointer-events: none; /* prevents click-to-play UI */
}
