:root {
    /* Cinematic Dark Colors */
    --bg-base: #030303;
    --bg-surface: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #888888;
    
    /* Unified Dual Color Theme */
    --accent-primary: #ff1744;    /* Electric Red */
    --accent-secondary: #ff4d6d;  /* Rose Red */

    /* Semantic mappings */
    --accent-video: var(--accent-secondary);
    --accent-music: var(--accent-primary);
    --accent-art: #8b00ff;         /* Subtle tertiary purple highlight */

    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Theme Variables */
    --header-bg-transparent: rgba(3, 3, 3, 0.4);
    --header-bg-solid: rgba(3, 3, 3, 0.85);
    --header-border-transparent: rgba(255, 255, 255, 0.05);
    --header-border-solid: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(20, 20, 20, 0.8);
    --mouse-glow: rgba(255, 255, 255, 0.06);
    --footer-bg: #000000;
    --dex-bg-grad: #080808;
    --dex-player-mock-bg: #050505;
}

/* Unified liquid-glass navigation for the standard website header. */
#navbar:not(.scrolled){background:transparent;border-bottom-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
#navbar.scrolled{background:linear-gradient(180deg,rgba(5,5,8,.9),rgba(5,5,8,.78));border-bottom-color:rgba(255,255,255,.09);box-shadow:0 12px 34px rgba(0,0,0,.28);-webkit-backdrop-filter:blur(22px) saturate(155%);backdrop-filter:blur(22px) saturate(155%)}
body.light-mode #navbar:not(.scrolled){background:transparent;border-bottom-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
body.light-mode #navbar.scrolled{background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(247,241,243,.76));border-bottom-color:rgba(217,4,41,.14);box-shadow:0 12px 34px rgba(90,20,35,.12);-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%)}
@media(min-width:993px){
  #navbar .nav-item.dropdown::after{
    content:"";
    position:absolute;
    z-index:119;
    top:100%;
    right:-.4rem;
    left:-.4rem;
    height:.85rem;
  }
  #navbar .nav-links{
    gap:.25rem;
    margin:0;
    padding:.3rem;
    border:1px solid rgba(255,255,255,.1);
    border-radius:999px;
    background:linear-gradient(145deg,rgba(28,30,38,.48),rgba(7,8,12,.3));
    box-shadow:inset 0 1px rgba(255,255,255,.1),0 12px 34px rgba(0,0,0,.18);
    -webkit-backdrop-filter:blur(22px) saturate(155%);
    backdrop-filter:blur(22px) saturate(155%);
  }
  #navbar .nav-link{
    position:relative;
    min-height:38px;
    padding:.65rem .85rem;
    border:0;
    border-radius:999px;
    gap:.45rem;
    transition:color .2s ease,background .2s ease,box-shadow .2s ease;
  }
  #navbar .nav-link::after{
    content:"";
    position:absolute;
    right:.85rem;
    bottom:.3rem;
    left:.85rem;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--accent-primary),var(--accent-secondary));
    box-shadow:0 0 10px color-mix(in srgb,var(--accent-primary) 55%,transparent);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .22s ease;
  }
  #navbar .nav-link:hover,#navbar .nav-link.active,#navbar .nav-item:focus-within>.nav-link{background:rgba(255,255,255,.055);color:var(--text-main)}
  #navbar .nav-link:hover::after,#navbar .nav-link.active::after,#navbar .nav-item:focus-within>.nav-link::after{transform:scaleX(1)}
  #navbar .dropdown-menu{
    top:calc(100% + .7rem);
    min-width:250px;
    padding:.55rem;
    border:1px solid rgba(255,255,255,.16);
    border-radius:20px;
    background:linear-gradient(145deg,rgba(31,33,43,.68),rgba(7,8,13,.55));
    box-shadow:inset 0 1px rgba(255,255,255,.13),0 28px 70px rgba(0,0,0,.44),0 0 36px rgba(255,23,68,.1);
    -webkit-backdrop-filter:blur(28px) saturate(170%);
    backdrop-filter:blur(28px) saturate(170%);
  }
  #navbar .dropdown-menu a{min-height:42px;padding:.72rem .85rem;border:1px solid transparent;border-radius:12px;gap:.7rem}
  #navbar .dropdown-menu a:hover,#navbar .dropdown-menu a:focus-visible{padding-left:.85rem;border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.075);outline:none}
  body.light-mode #navbar .nav-links{border-color:rgba(116,155,184,.2);background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(225,240,250,.5));box-shadow:inset 0 1px #fff,0 12px 34px rgba(48,102,148,.1)}
  body.light-mode #navbar .dropdown-menu{border-color:rgba(187,221,246,.9);background:linear-gradient(145deg,rgba(250,253,255,.82),rgba(214,235,251,.68));box-shadow:inset 0 1px #fff,0 28px 68px rgba(48,102,148,.2)}
}

@media(max-width:992px){
  #navbar .nav-links{
    position:fixed;
    top:76px;
    right:1rem;
    left:auto;
    display:grid;
    width:min(310px,calc(100vw - 2rem));
    height:auto;
    max-height:calc(100dvh - 92px);
    gap:.3rem;
    padding:.8rem;
    border:1px solid rgba(255,255,255,.16);
    border-radius:20px;
    background:linear-gradient(145deg,rgba(31,33,43,.68),rgba(7,8,13,.56));
    box-shadow:inset 0 1px rgba(255,255,255,.13),0 28px 70px rgba(0,0,0,.44),0 0 36px rgba(255,23,68,.11);
    -webkit-backdrop-filter:blur(28px) saturate(170%);
    backdrop-filter:blur(28px) saturate(170%);
    overflow-y:auto;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-12px) scale(.97);
    transform-origin:top right;
    transition:opacity .22s ease,visibility .22s ease,transform .3s cubic-bezier(.16,1,.3,1);
  }
  #navbar .nav-links.mobile-active{right:1rem;opacity:1;visibility:visible;pointer-events:auto;transform:none}
  #navbar .nav-link{min-height:46px;padding:.8rem .9rem;border:1px solid transparent;border-radius:12px;background:transparent!important}
  #navbar .nav-link:hover,#navbar .nav-link.active{border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.075)!important}
  #navbar .dropdown-menu{margin:.25rem 0 .35rem!important;padding:.35rem!important;border:1px solid rgba(255,255,255,.09)!important;border-left:2px solid var(--accent-primary)!important;border-radius:13px!important;background:rgba(255,255,255,.035)!important}
  #navbar .dropdown-menu a{min-height:40px;padding:.65rem .75rem;border-radius:9px}
  #navbar .dropdown-menu a:hover,#navbar .dropdown-menu a.active{padding-left:.75rem;background:rgba(255,255,255,.065)!important}
  body.light-mode #navbar .nav-links{border-color:rgba(187,221,246,.9);background:linear-gradient(145deg,rgba(250,253,255,.84),rgba(214,235,251,.7));box-shadow:inset 0 1px #fff,0 28px 68px rgba(48,102,148,.2)}
  body.light-mode #navbar .nav-link:hover,body.light-mode #navbar .nav-link.active{border-color:rgba(48,102,148,.12);background:rgba(255,255,255,.62)!important}
  body.light-mode #navbar .dropdown-menu{border-color:rgba(48,102,148,.12)!important;border-left-color:var(--accent-primary)!important;background:rgba(255,255,255,.38)!important}
}

html {
    overflow-x: hidden;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
picture,
video,
iframe,
canvas,
svg {
    max-width: 100%;
}

.nm-fa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    min-width: 1em;
    height: 1em;
    line-height: 1;
    color: currentColor;
    font-size: 1em;
    text-align: center;
}

.nav-link .nm-fa-icon,
.dropdown-menu a .nm-fa-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.nav-link .dropdown-chevron {
    color: var(--text-muted);
    font-size: .78rem;
}

.service-icon.nm-fa-icon {
    width: auto !important;
    height: auto !important;
    font-size: 3rem;
}

.skill-list .nm-fa-icon {
    flex-shrink: 0;
}

.download-category .nm-fa-icon {
    width: auto;
    height: auto;
    color: var(--accent-music);
    font-size: 1.2rem;
}

.download-placeholder-card > .nm-fa-icon {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    color: var(--accent-art);
    font-size: 2.35rem;
}

.download-card-media > .nm-fa-icon {
    width: auto;
    height: auto;
    color: var(--accent-music);
    font-size: 4rem;
}

.download-action .nm-fa-icon {
    width: auto;
    height: auto;
    font-size: 1rem;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

body.light-mode {
    --bg-base: #e3edf7;
    --bg-surface: #edf3f8;
    --text-main: #1a2b3c;
    --text-muted: #506a85;

    --glass-bg: rgba(237, 243, 248, 0.8);
    --glass-border: rgba(26, 43, 60, 0.08);

    --header-bg-transparent: rgba(227, 237, 247, 0.7);
    --header-bg-solid: rgba(227, 237, 247, 0.95);
    --header-border-transparent: rgba(26, 43, 60, 0.05);
    --header-border-solid: rgba(26, 43, 60, 0.1);

    --card-hover-bg: rgba(255, 255, 255, 0.7);
    --mouse-glow: rgba(0, 0, 0, 0.04);
    --footer-bg: #d5e3f0;
    --dex-bg-grad: #c8d9e8;
    --dex-player-mock-bg: #f4f8fb;

    /* Improved contrast for accents in light mode */
    --accent-primary: #d90429;
    --accent-secondary: #b91c3c;
    --accent-art: #6b00c2;
}

body.light-mode .service-card p {
    color: #555555;
}

body.light-mode .skill-list li {
    color: #222222;
}

body.light-mode #software ul {
    color: #444444 !important;
}

body.light-mode #software .btn-glow {
    border-color: rgba(0, 143, 153, 0.4) !important;
    background: rgba(0, 143, 153, 0.05) !important;
}

body.light-mode .showreel-title h3 {
    color: #ffffff;
}

body.light-mode .showreel-title p {
    color: #cccccc;
}

body.light-mode .bg-glow {
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 0, 127, 0.12), transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.12), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(139, 0, 255, 0.12), transparent 40%);
}

body.light-mode .btn-glow {
    color: #000;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .btn-glow::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

body.light-mode .btn-glow:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.4);
}

/* Light Mode Icons & Nav Visibility Fixes */
body.light-mode .hamburger-btn,
body.light-mode .theme-toggle,
body.light-mode .logo {
    color: #1e293b !important;
}

body.light-mode .hamburger-btn svg,
body.light-mode .theme-toggle svg,
body.light-mode .hamburger-btn .nm-fa-icon,
body.light-mode .theme-toggle .nm-fa-icon {
    stroke: #1e293b !important;
    color: #1e293b !important;
}

body.light-mode .nav-link {
    color: #1e293b !important;
}

body.light-mode .nav-link svg {
    stroke: var(--accent-primary) !important;
}

body.light-mode .nav-link .nm-fa-icon {
    color: var(--accent-primary) !important;
}

body.light-mode .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(26, 43, 60, 0.12) !important;
}

body.light-mode .dropdown-menu a {
    color: #1e293b !important;
}

body.light-mode .dropdown-menu a svg {
    stroke: var(--accent-primary) !important;
}

body.light-mode .dropdown-menu a .nm-fa-icon {
    color: var(--accent-primary) !important;
}

body.light-mode .service-icon {
    color: var(--accent-primary) !important;
}

body.light-mode .play-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #000;
}

body.light-mode .play-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .showreel-bg iframe {
    filter: grayscale(20%) brightness(0.9);
}

body.light-mode .play-btn i {
    stroke: #000 !important;
    fill: #000 !important;
}

body.light-mode .btn-glow i[data-feather="play"] {
    fill: #000 !important;
    stroke: #000 !important;
}

body.light-mode .spotify-container {
    background: #ffffff !important;
    border-color: rgba(26, 43, 60, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-secondary);
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.modal-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-content ul {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding-left: 1.2rem;
}

.article-content {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-lang-switch {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.article-lang-switch button {
    appearance: none;
    min-width: 2.55rem;
    padding: 0.45rem 0.7rem;
    color: var(--text-muted);
    border: 0;
    border-left: 1px solid var(--glass-border);
    background: transparent;
    font: 800 0.72rem/1 'Outfit', sans-serif;
    cursor: pointer;
}

.article-lang-switch button:first-child {
    border-left: 0;
}

.article-lang-switch button:hover,
.article-lang-switch button.active {
    color: var(--text-main);
    background: rgba(255, 36, 79, 0.18);
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-content h4 {
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.article-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body.theme-transition-active {
    position: relative;
    overflow: hidden;
}

body.theme-transition-active > *:not(.theme-transition-layer) {
    position: relative;
    z-index: 1;
}

body.theme-transition-active::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 22%, rgba(0, 240, 255, 0.18), transparent 26%),
        radial-gradient(circle at 82% 78%, rgba(255, 0, 127, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.09), rgba(255,255,255,0.02)),
        color-mix(in srgb, var(--bg-surface) 32%, transparent);
    animation: global-glass-frost 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.theme-transition-active::after {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 22%, transparent 65%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-18%) scale(0.88) rotate(-10deg);
    animation: global-light-sweep 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.theme-transition-layer {
    position: fixed;
    left: var(--theme-orb-x, 50vw);
    top: var(--theme-orb-y, 50vh);
    width: var(--theme-orb-size, 100vmax);
    height: var(--theme-orb-size, 100vmax);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(var(--theme-orb-scale, 1));
    background:
        radial-gradient(circle at center,
            rgba(6, 8, 12, 0.96) 0%,
            rgba(6, 8, 12, 0.98) 30%,
            rgba(8, 10, 16, 0.99) 58%,
            rgba(8, 10, 16, 1) 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
    animation: theme-orb-expand 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html[data-theme-transition-target="light"] .theme-transition-layer {
    background:
        radial-gradient(circle at center,
            rgba(255,255,255,1) 0%,
            rgba(247,249,253,1) 38%,
            rgba(238,243,250,1) 68%,
            rgba(238,243,250,1) 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}

html[data-theme-transition-target="dark"] .theme-transition-layer {
    background:
        radial-gradient(circle at center,
            rgba(6,8,12,1) 0%,
            rgba(6,8,12,0.995) 34%,
            rgba(8,10,16,0.985) 64%,
            rgba(8,10,16,0.96) 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

html[data-magicui-theme-vt="active"]::view-transition-group(root) {
    animation-duration: var(--magicui-theme-toggle-vt-duration, 600ms);
}

/* Dark -> Light: Expand Ripple Outwards */
html[data-magicui-theme-vt="active"][data-theme-transition-target="light"]::view-transition-old(root),
html[data-magicui-theme-vt="active"]:not([data-theme-transition-target="dark"])::view-transition-old(root) {
    z-index: 1;
}

html[data-magicui-theme-vt="active"][data-theme-transition-target="light"]::view-transition-new(root),
html[data-magicui-theme-vt="active"]:not([data-theme-transition-target="dark"])::view-transition-new(root) {
    z-index: 9999;
    animation: magicui-theme-clip-expand var(--magicui-theme-toggle-vt-duration, 600ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Light -> Dark: Contract Ripple Inwards to Button */
html[data-magicui-theme-vt="active"][data-theme-transition-target="dark"]::view-transition-new(root) {
    z-index: 1;
}

html[data-magicui-theme-vt="active"][data-theme-transition-target="dark"]::view-transition-old(root) {
    z-index: 9999;
    animation: magicui-theme-clip-contract var(--magicui-theme-toggle-vt-duration, 600ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes magicui-theme-clip-expand {
    0% {
        clip-path: circle(0px at var(--theme-orb-x, 50vw) var(--theme-orb-y, 50vh));
    }
    100% {
        clip-path: circle(var(--theme-orb-radius, 160vmax) at var(--theme-orb-x, 50vw) var(--theme-orb-y, 50vh));
    }
}

@keyframes magicui-theme-clip-contract {
    0% {
        clip-path: circle(var(--theme-orb-radius, 160vmax) at var(--theme-orb-x, 50vw) var(--theme-orb-y, 50vh));
    }
    100% {
        clip-path: circle(0px at var(--theme-orb-x, 50vw) var(--theme-orb-y, 50vh));
    }
}

@keyframes global-glass-frost {
    0% {
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@keyframes global-light-sweep {
    0% {
        opacity: 0;
        transform: translateX(-20%) scale(0.9) rotate(-10deg);
        filter: blur(10px);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(20%) scale(1.08) rotate(8deg);
        filter: blur(18px);
    }
}

@keyframes theme-orb-expand {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(var(--theme-orb-scale, 1));
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(calc(var(--theme-orb-scale, 1) * 0.02));
    }
}

/* Ambient glowing background */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 0, 127, 0.06), transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.06), transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(139, 0, 255, 0.06), transparent 40%);
    filter: blur(60px);
    animation: breathe 10s infinite alternate;
}

@keyframes breathe {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Typography */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    text-transform: capitalize;
}

.display-text {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text-1 {
    background: linear-gradient(to right, var(--accent-secondary), var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-2 {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-gradient {
    display: inline-block;
    background-image: linear-gradient(105deg,#d90429 0%,#ff1744 20%,#bd1234 37%,#ff3157 44%,#ff9aad 47%,#fff 49.3%,#fff 50.7%,#ff9aad 53%,#ff3157 56%,#bd1234 63%,#ff1744 80%,#d90429 100%);
    background-size: 320% 100%;
    animation: heroRedSpectrum 4.2s linear infinite,heroRedGlow 4.2s ease-in-out infinite;
    filter: drop-shadow(0 0 0 rgba(255,23,68,0));
    will-change: background-position,filter;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

/* All highlighted title words share one synchronized red spectrum. */

@keyframes heroRedSpectrum {
    from {
        background-position: 150% 50%;
    }

    to {
        background-position: -150% 50%;
    }
}

@keyframes heroRedGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(255, 23, 68, 0));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 23, 68, 0.34));
    }
}

@media (prefers-reduced-motion: reduce) {
    .animated-gradient {
        animation: none;
        background-position: 50% 50%;
        filter: none;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.8rem;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: var(--header-bg-transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border-transparent);
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--header-bg-solid);
    border-bottom: 1px solid var(--header-border-solid);
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: 'Syncopate', sans-serif;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 2px;
    flex-shrink: 0;
}

/* Navigation & Dropdowns */
.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    list-style: none;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.3s ease, border-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link svg {
    width: 13px;
    height: 13px;
}

.nav-link > svg,
.nav-link > i {
    flex-shrink: 0;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    border-bottom-color: var(--accent-primary);
}

.dropdown-chevron {
    transition: transform 0.3s ease;
    width: 12px !important;
    height: 12px !important;
}

@media (min-width: 993px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: var(--bg-surface);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 0.8rem 0;
        min-width: 220px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 120;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .nav-item.dropdown:hover .dropdown-chevron {
        transform: rotate(180deg);
    }

    .nav-item.dropdown:hover .dropdown-menu,
    .nav-item.dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropdown-menu a svg {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1.8rem;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.5rem;
    outline: none;
    padding: 5px;
    z-index: 150;
}

.hamburger-btn svg,
.hamburger-btn .nm-fa-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger-btn.active svg,
.hamburger-btn.active .nm-fa-icon {
    transform: rotate(90deg);
    color: var(--accent-secondary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
    outline: none;
    margin-left: 0.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 42px;
    height: 42px;
    border-radius: 999px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-primary);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 35%, transparent 60%),
        linear-gradient(145deg, rgba(12, 12, 18, 0.95), rgba(46, 46, 58, 0.95));
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.12),
        inset 0 -4px 10px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.08);
    transform: scale(1);
    transition: transform 0.45s ease, inset 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
    z-index: 0;
}

.theme-toggle svg,
.theme-toggle i {
    position: relative;
    z-index: 1;
}

.theme-toggle .nm-fa-icon {
    width: auto;
    height: auto;
    font-size: 20px;
}

body.light-mode .theme-toggle::before {
    inset: 8px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(255,255,255,0.18) 35%, transparent 62%),
        linear-gradient(145deg, rgba(255,255,255,0.98), rgba(220,235,248,0.98));
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.75),
        inset 0 -5px 12px rgba(90,120,150,0.16),
        0 0 0 1px rgba(26, 43, 60, 0.08);
    transform: scale(0.84);
}

body.theme-transition-active .theme-toggle::before {
    animation: toggle-orb-pulse 1.05s ease-in-out forwards;
}

@keyframes toggle-orb-pulse {
    0% { transform: scale(1); }
    38% { transform: scale(1.28); }
    62% { transform: scale(0.76); }
    100% { transform: scale(1); }
}

/* Page Banner / Header Space */
.page-header-padding {
    padding-top: 9rem;
    padding-bottom: 4rem;
}

.about-page-content{padding-top:2rem}.about-page-content>h1{margin:1.2rem 0 2.5rem;font-size:clamp(2.8rem,7vw,6rem);line-height:1}.about-profile-layout{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(320px,1.18fr);align-items:start;gap:clamp(2rem,6vw,5rem)}.about-profile-visual{position:sticky;top:7.5rem;margin:0;overflow:hidden;border:1px solid var(--glass-border);border-radius:28px;background:var(--bg-surface);box-shadow:0 28px 75px rgba(0,0,0,.25)}.about-profile-visual::after{content:"";position:absolute;inset:0 0 58px;pointer-events:none;background:linear-gradient(180deg,transparent 58%,rgba(2,3,7,.5))}.about-profile-visual img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}.about-profile-visual figcaption{display:flex;position:relative;z-index:1;min-height:58px;padding:12px 16px;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;background:color-mix(in srgb,var(--bg-surface) 90%,transparent)}.about-profile-visual figcaption span{padding:6px 9px;border:1px solid var(--glass-border);border-radius:999px;color:var(--text-muted);font:700 .58rem/1 'Syncopate',sans-serif;letter-spacing:.06em}.about-profile-copy>p{margin:0;color:var(--text-muted);font-size:clamp(1.02rem,1.6vw,1.15rem);line-height:1.9}.about-profile-copy>p+p{margin-top:1.5rem}.about-focus-card{margin-top:2rem;padding:2rem}.about-focus-card h2{margin:0 0 1rem}.about-focus-card p{color:var(--text-muted);line-height:1.8}.about-focus-card .btn-glow{margin-top:1.5rem}@media(max-width:760px){.about-page-content{padding-top:1rem}.about-profile-layout{grid-template-columns:1fr}.about-profile-visual{position:relative;top:auto;width:min(460px,100%);justify-self:center}.about-profile-copy{display:grid}.about-focus-card{padding:1.4rem}}

/* Modern animated 3:4 About portrait card. */
.about-profile-layout{grid-template-columns:minmax(320px,.92fr) minmax(320px,1.08fr)}
.about-profile-visual{isolation:isolate;border-color:transparent;background:linear-gradient(var(--bg-surface),var(--bg-surface)) padding-box,conic-gradient(from 45deg,rgba(255,23,68,.2),rgba(255,84,112,.85),rgba(124,58,237,.34),rgba(255,23,68,.2)) border-box;box-shadow:0 28px 75px rgba(0,0,0,.25),0 0 42px rgba(255,23,68,.08);animation:about-card-float 6s ease-in-out infinite;transition:box-shadow .4s ease}
.about-profile-visual::before{content:"";position:absolute;z-index:3;inset:-35%;pointer-events:none;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.16) 49%,rgba(255,255,255,.04) 53%,transparent 60%);transform:translateX(-70%) rotate(8deg);animation:about-card-shine 6s ease-in-out infinite}
.about-profile-visual::after{z-index:1;background:linear-gradient(180deg,transparent 52%,rgba(2,3,7,.58))}
.about-profile-visual:hover{box-shadow:0 34px 90px rgba(0,0,0,.32),0 0 54px rgba(255,23,68,.14)}
.about-profile-visual img{aspect-ratio:3/4;object-position:center 32%;transition:transform .8s cubic-bezier(.16,1,.3,1),filter .5s ease}
.about-profile-visual:hover img{transform:scale(1.045);filter:saturate(1.06) contrast(1.03)}
.about-profile-visual figcaption{z-index:4;background:color-mix(in srgb,var(--bg-surface) 88%,transparent);-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%)}
.about-profile-visual figcaption span{padding:7px 10px;border-color:color-mix(in srgb,var(--accent-primary) 20%,var(--glass-border));background:color-mix(in srgb,var(--accent-primary) 5%,transparent);transition:transform .25s ease,border-color .25s ease,color .25s ease}
.about-profile-visual figcaption span:hover{border-color:var(--accent-primary);color:var(--text-main);transform:translateY(-2px)}
@keyframes about-card-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes about-card-shine{0%,18%{transform:translateX(-72%) rotate(8deg);opacity:0}34%{opacity:1}52%,100%{transform:translateX(72%) rotate(8deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.about-profile-visual,.about-profile-visual::before{animation:none}.about-profile-visual img,.about-profile-visual figcaption span{transition:none}}
@media(max-width:760px){.about-profile-layout{grid-template-columns:1fr}.about-profile-visual{width:min(560px,100%)}}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    padding: clamp(7.5rem, 13vh, 10rem) 0 clamp(3rem, 8vh, 5.5rem);
    overflow: hidden;
}

.hero-content {
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-chat-action {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.roles {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.roles span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.roles .dot {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: clamp(2.3rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-subtitle {
    font-family: 'Syncopate', sans-serif;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

/* Expertise / Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    transition: transform 0.4s ease, background 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--mouse-glow), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 12px;
}

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

.service-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
}

.service-icon {
    margin-bottom: 2rem;
    display: inline-block;
}

.card-video .service-icon {
    color: var(--accent-video);
    filter: drop-shadow(0 0 10px rgba(255, 42, 95, 0.4));
}

.card-music .service-icon {
    color: var(--accent-music);
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
}

.card-art .service-icon {
    color: var(--accent-art);
    filter: drop-shadow(0 0 10px rgba(160, 50, 255, 0.4));
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: #aaaaaa;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #dddddd;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Showreel / Portfolio Area */
.showreel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.music-hero-header {
    display: grid;
    justify-items: center;
    text-align: center;
}

.music-hero-header p {
    width: min(760px, 100%);
    margin: 1rem auto 0;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: center;
}

.showreel-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.play-btn {
    position: relative;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s ease;
    z-index: 3;
}

.play-btn::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid currentColor;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.play-btn svg,
.play-btn .nm-fa-icon {
    display: none !important;
}

.showreel-container:hover .play-btn {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.showreel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.showreel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background 0.8s ease;
}

.showreel-container:hover .showreel-bg::after {
    background: rgba(0, 0, 0, 0.2);
}

.showreel-bg iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: grayscale(80%) brightness(0.7);
    transition: filter 0.8s ease, transform 6s ease;
    z-index: 0;
}

.showreel-container:hover .showreel-bg iframe {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.02);
}

.showreel-container.playing .play-btn,
.showreel-container.playing .showreel-title {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.showreel-container.playing .showreel-bg::after {
    opacity: 0;
    pointer-events: none;
}

.showreel-container.playing .showreel-bg iframe {
    pointer-events: auto;
    filter: grayscale(0%) brightness(1);
    transform: scale(1);
    z-index: 10;
}

.showreel-title {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
}

.showreel-title h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.showreel-title p {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #ccc;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-item {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 95, 0.4);
    box-shadow: 0 10px 30px rgba(255, 42, 95, 0.1);
}

/* DeX Mockup Animations */
@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes progressAnim {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: var(--footer-bg);
    transition: background 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-socials a:hover {
    background: var(--text-main);
    color: #000000;
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Mobile & Tablet Responsiveness */

/* Mobile nav overlay backdrop - no blur */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 992px) {
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.active {
        pointer-events: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100dvh;
        background: #0d0d12;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 1.5rem 3rem 1.5rem;
        gap: 0.5rem;
        margin-left: 0;
        transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 140;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
    }

    body.light-mode .nav-links {
        background: #f0f4f8;
        border-left-color: rgba(0, 0, 0, 0.1);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-item {
        width: 100%;
    }

    /* Theme toggle in mobile */
    .nav-item:has(#theme-toggle) {
        width: auto;
        margin-top: 1.2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        font-size: 0.82rem;
        letter-spacing: 1.2px;
        padding: 12px 10px;
        color: #ffffff;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: color 0.2s ease;
    }

    body.light-mode .nav-link {
        color: #1e293b;
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .nav-link svg {
        width: 16px;
        height: 16px;
        color: var(--accent-primary);
    }

    .nav-link > svg,
    .nav-link > i {
        flex-shrink: 0;
        display: inline-block;
        min-width: 16px;
        min-height: 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-primary);
        background: transparent !important;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    body.light-mode .nav-link:hover,
    body.light-mode .nav-link.active {
        color: var(--accent-primary);
        background: transparent !important;
    }

    /* Push chevron to the right */
    .nav-link .dropdown-chevron {
        margin-left: auto;
        width: 14px !important;
        height: 14px !important;
        color: var(--text-muted);
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        margin: 0.2rem 0 0.4rem 0.5rem !important;
        border-radius: 0 !important;
        border-left: 2px solid rgba(0, 240, 255, 0.35) !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        padding: 0 !important;
        width: calc(100% - 0.5rem) !important;
        min-width: 0 !important;
    }

    body.light-mode .dropdown-menu {
        background: transparent !important;
        border-left-color: rgba(0, 143, 153, 0.4) !important;
    }

    .nav-item.dropdown.mobile-open .dropdown-menu {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0.4rem 0 !important;
    }

    .nav-item.dropdown.mobile-open .dropdown-chevron {
        transform: rotate(180deg);
        color: var(--accent-primary);
    }

    .dropdown-menu a {
        font-size: 0.78rem;
        padding: 0.6rem 0.8rem;
        letter-spacing: 0.8px;
        color: #e2e8f0;
        background: transparent !important;
        border-bottom: none;
    }

    body.light-mode .dropdown-menu a {
        color: #334155;
    }

    .dropdown-menu a svg {
        width: 14px;
        height: 14px;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        color: var(--accent-primary);
        background: transparent !important;
        padding-left: 1.1rem;
    }

    body.light-mode .dropdown-menu a:hover,
    body.light-mode .dropdown-menu a.active {
        color: var(--accent-primary);
        background: transparent !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    #projects .section-header,
    #projects .section-header p {
        text-align: center !important;
        margin: 0 auto 2rem auto !important;
    }

    .btn-glow {
        padding: 1rem 1.5rem !important;
        font-size: 0.8rem !important;
        width: 100%;
        justify-content: center;
    }

    .subscribe-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.7rem !important;
        width: auto !important;
    }

    .roles {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .roles .dot {
        display: none;
    }

    .roles span::after {
        content: '|';
        margin-left: 8px;
        color: var(--text-muted);
        opacity: 0.5;
    }

    .roles span:last-child::after {
        display: none;
    }

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

    .showreel-wrapper {
        height: auto;
    }

    .showreel-title h3 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    p {
        font-size: 0.95rem !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    section {
        padding: 3.5rem 0;
    }

    #software > div {
        padding: 2rem !important;
        gap: 2rem !important;
    }

    #software > div > div[style*="min-width: 300px"] {
        min-width: 0 !important;
        width: 100%;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 1.5rem;
        border-radius: 16px;
    }

    .footer-title a,
    .footer-bottom,
    .legal-content a {
        overflow-wrap: anywhere;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .theme-toggle::before {
        inset: 5px;
    }

    body.light-mode .theme-toggle::before {
        inset: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: 1rem;
    }

    .hero {
        min-height: 100svh;
        min-height: 100dvh;
        padding: 6.5rem 0 2.25rem;
        overflow: visible;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 14vw, 3.7rem);
    }

    .hero .roles {
        gap: .65rem 1rem;
        margin-bottom: 1.25rem;
        font-size: .58rem;
        letter-spacing: 2px;
    }

    .hero p {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .hero-actions {
        width: 100%;
        gap: .8rem;
    }

    .hero-actions .btn-glow {
        width: 100%;
        max-width: 340px;
        justify-content: center;
        padding: 1rem 1.15rem;
    }

    .hero-chat-action {
        margin-top: 1rem;
    }

    .modal-content {
        padding: 1.25rem 1rem;
    }

    .modal-close {
        top: .75rem;
        right: .75rem;
    }

    #software > div {
        padding: 1.25rem !important;
    }
}

.service-card-action { margin-top: 2rem; }
.service-card-action .btn-glow { padding: 0.8rem 1.5rem; font-size: 0.75rem; }

.downloads-page {
    padding-top: 0;
    padding-bottom: 4rem;
}

.download-page-header {
    margin-bottom: 3rem;
    text-align: left;
}

.download-page-header .section-subtitle {
    display: inline-block;
    margin-bottom: 1rem;
}

.download-page-header p,
.download-support p {
    color: var(--text-muted);
    line-height: 1.75;
}

.download-page-header p {
    max-width: 680px;
    margin-top: 1rem;
}

.download-card-top span,
.download-section-heading span,
.download-placeholder-card span {
    color: var(--accent-music);
    font: 700 0.68rem/1 'Syncopate', sans-serif;
    letter-spacing: 1.8px;
}

.download-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 3rem;
}

.download-category {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 62px;
    padding: 1rem 1.2rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.download-tab-panel {
    display: none;
    animation: downloadTabIn 0.32s ease both;
}

.download-tab-panel.active {
    display: block;
}

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

.download-category:hover,
.download-category.active {
    color: var(--text-main);
    background: var(--bg-surface);
    border-color: var(--accent-music);
    box-shadow: 0 0 24px rgba(0, 210, 255, 0.12);
    transform: translateY(-2px);
}

.download-category svg {
    width: 20px;
    height: 20px;
    color: var(--accent-music);
}

.download-section-heading {
    scroll-margin-top: 120px;
    margin: 0 0 1.8rem;
}

.download-section-heading h3 {
    margin-top: 0.65rem;
    font: 700 2rem/1.2 'Outfit', sans-serif;
}

.download-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-placeholder-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.download-placeholder-card > svg {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: var(--accent-art);
}

.download-placeholder-card h4 {
    margin: 0.65rem 0 0.35rem;
    font: 600 1.25rem/1.3 'Outfit', sans-serif;
}

.download-placeholder-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.download-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.download-catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.download-card-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(0,210,255,.16), transparent 62%),
        var(--bg-surface);
}
.download-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.download-card-media > svg { width: 58px; height: 58px; color: var(--accent-music); }
.download-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.download-card-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 1rem; }
.download-card-top b { color: var(--accent-art); font-size: .68rem; letter-spacing: 1px; white-space: nowrap; }
.download-card-body h4 { margin: .8rem 0 .65rem; font: 700 1.45rem/1.2 'Outfit', sans-serif; }
.download-card-body > p { min-height: 4.8em; color: var(--text-muted); line-height: 1.6; }
.download-read-more { align-self: flex-start; margin-top: .65rem; padding: 0; color: var(--accent-music); border: 0; background: transparent; font: 700 .72rem/1.2 'Syncopate', sans-serif; letter-spacing: 1px; cursor: pointer; }
.download-read-more:hover { text-decoration: underline; }
.download-card-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1rem; }
.download-card-meta span { padding: .4rem .7rem; color: var(--text-muted); border: 1px solid var(--glass-border); border-radius: 999px; font-size: .75rem; }
.download-card-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.download-action { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1rem; color: var(--text-main); border: 1px solid var(--accent-music); border-radius: 8px; background: transparent; text-decoration: none; font-weight: 700; }
.download-action:hover { background: rgba(0,210,255,.1); transform: translateY(-1px); }
.download-action svg { width: 17px; height: 17px; }
.download-empty { grid-column: 1 / -1; padding: 3rem; color: var(--text-muted); text-align: center; border: 1px dashed var(--glass-border); border-radius: 8px; }

.download-support {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 8px;
}

.download-support h3 {
    margin: 0.8rem 0 0;
    font: 700 1.55rem/1.25 'Outfit', sans-serif;
}

.download-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.download-support-grid p {
    margin: 0;
    padding: 0.95rem 0 0.95rem 1rem;
    border-left: 2px solid rgba(0, 210, 255, 0.45);
    background: transparent;
}

body.download-modal-open { overflow: hidden; }
.download-description-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1.25rem; background: rgba(0, 0, 0, .78); backdrop-filter: blur(10px); }
.download-description-dialog { position: relative; width: min(680px, 100%); max-height: min(80vh, 720px); overflow-y: auto; padding: 2rem; color: var(--text-main); border: 1px solid var(--glass-border); border-radius: 18px; background: var(--bg-surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.download-description-dialog h3 { margin: 0 2.5rem 1rem 0; font: 700 1.5rem/1.3 'Outfit', sans-serif; }
.download-description-dialog p { margin: 0; color: var(--text-muted); line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.download-description-close { position: absolute; top: .8rem; right: .9rem; width: 2.5rem; height: 2.5rem; color: var(--text-main); border: 1px solid var(--glass-border); border-radius: 50%; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.download-description-close:hover { color: var(--accent-music); border-color: var(--accent-music); }

@media (max-width: 640px) {
    .download-support,
    .download-support-grid {
        grid-template-columns: 1fr;
    }

    .download-categories {
        grid-template-columns: 1fr;
    }

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