/* ============================================
   MOMENTUMMIND - Marco Glamngiw Style Design
   Created by Marco Glamngiw - Digital Architect
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Theme blend variable (0 = dark, 1 = light) - controlled by JS */
    --theme-blend: 0;

    /* Base colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(17, 17, 17, 0.5);
    --bg-card: rgba(22, 22, 22, 0.4);
    --accent: #c41e3a;
    --accent-hover: #e63950;
    --accent-dark: #8b0000;
    --accent-glow: rgba(196, 30, 58, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-dim: #555555;
    --border: #222222;
    --border-light: #333333;

    /* Light mode target colors */
    --light-bg: #f0e8e8;
    --light-text: #1a1a1a;
    --light-text-secondary: #444444;

    /* ===== MODERN RESPONSIVE SYSTEM ===== */
    /* Fluid typography - automatically scales between mobile and desktop */
    --fs-hero: clamp(2rem, 8vw, 5rem);
    --fs-h1: clamp(1.75rem, 5vw, 3.5rem);
    --fs-h2: clamp(1.5rem, 4vw, 2.5rem);
    --fs-h3: clamp(1.1rem, 2.5vw, 1.5rem);
    --fs-body: clamp(0.875rem, 1.5vw, 1rem);
    --fs-small: clamp(0.7rem, 1.2vw, 0.85rem);
    --fs-tiny: clamp(0.6rem, 1vw, 0.75rem);

    /* Fluid spacing */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 2rem);
    --space-lg: clamp(1.5rem, 5vw, 4rem);
    --space-xl: clamp(2rem, 8vw, 6rem);
    --space-section: clamp(3rem, 10vw, 8rem);

    /* Fluid container */
    --container-width: min(90vw, 1400px);
    --container-narrow: min(85vw, 900px);

    /* Fluid card sizes */
    --card-padding: clamp(0.75rem, 2vw, 1.5rem);
    --card-radius: clamp(8px, 1.5vw, 16px);

    /* Dynamic viewport height for mobile browsers */
    --vh: 1vh;
}

/* ============================================
   DYNAMIC THEME BLEND (smooth scroll transition)
   Uses CSS custom properties for smooth interpolation
   ============================================ */

/* Background overlay - DISABLED for full dark mode
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100%;
    height: 100%;
    background: var(--light-bg);
    opacity: var(--theme-blend);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}
*/

/* Text color transitions - darker text as we scroll */
.section-title,
.project-title,
.tech-name,
.stat-number,
.hero-title,
h1, h2, h3 {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Add text shadow for readability on light background */
body[style*="--theme-blend: 0."] .section-title,
body[style*="--theme-blend: 0."] .project-title,
body[style*="--theme-blend: 0."] h2 {
    text-shadow: none;
}

/* Footer and bottom sections need dark text when light theme is active */
footer,
.contact-section {
    position: relative;
}

/* Ensure content stays above the overlay */
main, section, header, footer, .container {
    position: relative;
    z-index: 2;
}

#particle-canvas {
    z-index: 1 !important;
}

/* ============================================
   SMOOTH THEME TRANSITIONS
   All elements that change with light-active class
   ============================================ */

/* Cards and containers */
.project-card,
.tech-card,
.highlight-item,
.projects-grid,
.tech-grid,
.footer-link,
.tag,
header,
.orbit-center-content,
.orbit-item,
.project-detail-section,
.detail-block,
.detail-features,
.detail-tech,
.detail-stats,
.paper-link {
    transition: background 0.8s ease, border-color 0.8s ease, backdrop-filter 0.5s ease;
}

/* Text elements */
.highlight-text,
.nav-link,
.copyright,
.signature,
.orbit-center .orbit-name,
.orbit-item .orbit-name,
.orbit-item .orbit-sub,
.project-detail-title,
.detail-block h3,
.detail-features h4,
.detail-tech h4,
.detail-block p,
.stat-label,
.stat-value,
.feature-list li,
.paper-title,
.paper-doi,
.section-label,
.motto-text,
.marquee-text,
.section-title,
.project-title,
.tech-name {
    transition: color 0.8s ease;
}

/* Light active state - when scrolled past 60% */
body.light-active .project-card,
body.light-active .tech-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

body.light-active .highlight-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
}

body.light-active .highlight-item:hover {
    background: rgba(255, 255, 255, 0.95);
}

body.light-active .highlight-text {
    color: #333333;
}

body.light-active .highlight-item:hover .highlight-text {
    color: #1a1a1a;
}

body.light-active .projects-grid,
body.light-active .tech-grid {
    background: rgba(200, 180, 180, 0.4);
}

body.light-active .footer-link {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(200, 180, 180, 0.5);
}

body.light-active .tag {
    background: rgba(196, 30, 58, 0.2);
    color: var(--accent-dark);
}

body.light-active header {
    background: rgba(240, 232, 232, 0.9);
}

body.light-active .nav-link {
    color: #1a1a1a;
}

body.light-active .copyright,
body.light-active .signature {
    color: #444444;
}

body.light-active .signature span {
    color: var(--accent);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

::selection {
    background: var(--accent);
    color: white;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-primary);
}

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

.loader-line {
    width: 120px;
    height: 2px;
    background: var(--border);
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loader-slide 1s ease-out forwards;
}

@keyframes loader-slide {
    to { left: 0; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-hover);
}

@media (hover: none) {
    .cursor, .cursor-dot { display: none; }
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s ease;
}

@media (hover: hover) {
    body { cursor: none; }
    a, button { cursor: none; }
}

/* ============================================
   CONTAINER - Fluid
   ============================================ */
.container {
    width: var(--container-width);
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   HEADER - Fluid
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-sm) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.nav-links a {
    font-size: var(--fs-tiny);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

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

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

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: var(--space-sm);
}

.lang-toggle:hover {
    border-color: var(--accent);
    background: rgba(196, 30, 58, 0.1);
}

.lang-option {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.lang-option.active {
    color: var(--accent);
}

.lang-option:hover {
    color: var(--text-primary);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* Header Profile Image (inside .logo) */
.header-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo:hover .header-profile-img {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(196, 30, 58, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-xl) 0 var(--space-lg);
    overflow: hidden;
}

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

.hero-label {
    display: inline-block;
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: clamp(2px, 0.3vw, 3px);
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-hero);
    font-weight: 700;
    letter-spacing: clamp(-1px, -0.3vw, -3px);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

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

/* Text Carousel - Fluid */
.text-carousel {
    --carousel-height: clamp(50px, 10vw, 80px);
    height: var(--carousel-height);
    overflow: hidden;
    position: relative;
}

.text-carousel-inner {
    animation: carousel 8s ease-in-out infinite;
}

.carousel-item {
    height: var(--carousel-height);
    display: flex;
    align-items: center;
}

@keyframes carousel {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(calc(var(--carousel-height) * -1)); }
    50%, 70% { transform: translateY(calc(var(--carousel-height) * -2)); }
    75%, 95% { transform: translateY(calc(var(--carousel-height) * -3)); }
    100% { transform: translateY(0); }
}

.hero-description {
    max-width: min(90%, 500px);
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

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

/* Hero Stats - Fluid */
.hero-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-stat {
    position: relative;
}

.hero-stat::before {
    content: '';
    position: absolute;
    left: calc(var(--space-md) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: clamp(25px, 5vw, 40px);
    background: var(--border-light);
}

.hero-stat:first-child::before {
    display: none;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

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

.stat-text {
    font-size: var(--fs-tiny);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-xs);
}

/* Hero Background Line */
.hero-line {
    position: absolute;
    right: 10%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
}

/* ============================================
   NEURAL HERO SECTION
   Interactive 3D node network with parallax
   ============================================ */
.hero-neural {
    min-height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0d0d0d 100%);
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    z-index: 3;
}

/* Parallax depth layers */
.neural-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.layer-back {
    z-index: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(196, 30, 58, 0.05) 0%, transparent 40%);
}

.layer-mid {
    z-index: 1;
}

.layer-front {
    z-index: 2;
}

/* Floating Node Labels */
.floating-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.float-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease-out;
}

.float-node .node-icon {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.float-node.active .node-icon {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.float-node.active .node-label {
    color: rgba(255, 255, 255, 0.7);
}

.float-node .node-pulse {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 15px rgba(196, 30, 58, 0);
        opacity: 0.6;
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-neural .hero-content {
    max-width: 800px;
    text-align: center;
    padding: 40px;
}

/* Hero Title Wrapper */
.hero-title-wrapper {
    margin-bottom: 30px;
}

.hero-label-neural {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

/* Glitch Title Effect */
.hero-title-glitch {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: -5px;
    line-height: 0.9;
    color: var(--text-primary);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-title-glitch::before,
.hero-title-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero-title-glitch::before {
    color: #ff0040;
    animation: glitchLeft 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.hero-title-glitch::after {
    color: #00ffff;
    animation: glitchRight 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchLeft {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    91% { transform: translate(-3px, 1px); opacity: 0.8; }
    92% { transform: translate(3px, -1px); opacity: 0.8; }
    93% { transform: translate(0); opacity: 0; }
}

@keyframes glitchRight {
    0%, 85%, 100% { transform: translate(0); opacity: 0; }
    86% { transform: translate(3px, 1px); opacity: 0.8; }
    87% { transform: translate(-3px, -1px); opacity: 0.8; }
    88% { transform: translate(0); opacity: 0; }
}

.hero-title-sub {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 300;
    letter-spacing: 15px;
    line-height: 1;
    margin-top: -10px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.hero-title-sub .title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Tagline */
.hero-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.tagline-carousel {
    height: 1.4em;
    overflow: hidden;
}

.tagline-track {
    animation: taglineScroll 8s ease-in-out infinite;
}

.tagline-item {
    display: block;
    height: 1.4em;
    line-height: 1.4em;
    color: var(--accent);
    font-weight: 600;
}

@keyframes taglineScroll {
    0%, 22% { transform: translateY(0); }
    25%, 47% { transform: translateY(-1.4em); }
    50%, 72% { transform: translateY(-2.8em); }
    75%, 97% { transform: translateY(-4.2em); }
    100% { transform: translateY(0); }
}

/* Terminal Style Description */
.hero-terminal {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 50px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    margin-left: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-line .prompt {
    color: var(--accent);
    margin-right: 8px;
}

.terminal-line .command {
    color: #87ceeb;
}

.terminal-line .args {
    color: var(--text-secondary);
}

.terminal-line .success {
    color: #27ca40;
    margin-right: 8px;
}

.terminal-line .value {
    color: #f0e68c;
}

.terminal-line .value.highlight {
    color: var(--accent);
    font-weight: 600;
}

.terminal-line.output {
    color: var(--text-secondary);
}

.terminal-line.blink {
    animation: terminalBlink 1s ease-in-out infinite;
}

@keyframes terminalBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Stats Grid */
.hero-stats-neural {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-5px);
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0.7;
}

.stat-card .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card .stat-value .accent {
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.scroll-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Responsive Neural Hero */
@media (max-width: 1024px) {
    .hero-stats-neural {
        grid-template-columns: repeat(2, 1fr);
    }

    .float-node {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title-glitch {
        font-size: clamp(2.5rem, 15vw, 4rem);
        letter-spacing: -2px;
    }

    .hero-title-sub {
        font-size: clamp(2rem, 12vw, 3rem);
        letter-spacing: 8px;
    }

    .hero-tagline {
        flex-direction: column;
        gap: 5px;
        font-size: 1rem;
    }

    .hero-terminal {
        margin: 0 20px 40px;
    }

    .hero-stats-neural {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-neural {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   PARTICLE VORTEX AI CORE
   Central sphere with swirling particles
   ============================================ */
.vortex-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#vortex-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Central AI Core - MUCH BIGGER */
.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.core-sphere {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(196, 30, 58, 0.35) 25%,
        rgba(196, 30, 58, 0.2) 50%,
        rgba(139, 0, 0, 0.3) 75%,
        rgba(10, 10, 10, 0.9) 100%
    );
    box-shadow:
        0 0 100px rgba(196, 30, 58, 0.6),
        0 0 200px rgba(196, 30, 58, 0.4),
        0 0 300px rgba(196, 30, 58, 0.2),
        inset 0 0 100px rgba(196, 30, 58, 0.4);
    animation: corePulse 4s ease-in-out infinite;
}

.core-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 150, 170, 0.9) 30%,
        rgba(255, 100, 120, 0.8) 50%,
        rgba(196, 30, 58, 0.6) 100%
    );
    box-shadow:
        0 0 50px rgba(255, 255, 255, 0.7),
        0 0 100px rgba(255, 100, 120, 0.5);
    animation: coreInnerPulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 100px rgba(196, 30, 58, 0.6),
            0 0 200px rgba(196, 30, 58, 0.4),
            0 0 300px rgba(196, 30, 58, 0.2),
            inset 0 0 100px rgba(196, 30, 58, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 0 80px rgba(196, 30, 58, 0.6),
            0 0 160px rgba(196, 30, 58, 0.4),
            inset 0 0 80px rgba(196, 30, 58, 0.4);
    }
}

@keyframes coreInnerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Rotating Rings - BIGGER */
.core-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.3);
    transform-style: preserve-3d;
}

.ring-1 {
    width: 380px;
    height: 380px;
    margin-top: -190px;
    margin-left: -190px;
    animation: ringRotate1 10s linear infinite;
    border-color: rgba(196, 30, 58, 0.5);
}

.ring-2 {
    width: 480px;
    height: 480px;
    margin-top: -240px;
    margin-left: -240px;
    animation: ringRotate2 15s linear infinite reverse;
    border-color: rgba(196, 30, 58, 0.35);
}

.ring-3 {
    width: 580px;
    height: 580px;
    margin-top: -290px;
    margin-left: -290px;
    animation: ringRotate3 20s linear infinite;
    border-color: rgba(196, 30, 58, 0.2);
}

@keyframes ringRotate1 {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes ringRotate2 {
    0% { transform: rotateX(70deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes ringRotate3 {
    0% { transform: rotateX(80deg) rotateY(-10deg) rotateZ(0deg); }
    100% { transform: rotateX(80deg) rotateY(-10deg) rotateZ(360deg); }
}

/* Core Glow - BIGGER */
.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(196, 30, 58, 0.25) 0%,
        rgba(196, 30, 58, 0.15) 30%,
        rgba(196, 30, 58, 0.05) 50%,
        transparent 70%
    );
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Core Pulse Wave - BIGGER */
.core-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.5);
    animation: pulseWave 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulseWave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Orbiting Data Streams - BIGGER */
.data-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(196, 30, 58, 0.25);
    transform-style: preserve-3d;
}

.orbit-1 {
    width: 700px;
    height: 700px;
    margin-top: -350px;
    margin-left: -350px;
    animation: orbitSpin 25s linear infinite;
}

.orbit-2 {
    width: 900px;
    height: 900px;
    margin-top: -450px;
    margin-left: -450px;
    animation: orbitSpin 35s linear infinite reverse;
}

.orbit-3 {
    width: 1100px;
    height: 1100px;
    margin-top: -550px;
    margin-left: -550px;
    animation: orbitSpin 45s linear infinite;
}

@keyframes orbitSpin {
    0% { transform: rotateX(75deg) rotateZ(0deg); }
    100% { transform: rotateX(75deg) rotateZ(360deg); }
}

.orbit-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
}

.orbit-1 .orbit-particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-1 .orbit-particle:nth-child(2) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-1 .orbit-particle:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); }

.orbit-2 .orbit-particle:nth-child(1) { top: 25%; left: 10%; }
.orbit-2 .orbit-particle:nth-child(2) { bottom: 25%; right: 10%; }

.orbit-3 .orbit-particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-3 .orbit-particle:nth-child(2) { top: 50%; left: 0; transform: translateY(-50%); }
.orbit-3 .orbit-particle:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-3 .orbit-particle:nth-child(4) { top: 50%; right: 0; transform: translateY(-50%); }

/* Vortex Text Overlay */
.vortex-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.vortex-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.vortex-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}

.vortex-title .title-momentum {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -3px;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.vortex-title .title-mind {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 300;
    letter-spacing: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b7a 50%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease forwards 0.7s, gradientShift 5s ease-in-out infinite;
    opacity: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vortex-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* Responsive Vortex */
@media (max-width: 768px) {
    .core-sphere {
        width: 80px;
        height: 80px;
    }

    .core-inner {
        width: 25px;
        height: 25px;
    }

    .ring-1 {
        width: 120px;
        height: 120px;
        margin-top: -60px;
        margin-left: -60px;
    }

    .ring-2 {
        width: 150px;
        height: 150px;
        margin-top: -75px;
        margin-left: -75px;
    }

    .ring-3 {
        width: 180px;
        height: 180px;
        margin-top: -90px;
        margin-left: -90px;
    }

    .data-orbit {
        display: none;
    }

    .vortex-title .title-momentum {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .vortex-title .title-mind {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        letter-spacing: 10px;
    }

    .vortex-tagline {
        font-size: 0.8rem;
    }
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section {
    padding: 140px 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-header {
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

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

/* ============================================
   PROJECTS SECTION - 3D CAROUSEL / DIAPROJEKTOR
   ============================================ */
.projects-section {
    background: rgba(17, 17, 17, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Carousel Container - Fluid */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    perspective: 2000px;
    overflow: visible;
}

/* Carousel Track - 3D Space - Fluid */
.carousel-track {
    position: relative;
    width: 100%;
    height: clamp(400px, 70vw, 650px);
    transform-style: preserve-3d;
}

/* Individual Slide */
.carousel-slide {
    position: absolute;
    width: 700px;
    max-width: 85vw;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) translateZ(-400px) rotateY(0deg) scale(0.7);
    opacity: 0.3;
    transition: all 0.4s ease-out;
    pointer-events: none;
    filter: blur(2px) brightness(0.5);
}

/* Slide Content Card - Fluid */
.slide-content {
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    /* 3D Card Effect */
    background:
        linear-gradient(135deg, rgba(60, 60, 60, 0.5) 0%, transparent 50%),
        linear-gradient(315deg, rgba(10, 10, 10, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, rgba(22, 22, 22, 0.98) 100%);
    border: 1px solid rgba(100, 100, 100, 0.3);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Projector Light Shine - REMOVED */

/* Top highlight edge */
.slide-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

/* Active Slide - Front and Center */
.carousel-slide.active {
    transform: translateX(-50%) translateY(-50%) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    filter: blur(0) brightness(1);
}

.carousel-slide.active .slide-content {
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(196, 30, 58, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(150, 150, 150, 0.4);
}

/* Previous Slide - Left Side */
.carousel-slide.prev {
    transform: translateX(-130%) translateY(-50%) translateZ(-300px) rotateY(35deg) scale(0.75);
    opacity: 0.5;
    z-index: 5;
    filter: blur(1px) brightness(0.6);
}

/* Next Slide - Right Side */
.carousel-slide.next {
    transform: translateX(30%) translateY(-50%) translateZ(-300px) rotateY(-35deg) scale(0.75);
    opacity: 0.5;
    z-index: 5;
    filter: blur(1px) brightness(0.6);
}

/* Far Previous - Hidden Left */
.carousel-slide.far-prev {
    transform: translateX(-200%) translateY(-50%) translateZ(-600px) rotateY(50deg) scale(0.5);
    opacity: 0.2;
    z-index: 1;
    filter: blur(4px) brightness(0.3);
}

/* Far Next - Hidden Right */
.carousel-slide.far-next {
    transform: translateX(100%) translateY(-50%) translateZ(-600px) rotateY(-50deg) scale(0.5);
    opacity: 0.2;
    z-index: 1;
    filter: blur(4px) brightness(0.3);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(25, 25, 25, 0.9) 100%);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-nav:hover {
    background: linear-gradient(135deg, rgba(80, 40, 50, 0.9) 0%, rgba(50, 20, 30, 0.95) 100%);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(196, 30, 58, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 50;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(80, 80, 80, 0.5);
    border: 1px solid rgba(120, 120, 120, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(120, 120, 120, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
    transform: scale(1.3);
}

/* Projector Light Effect - REMOVED */

/* Responsive - Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .carousel-slide {
        width: 800px;
    }

    .carousel-track {
        height: 700px;
    }

    .slide-content {
        padding: 50px;
    }
}

/* Responsive - Desktop (1024px - 1400px) */
@media (max-width: 1400px) {
    .carousel-container {
        padding: 50px 70px;
    }
}

/* Responsive - Tablet Landscape (1024px) */
@media (max-width: 1024px) {
    .carousel-container {
        padding: 40px 60px;
    }

    .carousel-track {
        height: 620px;
    }

    .carousel-slide {
        width: 580px;
    }

    .slide-content {
        padding: 35px;
    }

    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .carousel-slide.prev {
        transform: translateX(-120%) translateY(-50%) translateZ(-250px) rotateY(30deg) scale(0.7);
    }

    .carousel-slide.next {
        transform: translateX(20%) translateY(-50%) translateZ(-250px) rotateY(-30deg) scale(0.7);
    }
}

/* Responsive - Tablet Portrait (768px) */
@media (max-width: 768px) {
    .carousel-container {
        padding: 30px 15px;
    }

    .carousel-track {
        height: auto;
        min-height: 520px;
    }

    .carousel-slide {
        width: 85vw;
        max-width: 450px;
    }

    .slide-content {
        padding: 25px;
    }

    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    /* Simplify 3D effect on tablet */
    .carousel-slide.prev {
        transform: translateX(-85%) translateY(-50%) translateZ(-150px) rotateY(20deg) scale(0.65);
        opacity: 0.4;
    }

    .carousel-slide.next {
        transform: translateX(-15%) translateY(-50%) translateZ(-150px) rotateY(-20deg) scale(0.65);
        opacity: 0.4;
    }

    .carousel-slide.far-prev,
    .carousel-slide.far-next {
        opacity: 0;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-desc {
        font-size: 0.9rem;
    }

    .carousel-indicators {
        margin-top: 25px;
        gap: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Responsive - Mobile Large (480px) */
@media (max-width: 480px) {
    .carousel-container {
        padding: 20px 10px;
        perspective: 1500px;
    }

    .carousel-track {
        min-height: 480px;
    }

    .carousel-slide {
        width: 90vw;
        max-width: 340px;
    }

    .slide-content {
        padding: 20px;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .carousel-prev {
        left: 2px;
    }

    .carousel-next {
        right: 2px;
    }

    /* Hide side slides on small mobile */
    .carousel-slide.prev,
    .carousel-slide.next {
        opacity: 0.25;
        transform: translateX(-50%) translateY(-50%) translateZ(-200px) scale(0.5);
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .feature-item {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .metric {
        padding: 8px 12px;
    }

    .metric-value {
        font-size: 1.1rem;
    }

    .metric-label {
        font-size: 0.65rem;
    }

    .tech-tag {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .carousel-indicators {
        margin-top: 20px;
        gap: 8px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* Hide video on very small screens */
    .project-video {
        max-height: 150px;
    }
}

/* Responsive - Mobile Small (360px) */
@media (max-width: 360px) {
    .carousel-container {
        padding: 15px 5px;
    }

    .carousel-track {
        min-height: 450px;
    }

    .carousel-slide {
        width: 95vw;
        max-width: 300px;
    }

    .slide-content {
        padding: 15px;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-features {
        display: none;
    }

    .slide-content .project-metrics {
        gap: 10px;
    }

    .carousel-slide[data-index="0"] .project-features {
        display: none;
    }
}

/* Slide Content Styles - Project Elements */
.slide-content .project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.slide-content .project-metrics {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.slide-content .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.project-number {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.status-live {
    background: rgba(196, 30, 58, 0.15);
    color: var(--accent);
    border: 1px solid rgba(196, 30, 58, 0.3);
    animation: live-badge-glow 2s ease-in-out infinite;
    position: relative;
}

.status-live::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: rgba(196, 30, 58, 0.4);
    border-radius: 6px;
    z-index: -1;
    animation: live-badge-pulse 2s ease-in-out infinite;
    filter: blur(8px);
}

.status-live .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

@keyframes dot-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8);
        box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
    }
}

@keyframes live-badge-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(196, 30, 58, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(196, 30, 58, 0.5);
    }
}

@keyframes live-badge-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.status-ready {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.status-dev {
    background: rgba(255, 180, 0, 0.1);
    color: #ffb400;
    border: 1px solid rgba(255, 180, 0, 0.3);
}

.project-title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h2);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.carousel-slide.active .project-title {
    color: var(--accent);
}

.project-desc {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.project-metrics {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.metric {
    text-align: left;
    padding: var(--card-padding);
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.3) 0%, rgba(30, 30, 30, 0.4) 100%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(80, 80, 80, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-slide.active .metric {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.4) 0%, rgba(45, 45, 45, 0.5) 100%);
    border-color: rgba(150, 150, 150, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 15px rgba(0, 0, 0, 0.3);
}

.metric-value {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.metric-value.counting {
    color: var(--accent);
}

.carousel-slide.active .metric-value {
    transform: scale(1.1);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.metric-label {
    font-size: var(--fs-tiny);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--space-xs);
}

/* Project Features List - Fluid */
.project-features {
    margin: var(--space-sm) 0 var(--space-md) 0;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.feature-icon {
    color: var(--accent);
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Project Video Player */
.project-video {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(196, 30, 58, 0.3);
    z-index: 2;
}

.project-video video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.project-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-video:hover .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.project-video .play-icon {
    font-size: 3rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.project-video:hover .play-icon {
    transform: scale(1.2);
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.8);
}

.project-video .video-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.project-video.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* First Slide Special Styling (Delta One) */
.carousel-slide[data-index="0"] .slide-content {
    /* Premium 3D gradient */
    background:
        linear-gradient(135deg, rgba(70, 65, 60, 0.5) 0%, transparent 40%),
        linear-gradient(315deg, rgba(25, 25, 25, 0.5) 0%, transparent 40%),
        linear-gradient(180deg, rgba(50, 48, 45, 0.98) 0%, rgba(28, 26, 24, 0.98) 100%);
    border: 1px solid rgba(100, 95, 90, 0.4);
}

.carousel-slide[data-index="0"].active .slide-content {
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(196, 30, 58, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(150, 145, 140, 0.5);
}

.carousel-slide[data-index="0"] .project-title {
    font-size: 1.6rem;
}

.carousel-slide[data-index="0"] .project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.6) 0%, rgba(30, 30, 30, 0.7) 100%);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.3s;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 5px rgba(0, 0, 0, 0.2);
}

.tech-tag:hover {
    border-color: rgba(150, 150, 150, 0.5);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.6) 0%, rgba(50, 50, 50, 0.7) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Project Link Button */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(196, 30, 58, 0.1) 100%);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.4) 0%, rgba(196, 30, 58, 0.25) 100%);
    border-color: rgba(196, 30, 58, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.project-link .arrow {
    transition: transform 0.3s ease;
}

.project-link:hover .arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .carousel-slide[data-index="0"] .project-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DASHBOARD SECTION - SharpeDelta Replica
   ============================================ */
.dashboard-section {
    background: transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* No top gradient - seamless with about section */
/* No bottom gradient - tech-section handles transition */

.dashboard-intro {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    max-width: min(90%, 600px);
    margin-top: var(--space-sm);
    line-height: 1.7;
}

.dashboard-container {
    background: linear-gradient(135deg, rgba(5, 10, 8, 0.75) 0%, rgba(3, 8, 5, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow:
        0 0 80px rgba(0, 255, 136, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(0, 255, 136, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: var(--container-width);
    max-width: 900px;
    margin: 0 auto;
    transform: scale(clamp(0.75, 0.9, 0.95));
    transform-origin: center top;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.4), transparent);
}

/* Dashboard Header - Fluid */
.dashboard-header {
    text-align: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.dashboard-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #00ff88;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.dashboard-title .accent {
    color: #00ff88;
}

.dashboard-subtitle {
    font-size: var(--fs-tiny);
    letter-spacing: clamp(2px, 0.5vw, 4px);
    color: rgba(0, 255, 136, 0.5);
    margin-top: var(--space-xs);
}

/* Dashboard Grid - Fluid with auto-fit */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-sm);
}

/* Dashboard Panels - Fluid */
.dash-panel {
    background: rgba(5, 12, 8, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    position: relative;
    transition: all 0.3s ease;
}

.dash-panel:hover {
    background: rgba(5, 15, 10, 0.7);
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.05);
}

.dash-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
}

.panel-header {
    font-family: 'Poppins', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(0, 255, 136, 0.7);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* System Status Panel */
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.status-row:last-child {
    border-bottom: none;
}

.status-row.dim {
    opacity: 0.6;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ff88; }
    50% { opacity: 0.7; box-shadow: 0 0 20px #00ff88; }
}

.status-label {
    flex: 1;
    font-size: 0.85rem;
    color: #888;
}

.status-value {
    font-family: 'Poppins', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.status-value.online {
    color: #00ff88;
}

.status-value.uptime {
    color: #00ff88;
}

/* Z-Score Monitor */
.zscore-monitor {
    text-align: center;
}

.zscore-display {
    margin: 20px 0;
}

.zscore-value {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    animation: zscore-glow 3s ease-in-out infinite;
}

@keyframes zscore-glow {
    0%, 100% { text-shadow: 0 0 40px rgba(0, 255, 136, 0.6); }
    50% { text-shadow: 0 0 60px rgba(0, 255, 136, 0.9); }
}

.zscore-bar {
    margin: 20px 0;
}

.zscore-track {
    height: 8px;
    background: linear-gradient(90deg,
        #c41e3a 0%,
        #c41e3a 35%,
        #333 35%,
        #333 65%,
        #00ff88 65%,
        #00ff88 100%
    );
    border-radius: 4px;
    position: relative;
}

.zscore-indicator {
    position: absolute;
    top: 50%;
    left: 56%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: left 0.5s ease;
}

.zscore-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.65rem;
    color: #666;
}

.zscore-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.zstat {
    text-align: center;
}

.zstat-label {
    display: block;
    font-size: 0.6rem;
    color: #666;
    margin-bottom: 4px;
}

.zstat-value {
    font-family: 'Poppins', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #00ff88;
    padding: 4px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
}

/* Current Position */
.position-display {
    text-align: center;
    margin: 20px 0;
}

.position-status {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 5px;
}

.position-status.long {
    color: #00ff88;
}

.position-status.short {
    color: #c41e3a;
}

.position-details {
    margin-top: 20px;
}

.pos-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #888;
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.pos-value {
    font-family: 'Poppins', monospace;
    font-weight: 600;
    color: #00ff88;
}

.pos-value.dim {
    color: #666;
}

/* Live Feed */
.feed-content {
    padding: 10px 0;
}

.feed-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.85rem;
}

.feed-row.highlight {
    background: rgba(0, 255, 136, 0.05);
    margin: 0 -20px;
    padding: 12px 20px;
    border-left: 2px solid #00ff88;
}

.feed-label {
    color: #888;
}

.feed-value {
    font-family: 'Poppins', monospace;
    color: #00ff88;
}

.feed-value.status-active {
    color: #00ff88;
    font-weight: 600;
}

/* Strategy Parameters */
.param-section {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 6px;
}

.param-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 8px;
}

.param-rule {
    font-family: 'Poppins', monospace;
    font-size: 0.8rem;
    color: #aaa;
    padding: 4px 0;
}

.param-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.param-item {
    text-align: center;
    padding: 10px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 6px;
}

.param-label {
    display: block;
    font-size: 0.65rem;
    color: #666;
    margin-bottom: 4px;
}

.param-value {
    font-family: 'Poppins', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00ff88;
}

/* Backtest Performance */
.perf-grid {
    display: grid;
    gap: 8px;
}

.perf-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 255, 136, 0.02);
    border-radius: 4px;
}

.perf-label {
    font-size: 0.85rem;
    color: #888;
}

.perf-value {
    font-family: 'Poppins', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
}

.perf-value.highlight {
    color: #00ff88;
}

.perf-value.positive {
    color: #00ff88;
}

.perf-value.negative {
    color: #c41e3a;
}

/* Bot Control */
.bot-control {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.ctrl-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ctrl-btn .btn-icon {
    font-size: 0.9rem;
}

.ctrl-btn.start {
    background: linear-gradient(135deg, #00cc6a 0%, #00994d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 204, 106, 0.3);
}

.ctrl-btn.start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 106, 0.5);
}

.ctrl-btn.restart {
    background: linear-gradient(135deg, #3399ff 0%, #0066cc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.3);
}

.ctrl-btn.restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 153, 255, 0.5);
}

.ctrl-btn.stop {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.ctrl-btn.stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.control-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #888;
}

.note-icon {
    font-size: 1rem;
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dash-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #888;
}

.info-icon {
    font-size: 1.2rem;
}

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

.tech-badge {
    font-family: 'Poppins', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    color: #00ff88;
    backdrop-filter: blur(5px);
}

/* Dashboard Responsive - Modern fluid approach */
/* Grid now uses auto-fit, so breakpoints are less critical */
.zscore-value {
    font-size: clamp(2rem, 8vw, 4rem);
}

.position-status {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.param-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.control-buttons {
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.dashboard-footer {
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ============================================
   ABOUT SECTION - THE ALGORITHM REVEAL
   ============================================ */
.about-section {
    position: relative;
    background: transparent;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.about-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: var(--space-lg);
    align-items: start;
}

/* ============================================
   PORTRAIT REVEAL CONTAINER
   ============================================ */
.portrait-reveal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portrait-wrapper {
    position: relative;
    width: clamp(250px, 50vw, 380px);
    height: clamp(250px, 50vw, 380px);
    border-radius: var(--card-radius);
    overflow: hidden;
    cursor: none;
}

/* Human Layer - Default visible */
.portrait-human {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.portrait-human img,
.portrait-cyber img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-human img {
    object-position: center 15%;
    filter: grayscale(20%) contrast(1.05);
}

.portrait-cyber img {
    object-position: center 0.5%;
}

/* Cyber Layer - Below human, revealed by mouse */
.portrait-cyber {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Human layer gets clipped by JS */
.portrait-human {
    clip-path: circle(100% at 50% 50%);
    transition: clip-path 0.1s ease-out;
}

/* Reveal Glow - subtle cyan/tech glow around cursor */
.reveal-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 200, 255, 0.3) 0%,
        rgba(0, 200, 255, 0.1) 30%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    filter: blur(15px);
}

.portrait-wrapper:hover .reveal-glow {
    opacity: 1;
}

/* Portrait Hint Text */
.portrait-hint {
    margin-top: var(--space-sm);
    font-size: var(--fs-tiny);
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.portrait-hint .hint-icon {
    color: var(--accent);
    animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.portrait-wrapper:hover + .portrait-hint {
    opacity: 0;
}

/* ============================================
   ABOUT TEXT CONTAINER - Fluid
   ============================================ */
.about-text-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-intro {
    margin-bottom: var(--space-xs);
}

.about-name {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h1);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: var(--space-xs);
}

.about-tagline {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.about-text p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-sm);
}

.about-text p:first-of-type {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-primary);
    font-weight: 400;
}

.about-text em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* About Motto - Fluid */
.about-motto {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    margin: var(--space-xs) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.motto-bracket {
    font-family: 'Poppins', monospace;
    font-size: var(--fs-h3);
    color: var(--accent);
    font-weight: 700;
}

.motto-text {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-body);
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* ============================================
   QUANTUM PHILOSOPHY ESSAY
   ============================================ */
.quantum-essay {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    width: 100%;
}

.quantum-essay-title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.quantum-section {
    margin-bottom: var(--space-md);
}

.quantum-section h5 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border);
}

.quantum-section p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.quantum-concept {
    margin: var(--space-sm) 0;
    padding-left: var(--space-sm);
    border-left: 2px solid var(--accent);
}

.quantum-concept strong {
    color: var(--text-primary);
    font-weight: 600;
}

.quantum-concept p:first-of-type {
    font-style: italic;
    color: var(--text-muted);
}

.quantum-question {
    font-weight: 600;
    color: var(--text-primary) !important;
    font-style: italic;
}

.quantum-interpretation {
    margin: var(--space-xs) 0;
    padding-left: var(--space-sm);
}

.quantum-interpretation strong {
    color: var(--accent);
}

.quantum-consequence {
    font-size: var(--fs-small);
    color: var(--text-muted) !important;
    font-style: italic;
    margin-left: var(--space-sm);
}

.quantum-insight {
    background: rgba(196, 30, 58, 0.05);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-style: italic;
    color: var(--text-primary) !important;
}

.quantum-conclusion {
    text-align: center;
    padding: var(--space-md);
    background: rgba(196, 30, 58, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.quantum-final-question {
    font-weight: 600;
    color: var(--text-primary) !important;
    margin-bottom: var(--space-xs);
}

.quantum-final-statement {
    font-size: var(--fs-body);
    color: var(--text-primary) !important;
    font-style: italic;
    line-height: 1.8;
}

.quantum-final-wisdom {
    color: var(--accent) !important;
    font-weight: 500;
    margin-top: var(--space-sm);
}

/* Light theme adjustments */
body.light-active .quantum-insight {
    background: rgba(196, 30, 58, 0.08);
}

body.light-active .quantum-conclusion {
    background: rgba(196, 30, 58, 0.05);
}

/* ============================================
   DELTA ONE WORKFLOW SECTION
   System Architecture Flow Diagram
   Modern Fluid Responsive Design
   ============================================ */
.workflow-section {
    position: relative;
    background: transparent;
    padding: var(--space-lg) 0 var(--space-xl) 0;
    margin-top: calc(var(--space-lg) * -1);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.workflow-section .workflow-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-sm);
}

.workflow-section .workflow-title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.workflow-section .workflow-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-small);
    letter-spacing: 1px;
}

/* Workflow Grid Layout - Fluid */
.workflow-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: var(--container-width);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Workflow with Video - Responsive Side by Side */
.workflow-grid.workflow-with-video {
    display: grid;
    grid-template-columns: 1fr min(35%, 480px);
    gap: var(--space-lg);
    align-items: stretch;
}

.workflow-nodes-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Video Player in Workflow - Fluid */
.workflow-video {
    position: sticky;
    top: var(--space-lg);
    display: flex;
    align-items: center;
    height: 100%;
}

.workflow-video-player {
    position: relative;
    width: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(196, 30, 58, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(196, 30, 58, 0.1);
}

.workflow-video-player video {
    width: 100%;
    display: block;
    border-radius: var(--card-radius);
}

.workflow-video-player .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.workflow-video-player:hover .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.workflow-video-player .play-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent);
    text-shadow: 0 0 20px rgba(196, 30, 58, 0.5);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.workflow-video-player:hover .play-icon {
    transform: scale(1.2);
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.8);
}

.workflow-video-player .video-label {
    margin-top: var(--space-xs);
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.workflow-video-player.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Workflow Grid - Responsive without fixed breakpoints */
@media (max-width: 900px) {
    .workflow-grid.workflow-with-video {
        grid-template-columns: 1fr;
    }

    .workflow-video {
        position: relative;
        top: 0;
        max-width: min(100%, 400px);
        margin: 0 auto var(--space-md);
        order: -1; /* Video above workflow on mobile */
    }
}

/* Workflow Row - Fluid Layout */
.workflow-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.workflow-row .row-label {
    width: 100px;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: right;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
}

.workflow-row .row-nodes {
    display: flex;
    gap: 15px;
    flex: 1;
    align-items: center;
}

/* Node Cards */
.workflow-section .node {
    position: relative;
    min-width: 150px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.workflow-section .node:hover {
    transform: translateY(-5px);
}

.workflow-section .node-card {
    background: linear-gradient(165deg, rgba(30, 30, 30, 0.7) 0%, rgba(15, 15, 15, 0.8) 100%);
    border-radius: 14px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.workflow-section .node-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.workflow-section .node-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 0 0 2px 2px;
}

.workflow-section .node:hover .node-card {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Node Icon */
.workflow-section .node-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.workflow-section .node-icon {
    font-size: 20px;
}

.workflow-section .node-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.workflow-section .node-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* Layer Colors */
/* Data Layer - Blue */
.workflow-section .node-data .node-card::after { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.workflow-section .node-data .node-icon-wrap { background: rgba(59, 130, 246, 0.15); }
.workflow-section .node-data:hover .node-card { box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15); }

/* Analysis Layer - Orange */
.workflow-section .node-analysis .node-card::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.workflow-section .node-analysis .node-icon-wrap { background: rgba(245, 158, 11, 0.15); }
.workflow-section .node-analysis:hover .node-card { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15); }

/* Risk Layer - Red */
.workflow-section .node-risk .node-card::after { background: linear-gradient(90deg, #c41e3a, #ef4444); }
.workflow-section .node-risk .node-icon-wrap { background: rgba(196, 30, 58, 0.15); }
.workflow-section .node-risk:hover .node-card { box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15); }

/* Execution Layer - Green */
.workflow-section .node-exec .node-card::after { background: linear-gradient(90deg, #10b981, #34d399); }
.workflow-section .node-exec .node-icon-wrap { background: rgba(16, 185, 129, 0.15); }
.workflow-section .node-exec:hover .node-card { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15); }

/* Monitor Layer - Cyan */
.workflow-section .node-monitor .node-card::after { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.workflow-section .node-monitor .node-icon-wrap { background: rgba(6, 182, 212, 0.15); }
.workflow-section .node-monitor:hover .node-card { box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15); }

/* Active Node Pulse */
.workflow-section .node-active .node-card {
    animation: workflowCardPulse 3s ease-in-out infinite;
}

@keyframes workflowCardPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.2); }
}

/* Connectors */
.workflow-section .connector {
    flex: 0 0 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    position: relative;
    border-radius: 1px;
}

.workflow-section .connector::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: connectorPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px currentColor;
}

.workflow-section .connector-blue::after { color: #3b82f6; }
.workflow-section .connector-orange::after { color: #f59e0b; }
.workflow-section .connector-red::after { color: #c41e3a; }
.workflow-section .connector-green::after { color: #10b981; }
.workflow-section .connector-cyan::after { color: #06b6d4; }

@keyframes connectorPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.workflow-section .connector-arrow {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid rgba(255, 255, 255, 0.25);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

/* Vertical Connectors */
.workflow-section .vertical-connectors {
    position: relative;
    height: 25px;
    margin-left: 120px;
}

.workflow-section .v-connector {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.workflow-section .v-connector::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation: vConnectorMove 2s ease-in-out infinite;
}

@keyframes vConnectorMove {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

.workflow-section .v-connector-1 { left: 75px; }
.workflow-section .v-connector-1::before { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; animation-delay: 0s; }

.workflow-section .v-connector-2 { left: 260px; }
.workflow-section .v-connector-2::before { background: #c41e3a; box-shadow: 0 0 6px #c41e3a; animation-delay: 0.3s; }

.workflow-section .v-connector-3 { left: 445px; }
.workflow-section .v-connector-3::before { background: #10b981; box-shadow: 0 0 6px #10b981; animation-delay: 0.6s; }

.workflow-section .v-connector-4 { left: 630px; }
.workflow-section .v-connector-4::before { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; animation-delay: 0.9s; }

/* Workflow Legend */
.workflow-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.workflow-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.workflow-legend .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.workflow-legend .legend-dot.data { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.workflow-legend .legend-dot.analysis { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.workflow-legend .legend-dot.risk { background: #c41e3a; box-shadow: 0 0 8px #c41e3a; }
.workflow-legend .legend-dot.exec { background: #10b981; box-shadow: 0 0 8px #10b981; }
.workflow-legend .legend-dot.monitor { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }

/* Tech Info Cards */
.workflow-section .tech-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-section .tech-card {
    background: linear-gradient(165deg, rgba(30, 30, 30, 0.5) 0%, rgba(15, 15, 15, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.workflow-section .tech-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.workflow-section .tech-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.workflow-section .tech-icon {
    font-size: 24px;
}

.workflow-section .tech-card-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.workflow-section .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workflow-section .tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.workflow-section .tech-tag:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.workflow-section .tech-tag.python {
    background: rgba(55, 118, 171, 0.12);
    border-color: rgba(55, 118, 171, 0.25);
    color: #5a9fd4;
}

.workflow-section .tech-tag.lib {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: #f5b041;
}

.workflow-section .tech-tag.arch {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

/* Workflow Responsive */
@media (max-width: 1100px) {
    .workflow-section .node { min-width: 130px; }
    .workflow-section .node-card { padding: 16px 12px; }
    .workflow-section .connector { flex: 0 0 20px; }
}

@media (max-width: 900px) {
    .workflow-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .workflow-row .row-label {
        width: 100%;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    .workflow-row .row-nodes {
        flex-wrap: wrap;
        width: 100%;
    }
    .workflow-section .connector {
        display: none;
    }
    .workflow-section .vertical-connectors {
        display: none;
    }
    .workflow-section .tech-info-section {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SPOTLIGHT REVEAL SECTION
   Flashlight/spotlight effect following mouse
   ============================================ */
.spotlight-section {
    --spotlight-x: 50%;
    --spotlight-y: 50%;
    --spotlight-size: 250px;
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 1200px;
    overflow: hidden;
    cursor: none;
    /* Separation from workflow section above */
    margin-top: 0;
    padding: 0;
}

/* ============================================
   TERMINAL CONSOLE SYSTEM
   Retro terminal with typewriter effect
   ============================================ */
.terminal-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 15;
    padding: 350px 40px 60px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

/* Terminal Glow Background */
.terminal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(196, 30, 58, 0.15) 0%,
        rgba(196, 30, 58, 0.05) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Terminal Window */
.terminal-window {
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(196, 30, 58, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2;
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-close { background: #ff5f56; }
.term-minimize { background: #ffbd2e; }
.term-maximize { background: #27ca3f; }

.term-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ca3f;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #27ca3f; }
    50% { opacity: 0.5; box-shadow: 0 0 10px #27ca3f; }
}

.status-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #27ca3f;
    letter-spacing: 1px;
}

/* Terminal Body */
.terminal-body {
    padding: 25px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(196, 30, 58, 0.4);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 30, 58, 0.6);
}

/* Boot Sequence */
.terminal-boot {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.boot-line {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.boot-line.success {
    color: #27ca3f;
}

/* Terminal Output */
.terminal-output {
    margin-bottom: 15px;
}

.output-block {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.output-block:hover {
    background: rgba(196, 30, 58, 0.05);
    border-left-color: var(--accent);
}

.output-block.error {
    border-left-color: #ff5f56;
}

.output-block.lesson {
    border-left-color: #27ca3f;
}

/* Error/Lesson prefixes */
.prefix-error {
    color: #ff5f56;
    font-weight: 600;
}

.prefix-lesson {
    color: #27ca3f;
    font-weight: 600;
}

.prefix-pitfall {
    color: var(--accent);
    font-weight: 600;
}

.prefix-info {
    color: #ffbd2e;
}

/* Current Line with Cursor */
.terminal-current-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.typing-text {
    color: rgba(255, 255, 255, 0.9);
}

.terminal-current-line .cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--accent);
    animation: terminalCursorBlink 1s step-end infinite;
    vertical-align: middle;
    position: static;
    border: none;
    border-radius: 0;
    pointer-events: none;
    transform: none;
    mix-blend-mode: normal;
}

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

/* Terminal Footer */
.terminal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.terminal-controls {
    display: flex;
    gap: 10px;
}

.term-control {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-control:hover {
    color: var(--accent);
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.4);
}

.term-control:active {
    transform: scale(0.98);
}

.term-control.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(196, 30, 58, 0.2);
}

/* Progress */
.terminal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.progress-bar {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff6b7a);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 3.33%;
}

/* Scanlines Effect */
.terminal-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0.3;
}

/* Output line animations */
.output-line {
    opacity: 0;
    transform: translateY(5px);
    animation: lineAppear 0.3s ease forwards;
}

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

/* Pitfall number badge */
.pitfall-num {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(196, 30, 58, 0.2);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent);
    margin-right: 10px;
}

/* Pitfall name styling */
.pitfall-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin: 8px 0;
}

/* Problem/Solution text */
.pitfall-problem,
.pitfall-solution {
    font-size: 0.8rem;
    margin: 6px 0;
    padding-left: 15px;
}

.pitfall-problem {
    color: rgba(255, 100, 100, 0.9);
}

.pitfall-solution {
    color: rgba(100, 255, 150, 0.9);
}

/* Modal for expanded cards */
.card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.card-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 16px;
    padding: 40px 50px;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(196, 30, 58, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-set-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.modal-set-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.modal-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

/* Modal Card Style */
.modal-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    scroll-margin-top: 20px;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.modal-card:hover {
    border-color: rgba(196, 30, 58, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.15);
}

.modal-card.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.3);
    animation: cardHighlight 0.6s ease;
}

@keyframes cardHighlight {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.modal-card-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.8;
}

.modal-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 10px 0 16px;
}

.modal-card-why {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    line-height: 1.6;
    font-style: italic;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 2px solid rgba(196, 30, 58, 0.3);
}

.modal-card-problem {
    font-size: 0.9rem;
    color: rgba(255, 100, 100, 0.9);
    margin-bottom: 12px;
    line-height: 1.5;
}

.modal-card-problem::before {
    content: '\2717 ';
    opacity: 0.8;
}

.modal-card-solution {
    font-size: 0.9rem;
    color: rgba(100, 255, 150, 0.9);
    line-height: 1.5;
}

.modal-card-solution::before {
    content: '\2713 ';
    opacity: 0.8;
}

/* Single Card View - when clicking a specific topic */
.single-card-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 300px;
}

/* Back button */
.modal-back-btn {
    align-self: flex-start;
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-back-btn:hover {
    color: #fff;
    background: rgba(196, 30, 58, 0.3);
    border-color: rgba(196, 30, 58, 0.7);
}

.single-card-view .modal-card.single-card {
    max-width: 700px;
    width: 100%;
    padding: 50px;
    border-color: rgba(196, 30, 58, 0.5);
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 0 60px rgba(196, 30, 58, 0.2);
}

.single-card-view .modal-card-number {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.single-card-view .modal-card-name {
    font-size: 2rem;
    margin: 15px 0 25px;
}

.single-card-view .modal-card-why {
    font-size: 1.1rem;
    padding: 20px;
    margin-bottom: 25px;
}

.single-card-view .modal-card-problem {
    font-size: 1.05rem;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 100, 100, 0.05);
    border-radius: 8px;
}

.single-card-view .modal-card-solution {
    font-size: 1.05rem;
    padding: 15px;
    background: rgba(100, 255, 150, 0.05);
    border-radius: 8px;
}

/* Expanded card in grid view */
.modal-card.expanded {
    grid-column: 1 / -1;
    max-width: 100%;
    padding: 40px;
    border-color: rgba(196, 30, 58, 0.6);
    background: rgba(15, 15, 15, 0.98);
    box-shadow: 0 0 40px rgba(196, 30, 58, 0.3);
}

.modal-card.expanded .modal-card-number {
    font-size: 1.1rem;
}

.modal-card.expanded .modal-card-name {
    font-size: 1.6rem;
    margin: 10px 0 20px;
}

.modal-card.expanded .modal-card-why {
    font-size: 1rem;
    padding: 18px;
    margin-bottom: 20px;
}

.modal-card.expanded .modal-card-problem,
.modal-card.expanded .modal-card-solution {
    font-size: 1rem;
    padding: 12px;
}

.modal-card:hover:not(.expanded) {
    border-color: rgba(196, 30, 58, 0.5);
    transform: translateY(-2px);
}

/* Checklist Modal Style */
.modal-checklist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: rgba(100, 255, 150, 0.3);
    background: rgba(100, 255, 150, 0.05);
}

.checklist-item::before {
    content: '\2713';
    color: rgba(100, 255, 150, 0.7);
    font-weight: bold;
}

/* Responsive Terminal Console */
@media (max-width: 1024px) {
    .terminal-container {
        padding: 40px 30px;
    }

    .terminal-window {
        max-width: 100%;
    }

    .terminal-body {
        min-height: 280px;
        max-height: 320px;
    }

    .modal-checklist {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .terminal-container {
        padding: 30px 20px;
    }

    .terminal-window {
        border-radius: 8px;
    }

    .terminal-body {
        min-height: 240px;
        max-height: 280px;
        padding: 15px;
        font-size: 0.85rem;
    }

    .terminal-header {
        padding: 8px 12px;
    }

    .terminal-title {
        font-size: 0.7rem;
    }

    .term-btn {
        width: 10px;
        height: 10px;
    }

    .terminal-buttons {
        gap: 5px;
    }

    .terminal-controls {
        flex-wrap: wrap;
        gap: 8px;
    }

    .term-control {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .terminal-footer {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }

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

    .progress-bar {
        width: 150px;
    }

    .output-line {
        font-size: 0.8rem;
    }

    .output-separator {
        font-size: 0.7rem;
    }

    .prompt {
        font-size: 0.75rem;
    }

    .typing-text {
        font-size: 0.8rem;
    }

    .terminal-current-line .cursor {
        width: 8px;
        height: 14px;
    }

    .modal-cards-grid,
    .modal-checklist {
        grid-template-columns: 1fr;
    }

    /* Spotlight Section Mobile */
    .spotlight-section {
        min-height: 700px;
        margin-top: 50px;
    }

    .spotlight-text {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 15px;
    }

    .spotlight-texts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px;
    }

    .code-snippet {
        display: none;
    }
}

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

    .terminal-window {
        border-radius: 6px;
    }

    .terminal-header {
        padding: 6px 10px;
    }

    .terminal-title {
        font-size: 0.6rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .terminal-status {
        display: none;
    }

    .terminal-body {
        min-height: 200px;
        max-height: 240px;
        padding: 12px;
        font-size: 0.75rem;
    }

    .terminal-controls {
        gap: 5px;
    }

    .term-control {
        font-size: 0.55rem;
        padding: 5px 8px;
    }

    .terminal-footer {
        padding: 8px 10px;
    }

    .progress-bar {
        width: 100px;
    }

    .progress-text {
        font-size: 0.65rem;
    }

    .output-line {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .output-separator {
        font-size: 0.6rem;
        margin: 8px 0;
    }

    .boot-line {
        font-size: 0.7rem;
    }

    .prompt {
        font-size: 0.65rem;
    }

    .typing-text {
        font-size: 0.7rem;
    }

    .terminal-current-line .cursor {
        width: 6px;
        height: 12px;
    }

    .terminal-glow {
        display: none;
    }

    .spotlight-section {
        min-height: 600px;
    }

    .spotlight-text {
        display: none;
    }
}

/* OLD ML MISTAKES STYLES (kept for reference, unused) */
.ml-mistakes-layer {
    display: none;
}

.mistakes-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.mistakes-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.mistakes-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.mistake-card {
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.mistake-card:hover {
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
}

.mistake-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    opacity: 0.7;
}

.mistake-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 6px 0 10px;
}

.mistake-problem {
    font-size: 0.75rem;
    color: rgba(255, 100, 100, 0.8);
    margin-bottom: 6px;
    line-height: 1.4;
}

.mistake-problem::before {
    content: '\2717 ';
    opacity: 0.7;
}

.mistake-solution {
    font-size: 0.75rem;
    color: rgba(100, 255, 150, 0.8);
    line-height: 1.4;
}

.mistake-solution::before {
    content: '\2713 ';
    opacity: 0.7;
}

/* Checklist */
.mistakes-checklist {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.checklist-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.checklist-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.check-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(100, 255, 150, 0.9);
    background: rgba(100, 255, 150, 0.1);
    border: 1px solid rgba(100, 255, 150, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
}

.check-item::before {
    content: '\2713 ';
}

/* Responsive ML Mistakes */
@media (max-width: 1400px) {
    .mistakes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .mistakes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ml-mistakes-layer {
        padding: 40px 20px;
    }

    .mistakes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mistake-card {
        padding: 20px;
    }

    .mistakes-title {
        font-size: 1.5rem;
    }

    .checklist-items {
        gap: 8px;
    }

    .check-item {
        font-size: 0.6rem;
        padding: 5px 10px;
    }
}

/* Dark overlay with spotlight hole - DISABLED */
.spotlight-overlay {
    display: none;
}

/* Spotlight glow ring - subtle accent */
.spotlight-overlay::before {
    content: '';
    position: absolute;
    left: var(--spotlight-x);
    top: var(--spotlight-y);
    width: calc(var(--spotlight-size) * 3);
    height: calc(var(--spotlight-size) * 3);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(196, 30, 58, 0.08) 0%,
        rgba(196, 30, 58, 0.04) 30%,
        rgba(196, 30, 58, 0.02) 50%,
        transparent 70%
    );
    pointer-events: none;
}

/* Hint - hidden */
.spotlight-hint {
    display: none;
}

/* Content layer underneath - NO background, transparent */
.spotlight-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* No background - completely transparent */
    background: transparent;
}

/* ============================================
   SPOTLIGHT TEXTS - Minimalist Scattered Layout
   ============================================ */
.spotlight-texts {
    position: relative;
    width: 100%;
    height: 100%;
}

.spotlight-text {
    position: absolute;
    max-width: 260px;
    /* No background, no borders - pure text */
    transition: all 0.4s ease;
}

.spotlight-text:hover {
    transform: translateY(-5px);
}

.spotlight-text.featured {
    max-width: 300px;
}

.text-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.text-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.spotlight-text.featured .text-title {
    font-size: 1.8rem;
    color: #ffffff;
}

.text-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.text-highlight {
    color: #ffffff;
    font-weight: 600;
}

/* Code snippets scattered in gaps - floating animation */
.code-snippet {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    pointer-events: none;
    animation: floatCode 8s ease-in-out infinite;
}

/* Different sizes */
.code-snippet.size-sm {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
}

.code-snippet.size-lg {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.25);
}

.code-snippet.size-xl {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Glowing character highlights */
.code-snippet .hl-green {
    color: #00ff88;
    text-shadow: 0 0 8px #00ff88, 0 0 15px #00ff8855;
}

.code-snippet .hl-red {
    color: #ff4466;
    text-shadow: 0 0 8px #ff4466, 0 0 15px #ff446655;
}

/* Repel snippets - flee from cursor */
.code-snippet.repel {
    --repel-x: 0px;
    --repel-y: 0px;
    transform: translate(var(--repel-x), var(--repel-y));
    transition: none;
    animation: none !important;
    color: rgba(255, 255, 255, 0.28);
}

/* Ghost Terminal - animated bot log background */
.ghost-terminal {
    position: absolute;
    top: 35%;
    left: 18%;
    transform: translateY(-50%);
    width: 500px;
    height: 300px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.25;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    line-height: 1.6;
    color: #00ff88;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
}

.terminal-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: scrollTerminal 25s linear infinite;
}

.terminal-line {
    white-space: nowrap;
    padding: 2px 0;
}

.terminal-line .timestamp {
    color: #00ff8866;
}

.terminal-line .level {
    color: #00ff88;
}

.terminal-line .message {
    color: #00ff88aa;
}

.terminal-line .value {
    color: #00ffaa;
}

@keyframes scrollTerminal {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Different animation delays for random effect */
.code-snippet:nth-child(odd) {
    animation-duration: 10s;
}

.code-snippet:nth-child(3n) {
    animation-duration: 12s;
    animation-delay: -2s;
}

.code-snippet:nth-child(4n) {
    animation-delay: -4s;
}

.code-snippet:nth-child(5n) {
    animation-duration: 9s;
    animation-delay: -3s;
}

/* Floating animation - default */
@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-8px) translateX(3px);
        opacity: 1;
    }
    50% {
        transform: translateY(-3px) translateX(-2px);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-10px) translateX(5px);
        opacity: 1;
    }
}

/* Diagonal drift animation */
@keyframes driftDiagonal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translate(15px, -12px) rotate(1deg);
        opacity: 1;
    }
    66% {
        transform: translate(-8px, -6px) rotate(-0.5deg);
        opacity: 0.85;
    }
}

/* Horizontal sway animation */
@keyframes swayHorizontal {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.75;
    }
    50% {
        transform: translateX(20px);
        opacity: 1;
    }
}

/* Pulse fade animation */
@keyframes pulseFade {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* Vertical bob animation */
@keyframes bobVertical {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px);
        opacity: 1;
    }
    75% {
        transform: translateY(8px);
        opacity: 0.7;
    }
}

/* Slow rotation drift */
@keyframes rotateDrift {
    0%, 100% {
        transform: rotate(-2deg) translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: rotate(2deg) translate(5px, -8px);
        opacity: 0.9;
    }
}

/* Animation classes */
.code-snippet.anim-diagonal {
    animation: driftDiagonal 14s ease-in-out infinite;
}

.code-snippet.anim-sway {
    animation: swayHorizontal 7s ease-in-out infinite;
}

.code-snippet.anim-pulse {
    animation: pulseFade 5s ease-in-out infinite;
}

.code-snippet.anim-bob {
    animation: bobVertical 6s ease-in-out infinite;
}

.code-snippet.anim-rotate {
    animation: rotateDrift 11s ease-in-out infinite;
}

/* Hide code snippets on mobile */
@media (max-width: 900px) {
    .code-snippet {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .spotlight-text {
        max-width: 220px;
    }
    .text-title {
        font-size: 1.3rem;
    }
    .text-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .spotlight-texts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        padding: 80px 30px;
    }
    .spotlight-text {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .spotlight-texts {
        gap: 30px;
        padding: 60px 20px;
    }
    .spotlight-section {
        min-height: auto;
    }
}

.skill-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.skill-desc {
    display: block;
    font-size: 0.9rem;
    color: #555;
    font-weight: 400;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-left: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Shine sweep effect */
.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
}

.highlight-item:hover::before {
    animation: shine-sweep 0.8s ease;
}

@keyframes shine-sweep {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* Glow pulse border effect */
.highlight-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
    transition: box-shadow 0.3s ease;
}

.highlight-item:hover::after {
    animation: border-pulse 1s ease infinite;
}

@keyframes border-pulse {
    0%, 100% { box-shadow: 0 0 5px 0 rgba(196, 30, 58, 0.5); }
    50% { box-shadow: 0 0 20px 5px rgba(196, 30, 58, 0.8); }
}

.highlight-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    letter-spacing: -0.5px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.35);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Icon magnetic/bounce effect on hover */
.highlight-item:hover .highlight-icon {
    animation: icon-bounce 0.6s ease;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
}

@keyframes icon-bounce {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(0.95) rotate(3deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Text slide effect */
.highlight-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

.highlight-item:hover .highlight-text {
    transform: translateX(8px);
    color: var(--text-primary);
}

/* Ripple click effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Smooth transitions for 3D tilt */
.highlight-item {
    transition: transform 0.15s ease-out, background 0.3s ease;
}

.highlight-icon {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* About Section Responsive */
@media (max-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .portrait-reveal-container {
        order: -1;
    }

    .portrait-wrapper {
        width: 320px;
        height: 320px;
    }

    .about-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-content-grid {
        gap: 40px;
    }

    .portrait-wrapper {
        width: 280px;
        height: 280px;
    }

    .about-name {
        font-size: 1.8rem;
    }

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

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

@media (max-width: 480px) {
    .portrait-wrapper {
        width: 250px;
        height: 250px;
    }

    .about-name {
        font-size: 1.5rem;
    }

    .portrait-hint {
        font-size: 0.7rem;
    }
}

/* ============================================
   TECH SECTION - ORBIT LAYOUT
   ============================================ */
.tech-section {
    background: transparent;
    overflow: hidden;
    position: relative;
    padding-top: clamp(100px, 20vw, 250px);
    margin-top: clamp(-80px, -10vw, -150px);
    width: 100%;
    max-width: 100vw;
}

/* Smooth gradient transition from dark to light - ultra smooth */
.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(20, 20, 20, 0.02) 8%,
        rgba(40, 40, 40, 0.05) 15%,
        rgba(70, 70, 70, 0.1) 22%,
        rgba(100, 100, 100, 0.18) 28%,
        rgba(130, 130, 130, 0.28) 34%,
        rgba(160, 160, 160, 0.4) 40%,
        rgba(185, 185, 185, 0.55) 46%,
        rgba(205, 205, 205, 0.7) 52%,
        rgba(220, 220, 220, 0.82) 58%,
        rgba(235, 235, 235, 0.92) 65%,
        rgba(242, 242, 242, 0.97) 75%,
        var(--bg-light) 85%
    );
    pointer-events: none;
    z-index: 0;
}

/* Full light background after gradient */
.tech-section::after {
    content: '';
    position: absolute;
    top: 500px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    pointer-events: none;
    z-index: 0;
}

.tech-section > .container {
    position: relative;
    z-index: 1;
}

.tech-orbit-container {
    position: relative;
    width: 100%;
    height: clamp(500px, 90vw, 1000px);
    max-width: min(98vw, 1100px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Element - Python - Fluid */
.orbit-center {
    position: absolute;
    width: clamp(80px, 20vw, 160px);
    height: clamp(80px, 20vw, 160px);
    z-index: 10;
}

.orbit-center-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s ease;
    animation: center-float 3s ease-in-out infinite;
    /* 3D Sphere - Red tinted */
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 120, 140, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(80, 0, 20, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(140, 40, 55, 1) 0%, rgba(80, 20, 30, 1) 100%);
    /* 3D shadow and depth */
    box-shadow:
        0 0 40px rgba(196, 30, 58, 0.4),
        0 0 80px rgba(196, 30, 58, 0.2),
        12px 12px 30px rgba(0, 0, 0, 0.5),
        -4px -4px 15px rgba(255, 100, 120, 0.1),
        inset -12px -12px 30px rgba(50, 0, 10, 0.5),
        inset 12px 12px 30px rgba(255, 150, 160, 0.15);
    border: none;
}

/* Highlight reflection on center sphere */
.orbit-center-content::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 18%;
    width: 30%;
    height: 20%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    filter: blur(3px);
    pointer-events: none;
}

/* Red rim glow */
.orbit-center-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 150, 160, 0.2) 0%, transparent 40%, rgba(196, 30, 58, 0.4) 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes center-float {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    8% {
        transform: translateY(-6px) scale(1.04);
        filter: brightness(1.03);
    }
    16% {
        transform: translateY(-12px) scale(1.08);
        filter: brightness(1.06);
    }
    25% {
        transform: translateY(-18px) scale(1.12);
        filter: brightness(1.1);
    }
    33% {
        transform: translateY(-12px) scale(1.08);
        filter: brightness(1.06);
    }
    42% {
        transform: translateY(-6px) scale(1.04);
        filter: brightness(1.03);
    }
    50% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    58% {
        transform: translateY(4px) scale(0.96);
        filter: brightness(0.97);
    }
    66% {
        transform: translateY(8px) scale(0.93);
        filter: brightness(0.94);
    }
    75% {
        transform: translateY(12px) scale(0.9);
        filter: brightness(0.9);
    }
    83% {
        transform: translateY(8px) scale(0.93);
        filter: brightness(0.94);
    }
    92% {
        transform: translateY(4px) scale(0.96);
        filter: brightness(0.97);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

.orbit-center-content:hover {
    animation: center-float-hover 3s ease-in-out infinite;
    /* Brighter 3D sphere on hover */
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 150, 170, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(100, 10, 30, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(180, 50, 70, 1) 0%, rgba(100, 30, 45, 1) 100%);
    box-shadow:
        0 0 60px rgba(196, 30, 58, 0.6),
        0 0 100px rgba(196, 30, 58, 0.3),
        15px 15px 35px rgba(0, 0, 0, 0.5),
        -5px -5px 20px rgba(255, 120, 140, 0.15),
        inset -15px -15px 35px rgba(60, 0, 15, 0.5),
        inset 15px 15px 35px rgba(255, 180, 190, 0.2);
}

@keyframes center-float-hover {
    0% {
        transform: translateY(0) scale(1.1);
        filter: brightness(1.05);
    }
    8% {
        transform: translateY(-6px) scale(1.14);
        filter: brightness(1.08);
    }
    16% {
        transform: translateY(-12px) scale(1.18);
        filter: brightness(1.11);
    }
    25% {
        transform: translateY(-18px) scale(1.22);
        filter: brightness(1.15);
    }
    33% {
        transform: translateY(-12px) scale(1.18);
        filter: brightness(1.11);
    }
    42% {
        transform: translateY(-6px) scale(1.14);
        filter: brightness(1.08);
    }
    50% {
        transform: translateY(0) scale(1.1);
        filter: brightness(1.05);
    }
    58% {
        transform: translateY(4px) scale(1.06);
        filter: brightness(1.02);
    }
    66% {
        transform: translateY(8px) scale(1.03);
        filter: brightness(0.99);
    }
    75% {
        transform: translateY(12px) scale(1.0);
        filter: brightness(0.95);
    }
    83% {
        transform: translateY(8px) scale(1.03);
        filter: brightness(0.99);
    }
    92% {
        transform: translateY(4px) scale(1.06);
        filter: brightness(1.02);
    }
    100% {
        transform: translateY(0) scale(1.1);
        filter: brightness(1.05);
    }
}

.orbit-center .orbit-icon {
    font-family: 'Poppins', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.orbit-center .orbit-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.orbit-center .orbit-sub {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.orbit-center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: center-pulse 3s ease-in-out infinite;
}

@keyframes center-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
}

.orbit-ring-1 {
    width: 420px;
    height: 420px;
    animation: orbit-rotate 60s linear infinite;
}

.orbit-ring-2 {
    width: 700px;
    height: 700px;
    animation: orbit-rotate-reverse 90s linear infinite;
}

.orbit-ring-3 {
    width: 920px;
    height: 920px;
    animation: orbit-rotate 120s linear infinite;
}

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

@keyframes orbit-rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Orbit Lines (visual circles) */
.orbit-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(196, 30, 58, 0.15);
    pointer-events: none;
}

.orbit-line-1 {
    width: 420px;
    height: 420px;
}

.orbit-line-2 {
    width: 700px;
    height: 700px;
}

.orbit-line-3 {
    width: 920px;
    height: 920px;
}

/* Orbit Items - 3D Sphere Effect */
.orbit-item {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 10px;
    /* Position based on angle */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle)));
    /* 3D Sphere gradient - light from top-left */
    background:
        radial-gradient(circle at 30% 25%, rgba(80, 80, 80, 0.9) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(45, 45, 45, 1) 0%, rgba(25, 25, 25, 1) 100%);
    /* 3D shadow and depth */
    box-shadow:
        /* Outer glow */
        0 0 20px rgba(196, 30, 58, 0.2),
        /* Bottom shadow for 3D depth */
        8px 8px 20px rgba(0, 0, 0, 0.5),
        -2px -2px 10px rgba(60, 60, 60, 0.1),
        /* Inner highlight */
        inset -8px -8px 20px rgba(0, 0, 0, 0.4),
        inset 8px 8px 20px rgba(70, 70, 70, 0.15);
    border: none;
}

/* Highlight reflection on sphere */
.orbit-item::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 35%;
    height: 25%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
    filter: blur(2px);
    pointer-events: none;
}

/* Subtle red rim light */
.orbit-item::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 40%, rgba(196, 30, 58, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

.orbit-ring-1 .orbit-item {
    --orbit-radius: 210px;
    width: 130px;
    height: 130px;
}

.orbit-ring-2 .orbit-item {
    --orbit-radius: 350px;
    width: 115px;
    height: 115px;
}

.orbit-ring-3 .orbit-item {
    --orbit-radius: 460px;
    width: 100px;
    height: 100px;
}

.orbit-ring-3 .orbit-item .orbit-icon {
    font-size: 0.85rem;
}

.orbit-ring-3 .orbit-item .orbit-name {
    font-size: 0.7rem;
}

.orbit-ring-3 .orbit-item .orbit-sub {
    font-size: 0.55rem;
}

.orbit-item:hover {
    transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) scale(1.12);
    /* Brighter 3D sphere on hover */
    background:
        radial-gradient(circle at 30% 25%, rgba(120, 50, 60, 0.9) 0%, transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(60, 0, 10, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(80, 30, 40, 1) 0%, rgba(50, 20, 25, 1) 100%);
    box-shadow:
        0 0 40px rgba(196, 30, 58, 0.5),
        0 0 60px rgba(196, 30, 58, 0.25),
        10px 10px 25px rgba(0, 0, 0, 0.5),
        -3px -3px 15px rgba(196, 30, 58, 0.15),
        inset -8px -8px 25px rgba(80, 0, 20, 0.4),
        inset 8px 8px 25px rgba(255, 100, 120, 0.1);
    z-index: 20;
}

.orbit-item:hover::before {
    background: linear-gradient(135deg, rgba(255, 200, 200, 0.35) 0%, transparent 60%);
}

.orbit-item:hover::after {
    background: linear-gradient(135deg, transparent 30%, rgba(196, 30, 58, 0.5) 100%);
}

.orbit-item .orbit-icon {
    font-family: 'Poppins', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(196, 30, 58, 0.6);
}

.orbit-item:hover .orbit-icon {
    transform: scale(1.15);
    text-shadow: 0 0 25px rgba(196, 30, 58, 1), 0 0 40px rgba(196, 30, 58, 0.5);
}

.orbit-item .orbit-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.orbit-item:hover .orbit-name {
    color: var(--accent);
}

.orbit-item .orbit-sub {
    font-size: 0.6rem;
    color: #cccccc;
    text-align: center;
    line-height: 1.3;
    margin-top: 4px;
    max-width: 90%;
}

/* EFFECT: Counter-rotate + Float - Items stay upright and float while orbiting */
.orbit-ring-1 .orbit-item:nth-child(1) {
    animation: counter-rotate-float-1 60s linear infinite, float-subtle 4s ease-in-out infinite;
}
.orbit-ring-1 .orbit-item:nth-child(2) {
    animation: counter-rotate-float-1 60s linear infinite, float-subtle 4.5s ease-in-out infinite 0.5s;
}
.orbit-ring-1 .orbit-item:nth-child(3) {
    animation: counter-rotate-float-1 60s linear infinite, float-subtle 5s ease-in-out infinite 1s;
}

.orbit-ring-2 .orbit-item:nth-child(1) {
    animation: counter-rotate-float-2 90s linear infinite, float-subtle 5s ease-in-out infinite 0.2s;
}
.orbit-ring-2 .orbit-item:nth-child(2) {
    animation: counter-rotate-float-2 90s linear infinite, float-subtle 4.5s ease-in-out infinite 0.7s;
}
.orbit-ring-2 .orbit-item:nth-child(3) {
    animation: counter-rotate-float-2 90s linear infinite, float-subtle 5.5s ease-in-out infinite 1.2s;
}
.orbit-ring-2 .orbit-item:nth-child(4) {
    animation: counter-rotate-float-2 90s linear infinite, float-subtle 4s ease-in-out infinite 0.4s;
}
.orbit-ring-2 .orbit-item:nth-child(5) {
    animation: counter-rotate-float-2 90s linear infinite, float-subtle 4.8s ease-in-out infinite 0.9s;
}

/* Third Ring Animations */
.orbit-ring-3 .orbit-item:nth-child(1) {
    animation: counter-rotate-float-3 120s linear infinite, float-subtle 5s ease-in-out infinite 0.1s;
}
.orbit-ring-3 .orbit-item:nth-child(2) {
    animation: counter-rotate-float-3 120s linear infinite, float-subtle 4.5s ease-in-out infinite 0.5s;
}
.orbit-ring-3 .orbit-item:nth-child(3) {
    animation: counter-rotate-float-3 120s linear infinite, float-subtle 5.2s ease-in-out infinite 0.9s;
}
.orbit-ring-3 .orbit-item:nth-child(4) {
    animation: counter-rotate-float-3 120s linear infinite, float-subtle 4.8s ease-in-out infinite 1.3s;
}
.orbit-ring-3 .orbit-item:nth-child(5) {
    animation: counter-rotate-float-3 120s linear infinite, float-subtle 5.5s ease-in-out infinite 0.3s;
}
.orbit-ring-3 .orbit-item:nth-child(6) {
    animation: counter-rotate-float-3 120s linear infinite, float-subtle 4.2s ease-in-out infinite 0.7s;
}

@keyframes counter-rotate-float-1 {
    from {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) rotate(-360deg);
    }
}

@keyframes counter-rotate-float-2 {
    from {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) rotate(360deg);
    }
}

@keyframes counter-rotate-float-3 {
    from {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--orbit-angle))) rotate(-360deg);
    }
}

@keyframes float-subtle {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

/* Light Mode Adjustments */
body.light-active .orbit-center-content {
    background: rgba(255, 255, 255, 0.95);
}

body.light-active .orbit-center .orbit-name {
    color: #1a1a1a;
}

body.light-active .orbit-item {
    background: rgba(255, 255, 255, 0.9);
}

body.light-active .orbit-item:hover {
    background: rgba(255, 255, 255, 0.98);
}

body.light-active .orbit-item .orbit-name {
    color: #1a1a1a;
}

body.light-active .orbit-item .orbit-sub {
    color: #555555;
}

/* Responsive - Now using fluid clamp() above, minimal breakpoints needed */
/* Scale is fluid: clamp handles sizing automatically */

/* ============================================
   FOOTER / CONTACT - Fluid
   ============================================ */
footer {
    padding: var(--space-xl) 0 var(--space-lg);
    position: relative;
}

/* Footer line removed for smoother transitions */

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-left h2 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h1);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.footer-left h2 .accent {
    color: var(--accent);
}

.footer-left p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    max-width: min(90%, 400px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-body);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--card-padding);
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    transition: all 0.4s;
}

.footer-link:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateX(10px);
}

.footer-link .icon {
    width: clamp(18px, 3vw, 24px);
    height: clamp(18px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.legal-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.legal-links a {
    font-size: var(--fs-small);
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    font-size: var(--fs-small);
    color: var(--text-dim);
}

.signature {
    font-size: var(--fs-tiny);
    color: var(--text-dim);
    margin-top: var(--space-md);
    text-align: center;
    width: 100%;
}

.signature span {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   MODALS - Fluid
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: var(--space-sm);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: var(--space-lg);
    width: min(95vw, 600px);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFade 0.4s ease;
}

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

.modal-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h2);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.modal-content p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.modal-content strong {
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-md);
    font-size: var(--fs-h3);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.3s;
}

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

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ============================================
   HORIZONTAL SCROLL TEXT - Fluid
   ============================================ */
.marquee {
    overflow: hidden;
    padding: var(--space-md) 0;
    background: transparent;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--border-light);
    white-space: nowrap;
    padding: 0 var(--space-md);
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   PROJECT DETAIL SECTIONS - Parallax
   ============================================ */
.project-detail-section {
    position: relative;
    min-height: 100vh;
    padding: var(--space-section) 0;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.75);
}

.project-detail-section.alt-bg {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.75) 0%, rgba(10, 10, 10, 0.75) 100%);
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 120%;
    top: -10%;
    left: 0;
    pointer-events: none;
    will-change: transform;
}

.parallax-back {
    background:
        /* Large glowing orbs */
        radial-gradient(ellipse 60% 40% at 15% 20%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 85% 75%, rgba(196, 30, 58, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(196, 30, 58, 0.08) 0%, transparent 60%),
        /* Subtle grid pattern */
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 80px 80px, 80px 80px;
}

.parallax-mid {
    background:
        /* Floating light spots */
        radial-gradient(circle 150px at 10% 30%, rgba(196, 30, 58, 0.1) 0%, transparent 70%),
        radial-gradient(circle 100px at 90% 60%, rgba(196, 30, 58, 0.08) 0%, transparent 70%),
        radial-gradient(circle 80px at 30% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 70%),
        radial-gradient(circle 120px at 70% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        /* Diagonal lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(196, 30, 58, 0.03) 100px,
            rgba(196, 30, 58, 0.03) 101px
        );
}

/* Alternate section with different colors */
.project-detail-section.alt-bg .parallax-back {
    background:
        radial-gradient(ellipse 60% 40% at 85% 20%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 15% 75%, rgba(196, 30, 58, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(147, 112, 219, 0.06) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 80px 80px, 80px 80px;
}

.project-detail-section.alt-bg .parallax-mid {
    background:
        radial-gradient(circle 150px at 90% 30%, rgba(196, 30, 58, 0.1) 0%, transparent 70%),
        radial-gradient(circle 100px at 10% 60%, rgba(147, 112, 219, 0.08) 0%, transparent 70%),
        radial-gradient(circle 80px at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 70%),
        radial-gradient(circle 120px at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 100px,
            rgba(196, 30, 58, 0.03) 100px,
            rgba(196, 30, 58, 0.03) 101px
        );
}

/* Project Detail Header */
.project-detail-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.project-detail-number {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196, 30, 58, 0.3);
    line-height: 1;
    margin-bottom: var(--space-sm);
    opacity: 0.5;
    transition: transform 0.6s ease;
}

.project-detail-section:hover .project-detail-number {
    transform: scale(1.05);
    -webkit-text-stroke: 1px rgba(196, 30, 58, 0.5);
}

.project-detail-status {
    display: inline-block;
    font-size: var(--fs-tiny);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: var(--space-md);
}

.project-detail-status.status-research {
    background: rgba(147, 112, 219, 0.2);
    color: #9370db;
    border: 1px solid rgba(147, 112, 219, 0.3);
}

.project-detail-status.status-live {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-detail-status.status-dev {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.project-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.project-detail-title .accent {
    color: var(--accent);
}

.project-detail-tagline {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Project Detail Grid */
.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Main Content Area */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.detail-block {
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 30, 58, 0.1);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.detail-block:hover {
    border-color: rgba(196, 30, 58, 0.25);
    background: rgba(20, 20, 20, 0.6);
    box-shadow: 0 8px 40px rgba(196, 30, 58, 0.1);
}

.detail-block h3 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-block h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.detail-block p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Quantum Canvas Container */
.quantum-canvas-container {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.quantum-iframe {
    width: 100%;
    height: 450px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0a0a0f;
}

.quantum-hint {
    margin-top: var(--space-sm) !important;
    font-size: var(--fs-small) !important;
    color: var(--accent) !important;
    text-align: center;
    opacity: 0.7;
}

.quantum-canvas-container {
    text-align: center;
}

.view-source-btn {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(75, 0, 130, 0.3));
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    color: #9370DB;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-source-btn:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(75, 0, 130, 0.5));
    border-color: #9370DB;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
}

/* Status Experimental */
.status-experimental {
    background: rgba(138, 43, 226, 0.15);
    color: #9370DB;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.status-experimental .dot {
    background: #9370DB;
    box-shadow: 0 0 10px #9370DB;
}

/* Video Container */
.detail-video-block {
    margin-top: var(--space-lg);
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Code Blocks */
.code-block {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-sm);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    overflow-x: auto;
    margin-top: var(--space-sm);
}

.code-block code {
    display: block;
    white-space: pre;
    line-height: 1.6;
}

.code-comment {
    color: var(--text-dim);
}

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

.code-string {
    color: #00ff88;
}

.code-number {
    color: #9370db;
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Stats Card */
.detail-stats {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.15) 0%, rgba(15, 15, 15, 0.4) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 30, 58, 0.25);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 4px 30px rgba(196, 30, 58, 0.1);
}

.detail-stats h4 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-primary);
}

/* Features Card */
.detail-features {
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.detail-features h4 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

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

.feature-list li {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Tech Stack Card */
.detail-tech {
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.detail-tech h4 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    font-size: var(--fs-tiny);
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(196, 30, 58, 0.1);
}

/* Responsive Project Detail */
@media (max-width: 1024px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .project-detail-section {
        min-height: auto;
        padding: var(--space-lg) 0;
    }

    .project-detail-number {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .code-block {
        font-size: 0.7rem;
    }
}

/* Light mode adjustments for project details */
body.light-active .project-detail-section {
    background: rgba(240, 232, 232, 0.8);
}

body.light-active .project-detail-section.alt-bg {
    background: rgba(235, 225, 225, 0.8);
}

body.light-active .detail-block,
body.light-active .detail-features,
body.light-active .detail-tech {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(200, 180, 180, 0.3);
}

body.light-active .detail-stats {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(196, 30, 58, 0.15);
}

body.light-active .code-block {
    background: rgba(30, 30, 30, 0.9);
}

body.light-active .project-detail-title,
body.light-active .detail-block h3,
body.light-active .detail-features h4,
body.light-active .detail-tech h4 {
    color: #1a1a1a;
}

body.light-active .detail-block p,
body.light-active .stat-label,
body.light-active .feature-list li {
    color: #444444;
}

body.light-active .stat-value {
    color: #1a1a1a;
}

/* Paper Links */
.paper-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paper-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(196, 30, 58, 0.08);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.paper-link:hover {
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.4);
    transform: translateX(5px);
}

.paper-icon {
    font-size: 1.5rem;
}

.paper-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.paper-title {
    font-family: 'Poppins', sans-serif;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-primary);
}

.paper-doi {
    font-size: var(--fs-tiny);
    color: var(--text-secondary);
    font-family: 'SF Mono', monospace;
}

.paper-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.paper-link:hover .paper-arrow {
    transform: translateX(5px);
}

/* Demo Link (green variant) */
.demo-link {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.demo-link:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
}

.demo-link .paper-arrow {
    color: #00ff88;
}

body.light-active .paper-link {
    background: rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.25);
}

body.light-active .paper-title {
    color: #1a1a1a;
}

body.light-active .paper-doi {
    color: #666666;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .hero-stat::before {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .header-profile-img {
        width: 28px;
        height: 28px;
    }

    .section {
        padding: 80px 0;
    }

    .project-card {
        padding: 35px;
    }

    .project-metrics {
        flex-wrap: wrap;
        gap: 20px;
    }

    .marquee-text {
        font-size: 2.5rem;
    }
}

/* ============================================
   VIDEO GRID - Quantum Memory Section
   ============================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.video-label {
    font-size: var(--fs-small);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* MIT Confirmation Block Styling */
.mit-confirmation {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(196, 30, 58, 0.05) 100%);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 12px;
    padding: var(--space-md);
}

.mit-confirmation h3 {
    color: var(--accent);
}

.mit-date {
    font-size: var(--fs-small);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.mit-reference {
    margin-top: var(--space-md);
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.4);
}

.mit-reference:hover {
    background: rgba(196, 30, 58, 0.25);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
