:root {
    /* Colors - Dark Theme (Default) */
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #988e9f;
    --accent: #00ffff; /* Cyan */
    --accent-glow: rgba(0, 255, 255, 0.4);
    --nav-bg: rgba(11, 15, 25, 0.9);
    --card-bg: #131a28;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Metrics */
    --nav-height: 80px;
}

/* --- Honeycomb Background --- */
#honeycomb-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3; /* Increased from 0.15 */
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
}

/* --- Unique Section Background Canvases --- */
.section-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.28;
}

/* All sections need relative positioning to host canvases */
.work-section,
.services-section,
.about-section,
.gallery-section,
.contact-section {
    position: relative;
    overflow: hidden;
}

.awards-overlay {
    overflow: hidden;
}

/* All section containers float above their canvas */
.work-section > .container,
.services-section > .container,
.about-section > .container,
.gallery-section > .container,
.contact-section > .container,
.awards-overlay > .container {
    position: relative;
    z-index: 2;
}

/* Close button on awards overlay above canvas */
.close-overlay {
    position: relative;
    z-index: 3;
}


[data-theme="light"] {
    --bg-color: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --accent: #00b3b3; /* Darker cyan for light mode readability */
    --accent-glow: rgba(0, 179, 179, 0.4);
    --nav-bg: rgba(248, 249, 250, 0.9);
    --card-bg: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default block cursor for custom one */
}

/* Restore system cursor when disabled */
.default-cursor, .default-cursor * {
    cursor: auto !important;
}

.default-cursor a, .default-cursor button, .default-cursor select, .default-cursor input, .default-cursor textarea {
    cursor: pointer !important;
}

.default-cursor .cursor-dot, 
.default-cursor .cursor-outline {
    display: none !important;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor-outline.hovering {
    width: 50px;
    height: 50px;
    background-color: var(--accent-glow);
    border-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.cyan {
    color: var(--accent);
}
.cyan-bg {
    background-color: var(--accent) !important;
}
.white-bg {
    background-color: var(--text-primary) !important;
}

.color-gray {
    color: var(--text-secondary);
}

.mono {
    font-family: var(--font-mono);
}
.serif {
    font-family: Georgia, serif;
    font-style: italic;
}
.normal {
    font-weight: normal;
}
.fat {
    font-weight: 700;
}

.section {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.min100vh {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar.scrolled {
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: -1px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    outline: none;
}
.control-btn:hover, .control-btn:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle {
    width: 44px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(0, 255, 255, 0.08), rgba(0, 255, 255, 0.02)),
        color-mix(in srgb, var(--bg-color) 92%, black 8%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 18px rgba(0, 255, 255, 0.08);
}

.lang-segment {
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    border-radius: 999px;
    padding: 7px 10px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-segment:hover,
.lang-segment:focus {
    color: var(--accent);
    border-color: rgba(0, 255, 255, 0.24);
    transform: translateY(-1px);
}

.lang-segment.active {
    border-color: var(--accent);
    color: #04181a;
    background: linear-gradient(135deg, #7afff5, #00d9ff);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.28);
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link span {
    color: var(--accent);
    opacity: 0;
    transition: 0.3s;
}

.nav-link:hover span, .nav-link.active span {
    opacity: 1;
}

/* Responsiveness adjustments for no-burger */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    .nav-right {
        flex-direction: column;
        gap: 15px;
    }
    .nav-list ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .nav-controls {
        order: -1; /* Controls above links on mobile */
    }
}

/* Typography & Titles */
.section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
}

.subtitle {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Word Slider Animation */
.anim-words {
    display: flex;
    flex-direction: column; /* Force words to new line */
    align-items: flex-start;
    gap: 10px;
    line-height: 1.2;
}

.word-slider {
    position: relative;
    display: block;
    height: 1.2em;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    background: transparent;
}

.word-slider .word {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    white-space: nowrap; /* Force one line */
    opacity: 0;
    font-weight: 700;
    animation: slideWords 9s infinite;
}

.word-slider .word:nth-child(1) { animation-delay: 0s; }
.word-slider .word:nth-child(2) { animation-delay: 3s; }
.word-slider .word:nth-child(3) { animation-delay: 6s; }

@keyframes slideWords {
    0% { top: 100%; opacity: 0; }
    5% { top: 0; opacity: 1; }
    30% { top: 0; opacity: 1; }
    35% { top: -100%; opacity: 0; }
    100% { top: -100%; opacity: 0; }
}


/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    font-family: var(--font-mono);
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(0, 255, 255, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* --- Unique Section Animations --- */

/* Hero: Staggered Fade Up */
.reveal-hero {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-hero.active {
    opacity: 1;
    transform: translateY(0);
}

/* Work: 3D Tilt Reveal */
.reveal-work {
    opacity: 0;
    transform: perspective(1000px) rotateX(-10deg) translateY(50px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-work.active {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

/* Skills: Scale Pop */
.reveal-skill {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-skill.active {
    opacity: 1;
    transform: scale(1);
}

/* About: Geometric Clip Reveal - Fixed */
.reveal-about {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: opacity, clip-path;
}
.reveal-about.active {
    opacity: 1;
}

/* Contact: Elastic Slide */
.reveal-contact {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal-contact.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Existing Block Reveal override (optional - keeping for backward compatibility but moving to new classes) */
.block-reveal {
    overflow: visible; /* Changed to allow floating elements if needed */
}


/* Hero Section */
.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    width: 350px;
    height: 350px;
    position: relative;
    z-index: 1;
    margin-left: 80px;
    flex-shrink: 0;
    /* 3D Transform setup */
    transform-style: preserve-3d;
    perspective: 800px;
}

/* 3D Circle Sphere Container */
.diamond-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transform: rotateX(20deg) rotateY(-20deg);
    transition: transform 0.5s ease;
    border: 2px solid var(--accent);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image:hover .diamond-container {
    transform: rotateX(0deg) rotateY(0deg) scale(1.05);
}

/* Growing Neon Light Effect (Circular) */
.diamond-container::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    animation: neonGlow 2s infinite alternate;
}

.me {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-image:hover .me {
    transform: translateY(-10px) scale(1.1); /* Floating effect */
}

@keyframes neonGlow {
    from { opacity: 0.3; filter: blur(20px); }
    to { opacity: 0.7; filter: blur(35px); }
}

.scroll-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}


/* High-Impact Project Cards */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card-inner {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    min-height: 350px;
}

.project-card-inner.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-visual {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.05);
    position: relative;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-inner.reverse .project-visual {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.project-nav {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(0, 255, 255, 0.05);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
}

.project-metrics {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Mockups */
.terminal-mockup {
    background: #000;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}
.terminal-header {
    background: #1a1b26;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}
.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-body {
    padding: 20px;
    color: #a9b1d6;
    font-size: 0.9rem;
    line-height: 1.5;
}
.red { color: #f7768e; }
.green { color: #73daca; }

.code-mockup {
    background: #0d1117;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* GitHub Section */
.github-container {
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.github-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 250px;
}

.github-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
}

.github-info h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.github-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.github-graph-wrapper {
    flex: 2;
    min-width: 300px;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.github-chart {
    min-width: 600px;
    width: 100%;
}

/* Proof Block & Expertise */
.proof-inner {
    display: flex;
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.proof-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}
.proof-left { flex: 2; z-index: 1; }
.proof-right { flex: 1; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,0.05); padding-left: 40px; z-index: 1; }

.ats-checklist { list-style: none; }
.ats-checklist li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: var(--text-secondary);
}
.ats-checklist li strong { color: var(--text-primary); }
.ats-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    font-family: var(--font-mono);
}

.metric-box h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.text-sm {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.skill-card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.2);
}
.skill-inner { padding: 30px; }
.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}
.skill-list { list-style: none; }
.skill-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* About Section - Code Style */
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.about-img {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.code-wrp {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.code-l { margin-bottom: 5px; color: var(--text-primary); }
.code-l .methods { color: #ff7b72; }
.code-l .propname { color: #d2a8ff; }
.code-l .string { color: #a5d6ff; }
.code-l .comment { color: #8b949e; font-style: italic; }
.code-l .scope { color: #ff7b72; }
.code-l .prop2 { color: #79c0ff; }
.code-l .dot { color: transparent; padding: 0 4px; } /* indentation */

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: left 0.3s ease;
}

.btn:hover {
    color: var(--bg-color);
}
.btn:hover::before {
    left: 0;
}

/* Contact/Footer */
.footer-section {
    min-height: auto;
    padding-bottom: 20px;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-mono);
    border-radius: 4px;
    transition: transform 0.3s, border-color 0.3s;
}

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

.content-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.visitors-badge {
    background: rgba(0,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--accent);
    font-family: var(--font-mono);
}

.copyright {
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    width: 100%;
}

.form-input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    background-color: rgba(0, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.visitor-img {
    height: 20px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* --- Life Line --- */
.life-line {
    position: fixed;
    top: 0;
    left: 80px; /* Positioned just outside the container margin */
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    z-index: 5;
    opacity: 0.3;
}

.life-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 100%;
    background: var(--accent);
    filter: blur(4px);
}

/* --- Fixed Honors Side-Tab --- */
.honors-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--bg-color);
    padding: 30px 10px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 10px 0 30px var(--accent-glow);
    transition: all 0.3s ease;
}

.honors-tab:hover {
    padding-left: 20px;
}

.honors-tab span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.honors-tab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Honors Overlay (Modal) --- */
.awards-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none; /* Controlled by JS */
    padding: 100px 40px;
    overflow-y: auto;
}

.awards-overlay.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.close-overlay {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.award-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.award-card:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-10px);
}

/* --- Cyber Gallery --- */
.gallery-section {
    background: transparent;
    min-height: auto;
    align-items: flex-start;
    padding-bottom: 20px;
}

.contact-section {
    padding-top: 64px;
}

.gallery-shell {
    position: relative;
    padding: 20px 0 0;
    isolation: isolate;
}

.gallery-ambient,
.gallery-grid-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gallery-ambient {
    filter: blur(36px);
    opacity: 0.2;
}

.gallery-ambient-a {
    background: radial-gradient(circle at 28% 26%, rgba(0, 238, 255, 0.24), transparent 36%);
}

.gallery-ambient-b {
    background: radial-gradient(circle at 80% 10%, rgba(160, 92, 255, 0.26), transparent 32%);
}

.gallery-grid-texture {
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(130, 176, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 176, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.65), transparent 100%);
}

.gallery-header {
    max-width: 760px;
    position: relative;
    z-index: 2;
    text-align: left;
    margin: 0;
}

.gallery-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(0, 255, 255, 0.12), rgba(0, 255, 255, 0.06));
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.14);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.gallery-title {
    margin-top: 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-wrap: pretty;
    text-shadow: 0 0 22px rgba(0, 255, 255, 0.12);
}

.gallery-scroll-zone {
    position: relative;
    height: calc(118vh - 30px);
}

.gallery-stage {
    position: sticky;
    top: 104px;
    height: calc(100vh - 190px);
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    perspective: 2000px;
    z-index: 2;
}

.gallery-stage::before {
    content: '';
    position: absolute;
    inset: auto 10% 18%;
    height: 180px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(0, 255, 255, 0.1), transparent 60%),
        radial-gradient(circle at center, rgba(171, 110, 255, 0.08), transparent 72%);
    filter: blur(28px);
    opacity: 0.6;
    transform: translateZ(-100px);
    pointer-events: none;
}

.gallery-track {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px calc(50vw - 188px) 92px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transform-style: preserve-3d;
}

.gallery-panel {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift: 0px;
    --depth-shift: -60px;
    --curve-drop: 42px;
    --curve-slide: 0px;
    --scale-factor: 0.84;
    --rotate-factor: 16deg;
    --image-scale: 1;
    --panel-opacity: 0.72;
    --image-brightness: 0.76;
    --panel-saturation: 0.88;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 0 376px;
    padding: 18px 18px 20px;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    border: 1px solid rgba(140, 194, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(16, 24, 44, 0.9), rgba(8, 12, 24, 0.92)),
        rgba(14, 20, 36, 0.72);
    backdrop-filter: blur(18px);
    box-shadow:
        0 28px 48px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(128, 185, 255, 0.05);
    transform:
        perspective(2000px)
        translateX(var(--curve-slide))
        translateY(calc(var(--lift) + var(--curve-drop)))
        rotateX(calc(var(--tilt-x) * 0.6))
        rotateY(calc(var(--rotate-factor) + var(--tilt-y)))
        translateZ(var(--depth-shift))
        scale(var(--scale-factor))
        translateZ(0);
    opacity: var(--panel-opacity);
    filter: saturate(var(--panel-saturation));
    transition:
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.38s ease,
        box-shadow 0.38s ease,
        background 0.38s ease,
        opacity 0.38s ease,
        filter 0.38s ease;
    animation: galleryFloat 8.6s ease-in-out infinite;
}

.gallery-panel.is-active {
    --scale-factor: 1.08;
    --rotate-factor: 0deg;
    --depth-shift: 120px;
    --curve-drop: 0px;
    --curve-slide: 0px;
    --panel-opacity: 1;
    --image-brightness: 1;
    --panel-saturation: 1.06;
    z-index: 5;
    border-color: rgba(0, 255, 255, 0.42);
    box-shadow:
        0 36px 72px rgba(0, 0, 0, 0.5),
        0 0 38px rgba(0, 255, 255, 0.18),
        0 0 58px rgba(171, 110, 255, 0.14);
}

.gallery-panel.is-near {
    --panel-opacity: 0.9;
}

.gallery-panel.is-far {
    --panel-opacity: 0.58;
}

.gallery-panel:nth-child(2n) { animation-delay: -1.8s; }
.gallery-panel:nth-child(3n) { animation-delay: -3.2s; }
.gallery-panel:nth-child(5n) { animation-delay: -4.4s; }

.gallery-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,255,255,0.65), rgba(171,110,255,0.1), rgba(0,255,255,0.26));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.52;
    pointer-events: none;
}

.gallery-panel::after {
    content: '';
    position: absolute;
    inset: auto 18px 10px 18px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.18), transparent 70%);
    filter: blur(18px);
    transform: translateZ(-30px) scaleX(0.8);
    opacity: 0.45;
    pointer-events: none;
}

.gallery-panel:hover,
.gallery-panel:focus-visible {
    --lift: -10px;
    --image-scale: 1.08;
    --image-brightness: 1.05;
    --panel-opacity: 1;
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.48),
        0 0 36px rgba(0, 255, 255, 0.16),
        0 0 50px rgba(171, 110, 255, 0.12);
}

.gallery-panel-top,
.gallery-image-frame {
    position: relative;
    z-index: 2;
    transform: translateZ(16px);
}

.gallery-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-family: var(--font-mono);
}

.gallery-status,
.gallery-hud {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gallery-status {
    background: rgba(0, 255, 255, 0.12);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(0,255,255,0.18);
}

.gallery-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #77fff2;
    box-shadow: 0 0 10px rgba(119, 255, 242, 0.9);
}

.gallery-hud {
    color: rgba(210, 226, 255, 0.8);
    background: rgba(255,255,255,0.04);
}

.gallery-image-frame {
    position: relative;
    min-height: 380px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        rgba(255,255,255,0.03);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        inset 0 18px 30px rgba(255,255,255,0.02);
}

.gallery-image-frame img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
    filter: saturate(1.05) contrast(1.04) brightness(var(--image-brightness));
    transform: scale(var(--image-scale));
}

.gallery-panel:hover .gallery-image-frame img,
.gallery-panel:focus-visible .gallery-image-frame img {
    transform: scale(1.08) translateZ(10px);
}

.gallery-image-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 6px 4px;
    transform: translateZ(12px);
    position: relative;
    z-index: 2;
}

.gallery-image-label,
.gallery-image-code {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.gallery-image-label {
    color: #d9e6ff;
}

.gallery-image-code {
    color: var(--accent);
}

.gallery-scanlines,
.gallery-light-sweep,
.gallery-corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gallery-scanlines {
    opacity: 0.14;
    background: repeating-linear-gradient(
        180deg,
        rgba(255,255,255,0.06) 0,
        rgba(255,255,255,0.06) 1px,
        transparent 1px,
        transparent 5px
    );
    mix-blend-mode: screen;
}

.gallery-light-sweep {
    background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.04) 42%, rgba(146, 255, 250, 0.24) 50%, rgba(255,255,255,0.07) 58%, transparent 78%);
    transform: translateX(-140%) skewX(-18deg);
    transition: transform 0.65s ease;
}

.gallery-panel:hover .gallery-light-sweep,
.gallery-panel:focus-visible .gallery-light-sweep {
    transform: translateX(140%) skewX(-18deg);
}

.gallery-corners::before,
.gallery-corners::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 255, 255, 0.36);
}

.gallery-corners::before {
    top: 14px;
    left: 14px;
    border-right: 0;
    border-bottom: 0;
}

.gallery-corners::after {
    right: 14px;
    bottom: 14px;
    border-left: 0;
    border-top: 0;
}

.gallery-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 18px;
}

.gallery-ui-meta {
    flex: 1 1 320px;
    display: grid;
    gap: 12px;
}

.gallery-counter {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: rgba(219, 233, 255, 0.82);
}

.gallery-counter-divider {
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,255,255,0.08), rgba(0,255,255,0.45), rgba(171,110,255,0.28));
}

.gallery-progress-track {
    position: relative;
    width: min(100%, 260px);
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(130, 196, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.gallery-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 16.66%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0,255,255,0.85), rgba(171,110,255,0.8));
    box-shadow: 0 0 18px rgba(0,255,255,0.18);
    transition: width 0.38s ease;
}

.gallery-ui-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px 18px;
}

.gallery-scroll-hint {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    color: rgba(182, 204, 236, 0.64);
}

.gallery-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(158, 196, 255, 0.28);
    background: rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.gallery-dot.is-active {
    transform: scale(1.22);
    border-color: rgba(0,255,255,0.46);
    background: linear-gradient(180deg, rgba(0,255,255,0.9), rgba(171,110,255,0.78));
    box-shadow: 0 0 14px rgba(0,255,255,0.16);
}

.gallery-nav-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gallery-runway-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    color: var(--text-primary);
    box-shadow: 0 10px 28px rgba(0,0,0,0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.gallery-runway-btn:hover,
.gallery-runway-btn:focus-visible {
    transform: translateY(-2px);
    color: var(--accent);
    border-color: rgba(0,255,255,0.3);
    box-shadow: 0 16px 30px rgba(0,0,0,0.28), 0 0 18px rgba(0,255,255,0.12);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 14, 0.72);
    backdrop-filter: blur(14px);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 18px;
    padding: 24px 20px;
    border-radius: 28px;
    border: 1px solid rgba(130, 196, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(12, 18, 34, 0.88), rgba(8, 12, 24, 0.94));
    box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 34px rgba(0,255,255,0.1);
    transform: scale(0.94) translateY(18px);
    transition: transform 0.3s ease;
}

.gallery-lightbox.is-open .gallery-lightbox-dialog {
    transform: scale(1) translateY(0);
}

.gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.gallery-lightbox-nav {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-lightbox-nav:hover {
    transform: scale(1.05);
    color: var(--accent);
    border-color: rgba(0,255,255,0.3);
}

.gallery-lightbox-visual {
    position: relative;
    width: min(100%, 920px);
    aspect-ratio: 597 / 418;
    min-height: 0;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.gallery-lightbox-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 60%);
}

.gallery-lightbox-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,0.04) 35%, rgba(124, 255, 247, 0.15) 50%, rgba(255,255,255,0.05) 64%, transparent 84%);
    transform: translateX(-120%) skewX(-16deg);
    animation: gallerySweep 5.5s ease-in-out infinite;
    pointer-events: none;
}

.gallery-lightbox-copy {
    grid-column: 2;
    display: flex;
    justify-content: center;
    padding-top: 14px;
}

.gallery-lightbox-caption {
    color: #d8e6ff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

[data-theme="light"] .gallery-ambient {
    opacity: 0.5;
}

[data-theme="light"] .gallery-ambient-a {
    background: radial-gradient(circle at 25% 25%, rgba(0, 214, 255, 0.18), transparent 34%);
}

[data-theme="light"] .gallery-ambient-b {
    background: radial-gradient(circle at 80% 10%, rgba(165, 98, 255, 0.18), transparent 30%);
}

[data-theme="light"] .gallery-grid-texture {
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(45, 110, 173, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 110, 173, 0.1) 1px, transparent 1px);
}

[data-theme="light"] .gallery-kicker {
    border-color: rgba(0, 189, 232, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 247, 255, 0.76));
    color: #0087a8;
    box-shadow: 0 12px 30px rgba(93, 171, 255, 0.14);
}

[data-theme="light"] .gallery-title {
    color: #10233f;
    text-shadow: 0 10px 30px rgba(80, 177, 255, 0.16);
}

[data-theme="light"] .gallery-panel {
    border-color: rgba(109, 175, 242, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 246, 255, 0.92)),
        rgba(255, 255, 255, 0.76);
    box-shadow:
        0 22px 44px rgba(75, 112, 170, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.58),
        0 0 0 1px rgba(109, 175, 242, 0.08);
}

[data-theme="light"] .gallery-panel.is-active {
    border-color: rgba(0, 194, 224, 0.42);
    box-shadow:
        0 28px 56px rgba(76, 111, 168, 0.2),
        0 0 34px rgba(0, 194, 224, 0.12),
        0 0 50px rgba(146, 105, 255, 0.1);
}

[data-theme="light"] .gallery-panel::after {
    background: radial-gradient(circle, rgba(0, 194, 224, 0.16), transparent 70%);
    opacity: 0.4;
}

[data-theme="light"] .gallery-panel:hover,
[data-theme="light"] .gallery-panel:focus-visible {
    border-color: rgba(0, 194, 224, 0.36);
    box-shadow:
        0 24px 52px rgba(76, 111, 168, 0.22),
        0 0 30px rgba(0, 194, 224, 0.12),
        0 0 44px rgba(146, 105, 255, 0.1);
}

[data-theme="light"] .gallery-status {
    background: rgba(0, 194, 224, 0.1);
    color: #0087a8;
    box-shadow: inset 0 0 0 1px rgba(0, 194, 224, 0.16);
}

[data-theme="light"] .gallery-status::before {
    background: #00c9da;
    box-shadow: 0 0 10px rgba(0, 201, 218, 0.55);
}

[data-theme="light"] .gallery-hud {
    color: rgba(16, 35, 63, 0.72);
    background: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .gallery-image-frame {
    border-color: rgba(109, 175, 242, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(238, 246, 255, 0.48));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .gallery-image-label {
    color: #183155;
}

[data-theme="light"] .gallery-image-code {
    color: #0087a8;
}

[data-theme="light"] .gallery-scanlines {
    opacity: 0.1;
    background: repeating-linear-gradient(
        180deg,
        rgba(24, 49, 85, 0.05) 0,
        rgba(24, 49, 85, 0.05) 1px,
        transparent 1px,
        transparent 5px
    );
}

[data-theme="light"] .gallery-light-sweep {
    background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.08) 42%, rgba(0, 194, 224, 0.16) 50%, rgba(255,255,255,0.08) 58%, transparent 78%);
}

[data-theme="light"] .gallery-corners::before,
[data-theme="light"] .gallery-corners::after {
    border-color: rgba(0, 194, 224, 0.28);
}

[data-theme="light"] .gallery-counter {
    color: rgba(24, 49, 85, 0.78);
}

[data-theme="light"] .gallery-progress-track {
    background: rgba(24, 49, 85, 0.08);
    border-color: rgba(109, 175, 242, 0.14);
}

[data-theme="light"] .gallery-scroll-hint {
    color: rgba(24, 49, 85, 0.56);
}

[data-theme="light"] .gallery-dot {
    border-color: rgba(109, 175, 242, 0.22);
    background: rgba(255,255,255,0.54);
}

[data-theme="light"] .gallery-runway-btn {
    border-color: rgba(109, 175, 242, 0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(240,246,255,0.72));
    color: #183155;
    box-shadow: 0 12px 28px rgba(76, 111, 168, 0.14);
}

[data-theme="light"] .gallery-runway-btn:hover,
[data-theme="light"] .gallery-runway-btn:focus-visible {
    color: #0087a8;
}

[data-theme="light"] .gallery-lightbox-backdrop {
    background: rgba(232, 240, 250, 0.64);
}

[data-theme="light"] .gallery-lightbox-dialog {
    border-color: rgba(109, 175, 242, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.96));
    box-shadow: 0 30px 80px rgba(76, 111, 168, 0.22), 0 0 34px rgba(0, 194, 224, 0.08);
}

[data-theme="light"] .gallery-lightbox-close,
[data-theme="light"] .gallery-lightbox-nav {
    border-color: rgba(109, 175, 242, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: #183155;
}

[data-theme="light"] .gallery-lightbox-nav:hover {
    color: #0087a8;
    border-color: rgba(0, 194, 224, 0.28);
}

[data-theme="light"] .gallery-lightbox-visual {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(109, 175, 242, 0.16);
}

[data-theme="light"] .gallery-lightbox-visual img {
    background: radial-gradient(circle at center, rgba(0, 194, 224, 0.08), transparent 60%);
}

[data-theme="light"] .gallery-lightbox-reflection {
    background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,0.1) 35%, rgba(0, 194, 224, 0.12) 50%, rgba(255,255,255,0.08) 64%, transparent 84%);
}

[data-theme="light"] .gallery-lightbox-caption {
    color: #183155;
}

@keyframes galleryFloat {
    0%, 100% {
        transform:
            perspective(1800px)
            rotateX(var(--tilt-x))
            rotateY(var(--tilt-y))
            translateY(calc(var(--lift) + 0px))
            translateZ(0);
    }
    50% {
        transform:
            perspective(1800px)
            rotateX(var(--tilt-x))
            rotateY(var(--tilt-y))
            translateY(calc(var(--lift) - 8px))
            translateZ(0);
    }
}

@keyframes gallerySweep {
    0%, 100% { transform: translateX(-120%) skewX(-16deg); }
    50% { transform: translateX(120%) skewX(-16deg); }
}

@media (max-width: 1100px) {
    .gallery-scroll-zone {
        height: calc(112vh - 30px);
    }

    .gallery-track {
        gap: 24px;
        padding: 14px calc(50vw - 168px) 86px;
    }

    .gallery-panel {
        flex-basis: 336px;
    }

    .gallery-stage {
        height: calc(100vh - 210px);
    }

    .gallery-lightbox-dialog {
        grid-template-columns: 54px minmax(0, 1fr) 54px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding-bottom: 10px;
    }

    .contact-section {
        padding-top: 48px;
    }

    .gallery-scroll-zone {
        height: auto;
    }

    .gallery-stage {
        position: relative;
        top: 0;
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .gallery-track {
        gap: 18px;
        padding: 10px 10px 18px;
    }

    .gallery-panel {
        flex-basis: min(82vw, 322px);
        scroll-snap-align: center;
        --curve-drop: 0px !important;
        --curve-slide: 0px !important;
        --scale-factor: 1 !important;
        --rotate-factor: 0deg !important;
        --depth-shift: 0px !important;
        --panel-opacity: 1 !important;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-image-frame,
    .gallery-image-frame img {
        min-height: 300px;
    }

    .gallery-ui {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 10px;
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
    }

    .gallery-ui-controls {
        justify-content: space-between;
    }

    .gallery-headline {
        gap: 10px;
    }

    .gallery-progress-track {
        width: 100%;
    }

    .gallery-lightbox {
        padding: 14px;
    }

    .gallery-lightbox-dialog {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 14px;
    }

    .gallery-lightbox-nav {
        width: 48px;
        height: 48px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .gallery-lightbox-prev { left: 10px; }
    .gallery-lightbox-next { right: 10px; }

    .gallery-lightbox-visual,
    .gallery-lightbox-visual img {
        width: 100%;
        max-width: 100%;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-panel,
    .gallery-light-sweep,
    .gallery-image-frame img,
    .gallery-lightbox,
    .gallery-lightbox-dialog,
    .gallery-lightbox-reflection {
        animation: none !important;
        transition: none !important;
    }

    .gallery-panel {
        transform: none !important;
    }

    .gallery-track {
        transform: none !important;
    }
}

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

@media (max-width: 768px) {
    .life-line { left: 20px; }
    .subtitle { font-size: 2.2rem; line-height: 1.12; }
    .about-flex { flex-direction: column; }

    .project-card-inner, .project-card-inner.reverse { flex-direction: column; }
    .project-visual { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.05); min-height: 250px; }
    .proof-inner { flex-direction: column; }
    .proof-right { border-left: none; border-top: 1px solid rgba(255,255,255,0.05); padding-left: 0; padding-top: 30px; margin-top: 10px; }

    .hero-section .min100vh {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 28px;
        padding-top: 110px;
        padding-bottom: 40px;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .hero-content .reveal-hero,
    .hero-content .anim-words,
    .hero-content .hero-ctas,
    .hero-content .scroll-bottom {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content .section-title {
        justify-content: center;
        display: inline-block;
    }

    .hero-content .subtitle {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        word-break: break-word;
    }

    .anim-words {
        align-items: center;
        gap: 8px;
    }

    .word-slider {
        min-width: 0;
        width: min(100%, 290px);
        margin: 0 auto;
    }

    .word-slider .word {
        white-space: normal;
        text-align: center;
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        line-height: 1.2;
    }

    .hero-image {
        width: min(76vw, 290px);
        height: min(76vw, 290px);
        margin-left: 0;
    }

    .diamond-container {
        transform: none;
    }

    .availability-status {
        top: -12px;
        right: 50%;
        transform: translateX(50%);
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn-group .btn,
    .hero-btn-group .resume-btn {
        width: min(100%, 320px);
        justify-content: center;
    }

    .scroll-bottom {
        margin-top: 30px !important;
    }

    .content-between {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .footer-bottom-section .container,
    .footer-bottom {
        width: 100%;
    }

    .visitors-badge {
        justify-content: center;
        flex-wrap: wrap;
    }

    .viewer-count-wrapper {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .subtitle {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .section-title {
        font-size: 0.82rem;
        letter-spacing: 1.4px;
    }

    .hero-image {
        width: min(82vw, 250px);
        height: min(82vw, 250px);
    }

    .availability-status {
        font-size: 0.68rem;
        padding: 6px 10px;
        gap: 8px;
    }

    .word-slider {
        width: min(100%, 250px);
    }

    .word-slider .word {
        font-size: 1rem;
    }

    .copyright {
        font-size: 0.74rem;
        line-height: 1.5;
    }

    .visitors-badge {
        padding: 8px 12px;
    }

    .honors-tab {
        padding: 18px 7px;
        gap: 10px;
        border-radius: 0 6px 6px 0;
        box-shadow: 6px 0 18px var(--accent-glow);
    }

    .honors-tab:hover {
        padding-left: 11px;
    }

    .honors-tab span {
        font-size: 0.62rem;
        letter-spacing: 1.2px;
    }

    .honors-tab svg {
        width: 15px;
        height: 15px;
    }
}

/* --- Visitor Counter --- */
#visitor-count {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.eye-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* --- Availability Status --- */
.availability-status {
    position: absolute;
    top: -48px;
    right: -30px;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: #4ade80;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

[data-theme="light"] .availability-status {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #22c55e;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: inherit;
    border-radius: inherit;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 992px) {
    .availability-status {
        top: -26px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* --- Chatbot UI --- */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--accent-glow);
    z-index: 2500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-trigger:hover { transform: scale(1.1) rotate(5deg); }

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    z-index: 2500;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: chatSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chatbot-window.active { display: flex; }

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

.chat-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.status.online::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.message.ai {
    background: rgba(0, 255, 255, 0.05);
    align-self: flex-start;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.message.user {
    background: var(--accent);
    color: var(--bg-color);
    align-self: flex-end;
}

.qa-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    margin: 4px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
}

#send-btn {
    background: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--bg-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite;
}

@keyframes typingPulse {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}
