﻿
:root {

    color-scheme: dark;

    --bg-deep: #121212;
    --bg-solid: #000000;
    --color-white-rgb: 255, 255, 255;

    --bg-ambient: radial-gradient(circle at 50% 0%, #1a202c 0%, #101319 60%);

    --accent: #00f0ff;
    --accent-rgb: 0, 240, 255;
    --accent-dim: rgba(var(--accent-rgb), 0.1);
    --accent-glow: 0 0 15px rgba(var(--accent-rgb), 0.2);

    --glass-bg: rgba(10, 12, 16, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-border: 1px solid rgba(var(--color-white-rgb), 0.08);

    --text-main: #eef1f5;
    --text-muted: #8b9bb4;
    --text-bright: #ffffff;
    --card-bg: linear-gradient(160deg, rgb(32, 37, 45) 0%, rgb(15, 17, 22) 100%);
    --sidebar-bg: rgba(0, 0, 0, 0.3);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-smooth: cubic-bezier(0.2, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
    :root {

        color-scheme: light;

        --bg-deep: #edf3fa;
        --bg-solid: #f8fbff;
        --color-white-rgb: 30, 41, 59;

        --bg-ambient: radial-gradient(circle at 50% -10%, #ffffff 0%, #f1f6fd 48%, #e6eef8 100%);

        --accent: #2563eb;
        --accent-rgb: 37, 99, 235;
        --accent-dim: rgba(37, 99, 235, 0.1);
        --accent-glow: 0 10px 24px rgba(37, 99, 235, 0.18);

        --glass-bg: rgba(255, 255, 255, 0.76);
        --shadow-color: rgba(15, 23, 42, 0.12);
        --glass-border: 1px solid rgba(30, 41, 59, 0.11);

        --text-main: #1e293b;
        --text-muted: #5b6b80;
        --text-bright: #0f172a;
        --card-bg: linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
        --sidebar-bg: rgba(255, 255, 255, 0.58);
    }

    #tech-canvas {
        opacity: 0.14;
    }

    body::before {
        opacity: 0.018;
    }

    .nav-item:hover,
    .nav-item.active {
        text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
    }

    .project-card:hover {
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
        border-color: rgba(30, 41, 59, 0.18);
    }

    .gallery-item {
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.11);
    }

    .gallery-item:hover {
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(var(--accent-rgb), 0.28);
    }

    .indicator.active {
        box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.32), 0 6px 18px rgba(var(--accent-rgb), 0.25);
    }

    .slide-info {
        text-shadow: 0 4px 18px rgba(15, 23, 42, 0.24);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    background-image: var(--bg-ambient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease-smooth);
}

ul { list-style: none; }

#tech-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");

    background-size: 300px 300px;
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
}

header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;

    background: var(--glass-bg, var(--glass-bg));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border, 1px solid rgba(var(--color-white-rgb), 0.05));

    z-index: 1000;
    box-shadow: 0 10px 30px var(--shadow-color);

    transform: translateY(-100%);
    animation: slideDownNav 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
    transition: transform 0.3s ease, background 0.3s;
}

header.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 2px;
    white-space: nowrap;
    text-decoration: none;
}

.logo-suffix {
    color: var(--accent, #00f0ff);
    font-weight: 400;
    font-size: 14px;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-theme-item {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(var(--color-white-rgb), 0.15);
    background: rgba(var(--color-white-rgb), 0.06);
    color: var(--text-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth), background-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--accent-rgb), 0.28) 80deg, transparent 170deg 360deg);
    opacity: 0;
    transform: rotate(-35deg) scale(0.7);
    pointer-events: none;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb), 0.42);
    background: rgba(var(--accent-rgb), 0.14);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2), 0 8px 18px rgba(var(--accent-rgb), 0.2);
}

.theme-toggle:hover::before {
    opacity: 0.5;
    transform: rotate(0deg) scale(1);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-smooth);
}

.theme-toggle:active {
    transform: scale(0.91);
}

.theme-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.28), 0 0 0 5px rgba(var(--accent-rgb), 0.14);
}

.theme-toggle__icon {
    position: absolute;
    width: 18px;
    height: 18px;
    display: inline-flex;
    opacity: 0;
    transform: scale(0.6) rotate(-20deg);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle__icon svg {
    width: 100%;
    height: 100%;
}

.theme-toggle.is-dark .theme-toggle__sun,
.theme-toggle.is-light .theme-toggle__moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle__pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
}

.theme-toggle.is-animating {
    animation: themeToggleBounce 0.76s cubic-bezier(0.16, 0.88, 0.24, 1.2);
}

.theme-toggle.is-animating.is-to-dark .theme-toggle__sun {
    animation: themeToggleSpinToDark 0.76s cubic-bezier(0.2, 0.86, 0.28, 1);
}

.theme-toggle.is-animating.is-to-light .theme-toggle__moon {
    animation: themeToggleSpinToLight 0.76s cubic-bezier(0.2, 0.86, 0.28, 1);
}

.theme-toggle.is-to-dark .theme-toggle__moon,
.theme-toggle.is-to-light .theme-toggle__sun {
    opacity: 0 !important;
    transform: scale(0.45) rotate(-32deg) !important;
}

.theme-toggle.is-animating .theme-toggle__pulse {
    animation: themeTogglePulse 0.76s ease-out;
}

.theme-toggle.is-animating::before {
    animation: themeToggleSheen 0.76s cubic-bezier(0.18, 0.82, 0.22, 1);
}

body.theme-switching,
body.theme-switching * {
    transition: background-color 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes themeToggleBounce {
    0% { transform: scale(1) rotate(0deg); }
    24% { transform: scale(0.82) rotate(-8deg); }
    52% { transform: scale(1.14) rotate(7deg); }
    76% { transform: scale(0.98) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes themeToggleSpinToDark {
    0% { transform: scale(0.7) rotate(-125deg); opacity: 0.35; }
    52% { transform: scale(1.1) rotate(20deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes themeToggleSpinToLight {
    0% { transform: scale(0.72) rotate(120deg); opacity: 0.35; }
    52% { transform: scale(1.1) rotate(-18deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes themeTogglePulse {
    0% { border-color: rgba(var(--accent-rgb), 0.6); transform: scale(1); opacity: 0.9; }
    100% { border-color: rgba(var(--accent-rgb), 0); transform: scale(1.75); opacity: 0; }
}

@keyframes themeToggleSheen {
    0% { opacity: 0.12; transform: rotate(-42deg) scale(0.72); }
    45% { opacity: 0.65; }
    100% { opacity: 0; transform: rotate(18deg) scale(1.2); }
}

.nav-item {
    font-family: var(--font-heading, sans-serif);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted, #888);
    padding: 8px 2px;
    margin: 0 12px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent, #00f0ff);

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow: 0 0 8px var(--accent, #00f0ff);
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-bright);
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
    transform: none !important;
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.nav-item.highlight,
.nav-item.btn-highlight {
    color: var(--accent, #00f0ff);
    font-weight: 700;
}

.nav-item.highlight:hover::after,
.nav-item.btn-highlight:hover::after {
    transform: scaleX(1);
    display: block;
}

@keyframes slideDownNav {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {

    .navbar { padding: 0 20px; }
    .nav-links { gap: 5px; }
    .nav-item { padding: 5px 10px; font-size: 12px; }
    .logo-suffix { display: none; }
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    background: linear-gradient(to bottom, var(--text-bright), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.section-header p {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.tag-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.tag {
    font-family: var(--font-body);
    font-size: 11px;
    padding: 4px 12px;
    background: rgba(var(--accent-rgb), 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 4px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.highlight-tag {
    background: var(--accent);
    color: var(--bg-solid);
    font-weight: bold;
}

.btn-core {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.btn-core::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
    transition: 0.5s;
}

.btn-core:hover {
    box-shadow: var(--accent-glow);
    background: rgba(var(--accent-rgb), 0.05);
}
.btn-core:hover::before { left: 100%; }

.project-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px;
    margin-bottom: 80px;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-white-rgb),0.2), transparent);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: rgba(var(--color-white-rgb), 0.2);
}

.project-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid rgba(var(--color-white-rgb),0.03);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
}

.detail-item strong {
    display: block;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-wrapper {
    position: relative;

    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gallery-container {
    display: flex;
    gap: 15px;
    padding: 30px;
    background: var(--sidebar-bg);

    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-deep);
}

.gallery-container::-webkit-scrollbar { height: 4px; }
.gallery-container::-webkit-scrollbar-track { background: var(--bg-deep); }
.gallery-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.gallery-item {

    width: 650px;
    min-width: 650px;
    max-width: 650px;
    aspect-ratio: 16/9;

    background-color: var(--bg-deep);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;

    transition: 0.4s;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid transparent;
}

.gallery-item:hover {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

.gallery-item:hover img {
    transform: scale(1.03);
    opacity: 1;
}

#hero-showcase {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;

    position: relative;

    width: 100vw;
    height: 90vh;

    margin: 0;
    padding: 0;
    left: 0;
    top: 70px;

    overflow: hidden;
    z-index: 1;
    background: var(--bg-solid);

    border: none;
    border-radius: 0;
    box-shadow: none;

    --hero-overlay-height: 50%;
    --hero-overlay-gradient: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 100%);
}

#hero-showcase.is-paused .carousel-slide.active {
    animation-play-state: paused;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {

    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-size: cover;
    background-position: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 70vh;

    opacity: 0;
    transform: scale(1.1);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--hero-overlay-height);
    background: var(--hero-overlay-gradient);
    z-index: 2;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    animation: smoothZoom 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-info {

    position: relative;

    bottom: auto;
    left: auto;
    top: auto;
    transform: none;

    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 16px 28px;

    z-index: 4;
    text-shadow: 0 6px 26px var(--shadow-color);
    pointer-events: none;
}

.slide-info h3,
.slide-info p {

    transform: translateY(60px);
}

.overlay-gradient {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-deep) 100%);
    z-index: 3;
    pointer-events: none;
    display: none;
}

.carousel-slide.active .slide-info h3,
.carousel-slide.active .slide-info p {
    opacity: 1;
    transform: translateY(0);
}

.slide-info h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease 0.5s;
}

.slide-info p {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease 0.7s;
}

.carousel-slide.active .slide-info h3,
.carousel-slide.active .slide-info p {
    opacity: 1;
    transform: translateY(0);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; height: 60px;
    background: var(--sidebar-bg);
    border: 1px solid rgba(var(--color-white-rgb), 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;

    display: flex; align-items: center; justify-content: center;
}

.nav-arrow svg { width: 32px; height: 32px; fill: var(--text-bright); transition: fill 0.3s; }

.nav-arrow:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: var(--accent);
}

#hero-showcase.arrows-active .nav-arrow { opacity: 1; visibility: visible; }
.prev-arrow { left: 40px; }
.next-arrow { right: 40px; }
.nav-arrow.boundary-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }

.carousel-indicators {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 12px;
    z-index: 10;
}

.indicator {
    width: 40px; height: 3px;
    background: rgba(var(--color-white-rgb),0.2);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 2px;
}

.indicator.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    width: 60px;
}

.scroll-down-hint {
    position: absolute;
    bottom: 80px; right: 50px;
    z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.scroll-down-hint:hover { opacity: 1; }
.scroll-down-hint span {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    color: var(--text-muted);
}
.scroll-down-hint .arrow {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: dropLine 2s infinite;
}

#intro {

    margin-top: 150px;

    position: relative;
    z-index: 5;
}

.about-section {
    padding: 100px 10% 80px;
    background:
        radial-gradient(110% 90% at 20% 15%, rgba(var(--accent-rgb), 0.07) 0%, transparent 58%),
        radial-gradient(95% 80% at 85% 82%, rgba(var(--accent-rgb), 0.05) 0%, transparent 64%),
        linear-gradient(165deg, rgba(var(--color-white-rgb), 0.012) 0%, rgba(5, 8, 14, 0.96) 100%);
    border-top: 1px solid rgba(var(--color-white-rgb), 0.045);
    border-bottom: 1px solid rgba(var(--color-white-rgb), 0.04);
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    isolation: isolate;
    flex-wrap: wrap;
    text-align: left;
}

.about-section::before,
.about-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-section::before {
    background:
        linear-gradient(120deg, rgba(var(--color-white-rgb), 0.03) 0%, transparent 26%),
        repeating-linear-gradient(0deg, rgba(var(--color-white-rgb), 0.012) 0 1px, transparent 1px 10px);
    opacity: 0.2;
    mix-blend-mode: normal;
}

.about-section::after {
    background: radial-gradient(70% 55% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
    opacity: 0.75;
}

.about-section > * {
    position: relative;
    z-index: 1;
}

.about-avatar {
    width: 200px; height: 200px;
    background-color: var(--bg-deep);
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
    transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.26s ease, filter 0.26s ease;
    transform: translateZ(0);
    will-change: transform;
    filter: contrast(1.1) grayscale(10%);
}

.about-avatar:hover {
    transform: scale(1.03);
    filter: contrast(1.2) grayscale(0%);
    box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.24);
}

.about-text { max-width: 650px; }

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-bright);
}

.about-text p {
    color: var(--text-muted);
    font-size: 15px;
}

.about-text .role-title {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-contact-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--color-white-rgb), 0.06);
}

.about-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.about-contact-link:hover {
    color: var(--accent);
}

.about-contact-link svg {
    opacity: 0.6;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.about-contact-link:hover svg {
    opacity: 1;
}

.featured-projects-section {
    max-width: none;
    width: 100%;
    padding: 100px 0 80px;
}

.featured-projects-section .section-header {
    margin: 0 auto 40px;
    max-width: 1200px;
    padding: 0 20px;
}

.featured-carousel-shell {
    position: relative;
    width: 100%;

    padding: 40px 0;
    margin: -40px 0;

}

.featured-switch-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-white-rgb), 0.13);
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(var(--color-white-rgb), 0.65);
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.22s ease, border-color 0.22s ease,
                color 0.22s ease, box-shadow 0.22s ease;
}

.featured-switch-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.featured-switch-btn:hover {
    background: rgba(var(--accent-rgb), 0.10);
    border-color: rgba(var(--accent-rgb), 0.45);
    color: var(--text-bright);
    box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.13);
}

.featured-switch-btn.prev { left: max(8px, calc(50% - 390px - 70px)); }
.featured-switch-btn.next { right: max(8px, calc(50% - 390px - 70px)); }

.featured-carousel {
    display: flex;

    align-items: flex-start;
    gap: 28px;
    overflow-x: auto;
    padding: 80px calc(50vw - 335px) 60px;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

.featured-project-card {
    width: min(670px, 88vw);
    min-width: min(670px, 88vw);
    height: fit-content;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid rgba(var(--color-white-rgb),0.08);
    box-shadow: 0 12px 28px var(--shadow-color);
    transform-origin: center 48%;

    transition: transform 0.28s var(--ease-smooth), opacity 0.28s var(--ease-smooth), filter 0.28s var(--ease-smooth), border-color 0.28s var(--ease-smooth), box-shadow 0.28s var(--ease-smooth);
    will-change: transform, opacity, filter;

    isolation: isolate;
    outline: 1px solid transparent;
    cursor: inherit;
    position: relative;
}

.featured-project-card::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(var(--color-white-rgb),0.06) 50%, transparent 70%);
    pointer-events: none;
    transition: none;
    z-index: 10;
}

.featured-project-card.is-centered-card::after {
    animation: card-shimmer 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes card-shimmer {
    from { left: -120%; }
    to   { left: 160%; }
}

.featured-carousel.is-moving .featured-project-card {
    transition: none;
}

.featured-project-card.is-centered-card {
    border-color: rgba(var(--accent-rgb), 0.55) !important;
    box-shadow: 0 28px 60px var(--shadow-color), 0 0 0 1px rgba(var(--accent-rgb),0.18), 0 0 32px rgba(var(--accent-rgb),0.14) !important;
}

.featured-project-card.is-hovered:not(.is-centered-card) {
    border-color: rgba(var(--color-white-rgb), 0.28) !important;
    box-shadow: 0 22px 50px var(--shadow-color), 0 0 18px rgba(var(--color-white-rgb),0.05) !important;
}
.featured-project-card.is-centered-card.is-hovered {
    box-shadow: 0 38px 76px var(--shadow-color), 0 0 0 1px rgba(var(--accent-rgb),0.34), 0 0 56px rgba(var(--accent-rgb),0.24) !important;
}

.featured-project-image {
    width: 100%;
    aspect-ratio: 16 / 9.4;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.36);

    transition: filter 0.35s ease;
    filter: brightness(0.85) saturate(0.9);
}

.featured-project-card.is-centered-card .featured-project-image {
    filter: brightness(1) saturate(1.05);
}

.featured-project-info {
    padding: 12px 16px 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    overflow: hidden;
}

.featured-project-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-bright);
    margin: 0;
    order: 1;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.28s ease;
}

.featured-project-card.is-centered-card .featured-project-info h3 {
    color: var(--text-bright);
    text-shadow: 0 0 16px rgba(var(--accent-rgb),0.18);
}

.featured-project-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: 0.4px;
}

.featured-project-details {
    order: 3;
    width: 100%;
    min-width: 0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;

    pointer-events: none;
    transition: max-height 0.32s var(--ease-smooth), opacity 0.28s ease, margin-top 0.28s ease;
}

.featured-carousel-shell.is-spread .featured-project-card.is-centered-card .featured-project-details {
    max-height: 80px;
    opacity: 1;
    margin-top: 4px;

    pointer-events: auto;
}

.featured-detail-item {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.featured-detail-item:not(:first-child) {
    display: none;
}

.featured-detail-item strong {
    color: var(--text-bright);
    font-weight: 600;
}

.featured-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 0;
    order: 2;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    justify-content: flex-start;
    scrollbar-width: none;
}

.featured-tags::-webkit-scrollbar {
    display: none;
}

.featured-tags .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-height: 22px;
    max-width: none;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    border-radius: 999px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.featured-card-btn {
    display: inline-flex;

    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 18px;
    font-size: 12px;
    letter-spacing: 1px;
    pointer-events: none;
    cursor: pointer;
    order: 4;
    opacity: 0;
    transition: max-height 0.32s var(--ease-smooth), opacity 0.28s ease, padding 0.28s ease, margin-top 0.28s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.featured-carousel-shell.is-spread .featured-project-card.is-centered-card .featured-card-btn {
    max-height: 48px;
    padding: 8px 18px;
    margin-top: 10px;
    margin-bottom: 14px;
    pointer-events: auto;
    opacity: 1;
}

.featured-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0 0;
}

.featured-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--color-white-rgb),0.22);
    transition: width 0.3s var(--ease-smooth), background 0.3s ease, border-radius 0.3s ease;
    cursor: pointer;
}

.featured-dot.is-active {
    width: 22px;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(var(--accent-rgb),0.5);
}

#level-art,
#modeling,
#concept,
#hand-painted,
#game-dev,
#tech-art {
    display: none !important;
}

section, footer {
    opacity: 1;
    transform: none;
    transition: none;

    padding: 120px 20px 80px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-white-rgb),0.1), transparent);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

footer {

    max-width: none !important;
    width: 100%;
    margin: 0;

    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid rgba(var(--color-white-rgb),0.05);
    background: var(--bg-deep);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-muted);

    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-link svg {
    opacity: 0.75;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.footer-link:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
    transform: translateY(-2px);
}

.footer-link:hover svg {
    opacity: 1;
}

.separator {
    color: var(--text-muted);
    font-size: 17px;
}

.copyright {
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes expandNav {
    0% { width: 60px; }
    10% { background: var(--glass-bg); }
    100% { width: 100%; border-radius: 0; }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes smoothZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes dropLine {
    0% { transform-origin: top; transform: scaleY(0); }
    50% { transform-origin: top; transform: scaleY(1); }
    51% { transform-origin: bottom; transform: scaleY(1); }
    100% { transform-origin: bottom; transform: scaleY(0); }
}

@media (min-width: 1200px) {
    .gallery-item { min-width: 800px; width: 800px; max-width: 800px; }
}

@media (max-width: 768px) {

    header {
        top: 0; width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(var(--color-white-rgb),0.1);
        animation: none;
    }

    header.nav-hidden { transform: translateY(-100%); }
    nav ul { opacity: 1; animation: none; }

    #hero-showcase {
        width: 95vw;
        height: 60vh;
        margin: 80px auto 40px;
        border-radius: 16px;
    }
    .slide-info { bottom: 80px; width: 90%; }
    .slide-info h3 { font-size: 24px; }
    .nav-arrow { display: none; }
    .scroll-down-hint { display: none; }

    .featured-projects-section {
        padding: 70px 0 56px;
    }

    .featured-switch-btn {
        display: none;
    }

    .featured-carousel {
        gap: 14px;
        padding: 8px calc(50vw - 160px) 20px;
    }

    .featured-project-card {
        width: min(320px, 84vw);
        min-width: min(320px, 84vw);
    }

    .featured-project-info h3 {
        font-size: 22px;
    }

    .featured-project-info p {
        font-size: 13px;
        line-height: 1.5;
    }

    .featured-detail-item {
        font-size: 12px;
        line-height: 1.45;
    }

    .featured-card-btn {
        margin-top: 12px;
        padding: 8px 14px;
        font-size: 11px;
    }

    section { padding-top: 100px; padding-bottom: 60px; }
    .section-header h2 { font-size: 32px; }

    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px;
        gap: 30px;
    }
    .about-text h2 { text-align: center; }
    .tag-container { justify-content: center; }
    .about-text div { text-align: center; }

    .gallery-item {
        width: 85vw;
        min-width: 85vw;
        max-width: 85vw;
    }
}

.detail-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    margin-bottom: 60px;
}

.detail-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.detail-header h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--text-bright);
    text-transform: uppercase;
    text-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 10px;
}

.detail-header .subtitle {
    font-family: var(--font-body);
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 16px;
    background: var(--shadow-color);
    padding: 5px 10px;
    display: inline-block;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

.project-meta {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(var(--color-white-rgb),0.03);
    border: 1px solid rgba(var(--color-white-rgb),0.08);
    border-left: 3px solid var(--accent);
    padding: 30px;
    border-radius: 2px 8px 8px 2px;
    box-shadow: 0 8px 32px var(--shadow-color), inset 0 0 30px rgba(var(--accent-rgb), 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-meta:hover {
    border-color: rgba(var(--color-white-rgb),0.12);
    border-left-color: var(--accent);
    box-shadow: 0 8px 32px var(--shadow-color), 0 0 15px rgba(var(--accent-rgb), 0.08);
}

.meta-block { margin-bottom: 25px; }
.meta-block h4 {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.8;
}
.meta-block p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.project-content { color: var(--text-muted); }

.project-content h2 {
    color: var(--text-bright);
    font-family: var(--font-heading);
    font-size: 32px;
    margin: 80px 0 28px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    letter-spacing: 1px;
}
.project-content h2:first-child { margin-top: 0; }

.project-content p { margin-bottom: 24px; font-size: 16px; line-height: 1.8; }

.project-content img, .project-content video {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid rgba(var(--color-white-rgb),0.1);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.gallery-grid-mixed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    width: 100%;
}

.back-nav {
    position: fixed;
    top: 20px; left: 20px;
    z-index: 1001;
}
.btn-back {
    position: fixed; top: 30px; left: 30px;
    padding: 10px 25px; border: 1px solid rgba(var(--color-white-rgb),0.1);
    border-radius: 30px; color: var(--text-bright); background: var(--glass-bg);
    backdrop-filter: blur(5px); z-index: 100; transition: 0.3s;
    font-family: var(--font-heading); display: flex; align-items: center; gap: 8px; font-size: 14px;
}
.btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.title-link {
    text-decoration: none;
    color: var(--text-bright);
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}
.title-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.next-project-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.project-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 34px 36px;
    background: var(--glass-bg);
    border: 1px solid rgba(var(--color-white-rgb),0.06);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.project-nav-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-white-rgb),0.15), transparent);
}

.project-nav-link:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow-color), 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.project-nav-link.prev-project-link {
    border-left: 2px solid rgba(var(--accent-rgb), 0.22);
}

.project-nav-link.next-project-link {
    border-right: 2px solid rgba(var(--accent-rgb), 0.22);
}

.nav-project-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prev-project-link .nav-project-info {
    text-align: left;
}

.next-project-link .nav-project-info {
    text-align: right;
}

.nav-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0;
    transition: color 0.3s;
}

.project-nav-link:hover .nav-title {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.nav-arrow {
    font-size: 30px;
    color: var(--text-muted);
    transition: all 0.4s var(--ease-smooth);
}

.prev-project-link:hover .nav-arrow {
    color: var(--accent);
    transform: translateX(-8px);
}

.next-project-link:hover .nav-arrow {
    color: var(--accent);
    transform: translateX(8px);
}

@media (max-width: 900px) {
    .detail-container { grid-template-columns: 1fr; gap: 40px; }
    .project-meta { position: relative; top: 0; }
    .detail-header h1 { font-size: 36px; }
    .next-project-section { padding: 0 16px 40px; }
    .project-nav-links { grid-template-columns: 1fr; gap: 12px; }
    .project-nav-link { padding: 24px 20px; }
    .next-project-link .nav-project-info { text-align: left; }
    .nav-title { font-size: 20px; }
}

@media (max-width: 768px) {
    .two-col-grid { grid-template-columns: 1fr; }
}

#lightbox-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--shadow-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

#lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-image {

    max-width: 90%;
    max-height: 90%;
    object-fit: contain;

    border: 1px solid var(--accent);

    box-shadow:
        0 0 60px var(--shadow-color),
        0 0 20px rgba(var(--accent-rgb), 0.4),
        inset 0 0 15px rgba(var(--accent-rgb), 0.2);

    transform-origin: center center;

    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16V10C8 10 8 6 12 6C16 6 16 10 16 10V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 16V8C12 8 12 4 16 4C20 4 20 8 20 8V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M16 16V10C16 10 16 6 20 6C24 6 24 10 24 10V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 18V22C4 26.4 7.6 30 12 30H20C24.4 30 28 26.4 28 22V18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grab !important;
    user-select: none;
    -webkit-user-drag: none;

    transition: border-color 0.3s, box-shadow 0.3s;
}
#lightbox-image.is-dragging {
    cursor: grabbing;
    border-color: var(--text-bright);
    box-shadow:
        0 0 60px var(--shadow-color),
        0 0 30px rgba(var(--accent-rgb), 0.6),
        inset 0 0 20px rgba(var(--accent-rgb), 0.3);
}

#lightbox-overlay.active #lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-bright);
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.zoomable {
    cursor: zoom-in;
}

.img-caption {
    display: block;
    text-align: center;
    color: rgba(var(--color-white-rgb), 0.5);
    font-size: 14px;
    font-family: var(--font-body);
    font-style: italic;
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 1.5;
    letter-spacing: 1px;
    font-weight: 300;
}

.hover-tooltip {
    position: fixed;
    z-index: 10000;
    pointer-events: none;

    background: var(--glass-bg);
    border: 1px solid var(--accent);
    color: var(--text-bright);
    padding: 8px 16px;
    border-radius: 4px;

    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow: 0 4px 20px var(--shadow-color),
                0 0 10px rgba(var(--accent-rgb), 0.2);
    backdrop-filter: blur(4px);

    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hover-tooltip.visible {
    opacity: 1;
    transform: scale(1);
}

.hover-tooltip::before {
    content: '图片信息 // ';
    color: var(--accent);
    font-weight: 700;
    margin-right: 5px;
    opacity: 0.8;
}

html, body {

    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L26 14L16 16L14 26L6 4Z' fill='rgba(10,12,16,0.8)' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}

a, button, .btn-core, .nav-item, .gallery-item, .zoomable, .lightbox-close, .expand-toggle-btn, .to-top-tab,
.exp-header, .skill-card, .course-fold-trigger, .about-avatar, .avatar-container, .avatar-img {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='10' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M16 6V10M16 22V26M6 16H10M22 16H26' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%2300f0ff'/%3E%3C/svg%3E") 16 16, pointer !important;
}

::selection {
    background: var(--accent);
    color: var(--bg-solid);
    text-shadow: none;
}

.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;

    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s;
    mix-blend-mode: exclusion;

    opacity: 0.6;
}

.cursor-follower.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
    opacity: 1;
}

.cursor-follower.clicking {
    width: 20px;
    height: 20px;
    background-color: var(--accent);
}

@media (max-width: 768px) {
    html, body, a, button { cursor: auto !important; }
    .cursor-follower { display: none; }
}

.zoomable {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='9' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M21 21L28 28' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14 10V18M10 14H18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, zoom-in !important;
}

#lightbox-image {

    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16V10C8 10 8 6 12 6C16 6 16 10 16 10V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 16V8C12 8 12 4 16 4C20 4 20 8 20 8V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M16 16V10C16 10 16 6 20 6C24 6 24 10 24 10V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 18V22C4 26.4 7.6 30 12 30H20C24.4 30 28 26.4 28 22V18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grab !important;
}

#lightbox-image.is-dragging {

    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='10' width='16' height='14' rx='4' stroke='%2300f0ff' stroke-width='1.5' fill='rgba(var(--accent-rgb), 0.1)'/%3E%3Cpath d='M12 10V18M16 10V18M20 10V18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M8 14H24' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grabbing !important;
}

body.is-autoscrolling {

    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4L20 8M16 4L12 8M16 4V28M16 28L20 24M16 28L12 24M4 16L8 20M4 16L8 12M4 16H28M28 16L24 20M28 16L24 12' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%2300f0ff'/%3E%3C/svg%3E") 16 16, all-scroll !important;
}

body.is-autoscrolling * {
    cursor: inherit !important;
}

#scroll-anchor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 9998;

    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4) 10%, transparent 60%);
    box-shadow: 0 0 15px var(--accent);

    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
    opacity: 0;
}

#scroll-anchor.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.archive-header {
    text-align: center;
    padding: 166px 20px 66px;
}
.archive-title {
    font-family: var(--font-heading);
    font-size: 50px;
    color: var(--text-bright);
    letter-spacing: 3px;
    line-height: 1.1;
}
.archive-subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1.6px;
    opacity: 0.8;
    margin-top: 10px;
}
.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.control-panel-wrapper {
    position: sticky;
    top: 70px;
    z-index: 100;
    padding: 10px 20px 12px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--color-white-rgb),0.04);
    background: transparent;
    margin-bottom: 30px;
}

.control-panel {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.control-label {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(var(--color-white-rgb),0.1);
    color: var(--text-muted);
    padding: 7px 14px;
    font-family: var(--font-heading);
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    margin-right: 5px;
    border-radius: 999px;
    letter-spacing: 0.6px;
}
.filter-btn:hover {
    color: var(--text-bright);
    border-color: rgba(var(--color-white-rgb),0.3);
}
.filter-btn.active {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.25);
    font-weight: 700;
}

.cyber-select {
    background: var(--bg-solid);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 7px 12px;
    font-family: var(--font-heading);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    border-radius: 8px;
}

.archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 90px;
}

.project-grid {
    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.archive-card {
    background: rgba(var(--color-white-rgb),0.02);
    border: 1px solid rgba(var(--color-white-rgb),0.05);
    display: block;
    text-decoration: none;
    transition: 0.3s ease;
    animation: fadeInCard 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.project-grid.is-filtering .archive-card {
    animation: none;
    opacity: 0;
    transform: translateY(12px);
}

.project-grid.is-revealing .archive-card {
    animation: fadeInCard 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.archive-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-color);
    z-index: 10;
}

.card-img-box {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(var(--color-white-rgb),0.05);
}

.card-img-box img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
    filter: grayscale(30%);
}
.archive-card:hover .card-img-box img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: var(--shadow-color);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}
.archive-card:hover .card-overlay { opacity: 1; }
.enter-text {
    color: var(--accent); font-family: var(--font-heading);
    font-weight: 700; letter-spacing: 2px; border: 1px solid var(--accent);
    padding: 5px 15px; background: var(--shadow-color);
}

.card-body { padding: 15px; }

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-meta {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--text-muted); margin-bottom: 8px;
    font-family: var(--font-heading);
}
.card-type { color: var(--accent); }

.card-title {
    font-size: 16px; color: var(--text-bright); margin-bottom: 2px;
    font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-tag {
    font-size: 10px; color: var(--text-muted); background: transparent;
    border: 1px solid rgba(var(--color-white-rgb),0.12);
    padding: 3px 7px; border-radius: 999px;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .control-panel-wrapper { position: static; }
    .filter-group {
        display: flex; overflow-x: auto;
        white-space: nowrap; padding-bottom: 10px; width: 100%;
    }
    .project-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-title { font-size: 14px; }
    .card-img-box { aspect-ratio: 4/3; }
    .archive-header { padding: 104px 14px 36px; }
    .archive-container { padding: 0 14px 70px; }
}

.hd-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-size: cover;
    background-position: center;

    z-index: 1;

    opacity: 0;

    transition: opacity 1.5s ease-in-out;

    pointer-events: none;
}

.lod1-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background-size: cover;
    background-position: center;

    z-index: 0;

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.carousel-slide.lod1-loaded {
    filter: blur(0) brightness(1);
    transform: scale(1);
}

#rhodes-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Rajdhani', "Microsoft YaHei", sans-serif;

    background: var(--bg-deep);
    color: var(--text-bright);
    overflow: hidden;
    perspective: 1000px;

    transition: opacity 0.5s ease 0.8s, visibility 0.5s ease 0.8s;
}

body.loaded #rhodes-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rh-block-layer {
    position: absolute;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;

    perspective: 1000px;
}

.rh-big-shape {
    position: absolute;
    background: var(--bg-deep);
    z-index: 0;

    transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.shape-top-right {
    top: -20%; right: -20%;
    width: 80vw; height: 140vh;
    background: var(--bg-deep);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    transform-origin: top right;
}

.shape-bottom-left {
    bottom: -10%; left: -10%;
    width: 50vw; height: 60vh;
    background: var(--bg-deep);
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
    transform-origin: bottom left;
}

body.loaded .shape-top-right {

    transform: translate(20%, -20%) scale(1.2) skewX(-20deg);
    opacity: 0;

    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: all 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}

body.loaded .shape-bottom-left {
    transform: translate(-20%, 20%) scale(1.2) skewX(-20deg);
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: all 0.6s cubic-bezier(0.7, 0, 0.3, 1) 0.1s;
}

.rh-grid-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;

    mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 70%);

    transition: opacity 0.5s;
}

#rh-grid-canvas {

    width: 100%;
    height: 100%;
}

body.loaded .rh-grid-layer {
    opacity: 0;
    transform: scale(2);
    transition: all 0.5s ease;
}

.rh-line-layer {
    position: absolute;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

.rh-line-vert, .rh-line-horz {
    position: absolute;
    background: rgba(var(--accent-rgb), 0.2);
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.1, 1);
}

.rh-line-vert { width: 1px; height: 100%; top: 0; }
.rh-line-vert.left { left: 15%; }
.rh-line-vert.right { right: 15%; }

.rh-line-horz { width: 100%; height: 1px; left: 0; }
.rh-line-horz.top { top: 15%; }
.rh-line-horz.bottom { bottom: 15%; }

.rh-cross-mark {
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    border: 1px solid var(--accent);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: all 0.5s;
}

body.loaded .rh-line-vert { transform: scaleY(0); }
body.loaded .rh-line-horz { transform: scaleX(0); }
body.loaded .rh-cross-mark { width: 100%; height: 1px; border: none; background: var(--text-bright); opacity: 0; }

.rh-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 30px;
    align-items: center;

    transition: transform 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045), opacity 0.6s;
}

body.loaded .rh-content-wrapper {
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
}

.rh-side-deco {
    writing-mode: vertical-rl;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    border-left: 2px solid var(--accent);
    padding-left: 15px;
    height: 180px;
}
.rh-side-deco .highlight { color: var(--accent); font-weight: 700; text-shadow: 0 0 5px var(--accent); }

.rh-loader-box {
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rh-profile-card { display: flex; flex-direction: column; gap: 8px; }
.profile-row { display: flex; align-items: baseline; overflow: hidden; }
.label { width: 90px; font-size: 12px; color: var(--text-muted); font-weight: 600; font-family: 'Inter'; }

.reveal-box { position: relative; display: inline-block; overflow: hidden; }
.value {
    font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    opacity: 0; animation: showText 0.1s forwards 0.5s;
}
.main-name { font-size: 28px; color: var(--text-bright); text-shadow: 0 0 10px rgba(var(--color-white-rgb),0.3); }

.reveal-block {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent); transform: translateX(-101%);
    animation: blockReveal 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.delay-1 .reveal-block { animation-delay: 0.2s; } .delay-1 .value { animation-delay: 0.6s; }
.delay-2 .reveal-block { animation-delay: 0.4s; } .delay-2 .value { animation-delay: 0.8s; }

.rh-progress-section { display: flex; align-items: center; gap: 15px; margin-top: 10px; }
.rh-progress-track {
    flex-grow: 1; height: 12px; background: var(--bg-deep);
    position: relative; border: 1px solid rgba(var(--color-white-rgb), 0.2); overflow: hidden;
    transform: skewX(-20deg);
}
.rh-progress-fill {
    width: 0%; height: 100%; background: var(--text-bright);
    position: relative; z-index: 2;
    box-shadow: 0 0 10px rgba(var(--color-white-rgb),0.5);
}
.rh-stripe-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, var(--shadow-color) 5px, var(--shadow-color) 10px);
    z-index: 3; opacity: 0.3;
}
.rh-num-wrapper {
    font-size: 48px; font-weight: 700; color: var(--accent);
    line-height: 0.8; width: 100px; text-align: right;
}
.rh-unit { font-size: 14px; color: var(--text-muted); margin-left: 5px; }

.rh-log-section {
    border-top: 1px solid rgba(var(--color-white-rgb),0.1); padding-top: 10px;
    font-size: 12px; color: var(--text-muted); display: flex; align-items: center;
    font-family: 'Inter';
}
.rh-arrow { color: var(--accent); margin-right: 8px; font-size: 10px; animation: blink 1s infinite; }

@keyframes blockReveal { 0% { transform: translateX(-101%); } 50% { transform: translateX(0); } 100% { transform: translateX(101%); } }
@keyframes showText { to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 768px) {
    .rh-loader-box { width: 90vw; }
    .rh-side-deco { display: none; }
    .shape-top-right { width: 100%; opacity: 0.3; }
    .rh-line-vert { display: none; }
}

@media (max-width: 900px) {
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    [style*="max-width: 600px"] {
        max-width: 100% !important;
    }

    .detail-container {
        padding: 0 16px 60px;
        gap: 24px;
    }

    .project-content h2 {
        font-size: 26px;
        margin: 44px 0 16px;
    }

    .project-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .btn-back {
        top: 14px;
        left: 12px;
        padding: 8px 16px;
        font-size: 12px;
        z-index: 1100;
    }
}

@media (max-width: 768px) {
    header.navbar {
        height: auto;
        min-height: 64px;
        padding: 10px 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    header.navbar nav {
        width: 100%;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        margin: 0;
        padding: 6px 2px;
        font-size: 12px;
    }

    #hero-showcase {
        width: 100vw;
        height: 65vh;
        margin: 70px 0 24px;
        border-radius: 0;
    }

    .archive-container {
        padding: 0 14px 60px;
    }

    .footer-link {
        font-size: 16px;
    }

    .copyright {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .archive-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(20px);
    background: var(--glass-bg);
    color: var(--text-bright);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    border-radius: 8px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 12000;
    box-shadow: 0 8px 28px var(--shadow-color), 0 0 12px rgba(var(--accent-rgb), 0.2);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .copy-toast {
        width: calc(100vw - 24px);
        max-width: 420px;
        text-align: center;
        bottom: 18px;
    }
}

@media (max-width: 900px) {
    body {
        -webkit-tap-highlight-color: transparent;
    }

    .btn-core,
    .filter-btn,
    .btn-back,
    .footer-link,
    .nav-item {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-core {
        padding: 10px 18px;
        letter-spacing: 1px;
    }

    .project-card {
        margin-bottom: 36px;
    }

    .project-info {
        padding: 22px 18px;
        gap: 14px;
    }

    .project-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .project-details {
        grid-template-columns: 1fr;
        gap: 14px;
        font-size: 13px;
    }

    .gallery-container {
        padding: 14px;
        gap: 10px;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 14px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-item {
        scroll-snap-align: start;
    }

    .detail-hero {
        height: 52vh;
        margin-bottom: 28px;
        padding-bottom: 26px;
    }

    .detail-header {
        padding: 0 16px;
    }

    .detail-header h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .detail-header .subtitle {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 4px 8px;
    }

    .project-meta {
        position: static;
        padding: 18px;
    }

    .meta-block {
        margin-bottom: 16px;
    }

    .meta-block p {
        font-size: 13px;
    }

    .carousel-indicators {
        bottom: 24px;
        gap: 8px;
    }

    .indicator {
        width: 28px;
        height: 4px;
    }

    .indicator.active {
        width: 42px;
    }

    .control-panel {
        gap: 12px;
    }

    .filter-group {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .archive-card {
        border-radius: 10px;
    }

    .card-body {
        padding: 12px;
    }

    .navbar {
        padding: 8px 12px;
    }

    .nav-links {
        gap: 2px;
        padding: 2px 8px 6px;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 28px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        mask-image: linear-gradient(to right, transparent 0, var(--bg-solid) 8%, var(--bg-solid) 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, var(--bg-solid) 8%, var(--bg-solid) 92%, transparent 100%);
    }

    .nav-item {
        scroll-snap-align: center;
        margin: 0 8px;
        padding: 8px 6px;
        font-size: 13px;
        border-radius: 8px !important;
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    .nav-item.active {
        color: var(--text-bright);
        background: rgba(var(--accent-rgb), 0.12) !important;
    }

    .nav-item.active::after {
        height: 2px;
    }
}

@media (hover: none) {
    .project-card:hover,
    .archive-card:hover {
        transform: none;
        box-shadow: none;
    }

    .gallery-item:hover,
    .archive-card:hover .card-img-box img,
    .gallery-item:hover img {
        border-color: transparent;
        box-shadow: none;
        transform: none;
        filter: none;
    }

    .btn-core:hover,
    .footer-link:hover,
    .btn-back:hover,
    .title-link:hover,
    .filter-btn:hover {
        box-shadow: none;
        text-shadow: none;
        transform: none;
    }

    .btn-core:active,
    .filter-btn:active,
    .btn-back:active,
    .nav-item:active,
    .footer-link:active {
        transform: scale(0.98);
    }

    .zoomable {
        cursor: zoom-in;
    }
}

@media (max-width: 900px) {
    body {
        line-height: 1.75;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .section-header p {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .featured-project-info {
        padding: 14px 14px 2px;
        row-gap: 8px;
    }

    .featured-project-details {
        line-height: 1.55;
    }

    .archive-container {
        padding-bottom: 74px;
    }
}

@media (max-width: 768px) {
    header.navbar {
        min-height: 68px;
        padding: 10px 12px 8px;
    }

    .nav-links {
        padding-bottom: 4px;
    }

    .nav-item {
        min-height: 40px;
        padding: 8px 8px;
    }

    #hero-showcase {
        height: 62vh;
        margin: 70px 0 20px;
    }

    .slide-info {
        width: 92%;
        max-width: 92%;
        padding: 14px 16px;
    }

    .slide-info h3 {
        font-size: clamp(24px, 6.2vw, 30px);
        line-height: 1.2;
    }

    .slide-info p {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .indicator {
        min-width: 34px;
        min-height: 8px;
    }

    .about-text p,
    .project-content p,
    .info-value {
        font-size: 14px;
        line-height: 1.8;
    }

    .about-contact-row {
        gap: 14px;
        justify-content: center;
    }

    .featured-project-card {
        border-radius: 12px;
    }

    .featured-project-info h3 {
        font-size: 20px;
    }

    .featured-project-info p {
        font-size: 13px;
    }

    .featured-card-btn,
    .btn-core,
    .btn-back,
    .filter-btn {
        min-height: 42px;
    }

    .card-title {
        line-height: 1.35;
        white-space: normal;
    }

    .card-meta {
        font-size: 12px;
    }

    .footer-links {
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-link {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }

    .about-section {
        padding: 68px 14px;
    }

    .about-avatar {
        width: 168px;
        height: 168px;
    }

    .featured-carousel {
        padding-left: 12px;
        padding-right: 12px;
        gap: 12px;
    }

    .featured-project-card {
        width: 88vw;
        min-width: 88vw;
    }

    .archive-header {
        padding: 94px 12px 28px;
    }

    .archive-title {
        font-size: 32px;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --bg-deep: #cfdbea;
        --bg-solid: #e2ebf6;
        --color-white-rgb: 31, 41, 55;
        --bg-ambient: radial-gradient(circle at 50% -10%, #e9f1fc 0%, #d6e3f4 52%, #bfcee4 100%);
        --accent: #1a6dff;
        --accent-rgb: 26, 109, 255;
        --accent-dim: rgba(26, 109, 255, 0.12);
        --accent-glow: 0 8px 20px rgba(26, 109, 255, 0.24);
        --glass-bg: rgba(245, 250, 255, 0.84);
        --shadow-color: rgba(48, 78, 120, 0.17);
        --glass-border: 1px solid rgba(26, 109, 255, 0.14);
        --text-main: #24364d;
        --text-muted: #526882;
        --text-bright: #122033;
        --card-bg: linear-gradient(160deg, #f3f8ff 0%, #dfeafb 100%);
        --sidebar-bg: rgba(217, 229, 245, 0.86);
    }

    #tech-canvas {
        opacity: 0.1;
    }

    body::before {
        opacity: 0.012;
    }

    header.navbar {
        background: linear-gradient(140deg, rgba(245, 250, 255, 0.9) 0%, rgba(232, 241, 252, 0.8) 100%);
        border-bottom: 1px solid rgba(26, 109, 255, 0.12);
        box-shadow: 0 8px 22px rgba(43, 86, 148, 0.12);
    }

    .project-card,
    .archive-card,
    .detail-section,
    .meta-block,
    .resume-block {
        border-color: rgba(100, 116, 139, 0.16) !important;
        box-shadow: 0 3px 10px rgba(148, 163, 184, 0.1), 0 14px 30px rgba(43, 86, 148, 0.11);
    }

    .project-card:hover,
    .archive-card:hover,
    .detail-section:hover,
    .resume-block:hover {
        box-shadow: 0 8px 16px rgba(148, 163, 184, 0.14), 0 20px 38px rgba(43, 86, 148, 0.16) !important;
        border-color: rgba(26, 109, 255, 0.24) !important;
    }

    .nav-item:hover,
    .nav-item.active,
    .title-link:hover,
    .footer-link:hover {
        text-shadow: none;
    }

    .nav-item::after,
    .title-link::after {
        box-shadow: none;
    }

    .nav-item,
    .nav-item:hover,
    .nav-item.active {
        background: transparent !important;
        box-shadow: none !important;
    }

    .theme-toggle,
    .theme-toggle:hover,
    .theme-toggle:active,
    .theme-toggle:focus-visible {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .resume-sidebar .info-block {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .btn-core,
    .btn-back,
    .filter-btn {
        border-color: rgba(26, 109, 255, 0.26);
        background: rgba(255, 255, 255, 0.62);
    }

    .btn-core:hover,
    .btn-back:hover,
    .filter-btn:hover {
        background: rgba(26, 109, 255, 0.11);
        border-color: rgba(26, 109, 255, 0.4);
        box-shadow: 0 6px 12px rgba(148, 163, 184, 0.14), 0 14px 28px rgba(26, 109, 255, 0.17);
        transform: translateY(-1px);
    }

    .gallery-item {
        box-shadow: 0 6px 14px rgba(148, 163, 184, 0.12), 0 14px 28px rgba(43, 86, 148, 0.1);
    }

    .gallery-item:hover {
        box-shadow: 0 10px 20px rgba(148, 163, 184, 0.16), 0 20px 34px rgba(43, 86, 148, 0.15), 0 0 0 1px rgba(26, 109, 255, 0.22);
    }

    .indicator.active {
        box-shadow: 0 0 0 1px rgba(26, 109, 255, 0.3), 0 6px 16px rgba(26, 109, 255, 0.24);
    }

    .slide-info,
    .hero-title,
    .detail-header h1 {
        text-shadow: 0 3px 14px rgba(43, 86, 148, 0.26);
    }

    .gallery-container,
    .control-panel,
    .project-meta {
        background-color: rgba(237, 245, 255, 0.78);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    body {
        background-color: var(--bg-deep);
    }

    .section-header h2,
    .archive-title,
    .detail-header h1,
    .name-title {
        color: var(--text-bright);
    }

    .section-header p,
    .archive-subtitle,
    .detail-header .subtitle,
    .job-title {
        color: var(--accent);
    }

    .detail-item,
    .featured-detail-item,
    .info-value,
    .archive-card .card-desc,
    .project-meta p {
        color: var(--text-main);
    }

    .detail-item strong,
    .featured-detail-item strong,
    .info-label,
    .meta-block h3,
    .card-category {
        color: var(--text-muted);
    }

    #hero-showcase,
    .about-section,
    .featured-projects-section {
        background-color: transparent;
    }

    .featured-projects-section {
        background-image: linear-gradient(180deg, rgba(229, 240, 253, 0.08) 0%, rgba(214, 228, 246, 0.18) 100%);
    }

    #hero-showcase {
        --hero-overlay-height: 36%;
        --hero-overlay-gradient: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg-deep) 100%, transparent) 100%);
    }

    .about-section {
        background:
            radial-gradient(120% 90% at 18% 14%, rgba(68, 124, 255, 0.12) 0%, transparent 60%),
            radial-gradient(90% 80% at 86% 86%, rgba(127, 168, 255, 0.1) 0%, transparent 66%),
            linear-gradient(170deg, rgba(233, 242, 254, 0.92) 0%, rgba(203, 216, 236, 0.82) 100%);
        border-top: 1px solid rgba(88, 141, 255, 0.13);
        border-bottom: 1px solid rgba(88, 141, 255, 0.1);
    }

    .about-avatar {
        border-color: rgba(230, 240, 255, 0.96);
        box-shadow: 0 0 20px rgba(120, 156, 212, 0.24);
    }

    .avatar-container {
        background: linear-gradient(135deg, rgba(235, 244, 255, 0.95), rgba(216, 231, 250, 0.92)) !important;
        box-shadow: 0 0 20px rgba(130, 160, 210, 0.22) !important;
    }

    .avatar-img {
        border-color: rgba(232, 242, 255, 0.98) !important;
    }

    .featured-project-card,
    .project-card {
        background: linear-gradient(160deg, #f4f9ff 0%, #e2ecfa 100%);
    }

    .archive-header {
        background: linear-gradient(180deg, rgba(223, 236, 251, 0.84) 0%, rgba(195, 211, 233, 0.52) 100%);
    }

    .control-panel {
        background: transparent;
        border: none;
    }

    .archive-container {
        background-color: transparent;
    }

    .archive-card {
        background: linear-gradient(160deg, #f2f8ff 0%, #dee9f8 100%);
    }

    .detail-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(228, 239, 252, 0.2) 0%, rgba(186, 206, 232, 0.52) 100%);
        pointer-events: none;
    }

    .detail-header {
        background: rgba(232, 243, 255, 0.72);
        backdrop-filter: blur(4px);
    }

    .project-meta,
    .detail-section,
    .project-nav-link {
        background: linear-gradient(170deg, #f1f7ff 0%, #dbe6f6 100%);
    }

    .resume-container {
        background: linear-gradient(155deg, #f1f8ff 0%, #d7e3f4 100%) !important;
        border: 1px solid rgba(26, 109, 255, 0.15) !important;
        box-shadow: 0 8px 16px rgba(148, 163, 184, 0.14), 0 26px 52px rgba(43, 86, 148, 0.16) !important;
    }

    .resume-sidebar {
        background: linear-gradient(180deg, rgba(189, 207, 230, 0.9) 0%, rgba(212, 225, 241, 0.86) 100%) !important;
        border-right: 1px solid rgba(26, 109, 255, 0.14) !important;
    }

    .resume-main {
        background: rgba(238, 246, 255, 0.8);
    }

    .skill-card {
        background: rgba(241, 248, 255, 0.9) !important;
        border-color: rgba(26, 109, 255, 0.2) !important;
    }

    .skill-card:hover {
        box-shadow: 0 6px 14px rgba(148, 163, 184, 0.16), 0 16px 28px rgba(26, 109, 255, 0.22) !important;
    }

    html, body {
        cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L26 14L16 16L14 26L6 4Z' fill='rgba(224,236,252,0.9)' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
    }

    a, button, .btn-core, .nav-item, .gallery-item, .zoomable, .lightbox-close, .expand-toggle-btn, .to-top-tab,
    .exp-header, .skill-card, .course-fold-trigger, .about-avatar, .avatar-container, .avatar-img {
        cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='10' stroke='%231a6dff' stroke-width='1.5'/%3E%3Cpath d='M16 6V10M16 22V26M6 16H10M22 16H26' stroke='%231a6dff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%231a6dff'/%3E%3C/svg%3E") 16 16, pointer !important;
    }

    .zoomable {
        cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='9' stroke='%231a6dff' stroke-width='1.5'/%3E%3Cpath d='M21 21L28 28' stroke='%231a6dff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14 10V18M10 14H18' stroke='%231a6dff' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, zoom-in !important;
    }

    #lightbox-image {
        cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16V10C8 10 8 6 12 6C16 6 16 10 16 10V16' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 16V8C12 8 12 4 16 4C20 4 20 8 20 8V16' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M16 16V10C16 10 16 6 20 6C24 6 24 10 24 10V16' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 18V22C4 26.4 7.6 30 12 30H20C24.4 30 28 26.4 28 22V18' stroke='%231a6dff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grab !important;
    }

    #lightbox-image.is-dragging {
        cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='10' width='16' height='14' rx='4' stroke='%231a6dff' stroke-width='1.5' fill='rgba(26,109,255,0.1)'/%3E%3Cpath d='M12 10V18M16 10V18M20 10V18' stroke='%231a6dff' stroke-width='1.5'/%3E%3Cpath d='M8 14H24' stroke='%231a6dff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grabbing !important;
    }

    body.is-autoscrolling {
        cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4L20 8M16 4L12 8M16 4V28M16 28L20 24M16 28L12 24M4 16L8 20M4 16L8 12M4 16H28M28 16L24 20M28 16L24 12' stroke='%231a6dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%231a6dff'/%3E%3C/svg%3E") 16 16, all-scroll !important;
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-deep: #cfdbea;
    --bg-solid: #e2ebf6;
    --color-white-rgb: 31, 41, 55;
    --bg-ambient: radial-gradient(circle at 50% -10%, #e9f1fc 0%, #d6e3f4 52%, #bfcee4 100%);
    --accent: #1a6dff;
    --accent-rgb: 26, 109, 255;
    --accent-dim: rgba(26, 109, 255, 0.12);
    --accent-glow: 0 8px 20px rgba(26, 109, 255, 0.24);
    --glass-bg: rgba(245, 250, 255, 0.84);
    --shadow-color: rgba(48, 78, 120, 0.17);
    --glass-border: 1px solid rgba(26, 109, 255, 0.14);
    --text-main: #24364d;
    --text-muted: #526882;
    --text-bright: #122033;
    --card-bg: linear-gradient(160deg, #f3f8ff 0%, #dfeafb 100%);
    --sidebar-bg: rgba(217, 229, 245, 0.86);
}

:root[data-theme="light"] .theme-toggle {
    color: #1a6dff;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

:root[data-theme="light"] .theme-toggle:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

:root[data-theme="light"] .nav-item,
:root[data-theme="light"] .nav-item:hover,
:root[data-theme="light"] .nav-item.active {
    background: transparent !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .resume-sidebar .info-block {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

:root[data-theme="light"] .theme-toggle.is-light .theme-toggle__moon {
    color: #1a6dff;
}

:root[data-theme="light"] .theme-toggle.is-dark .theme-toggle__sun {
    color: #3d86ff;
}

:root[data-theme="light"] header.navbar {
    background: linear-gradient(140deg, rgba(245, 250, 255, 0.9) 0%, rgba(232, 241, 252, 0.8) 100%);
    border-bottom: 1px solid rgba(26, 109, 255, 0.12);
    box-shadow: 0 8px 22px rgba(43, 86, 148, 0.12);
}

:root[data-theme="light"] .gallery-container,
:root[data-theme="light"] .control-panel,
:root[data-theme="light"] .project-meta {
    background-color: rgba(237, 245, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="light"] .nav-links {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

:root[data-theme="light"] .featured-projects-section {
    background-image: linear-gradient(180deg, rgba(229, 240, 253, 0.08) 0%, rgba(214, 228, 246, 0.18) 100%);
}

:root[data-theme="light"] #hero-showcase {
    --hero-overlay-height: 50%;
    --hero-overlay-gradient: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg-deep) 100%, transparent) 100%);
}

:root[data-theme="light"] .about-section {
    background:
        radial-gradient(120% 90% at 18% 14%, rgba(68, 124, 255, 0.12) 0%, transparent 60%),
        radial-gradient(90% 80% at 86% 86%, rgba(127, 168, 255, 0.1) 0%, transparent 66%),
        linear-gradient(170deg, rgba(233, 242, 254, 0.92) 0%, rgba(203, 216, 236, 0.82) 100%);
    border-top: 1px solid rgba(88, 141, 255, 0.13);
    border-bottom: 1px solid rgba(88, 141, 255, 0.1);
}

:root[data-theme="light"] .about-avatar {
    border-color: rgba(230, 240, 255, 0.96);
    box-shadow: 0 0 20px rgba(120, 156, 212, 0.24);
}

:root[data-theme="light"] .avatar-container {
    background: linear-gradient(135deg, rgba(235, 244, 255, 0.95), rgba(216, 231, 250, 0.92)) !important;
    box-shadow: 0 0 20px rgba(130, 160, 210, 0.22) !important;
}

:root[data-theme="light"] .avatar-img {
    border-color: rgba(232, 242, 255, 0.98) !important;
}

:root[data-theme="light"] .featured-project-card,
:root[data-theme="light"] .project-card {
    background: linear-gradient(160deg, #f4f9ff 0%, #e2ecfa 100%);
}

:root[data-theme="light"] .featured-project-image {
    border-bottom: 1px solid #9aa6b2;
}

:root[data-theme="light"] .archive-header {
    background: linear-gradient(180deg, rgba(223, 236, 251, 0.84) 0%, rgba(195, 211, 233, 0.52) 100%);
}

:root[data-theme="light"] .control-panel {
    background: transparent;
    border: none;
}

:root[data-theme="light"] .archive-container {
    background-color: transparent;
}

:root[data-theme="light"] .archive-card {
    background: linear-gradient(160deg, #f2f8ff 0%, #dee9f8 100%);
}

:root[data-theme="light"] .detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(228, 239, 252, 0.2) 0%, rgba(186, 206, 232, 0.52) 100%);
    pointer-events: none;
}

:root[data-theme="light"] .detail-header {
    background: rgba(232, 243, 255, 0.72);
    backdrop-filter: blur(4px);
}

:root[data-theme="light"] .project-meta,
:root[data-theme="light"] .detail-section,
:root[data-theme="light"] .project-nav-link {
    background: linear-gradient(170deg, #f1f7ff 0%, #dbe6f6 100%);
}

:root[data-theme="light"] .resume-container {
    background: linear-gradient(155deg, #f1f8ff 0%, #d7e3f4 100%) !important;
    border: 1px solid rgba(26, 109, 255, 0.15) !important;
}

:root[data-theme="light"] .resume-sidebar {
    background: linear-gradient(180deg, rgba(189, 207, 230, 0.9) 0%, rgba(212, 225, 241, 0.86) 100%) !important;
    border-right: 1px solid rgba(26, 109, 255, 0.14) !important;
}

:root[data-theme="light"] .resume-main {
    background: rgba(238, 246, 255, 0.8);
}

:root[data-theme="light"] .skill-card {
    background: rgba(241, 248, 255, 0.9) !important;
    border-color: rgba(26, 109, 255, 0.2) !important;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-deep: #121212;
    --bg-solid: #000000;
    --color-white-rgb: 255, 255, 255;
    --bg-ambient: radial-gradient(circle at 50% 0%, #1a202c 0%, #101319 60%);
    --accent: #00f0ff;
    --accent-rgb: 0, 240, 255;
    --accent-dim: rgba(var(--accent-rgb), 0.1);
    --accent-glow: 0 0 15px rgba(var(--accent-rgb), 0.2);
    --glass-bg: rgba(10, 12, 16, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glass-border: 1px solid rgba(var(--color-white-rgb), 0.08);
    --text-main: #eef1f5;
    --text-muted: #8b9bb4;
    --text-bright: #ffffff;
    --card-bg: linear-gradient(160deg, rgb(32, 37, 45) 0%, rgb(15, 17, 22) 100%);
    --sidebar-bg: rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .featured-projects-section {
    background-image: none;
}

:root[data-theme="dark"] header.navbar {
    background: rgba(10, 12, 16, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

:root[data-theme="dark"] .about-section {
    background:
        radial-gradient(110% 90% at 20% 15%, rgba(var(--accent-rgb), 0.07) 0%, transparent 60%),
        radial-gradient(95% 80% at 85% 82%, rgba(var(--accent-rgb), 0.05) 0%, transparent 64%),
        linear-gradient(165deg, rgba(var(--color-white-rgb), 0.012) 0%, rgba(5, 8, 14, 0.96) 100%);
    border-top: 1px solid rgba(var(--color-white-rgb), 0.045);
    border-bottom: 1px solid rgba(var(--color-white-rgb), 0.04);
}

:root[data-theme="dark"] .featured-project-card,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .project-meta,
:root[data-theme="dark"] .detail-section,
:root[data-theme="dark"] .project-nav-link,
:root[data-theme="dark"] .resume-container {
    background: rgba(10, 12, 16, 0.88) !important;
}

:root[data-theme="dark"] .archive-header,
:root[data-theme="dark"] .detail-header,
:root[data-theme="dark"] .control-panel,
:root[data-theme="dark"] .resume-main {
    background: rgba(8, 10, 14, 0.72) !important;
}

:root[data-theme="dark"] .control-panel {
    background: transparent !important;
}

:root[data-theme="dark"] .gallery-container,
:root[data-theme="dark"] .project-meta {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .nav-links {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

:root[data-theme="dark"] .archive-container {
    background-color: transparent !important;
}

:root[data-theme="dark"] .detail-hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.52) 100%) !important;
}

:root[data-theme="dark"] .resume-sidebar {
    background: rgba(0, 0, 0, 0.3) !important;
    border-right-color: rgba(255, 255, 255, 0.06) !important;
}

:root[data-theme="dark"] .skill-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] .theme-toggle {
    color: #c9f9ff;
    border-color: rgba(0, 240, 255, 0.28);
    background: linear-gradient(145deg, rgba(9, 16, 25, 0.92), rgba(6, 11, 19, 0.84));
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(0, 240, 255, 0.48);
    background: linear-gradient(145deg, rgba(12, 26, 36, 0.94), rgba(7, 17, 27, 0.9));
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.24), 0 12px 26px rgba(0, 0, 0, 0.56), 0 0 24px rgba(0, 240, 255, 0.2);
}

:root[data-theme="dark"] .theme-toggle.is-dark .theme-toggle__sun {
    color: #45f6ff;
}

:root[data-theme="dark"] .theme-toggle.is-light .theme-toggle__moon {
    color: #8ffbff;
}

:root[data-theme="light"],
:root[data-theme="light"] body {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L26 14L16 16L14 26L6 4Z' fill='rgba(224,236,252,0.9)' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}

:root[data-theme="light"] a,
:root[data-theme="light"] button,
:root[data-theme="light"] .btn-core,
:root[data-theme="light"] .nav-item,
:root[data-theme="light"] .gallery-item,
:root[data-theme="light"] .zoomable,
:root[data-theme="light"] .lightbox-close,
:root[data-theme="light"] .expand-toggle-btn,
:root[data-theme="light"] .to-top-tab,
:root[data-theme="light"] .exp-header,
:root[data-theme="light"] .skill-card,
:root[data-theme="light"] .course-fold-trigger,
:root[data-theme="light"] .about-avatar,
:root[data-theme="light"] .avatar-container,
:root[data-theme="light"] .avatar-img {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='10' stroke='%231a6dff' stroke-width='1.5'/%3E%3Cpath d='M16 6V10M16 22V26M6 16H10M22 16H26' stroke='%231a6dff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%231a6dff'/%3E%3C/svg%3E") 16 16, pointer !important;
}

:root[data-theme="light"] .zoomable {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='9' stroke='%231a6dff' stroke-width='1.5'/%3E%3Cpath d='M21 21L28 28' stroke='%231a6dff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14 10V18M10 14H18' stroke='%231a6dff' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, zoom-in !important;
}

:root[data-theme="light"] #lightbox-image {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16V10C8 10 8 6 12 6C16 6 16 10 16 10V16' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 16V8C12 8 12 4 16 4C20 4 20 8 20 8V16' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M16 16V10C16 10 16 6 20 6C24 6 24 10 24 10V16' stroke='%231a6dff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 18V22C4 26.4 7.6 30 12 30H20C24.4 30 28 26.4 28 22V18' stroke='%231a6dff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grab !important;
}

:root[data-theme="light"] #lightbox-image.is-dragging {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='10' width='16' height='14' rx='4' stroke='%231a6dff' stroke-width='1.5' fill='rgba(26,109,255,0.1)'/%3E%3Cpath d='M12 10V18M16 10V18M20 10V18' stroke='%231a6dff' stroke-width='1.5'/%3E%3Cpath d='M8 14H24' stroke='%231a6dff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grabbing !important;
}

:root[data-theme="light"] body.is-autoscrolling {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4L20 8M16 4L12 8M16 4V28M16 28L20 24M16 28L12 24M4 16L8 20M4 16L8 12M4 16H28M28 16L24 20M28 16L24 12' stroke='%231a6dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%231a6dff'/%3E%3C/svg%3E") 16 16, all-scroll !important;
}

:root[data-theme="dark"] #tech-canvas {
    opacity: 0.2 !important;
}

:root[data-theme="dark"] body::before {
    opacity: 0.04 !important;
}

:root[data-theme="dark"] .nav-item:hover,
:root[data-theme="dark"] .nav-item.active,
:root[data-theme="dark"] .title-link:hover,
:root[data-theme="dark"] .footer-link:hover {
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4) !important;
}

:root[data-theme="dark"] .nav-item::after,
:root[data-theme="dark"] .title-link::after {
    box-shadow: 0 0 8px var(--accent) !important;
}

:root[data-theme="dark"] .btn-core,
:root[data-theme="dark"] .btn-back,
:root[data-theme="dark"] .filter-btn {
    background: transparent !important;
    border-color: rgba(var(--color-white-rgb), 0.12) !important;
}

:root[data-theme="dark"] .btn-core:hover,
:root[data-theme="dark"] .btn-back:hover,
:root[data-theme="dark"] .filter-btn:hover {
    background: rgba(var(--accent-rgb), 0.08) !important;
    border-color: var(--accent) !important;
    box-shadow: var(--accent-glow) !important;
}

:root[data-theme="dark"] .filter-btn.active {
    background: transparent !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35) !important;
    font-weight: 700;
}

:root[data-theme="dark"] .gallery-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.45) !important;
}

:root[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2) !important;
    border-color: var(--accent) !important;
}

:root[data-theme="dark"] .indicator.active {
    box-shadow: 0 0 10px var(--accent) !important;
}

:root[data-theme="dark"] .slide-info,
:root[data-theme="dark"] .hero-title,
:root[data-theme="dark"] .detail-header h1 {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

:root[data-theme="dark"],
:root[data-theme="dark"] body {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L26 14L16 16L14 26L6 4Z' fill='rgba(10,12,16,0.8)' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}

:root[data-theme="dark"] a,
:root[data-theme="dark"] button,
:root[data-theme="dark"] .btn-core,
:root[data-theme="dark"] .nav-item,
:root[data-theme="dark"] .gallery-item,
:root[data-theme="dark"] .zoomable,
:root[data-theme="dark"] .lightbox-close,
:root[data-theme="dark"] .expand-toggle-btn,
:root[data-theme="dark"] .to-top-tab,
:root[data-theme="dark"] .exp-header,
:root[data-theme="dark"] .skill-card,
:root[data-theme="dark"] .course-fold-trigger,
:root[data-theme="dark"] .about-avatar,
:root[data-theme="dark"] .avatar-container,
:root[data-theme="dark"] .avatar-img {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='10' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M16 6V10M16 22V26M6 16H10M22 16H26' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%2300f0ff'/%3E%3C/svg%3E") 16 16, pointer !important;
}

:root[data-theme="dark"] .zoomable {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='14' cy='14' r='9' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M21 21L28 28' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M14 10V18M10 14H18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, zoom-in !important;
}

:root[data-theme="dark"] #lightbox-image {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 16V10C8 10 8 6 12 6C16 6 16 10 16 10V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M12 16V8C12 8 12 4 16 4C20 4 20 8 20 8V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M16 16V10C16 10 16 6 20 6C24 6 24 10 24 10V16' stroke='%2300f0ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 18V22C4 26.4 7.6 30 12 30H20C24.4 30 28 26.4 28 22V18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grab !important;
}

:root[data-theme="dark"] #lightbox-image.is-dragging {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='10' width='16' height='14' rx='4' stroke='%2300f0ff' stroke-width='1.5' fill='rgba(0,240,255,0.1)'/%3E%3Cpath d='M12 10V18M16 10V18M20 10V18' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Cpath d='M8 14H24' stroke='%2300f0ff' stroke-width='1.5'/%3E%3C/svg%3E") 16 16, grabbing !important;
}

:root[data-theme="dark"] body.is-autoscrolling {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4L20 8M16 4L12 8M16 4V28M16 28L20 24M16 28L12 24M4 16L8 20M4 16L8 12M4 16H28M28 16L24 20M28 16L24 12' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%2300f0ff'/%3E%3C/svg%3E") 16 16, all-scroll !important;
}

:root[data-theme="light"] .nav-links .nav-item,
:root[data-theme="light"] .nav-links .nav-item:hover,
:root[data-theme="light"] .nav-links .nav-item.active,
:root[data-theme="light"] .nav-links .theme-toggle,
:root[data-theme="light"] .nav-links .theme-toggle:hover,
:root[data-theme="light"] .nav-links .theme-toggle:active,
:root[data-theme="light"] .nav-links .theme-toggle:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

:root[data-theme="light"] .filter-btn.active {
    background: transparent !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.28) !important;
    font-weight: 700;
}
