/* ============================================
   CSS Variables & Base Styles
   ============================================ */
:root {
    --color-bg: #050510;
    --color-bg-secondary: #0a0a1a;
    --color-bg-tertiary: #12122a;
    --color-text: #ffffff;
    --color-text-muted: #6b7280;
    --color-primary: #8b5cf6;
    --color-secondary: #06b6d4;
    --color-accent: #f472b6;
    --color-neon-purple: #a855f7;
    --color-neon-blue: #3b82f6;
    --color-neon-pink: #ec4899;
    --color-neon-green: #10b981;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-neon: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f472b6 100%);
    --gradient-cyber: linear-gradient(90deg, #00d4ff, #8b5cf6, #f472b6, #00d4ff);
    --font-main: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    cursor: none;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   Loading Screen
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.loader.fade-out {
    animation: loaderFadeOut 0.8s ease-in-out forwards;
}

@keyframes loaderFadeOut {
    0% { opacity: 1; clip-path: circle(150% at 50% 50%); }
    100% { opacity: 0; clip-path: circle(0% at 50% 50%); visibility: hidden; }
}

.loader.hidden {
    display: none;
}

.post-loader-notice {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(92vw, 460px);
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(8, 10, 30, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 10001;
}

.post-loader-notice.hidden {
    display: none;
}

.post-loader-notice-text {
    color: #f3f4f6;
    font-size: 0.82rem;
    line-height: 1.25;
}

.post-loader-notice-close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(20, 20, 40, 0.9);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

/* Mobile/touch performance mode for loader */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .loader-grid,
    .loader-particles span,
    .loader-scanline {
        animation: none !important;
    }

    .loader-logo {
        filter: none !important;
    }
}

/* Loader Grid Background */
.loader-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Loader Particles */
.loader-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.loader-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-accent);
    animation: particleFloat 3s ease-in-out infinite;
}

.loader-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.loader-particles span:nth-child(2) { left: 20%; top: 80%; animation-delay: 0.2s; }
.loader-particles span:nth-child(3) { left: 30%; top: 40%; animation-delay: 0.4s; }
.loader-particles span:nth-child(4) { left: 40%; top: 60%; animation-delay: 0.6s; }
.loader-particles span:nth-child(5) { left: 50%; top: 30%; animation-delay: 0.8s; }
.loader-particles span:nth-child(6) { left: 60%; top: 70%; animation-delay: 1s; }
.loader-particles span:nth-child(7) { left: 70%; top: 20%; animation-delay: 1.2s; }
.loader-particles span:nth-child(8) { left: 80%; top: 50%; animation-delay: 1.4s; }
.loader-particles span:nth-child(9) { left: 90%; top: 80%; animation-delay: 1.6s; }
.loader-particles span:nth-child(10) { left: 15%; top: 50%; animation-delay: 1.8s; }
.loader-particles span:nth-child(11) { left: 25%; top: 10%; animation-delay: 2s; }
.loader-particles span:nth-child(12) { left: 45%; top: 90%; animation-delay: 2.2s; }
.loader-particles span:nth-child(13) { left: 65%; top: 45%; animation-delay: 2.4s; }
.loader-particles span:nth-child(14) { left: 85%; top: 15%; animation-delay: 2.6s; }
.loader-particles span:nth-child(15) { left: 95%; top: 35%; animation-delay: 2.8s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 1; }
}

.loader-content {
    text-align: center;
    z-index: 2;
}

/* Logo Container */
.loader-logo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    animation: logoGlitch 2s infinite;
}

.loader-logo.glitch::before,
.loader-logo.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-logo.glitch::before {
    animation: glitchLeft 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.loader-logo.glitch::after {
    animation: glitchRight 0.3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitchLeft {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitchRight {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

@keyframes logoGlitch {
    0%, 90%, 100% { filter: none; }
    91% { filter: hue-rotate(90deg); }
    92% { filter: hue-rotate(180deg); }
    93% { filter: hue-rotate(270deg); }
}

/* Rotating Rings */
.loader-logo-ring {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 2px solid transparent;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite;
}

.loader-logo-ring.delay {
    width: 150px;
    height: 150px;
    border-top-color: var(--color-secondary);
    border-right-color: transparent;
    border-bottom-color: var(--color-secondary);
    animation-direction: reverse;
    animation-duration: 2s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Container */
.loader-text-container {
    margin-bottom: 2rem;
}

.loader-text {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 0.5rem;
}

.loader-text .char {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    opacity: 0;
    animation: charReveal 0.1s forwards;
}

.loader-text .char:nth-child(1) { animation-delay: 0.1s; }
.loader-text .char:nth-child(2) { animation-delay: 0.15s; }
.loader-text .char:nth-child(3) { animation-delay: 0.2s; }
.loader-text .char:nth-child(4) { animation-delay: 0.25s; }
.loader-text .char:nth-child(5) { animation-delay: 0.3s; }
.loader-text .char:nth-child(6) { animation-delay: 0.35s; }
.loader-text .char:nth-child(7) { animation-delay: 0.4s; }
.loader-text .char:nth-child(8) { animation-delay: 0.45s; }
.loader-text .char:nth-child(9) { animation-delay: 0.5s; }
.loader-text .char:nth-child(10) { animation-delay: 0.55s; }
.loader-text .char:nth-child(11) { animation-delay: 0.6s; }
.loader-text .char:nth-child(12) { animation-delay: 0.65s; }

@keyframes charReveal {
    0% { opacity: 0; transform: translateY(-20px) rotateX(90deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.loader-subtext {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
}

.cursor-blink {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Progress Container */
.loader-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.loader-progress-track {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-neon);
    border-radius: 4px;
    transition: width 0.1s ease-out;
    position: relative;
}

.loader-progress-glow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}

.loader-progress-track:has(.loader-progress[style*="width"]) .loader-progress-glow {
    opacity: 0.8;
}

.loader-percentage {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 600;
    min-width: 45px;
}

/* Status */
.loader-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loader-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: statusPulse 1s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--color-accent); }
    50% { opacity: 0.5; box-shadow: 0 0 0 8px transparent; }
}

.loader-status .status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scanline Effect */
.loader-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

/* ============================================
   Custom Cursor - Ultra Unique
   ============================================ */
.cursor-container {
    pointer-events: none;
    z-index: 99999999;
}

.cursor {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent 70%);
    animation: cursor-pulse 2s ease-in-out infinite;
}

@keyframes cursor-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.2; }
}

.cursor-follower {
    width: 50px;
    height: 50px;
    position: fixed;
    pointer-events: none;
    z-index: 99999998;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-secondary);
    border-radius: 50%;
    animation: cursor-spin 3s linear infinite;
    transition: all 0.3s var(--transition-smooth);
}

.cursor-follower.hovering .cursor-ring {
    width: 70px;
    height: 70px;
    margin: -10px 0 0 -10px;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-neon-pink);
    animation-duration: 1s;
}

@keyframes cursor-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--gradient-neon);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s var(--transition-smooth);
}

.cursor-follower.hovering .cursor-dot {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary);
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
}

.cursor-trail span {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-neon);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-trail span:nth-child(1) { width: 8px; height: 8px; }
.cursor-trail span:nth-child(2) { width: 7px; height: 7px; }
.cursor-trail span:nth-child(3) { width: 6px; height: 6px; }
.cursor-trail span:nth-child(4) { width: 5px; height: 5px; }
.cursor-trail span:nth-child(5) { width: 4px; height: 4px; }
.cursor-trail span:nth-child(6) { width: 4px; height: 4px; }
.cursor-trail span:nth-child(7) { width: 3px; height: 3px; }
.cursor-trail span:nth-child(8) { width: 3px; height: 3px; }
.cursor-trail span:nth-child(9) { width: 2px; height: 2px; }
.cursor-trail span:nth-child(10) { width: 2px; height: 2px; }

/* Cursor Glow */
.cursor-glow {
    width: 150px;
    height: 150px;
    position: fixed;
    pointer-events: none;
    z-index: 9996;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-glow.active {
    background: radial-gradient(circle, rgba(244, 114, 182, 0.2) 0%, transparent 70%);
}

/* Cursor Text (appears on project cards) */
.cursor-text {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-text.visible {
    opacity: 1;
}

/* Magnetic cursor effect on buttons */
.magnetic-hover {
    transition: transform 0.3s var(--transition-smooth);
}

/* ============================================
   Background Effects
   ============================================ */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

.orbs-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-neon-blue) 0%, transparent 70%);
    bottom: -20%;
    right: 20%;
    animation-delay: -15s;
}

.orb-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-neon-green) 0%, transparent 70%);
    top: 30%;
    right: 40%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -50px) rotate(90deg); }
    50% { transform: translate(0, -100px) rotate(180deg); }
    75% { transform: translate(-50px, -50px) rotate(270deg); }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 16, 0.8);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.nav-logo {
    flex: 1;
}

.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
}

.nav-cta {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.link-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s var(--transition-smooth);
}

.nav-link:hover .link-number,
.nav-link.active .link-number {
    opacity: 1;
    transform: translateY(0);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
    animation: activePulse 1.5s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
    }
    50% { 
        opacity: 0.7; 
        transform: translateX(-50%) scale(1.3);
        box-shadow: 0 0 15px var(--color-primary), 0 0 30px var(--color-primary);
    }
}

.btn-glitch {
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: var(--color-accent);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-text 3s infinite;
    opacity: 0;
}

.btn-glitch:hover::before {
    opacity: 1;
}

.btn-glitch:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

@keyframes glitch-text {
    0%, 100% { transform: translate(-50%, -50%); }
    20% { transform: translate(-52%, -50%); }
    40% { transform: translate(-48%, -50%); }
    60% { transform: translate(-50%, -52%); }
    80% { transform: translate(-50%, -48%); }
}

/* ============================================
   Robot Event Timer
   ============================================ */
.robot-event-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: rgba(10, 10, 30, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 5px;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--transition-smooth);
    box-sizing: border-box;
    white-space: nowrap;
}

.event-skip-btn {
    position: static;
    padding: 0.28rem 0.55rem;
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.45);
    border-radius: 999px;
    color: #67e8f9;
    font-family: var(--font-display);
    font-size: 0.56rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
    margin-left: 0.2rem;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.event-skip-btn:hover {
    color: #ecfeff;
    border-color: rgba(6, 182, 212, 0.85);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

.robot-event-timer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.robot-event-timer:hover::before {
    opacity: 1;
}

.robot-event-timer:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

.event-timer-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: var(--gradient-cyber);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: eventNameGradient 3s linear infinite;
    white-space: nowrap;
}

@keyframes eventNameGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.event-timer-name.laser-active {
    animation: eventNameGradient 3s linear infinite, laserPulse 0.5s ease-in-out infinite;
}

.event-timer-name.tractor-active {
    animation: eventNameGradient 3s linear infinite, tractorPulse 0.8s ease-in-out infinite;
}

.event-timer-name.drone-active {
    animation: eventNameGradient 3s linear infinite, dronePulse 0.3s ease-in-out infinite;
}

@keyframes laserPulse {
    0%, 100% { text-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444; }
    50% { text-shadow: 0 0 20px #ff4444, 0 0 40px #ff4444, 0 0 60px #ff4444; }
}

@keyframes tractorPulse {
    0%, 100% { text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff; }
    50% { text-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 60px #00d4ff; }
}

@keyframes dronePulse {
    0%, 100% { text-shadow: 0 0 10px #ff44ff, 0 0 20px #ff44ff; }
    50% { text-shadow: 0 0 20px #ff44ff, 0 0 40px #ff44ff, 0 0 60px #ff44ff; }
}

/* Bounce animation when event changes */
.event-timer-name.event-bounce {
    animation: eventBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes eventBounce {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    30% { transform: translateY(-8px) scale(1.1); opacity: 1; }
    50% { transform: translateY(-3px) scale(1.05); }
    70% { transform: translateY(-5px) scale(1.08); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.countdown-digits {
    font-family: 'Orbitron', var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-neon-green);
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
    letter-spacing: 1px;
    animation: countdownPulse 1s ease-in-out infinite;
    min-width: 3.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.countdown-digits.urgent {
    color: #ff4444;
    text-shadow: 0 0 6px rgba(255, 68, 68, 0.7);
    animation: countdownUrgent 0.5s ease-in-out infinite;
}

.countdown-digits.active {
    color: #ffaa00;
    text-shadow: 0 0 6px rgba(255, 170, 0, 0.7);
    animation: countdownActive 0.3s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes countdownUrgent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes countdownActive {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.02); }
}

.event-timer-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    pointer-events: none;
}

.event-timer-bar {
    height: 100%;
    width: 100%;
    background: var(--gradient-primary);
    transform-origin: left;
    transition: transform 0.1s linear;
}

.event-timer-bar.laser {
    background: linear-gradient(90deg, #ff4444, #ff8800);
}

.event-timer-bar.tractor {
    background: linear-gradient(90deg, #00d4ff, #8b5cf6);
}

.event-timer-bar.drone {
    background: linear-gradient(90deg, #ff44ff, #ff4444);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-neon-green);
    margin-bottom: 1.5rem;
}

.status-badge.busy {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.status-badge.busy .status-dot {
    background: #fbbf24;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-neon-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.title-line.big {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

.title-line.accent {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Rotating titles for job roles - JS controlled */
.rotating-titles {
    display: inline-block;
    position: relative;
    min-width: 400px;
    height: 1.3em;
}

.rotating-titles span {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    white-space: nowrap;
    transform: translateX(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.rotating-titles span.active {
    opacity: 1;
    transform: translateX(0);
}

.rotating-titles span.exit {
    opacity: 0;
    transform: translateX(100%);
}

/* Title Indicator Dots */
.title-indicators {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    position: relative;
    top: -0.5rem;
}

.title-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    animation: dotBounce 2s ease-in-out infinite;
}

.title-dot:nth-child(1) { animation-delay: 0s; }
.title-dot:nth-child(2) { animation-delay: 0.1s; }
.title-dot:nth-child(3) { animation-delay: 0.2s; }
.title-dot:nth-child(4) { animation-delay: 0.3s; }
.title-dot:nth-child(5) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.title-dot:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: scale(1.2);
    animation-play-state: paused;
}

.title-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.3);
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.rotating-words {
    height: 1.5em;
    overflow: hidden;
    position: relative;
}

.rotating-words span {
    display: block;
    color: var(--color-primary);
    font-weight: 600;
    animation: rotate-words 52s infinite;
}

@keyframes rotate-words {
    0%, 7.2% { transform: translateY(0); }
    7.7%, 14.9% { transform: translateY(-100%); }
    15.4%, 22.6% { transform: translateY(-200%); }
    23.1%, 30.3% { transform: translateY(-300%); }
    30.8%, 38% { transform: translateY(-400%); }
    38.5%, 45.7% { transform: translateY(-500%); }
    46.2%, 53.4% { transform: translateY(-600%); }
    53.9%, 61.1% { transform: translateY(-700%); }
    61.6%, 68.8% { transform: translateY(-800%); }
    69.3%, 76.5% { transform: translateY(-900%); }
    77%, 84.2% { transform: translateY(-1000%); }
    84.7%, 91.9% { transform: translateY(-1100%); }
    92.4%, 100% { transform: translateY(-1200%); }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    position: relative;
    cursor: none;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.stat-label {
    position: relative;
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.stat-label::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-neon);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: clip-path 0.3s;
    z-index: -1;
}

.stat-label:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 0);
}

/* Fun Persistence Popup */
.fun-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999990;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fun-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-content {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 450px;
    text-align: center;
    position: relative;
    animation: popIn 0.4s var(--transition-bounce);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.popup-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.popup-content em {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.popup-definition {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.6;
}

.popup-image {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 10px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--color-accent);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn-cyber {
    position: relative;
    padding: 1rem 2.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    overflow: hidden;
}

.btn-cyber-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-neon);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: clip-path 0.3s;
}

.btn-cyber:hover .btn-cyber-bg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 0);
}

.btn-cyber-text {
    position: relative;
    z-index: 1;
}

.btn-outline-glow {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.btn-outline-glow:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.hero-right {
    position: relative;
    height: 600px;
}

#canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.deco-ring {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

.ring-1 {
    width: 400px;
    height: 400px;
    border-style: dashed;
}

.ring-2 {
    width: 500px;
    height: 500px;
    animation-direction: reverse;
    animation-duration: 40s;
}

.ring-3 {
    width: 600px;
    height: 600px;
    border-style: dotted;
    animation-duration: 50s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    z-index: 2;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    left: 2rem;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
}

.social-link {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: all 0.3s;
    position: relative;
}

.social-link:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

.social-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.social-line {
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 6rem 4rem;
    max-width: calc(100vw - 60px);
    margin: 0;
    margin-left: 60px;
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

.section-bg-text {
    display: none;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-neon);
}

@keyframes tagLinePulse {
    0%, 100% { opacity: 0.5; width: 40px; }
    50% { opacity: 1; width: 60px; }
}

.tag-text {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 50px;
    background: rgba(0, 255, 136, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    white-space: nowrap;
}

.tag-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    animation: tagShine 3s ease-in-out infinite;
}

@keyframes tagShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.tag-text:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--color-accent);
    transform: scale(1.05);
}

.tag-icon {
    margin-right: 0.3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 1rem;
}

.section-title .title-main {
    display: block;
    letter-spacing: 2px;
}

.section-title .highlight {
    display: block;
    background: var(--gradient-neon);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-style: italic;
}

.section-title .highlight.glitch-hover {
    transition: all 0.3s;
}

.section-title .highlight.glitch-hover:hover {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #00ffff,
        #0000ff,
        #8b00ff,
        #ff0000
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowWave 1.5s linear infinite;
}

@keyframes rainbowWave {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Electric Flicker Effect for Excellence */
.section-title .highlight.electric-hover {
    transition: all 0.3s;
}

.section-title .highlight.electric-hover:hover {
    animation: electricFlicker 0.8s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    filter: brightness(1.15);
}

@keyframes electricFlicker {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 0.5),
            0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% { 
        opacity: 0.92;
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 0.6),
            0 0 30px rgba(0, 255, 255, 0.4);
    }
}

@keyframes glitchText {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 80%;
    height: 3px;
    background: var(--gradient-neon);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
}

.text-gradient {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* ============================================
   About Section
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

.about-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-frame {
    position: relative;
    width: 300px;
    height: 350px;
    background: var(--gradient-neon);
    padding: 3px;
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.avatar-image {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.avatar-frame:hover .profile-photo {
    filter: grayscale(0%) contrast(1.05);
    transform: scale(1.05);
}

.avatar-placeholder {
    text-align: center;
}

.avatar-icon {
    font-size: 5rem;
}

.avatar-glitch {
    position: absolute;
    inset: 0;
    background: var(--gradient-neon);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
    opacity: 0;
    animation: glitch 5s infinite;
}

@keyframes glitch {
    0%, 94%, 100% { opacity: 0; transform: translate(0); }
    95% { opacity: 0.5; transform: translate(-5px, 5px); }
    96% { opacity: 0.3; transform: translate(5px, -5px); }
    97% { opacity: 0.5; transform: translate(-3px, 3px); }
}

.avatar-decoration {
    position: absolute;
    inset: -50px;
    pointer-events: none;
}

.avatar-orbit {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.orbit-1 {
    inset: 0;
}

.orbit-2 {
    inset: -30px;
    animation-direction: reverse;
    animation-duration: 30s;
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--color-primary);
}

.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 2rem;
    animation: float-random 6s ease-in-out infinite;
}

.icon-1 { top: 0; left: 0; animation-delay: 0s; }
.icon-2 { top: 10%; right: 0; animation-delay: -1s; }
.icon-3 { bottom: 20%; left: -10%; animation-delay: -2s; }
.icon-4 { bottom: 0; right: 10%; animation-delay: -3s; }
.icon-5 { top: 40%; left: -15%; animation-delay: -4s; }

@keyframes float-random {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(10deg); }
    50% { transform: translate(-5px, -25px) rotate(-5deg); }
    75% { transform: translate(-15px, -10px) rotate(5deg); }
}

/* Resume Button */
.about-cta-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
    width: 300px;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resume-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-neon);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: clip-path 0.3s;
    z-index: -1;
}

.resume-btn:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 0);
}

.resume-btn-icon {
    font-size: 1rem;
}

.resume-btn-text {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .about-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .resume-btn {
        width: 100%;
        max-width: 300px;
    }
}

.about-text {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    min-width: 0;
}

.about-intro {
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    word-wrap: break-word;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-card {
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.detail-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.detail-card:hover .card-shine {
    transform: translateX(100%);
}

/* Tilt Card 3D Effect Styles */
.tilt-card {
    transition: transform 0.1s ease-out;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.detail-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.detail-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.skills-section {
    margin-top: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.skills-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0;
}

.skills-track {
    display: flex;
    gap: 1rem;
    animation: skills-scroll 60s linear infinite;
    width: max-content;
    will-change: transform;
}

.skill-chip {
    padding: 0.5rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.skill-chip.experienced {
    border-color: var(--color-accent);
    background: rgba(0, 255, 136, 0.1);
    color: var(--color-accent);
}

.skill-chip.intermediate {
    border-color: var(--color-secondary);
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-secondary);
}

.skill-chip.entry {
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-primary);
}

.skill-chip:hover {
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

@keyframes skills-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   Work Section
   ============================================ */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-item {
    position: relative;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(15, 15, 35, 0.9), rgba(10, 10, 26, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(244, 114, 182, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.project-item::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-item:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.project-item:hover::before {
    opacity: 1;
}

.project-item:hover::after {
    opacity: 1;
}

.project-number {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(244, 114, 182, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    z-index: 2;
    transition: all 0.3s;
}

.project-item:hover .project-number {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(244, 114, 182, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.project-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.8), rgba(15, 15, 35, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s, filter 0.3s;
}

.project-item:hover .project-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.project-placeholder {
    font-size: 2rem;
    filter: grayscale(0.3);
    transition: filter 0.3s;
}

.project-item:hover .project-placeholder {
    filter: grayscale(0);
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(244, 114, 182, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-item:hover .project-image-overlay {
    opacity: 1;
}

.project-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.25rem 0.6rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.65rem;
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.3s;
}

.project-item:hover .project-tags span {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-desc {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: all 0.3s;
}

.project-link:hover {
    color: var(--color-accent);
    gap: 0.6rem;
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.project-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   Marquee Section
   ============================================ */
.marquee-section {
    padding: 4rem 0;
    background: var(--color-bg-secondary);
    overflow: hidden;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.marquee {
    display: flex;
    overflow: hidden;
    margin: 1rem 0;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.marquee-content.reverse {
    animation-direction: reverse;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    -webkit-text-stroke: 1px var(--color-text-muted);
    color: transparent;
}

.marquee-content .star {
    color: var(--color-primary);
    -webkit-text-stroke: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.contact-title span {
    display: inline;
}

.contact-title .title-top {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-title .highlight {
    display: block;
    font-size: 1.8em;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(139, 92, 246, 0.5);
    animation: glowPulse 3s ease-in-out infinite;
}

/* Connect word split animation */
.connect-word {
    display: inline-flex !important;
    cursor: pointer;
}

.connect-word .con,
.connect-word .nect {
    display: inline-block;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.3s ease;
}

.connect-word .con {
    transform: translateX(0);
}

.connect-word .nect {
    transform: translateX(0);
}

/* Default state: split apart */
.connect-word:not(:hover) .con {
    animation: conBounce 0.5s ease-out forwards;
}

.connect-word:not(:hover) .nect {
    animation: nectBounce 0.5s ease-out forwards;
}

/* Hover state: come together */
.connect-word:hover .con {
    transform: translateX(0);
    animation: conMerge 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
}

.connect-word:hover .nect {
    transform: translateX(0);
    animation: nectMerge 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8));
}

@keyframes conBounce {
    0% { transform: translateX(0); }
    50% { transform: translateX(-12px); }
    100% { transform: translateX(-8px); }
}

@keyframes nectBounce {
    0% { transform: translateX(0); }
    50% { transform: translateX(12px); }
    100% { transform: translateX(8px); }
}

@keyframes conMerge {
    0% { transform: translateX(-8px); }
    60% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

@keyframes nectMerge {
    0% { transform: translateX(8px); }
    60% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.7)); }
}

.contact-subtitle {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--color-primary);
    transform: translateX(10px);
}

.info-icon {
    font-size: 2rem;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.info-value {
    font-weight: 600;
    transition: color 0.3s;
}

a.info-value:hover {
    color: var(--color-primary);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social-link {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.contact-social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(10, 10, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.8rem;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-neon);
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Contact Section - Enhanced Application Forms
   ============================================ */

/* Floating Orbs */
.contact-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.contact-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.contact-orbs .orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent 70%);
    top: 10%;
    left: 5%;
}

.contact-orbs .orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -7s;
}

.contact-orbs .orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.4), transparent 70%);
    bottom: 20%;
    left: 30%;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(25px, 25px) scale(1.02); }
}

/* Header Decoration */
.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.deco-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; width: 40px; }
    50% { opacity: 1; width: 50px; }
}

.deco-diamond {
    color: var(--color-primary);
    font-size: 0.6rem;
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(45deg); opacity: 0.7; }
}

/* Application Tabs */
.application-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.app-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

.app-tab .tab-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 30, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    z-index: -1;
}

.app-tab .tab-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.app-tab .tab-text {
    position: relative;
    z-index: 1;
}

.app-tab:hover .tab-bg {
    border-color: var(--color-primary);
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.2);
}

.app-tab:hover {
    color: var(--color-text);
    transform: translateY(-2px);
}

.app-tab.active .tab-bg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.3));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.app-tab.active {
    color: white;
}

/* Form Glass Container */
.form-glass-container {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.form-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    z-index: 0;
}

.form-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 2;
}

.form-corner.top-left {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--color-primary);
    border-left: 3px solid var(--color-primary);
    border-radius: 24px 0 0 0;
}

.form-corner.top-right {
    top: -1px;
    right: -1px;
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    border-radius: 0 24px 0 0;
}

.form-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-bottom: 3px solid var(--color-primary);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 0 0 24px;
}

.form-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    border-radius: 0 0 24px 0;
}

/* Application Form */
.application-form {
    position: relative;
    z-index: 1;
}

.application-form.hidden {
    display: none;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-emoji-container {
    margin-bottom: 0.5rem;
}

.form-emoji {
    font-size: 2.5rem;
    display: inline-block;
    animation: emojiFloat 3s ease-in-out infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Progress Bar */
.form-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 8.33%;
    background: var(--gradient-neon);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.progress-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--color-primary);
    min-width: 50px;
    text-align: right;
}

/* Questions Container */
.questions-container {
    position: relative;
    min-height: 140px;
    margin-bottom: 1.5rem;
}

.question-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.question-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.question-slide.prev {
    transform: translateX(-30px);
}

.question-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.question-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.question-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.question-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.question-textarea {
    min-height: 100px;
    resize: none;
}

/* Navigation Buttons */
.question-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prev-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.prev-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.next-btn {
    background: var(--gradient-neon);
    color: white;
    flex: 1;
    max-width: 200px;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    flex: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.nav-btn.hidden {
    display: none;
}

/* Contact Content Layout */
.contact-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .application-tabs {
        gap: 0.5rem;
    }
    
    .app-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .app-tab .tab-text {
        display: none;
    }
    
    .app-tab .tab-icon {
        font-size: 1.4rem;
    }
    
    .form-glass-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-header h3 {
        font-size: 1.2rem;
    }
    
    .question-label {
        font-size: 1rem;
    }
    
    .header-decoration {
        display: none;
    }
}

/* ============================================
   Goals Section - Stamp Book Style
   ============================================ */
.goals-section.stamp-book {
    padding: 6rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.goals-section.stamp-book .section-header {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.stamp-book-wrapper {
    perspective: 2000px;
    width: 100%;
    max-width: 950px;
    margin-top: -5rem;
}

.stamp-book-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
}

/* Book Spine */
.book-spine {
    position: absolute;
    left: 50%;
    top: -10px;
    bottom: -10px;
    width: 50px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, 
        #5c4033 0%, 
        #8B4513 15%,
        #6b4423 50%, 
        #8B4513 85%,
        #5c4033 100%);
    border-radius: 4px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.book-spine::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, 
        #3d2817 0%, 
        #5c4033 50%, 
        #3d2817 100%);
    border-radius: 2px;
}

/* Left and Right Sides */
.book-left-side,
.book-right-side {
    width: 50%;
    position: relative;
    height: 480px;
}

.book-left-side {
    z-index: 1;
}

.book-right-side {
    z-index: 50;
    perspective: 2000px;
    transform-style: preserve-3d;
    overflow: visible;
}

/* Hide left page when pages are flipped */
.book-left-side.hidden {
    visibility: hidden;
}

/* Base stamp page styling */
.stamp-page {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e1 50%, #ebe5d6 100%);
    padding: 1.5rem;
    padding-bottom: 4rem;
    position: relative;
    height: 480px;
    box-sizing: border-box;
    border-radius: 3px;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.1),
        inset 0 0 50px rgba(139, 69, 19, 0.03);
}

/* Paper texture */
.stamp-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    border-radius: 3px;
}

/* Page curl effect */
.page-curl {
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 50px;
    z-index: 5;
}

.page-curl.right,
.book-left-side .page-curl {
    right: 0;
    background: linear-gradient(315deg, transparent 50%, #d4cfc0 50%, #e8e2d4 60%);
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
}

.book-left-side .stamp-page {
    border-radius: 8px 0 0 8px;
    margin-right: 25px;
    height: 480px;
    box-shadow: 
        -5px 5px 20px rgba(0, 0, 0, 0.15),
        inset -2px 0 10px rgba(0, 0, 0, 0.05);
}

.book-left-side .page-curl {
    left: 0;
    right: auto;
    background: linear-gradient(45deg, transparent 50%, #d4cfc0 50%, #e8e2d4 60%);
    box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.1);
}

/* Flippable page */
.flippable-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    cursor: pointer;
}

/* Initial stacking: page-1 on top, page-2 next, page-3 at bottom */
#page-1 { z-index: 100; }
#page-2 { z-index: 99; }
#page-3 { z-index: 98; }

.flippable-page.flipped {
    transform: rotateY(-180deg);
    z-index: 150 !important;
}

.flippable-page .page-front,
.flippable-page .page-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flippable-page .page-front {
    border-radius: 0 8px 8px 0;
    z-index: 2;
    box-shadow: 
        5px 5px 20px rgba(0, 0, 0, 0.2),
        inset 2px 0 10px rgba(0, 0, 0, 0.05);
}

.flippable-page .page-back {
    border-radius: 8px 0 0 8px;
    transform: rotateY(180deg);
    z-index: 1;
    box-shadow: 
        -5px 5px 20px rgba(0, 0, 0, 0.2),
        inset -2px 0 10px rgba(0, 0, 0, 0.05);
}

/* Under page (revealed when flipped) */
.under-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 480px;
    border-radius: 0 8px 8px 0;
    z-index: 1;
    box-shadow: 
        inset 2px 0 15px rgba(0, 0, 0, 0.1);
}

/* Page header */
.page-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #2a4a7a;
}

.page-icon {
    font-size: 1.5rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #2a4a7a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stamp-counter {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.counter-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
}

.counter-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #2a4a7a;
    font-weight: bold;
}

.page-number {
    position: absolute;
    right: 1rem;
    top: 1.5rem;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* Page back (flipped 180deg) - position at top right (away from spine) */
.page-back .page-number {
    top: 1.5rem;
    right: calc(1rem + 15px);
    bottom: auto;
    left: auto;
}

.page-number-bottom {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #999;
    font-style: italic;
    z-index: 5;
}

/* Left page - position page number to the left */
.book-left-side .page-number-bottom {
    left: 1rem;
    transform: none;
}

/* Goals Intro Section */
.goals-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem;
    text-align: center;
    height: calc(100% - 80px);
}

.goals-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: #2c3e50;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.goals-author {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.goals-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    padding: 0 0.5rem;
}

.goals-wisdom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.wisdom-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(157,0,255,0.05));
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.wisdom-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.wisdom-text {
    font-size: 0.75rem;
    color: #444;
    font-style: italic;
    line-height: 1.35;
    text-align: left;
}

/* Stamps grid */
.stamps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stamp:hover {
    transform: scale(1.1);
}

.stamp-border {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stamp edge effect */
.stamp-border::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        #c0c0c0 0deg 10deg,
        transparent 10deg 20deg
    );
    z-index: -1;
    opacity: 0.5;
}

.stamp-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d0d0d0, #a0a0a0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    filter: grayscale(100%);
    opacity: 0.5;
}

.stamp-label {
    font-size: 0.65rem;
    color: #888;
    text-align: center;
    font-weight: 500;
}

/* Flip button */
.flip-btn {
    position: absolute;
    bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: #2a4a7a;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.flip-btn:hover {
    background: #1a3a6a;
    transform: scale(1.05);
}

.flip-btn.next-page {
    right: 1rem;
}

.flip-btn.prev-page {
    left: 1rem;
}

/* When both buttons on same page */
.stamp-page .flip-btn.prev-page + .flip-btn.next-page,
.stamp-page .flip-btn.next-page:nth-of-type(2) {
    right: 1rem;
}

.page-back .flip-btn.prev-page {
    left: 1rem;
}

.page-back .flip-btn.next-page {
    right: 1rem;
}

/* Earned stamp styles - Default (blue fallback) */
.stamp.earned .stamp-border {
    background: linear-gradient(145deg, #5b8dd9, #3a6db5);
    box-shadow: 
        0 4px 15px rgba(58, 109, 181, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.stamp.earned .stamp-border::before {
    background: repeating-conic-gradient(
        from 0deg,
        #5b8dd9 0deg 10deg,
        transparent 10deg 20deg
    );
    opacity: 0.8;
}

.stamp.earned .stamp-inner {
    background: linear-gradient(145deg, #7aa5e8, #4a7dc5);
    filter: none;
    opacity: 1;
    animation: stampGlow 2s ease-in-out infinite alternate;
}

.stamp.earned .stamp-label {
    color: #2a4a7a;
    font-weight: 600;
}

@keyframes stampGlow {
    from { box-shadow: 0 0 5px rgba(122, 165, 232, 0.5); }
    to { box-shadow: 0 0 15px rgba(122, 165, 232, 0.8); }
}

/* === Section-Specific Stamp Colors === */

/* Career - Gold/Amber */
.stamp.earned .career-stamp {
    background: linear-gradient(145deg, #d4a017, #b8860b) !important;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .career-stamp::before {
    background: repeating-conic-gradient(from 0deg, #d4a017 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .career-stamp .stamp-inner {
    background: linear-gradient(145deg, #f0c040, #c89b20) !important;
}
[data-section="career"] .stamp.earned .stamp-label { color: #8b6914; }

/* Projects - Green */
.stamp.earned .projects-stamp {
    background: linear-gradient(145deg, #4caf50, #2e7d32) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .projects-stamp::before {
    background: repeating-conic-gradient(from 0deg, #4caf50 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .projects-stamp .stamp-inner {
    background: linear-gradient(145deg, #66bb6a, #388e3c) !important;
}
[data-section="projects"] .stamp.earned .stamp-label { color: #1b5e20; }

/* Business - Purple */
.stamp.earned .business-stamp {
    background: linear-gradient(145deg, #9c27b0, #7b1fa2) !important;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .business-stamp::before {
    background: repeating-conic-gradient(from 0deg, #9c27b0 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .business-stamp .stamp-inner {
    background: linear-gradient(145deg, #ba68c8, #8e24aa) !important;
}
[data-section="business"] .stamp.earned .stamp-label { color: #6a1b9a; }

/* Learning - Blue */
.stamp.earned .learning-stamp {
    background: linear-gradient(145deg, #1976d2, #1565c0) !important;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .learning-stamp::before {
    background: repeating-conic-gradient(from 0deg, #1976d2 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .learning-stamp .stamp-inner {
    background: linear-gradient(145deg, #42a5f5, #1e88e5) !important;
}
[data-section="learning"] .stamp.earned .stamp-label { color: #0d47a1; }

/* Health & Performance - Red/Orange */
.stamp.earned .health-stamp {
    background: linear-gradient(145deg, #e65100, #d84315) !important;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .health-stamp::before {
    background: repeating-conic-gradient(from 0deg, #e65100 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .health-stamp .stamp-inner {
    background: linear-gradient(145deg, #ff7043, #e64a19) !important;
}
[data-section="health"] .stamp.earned .stamp-label { color: #bf360c; }

/* Experiences - Teal/Cyan */
.stamp.earned .experiences-stamp {
    background: linear-gradient(145deg, #00897b, #00695c) !important;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .experiences-stamp::before {
    background: repeating-conic-gradient(from 0deg, #00897b 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .experiences-stamp .stamp-inner {
    background: linear-gradient(145deg, #26a69a, #00796b) !important;
}
[data-section="experiences"] .stamp.earned .stamp-label { color: #004d40; }

/* Future Dreams - Pink/Magenta */
.stamp.earned .dreams-stamp {
    background: linear-gradient(145deg, #e91e63, #c2185b) !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4), inset 0 2px 4px rgba(255,255,255,0.2) !important;
}
.stamp.earned .dreams-stamp::before {
    background: repeating-conic-gradient(from 0deg, #e91e63 0deg 10deg, transparent 10deg 20deg) !important;
}
.stamp.earned .dreams-stamp .stamp-inner {
    background: linear-gradient(145deg, #f06292, #d81b60) !important;
}
[data-section="dreams"] .stamp.earned .stamp-label { color: #880e4f; }

.page-nav {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-arrow {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #8b7355;
    color: #f5f0e1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-arrow:hover:not(:disabled) {
    background: #6b5344;
    transform: scale(1.1);
}

.page-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.book-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.book-decoration.top-right {
    top: 1rem;
    right: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50 Q50 10 90 50 Q50 90 10 50' fill='none' stroke='%232a4a7a' stroke-width='2'/%3E%3C/svg%3E");
}

.book-decoration.bottom-left {
    bottom: 1rem;
    left: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%232a4a7a' stroke-width='2'/%3E%3C/svg%3E");
}

/* Mobile Page Navigation - Hidden on desktop */
.mobile-page-nav {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .stamp-book-wrapper {
        perspective: none;
        padding-bottom: 0;
    }
    
    .stamp-book-container {
        flex-direction: column;
        min-height: auto;
        position: relative;
    }
    
    .book-spine {
        display: none;
    }
    
    .book-left-side,
    .book-right-side {
        width: 100%;
        position: relative;
    }
    
    /* Hide both sides by default on mobile */
    .book-left-side,
    .book-right-side {
        display: none;
    }
    
    /* Hide all pages inside right side by default */
    .book-right-side .flippable-page,
    .book-right-side .under-page {
        display: none;
    }
    
    /* Show active mobile page/side */
    .book-left-side.mobile-active,
    .book-right-side.mobile-active {
        display: block !important;
    }
    
    .book-right-side .flippable-page.mobile-active,
    .book-right-side .under-page.mobile-active {
        display: block !important;
    }
    
    /* For flippable pages, show the correct side */
    .flippable-page.mobile-active .page-front,
    .flippable-page.mobile-active .page-back {
        display: none;
        position: relative;
        backface-visibility: visible;
        transform: none;
    }
    
    .flippable-page.mobile-active .page-front.mobile-visible,
    .flippable-page.mobile-active .page-back.mobile-visible {
        display: block !important;
    }
    
    .book-left-side .stamp-page {
        border-radius: 8px;
        margin-right: 0;
        margin-bottom: 0;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    /* Fix page 1 (My Journey) height on mobile */
    .book-left-side .goals-intro {
        height: auto;
        padding: 1rem;
    }
    
    .book-left-side .goals-description p {
        font-size: 0.9rem;
    }
    
    .flippable-page {
        position: relative;
        left: 0;
        transform: none !important;
    }
    
    .flippable-page.flipped {
        transform: none !important;
    }
    
    .under-page {
        left: 0;
        border-radius: 8px;
        position: relative;
    }
    
    .flippable-page .page-front,
    .flippable-page .page-back {
        border-radius: 8px;
    }
    
    /* Hide desktop flip buttons on mobile */
    .flip-btn {
        display: none !important;
    }
    
    /* Mobile Page Navigation */
    .mobile-page-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    /* Remove fixed heights on mobile - let content determine height */
    .stamp-book-container .stamp-page {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .mobile-nav-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        background: rgba(139, 92, 246, 0.1);
        color: var(--color-primary);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-btn:hover:not(:disabled) {
        background: var(--color-primary);
        color: var(--color-bg);
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    
    .mobile-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    .mobile-page-indicator {
        font-family: var(--font-display);
        font-size: 1.2rem;
        color: var(--color-primary);
        min-width: 60px;
        text-align: center;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stamp-border {
        width: 55px;
        height: 55px;
    }
    
    .stamp-inner {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 2rem 4rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-left p,
.footer-right p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-credit-text {
    margin: 0;
}

.footer-support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #67e8f9;
    border: 1px solid rgba(34, 211, 238, 0.55);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(139, 92, 246, 0.08));
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 16px rgba(34, 211, 238, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-support-link:hover {
    color: #ecfeff;
    border-color: rgba(103, 232, 249, 0.95);
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(236, 254, 255, 0.15),
        0 0 24px rgba(34, 211, 238, 0.35);
}

.footer-support-icon {
    font-size: 0.85rem;
    line-height: 1;
}

/* ============================================
   Chatbot Widget
   ============================================ */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chatbot-trigger {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.chatbot-trigger:hover {
    transform: scale(1.05);
}

/* Animated Emoji Face */
.emoji-face {
    width: 80px;
    height: 80px;
    position: relative;
    animation: emoji-float 3s ease-in-out infinite;
}

.robot-face {
    width: 160px;
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.robot-face canvas {
    border-radius: 12px;
}

.laser-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

@keyframes emoji-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    25% { transform: translateY(-8px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    75% { transform: translateY(-5px) rotate(0deg); }
}

.emoji-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: emoji-glow-pulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes emoji-glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.2; }
}

.emoji-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    border: 2px dashed var(--color-primary);
    border-radius: 50%;
    animation: emoji-ring-spin 8s linear infinite;
    z-index: 0;
    opacity: 0.5;
}

@keyframes emoji-ring-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.face-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffd93d 0%, #f9c846 50%, #f0a500 100%);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 8px 30px rgba(249, 200, 70, 0.5),
        inset 0 -5px 15px rgba(0, 0, 0, 0.1),
        inset 0 5px 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
    overflow: hidden;
}

.chatbot-trigger:hover .face-container {
    transform: scale(1.1);
}

/* Eyebrows */
.emoji-eyebrows {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    display: flex;
    justify-content: space-between;
}

.eyebrow {
    width: 14px;
    height: 4px;
    background: #5a4a3a;
    border-radius: 2px;
    animation: eyebrow-move 3s ease-in-out infinite;
}

.eyebrow.left {
    transform: rotate(-10deg);
    animation-delay: 0s;
}

.eyebrow.right {
    transform: rotate(10deg);
    animation-delay: 0.1s;
}

@keyframes eyebrow-move {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    30% { transform: translateY(-3px) rotate(-15deg); }
    60% { transform: translateY(0) rotate(-5deg); }
}

/* Eyes */
.emoji-eyes {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
}

.emoji-eye {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pupil {
    width: 8px;
    height: 8px;
    background: #2d1f10;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.eye-shine {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 3px;
}

/* Glasses */
.emoji-glasses {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.lens {
    width: 22px;
    height: 18px;
    border: 3px solid #d4a017;
    border-radius: 4px;
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

.lens.left {
    left: -26px;
}

.lens.right {
    right: -26px;
}

.bridge {
    width: 8px;
    height: 3px;
    background: #d4a017;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Mouth */
.emoji-mouth {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 14px;
    background: #c73e1d;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    animation: mouth-talk 0.4s ease-in-out infinite;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

@keyframes mouth-talk {
    0%, 100% { height: 14px; width: 28px; }
    50% { height: 10px; width: 24px; }
}

.tongue {
    width: 14px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}

/* Cheeks */
.emoji-cheeks {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.cheek {
    width: 12px;
    height: 8px;
    background: rgba(255, 150, 150, 0.5);
    border-radius: 50%;
    animation: cheek-blush 2s ease-in-out infinite;
}

@keyframes cheek-blush {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Waving Hand */
.waving-hand {
    position: absolute;
    bottom: -5px;
    right: -15px;
    font-size: 1.8rem;
    animation: hand-wave 0.6s ease-in-out infinite;
    z-index: 5;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

@keyframes hand-wave {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(25deg) scale(1.1); }
    75% { transform: rotate(-15deg) scale(1); }
}

/* Speech Bubble - Futuristic Tech Style */
.speech-bubble {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: #00ffff;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.4);
    animation: bubble-float 3s ease-in-out infinite, bubble-glow 2s ease-in-out infinite alternate;
    white-space: nowrap;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    overflow: hidden;
}

.speech-bubble.robot-bubble-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.6), transparent);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.speech-text {
    display: block;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

@keyframes bubble-float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes bubble-glow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}

.speech-arrow {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 14px solid #16213e;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 255, 255, 0.3));
}

.speech-arrow::before {
    content: '';
    position: absolute;
    left: -11px;
    top: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid rgba(0, 255, 255, 0.4);
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
}

.trigger-pulse {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Mini Avatar in Chat Header */
.mini-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd89b, #f0c27b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.mini-avatar-face {
    font-size: 1.2rem;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    height: 600px;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gradient-neon);
    color: white;
}

.chatbot-avatar-header {
    position: relative;
    font-size: 1.5rem;
}

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--color-neon-green);
    border-radius: 50%;
    border: 2px solid var(--color-bg-secondary);
}

.chatbot-info {
    flex: 1;
}

.chatbot-name {
    display: block;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    transition: transform 0.3s;
}

.chatbot-close:hover {
    transform: rotate(90deg);
}

.chatbot-close svg {
    width: 20px;
    height: 20px;
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: message-in 0.3s var(--transition-smooth);
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: var(--gradient-neon);
}

.message-content {
    background: var(--color-bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 15px;
}

.message.user .message-content {
    background: var(--gradient-neon);
}

.message-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-content .chatbot-section-link {
    color: #67e8f9;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.message-content .chatbot-section-link:hover {
    color: #a5f3fc;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.quick-reply {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-reply:hover {
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.quick-reply:active {
    transform: scale(0.95);
}

/* Persistent Quick Replies Carousel */
.quick-replies-carousel {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    background: rgba(10, 10, 26, 0.5);
}

.quick-replies-carousel::before,
.quick-replies-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.quick-replies-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-secondary) 0%, transparent 100%);
}

.quick-replies-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-secondary) 0%, transparent 100%);
}

.quick-replies-track {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    animation: scroll-quick-replies 40s linear infinite;
    width: max-content;
    will-change: transform;
}

.quick-replies-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-quick-replies {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid transparent;
    border-radius: 50px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.send-btn {
    width: 45px;
    height: 45px;
    background: var(--gradient-neon);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .nav {
        padding: 1rem 2rem;
    }
    
    /* Nav links now controlled by hamburger menu */
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 6rem 2rem 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-right {
        height: 400px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    section {
        padding: 4rem 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .social-sidebar {
        display: none;
    }
    
    .chatbot-window {
        width: 320px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
    
    .title-line.big {
        font-size: 3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Hide event timer on mobile */
    .robot-event-timer,
    .event-skip-btn {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        align-items: flex-start;
        padding-right: 86px;
    }

    .footer-left {
        justify-content: flex-start;
        width: 100%;
    }
    
    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chatbot-window {
        position: fixed;
        left: 50%;
        top: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%) scale(1);
        width: 95vw;
        max-width: 420px;
        height: 85vh;
        max-height: 700px;
        border-radius: 18px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    }
    
    .chatbot-window.active {
        transform: translate(-50%, -50%) scale(1);
    }
}
/* ============================================
   Googly Eyes Easter Egg
   ============================================ */
.googly-eyes {
    position: absolute;
    top: 25%;
    left: 38%;
    transform: translateX(-50%) rotate(-10deg);
    display: flex;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.googly-eyes.active {
    opacity: 1;
    pointer-events: auto;
}

.googly-eye {
    position: relative;
}

.eye-white {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 3px #222;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.eye-pupil {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 30% 30%, #444, #000);
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.eye-pupil::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

/* Wiggle animation when eyes appear */
.googly-eyes.active .googly-eye {
    animation: eyePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.googly-eyes.active .googly-eye.left {
    animation-delay: 0s;
}

.googly-eyes.active .googly-eye.right {
    animation-delay: 0.1s;
}

@keyframes eyePop {
    0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Blink animation */
@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.googly-eyes.active .eye-white {
    animation: blink 4s infinite;
    animation-delay: 2s;
}

/* Photo Speech Bubble */
.photo-speech-bubble {
    position: absolute;
    top: 40%;
    right: -50px;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    white-space: normal;
    max-width: 180px;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    transform-origin: left center;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.photo-speech-bubble.active {
    opacity: 1;
    transform: scale(1);
}

.photo-speech-bubble .speech-bubble-tail {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid #fff;
}

.photo-speech-bubble .speech-bubble-text {
    display: inline-block;
}

@keyframes bubblePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.photo-speech-bubble.active {
    animation: bubblePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bubbleFadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

.photo-speech-bubble.fade-out {
    animation: bubbleFadeOut 0.4s ease-out forwards;
}

/* Resume Modal */
.resume-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.resume-modal.active {
    opacity: 1;
    visibility: visible;
}

.resume-modal-content {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
    overflow: visible;
    position: relative;
}

.resume-modal.active .resume-modal-content {
    transform: scale(1);
}

.resume-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.resume-modal-close:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.resume-zoom-controls {
    position: absolute;
    top: 16px;
    left: 10px;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.resume-zoom-btn {
    min-width: 44px;
    height: 36px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 10px;
    background: rgba(8, 10, 30, 0.9);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 0.7rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.resume-zoom-btn:hover {
    background: rgba(139, 92, 246, 0.9);
    transform: translateY(-1px);
}

.resume-modal-body {
    flex: 1;
    overflow: auto;
    border-radius: 10px;
    cursor: default;
    padding-top: 56px;
}

.resume-modal-body.is-zoomed {
    cursor: grab;
}

.resume-modal-body.is-zoomed.dragging {
    cursor: grabbing;
}

.resume-modal-body.is-zoomed .resume-iframe {
    pointer-events: none;
}

.resume-loading {
    margin: 0.5rem auto 1rem;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(8, 10, 30, 0.9);
    color: #f3f4f6;
    font-size: 0.8rem;
}

.resume-loading.hidden {
    display: none;
}

.resume-pages {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform-origin: top left;
}

.resume-page-wrapper {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.resume-page-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.resume-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    pointer-events: auto;
}

/* ============================================
   Featured Projects Section
   ============================================ */
.featured-projects {
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.project-card {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.project-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(15, 10, 30, 0.9), rgba(30, 20, 50, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card.featured .project-image {
    aspect-ratio: auto;
    min-height: 300px;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.6;
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0.5rem 0;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 5, 20, 0.8) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Mind of Luca - Brain Animation Section
   ============================================ */
.mind-of-luca {
    position: relative;
    overflow: visible;
}

/* Allow overflow when panel is open so fixed bubbles show */
body.panel-open .mind-of-luca {
    overflow: visible !important;
}

.mind-of-luca .section-header {
    pointer-events: none;
    position: relative;
    z-index: 10;
}

.mind-of-luca .section-header .highlight {
    pointer-events: auto;
}

/* Full-section neural network canvas */
.brain-canvas-wrapper {
    position: absolute;
    top: 350px;
    left: 0;
    width: 100%;
    height: calc(100% - 350px);
    z-index: 5;
    pointer-events: auto;
}

.brain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.brain-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 600px;
    margin: -6rem auto 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Brain Nodes - Category Buttons */
.brain-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.brain-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border: 2px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s var(--transition-smooth);
    animation: nodeFloat 4s ease-in-out infinite, nodeOrbit 30s linear infinite;
    animation-delay: calc(var(--node-angle) / 360deg * -30s);
    font-family: var(--font-main);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.brain-node:nth-child(1) { animation-delay: 0s, 0s; }
.brain-node:nth-child(2) { animation-delay: -0.67s, -5s; }
.brain-node:nth-child(3) { animation-delay: -1.33s, -10s; }
.brain-node:nth-child(4) { animation-delay: -2s, -15s; }
.brain-node:nth-child(5) { animation-delay: -2.67s, -20s; }
.brain-node:nth-child(6) { animation-delay: -3.33s, -25s; }

@keyframes nodeFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes nodeOrbit {
    0% {
        left: calc(50% + 220px * cos(0deg));
        top: calc(50% + 180px * sin(0deg));
    }
    16.67% {
        left: calc(50% + 220px * cos(60deg));
        top: calc(50% + 180px * sin(60deg));
    }
    33.33% {
        left: calc(50% + 220px * cos(120deg));
        top: calc(50% + 180px * sin(120deg));
    }
    50% {
        left: calc(50% + 220px * cos(180deg));
        top: calc(50% + 180px * sin(180deg));
    }
    66.67% {
        left: calc(50% + 220px * cos(240deg));
        top: calc(50% + 180px * sin(240deg));
    }
    83.33% {
        left: calc(50% + 220px * cos(300deg));
        top: calc(50% + 180px * sin(300deg));
    }
    100% {
        left: calc(50% + 220px * cos(360deg));
        top: calc(50% + 180px * sin(360deg));
    }
}

/* Static positioning fallback for orbit - 6 nodes at 60 degree intervals */
.brain-node[data-category="0"] {
    left: calc(50% + 220px);
    top: 50%;
}
.brain-node[data-category="1"] {
    left: calc(50% + 110px);
    top: calc(50% - 156px);
}
.brain-node[data-category="2"] {
    left: calc(50% - 110px);
    top: calc(50% - 156px);
}
.brain-node[data-category="3"] {
    left: calc(50% - 220px);
    top: 50%;
}
.brain-node[data-category="4"] {
    left: calc(50% - 110px);
    top: calc(50% + 156px);
}
.brain-node[data-category="5"] {
    left: calc(50% + 110px);
    top: calc(50% + 156px);
}

.brain-node:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(6, 182, 212, 0.6));
    border-color: var(--color-secondary);
    box-shadow: 
        0 0 40px rgba(6, 182, 212, 0.6),
        0 0 80px rgba(139, 92, 246, 0.4),
        inset 0 0 30px rgba(6, 182, 212, 0.2);
}

.brain-node.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: white;
    box-shadow: 
        0 0 50px rgba(139, 92, 246, 0.8),
        0 0 100px rgba(6, 182, 212, 0.5);
}

.node-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.node-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 0 10px currentColor;
}

.node-label.split-lines {
    text-align: center;
    line-height: 1.05;
}

.node-label.split-lines span {
    display: block;
}

.node-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    opacity: 0;
    animation: nodePulse 2s ease-out infinite;
}

@keyframes nodePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Brain Panel - Projects Drawer */
.brain-panel {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-primary);
    z-index: 999999;
    padding: 6rem 4rem 140px;
    overflow-y: auto;
    top: -100vh;
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.3);
}

.brain-panel.active {
    top: 0;
}

/* Lock body scroll when panel is open */
body.panel-open {
    overflow: hidden;
}

/* Panel overlay for easy closing */
.brain-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.brain-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hyperspace canvas - background of brain panel */
.hyperspace-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.brain-panel-close {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: rgba(139, 92, 246, 0.2);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999999;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.brain-panel.active ~ .brain-panel-close,
.brain-panel-close.active {
    opacity: 1;
    visibility: visible;
}

.brain-panel-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg) scale(1.1);
}

.brain-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 1;
}

.brain-panel-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px currentColor);
}

.brain-panel-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brain-panel-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.brain-project-card {
    background: linear-gradient(145deg, rgba(20, 10, 40, 0.9), rgba(10, 5, 25, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.brain-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brain-project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.brain-project-card:hover {
    background: linear-gradient(145deg, rgba(30, 15, 55, 0.95), rgba(15, 8, 35, 0.98));
    border-color: var(--color-secondary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.25),
        0 0 60px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brain-project-card:hover::before {
    opacity: 1;
}

.brain-project-card:hover::after {
    opacity: 1;
}

/* Project Card Image Support */
.brain-project-card.has-image {
    padding: 0;
    overflow: hidden;
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(20, 10, 40, 0.8) 100%);
    pointer-events: none;
}

.brain-project-card:hover .project-card-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.project-card-content {
    padding: 1.25rem;
}

.brain-project-card.has-image .project-card-content {
    padding: 1rem 1.25rem 1.25rem;
}

.brain-project-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.brain-project-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.brain-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.brain-project-tags span {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.brain-project-card:hover .brain-project-tags span {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Panel Bottom Bubbles - Category Switcher */
.panel-bottom-bubbles {
    position: fixed;
    bottom: -120px;
    left: 0;
    right: 0;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(to top, rgba(5, 5, 16, 1) 0%, rgba(5, 5, 16, 0.98) 70%, transparent 100%);
    padding-bottom: 1rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.brain-panel.active .panel-bottom-bubbles {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

.panel-bubble {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border: 2px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: panelBubbleFloat 3s ease-in-out infinite;
    font-family: var(--font-main);
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.3),
        inset 0 0 15px rgba(139, 92, 246, 0.1);
}

.panel-bubble:nth-child(1) { animation-delay: 0s; }
.panel-bubble:nth-child(2) { animation-delay: 0.15s; }
.panel-bubble:nth-child(3) { animation-delay: 0.3s; }
.panel-bubble:nth-child(4) { animation-delay: 0.45s; }
.panel-bubble:nth-child(5) { animation-delay: 0.6s; }
.panel-bubble:nth-child(6) { animation-delay: 0.75s; }
.panel-bubble:nth-child(7) { animation-delay: 0.9s; }

.panel-bubble:hover {
    transform: scale(1.15) translateY(-5px);
    border-color: var(--color-secondary);
    box-shadow: 
        0 0 30px rgba(6, 182, 212, 0.5),
        0 10px 40px rgba(139, 92, 246, 0.3);
}

.panel-bubble.active {
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(139, 92, 246, 0.4));
    box-shadow: 
        0 0 25px rgba(6, 182, 212, 0.5),
        inset 0 0 20px rgba(6, 182, 212, 0.2);
}

.panel-bubble-support {
    text-decoration: none;
    border-color: rgba(16, 185, 129, 0.85);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.25));
}

.panel-bubble-support:hover {
    border-color: rgba(16, 185, 129, 1);
    box-shadow:
        0 0 32px rgba(16, 185, 129, 0.45),
        0 10px 40px rgba(6, 182, 212, 0.25);
}

.bubble-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.bubble-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    opacity: 0.9;
    text-align: center;
    line-height: 1.2;
    max-width: 78%;
}

@keyframes panelBubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Mobile Responsive for Brain */
@media (max-width: 768px) {
    .brain-container {
        height: 500px;
        margin: 2rem auto;
    }
    
    .brain-node {
        width: 70px;
        height: 70px;
    }
    
    .brain-node[data-category="0"] { left: calc(50% + 140px); }
    .brain-node[data-category="1"] { left: calc(50% + 43px); top: calc(50% - 109px); }
    .brain-node[data-category="2"] { left: calc(50% - 113px); top: calc(50% - 67px); }
    .brain-node[data-category="3"] { left: calc(50% - 113px); top: calc(50% + 67px); }
    .brain-node[data-category="4"] { left: calc(50% + 43px); top: calc(50% + 109px); }
    
    .node-icon {
        font-size: 1.3rem;
    }
    
    .node-label {
        font-size: 0.55rem;
    }
    
    .brain-panel {
        width: 100%;
        max-width: 100vw;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-container,
    .cursor,
    .cursor-follower,
    .cursor-trail,
    .cursor-glow,
    .cursor-text {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
    
    a, button, .nav-link, .brain-node, .stamp, .app-tab {
        cursor: pointer;
    }
}

/* Large Tablets / Small Laptops */
@media (max-width: 1200px) {
    .hero-content {
        padding: 0 2rem;
    }
    
    .hero-title .title-line.big {
        font-size: 4rem;
    }
    
    .about-content {
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    /* Navigation */
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link .link-number {
        display: none;
    }
    
    .robot-event-timer,
    .event-skip-btn {
        display: none;
    }
    
    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 100px;
    }
    
    .hero-left {
        width: 100%;
        align-items: center;
    }
    
    .hero-right {
        width: 100%;
        max-width: 400px;
        height: 350px;
    }
    
    #canvas-container {
        height: 350px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .social-sidebar {
        display: none;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
    }
    
    .about-visual {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text {
        width: 100%;
    }
    
    .about-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Stamp Book */
    .stamp-book-container {
        flex-direction: column;
        perspective: none;
    }
    
    .book-left-side,
    .book-right-side {
        width: 100%;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    /* General */
    html, body {
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    body {
        font-size: 14px;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* FIX: Remove the 60px left margin that was for social sidebar on desktop */
    section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 3rem 1rem;
    }
    
    .section-bg-text {
        font-size: 18vw;
        opacity: 0.02;
        display: none !important;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Navigation - Hamburger Style */
    .nav {
        padding: 0.75rem 1rem;
        width: 100%;
        left: 0;
        right: 0;
        min-height: 64px;
        z-index: 1300;
        background: rgba(4, 5, 18, 0.88);
        border-bottom: 1px solid rgba(125, 104, 255, 0.28);
    }

    .nav-cta {
        display: none;
    }

    .nav-logo {
        flex: 0 1 auto;
    }

    .logo-text {
        font-size: 0.95rem;
        letter-spacing: 0.04em;
    }

    .nav-hamburger {
        margin-left: auto;
        border: 1px solid rgba(125, 104, 255, 0.35);
        border-radius: 12px;
        background: rgba(8, 10, 30, 0.7);
        backdrop-filter: blur(8px);
        z-index: 1302;
    }
    
    .nav-links {
        position: fixed;
        top: 66px;
        left: 0.75rem;
        right: 0.75rem;
        bottom: auto;
        max-height: calc(100vh - 78px);
        border-radius: 18px;
        border: 1px solid rgba(125, 104, 255, 0.32);
        background: linear-gradient(160deg, rgba(7, 11, 38, 0.96) 0%, rgba(10, 6, 30, 0.96) 100%);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.3rem;
        padding: 0.6rem;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        z-index: 1301;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    
    .nav-link {
        font-size: 1rem;
        flex-direction: row;
        gap: 0.75rem;
        justify-content: flex-start;
        width: 100%;
        padding: 0.85rem 0.9rem;
        border-radius: 12px;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.02);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(125, 104, 255, 0.14);
        border-color: rgba(125, 104, 255, 0.35);
    }
    
    .nav-link .link-number {
        display: inline;
        opacity: 0.85;
        transform: none;
        min-width: 1.7rem;
    }
    
    .btn-glitch {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Hide elements that might cause offset on mobile */
    .social-sidebar {
        display: none !important;
    }
    
    .hero-bg-text {
        display: none !important;
    }
    
    /* Hide robot event timer on mobile */
    .robot-event-timer,
    .event-skip-btn {
        display: none !important;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        margin: 0 !important;
        margin-left: 0 !important;
        left: 0;
        right: 0;
        position: relative;
        z-index: 1;
    }
    
    .hero-content {
        padding-top: 50px;
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 10;
    }
    
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        justify-content: center;
        padding: 0 1rem;
        position: relative;
        z-index: 10;
    }
    
    .hero-title {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 10;
    }
    
    .hero-stats {
        position: relative;
        z-index: 10;
    }
    
    .status-badge {
        position: relative;
        z-index: 10;
        margin-bottom: 0.5rem;
        margin-top: 0;
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
        opacity: 0.8;
    }
    
    /* Make text more solid/readable on mobile */
    .hero-title .title-line {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .hero-title .title-line.big {
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.5);
    }
    
    .rotating-titles span {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    
    .stat-number, .stat-label {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .title-indicators {
        position: relative;
        z-index: 10;
    }
    
    /* Background animations stay behind content */
    .orbs-container {
        z-index: 0 !important;
    }
    
    .grid-bg {
        z-index: 0 !important;
    }
    
    .hero-title .title-line {
        font-size: 2.5rem;
        display: block;
        text-align: center;
        width: 100%;
        color: #a855f7;
    }
    
    .hero-title .title-line.big {
        font-size: 25rem;
        text-align: center;
        letter-spacing: 0;
        font-weight: 900;
    }
    
    .hero-title .title-line.accent {
        font-size: 1.6rem;
        width: 100%;
        text-align: center;
        color: #ffffff;
    }
    
    /* Stop rotating titles from jumping and center them */
    .rotating-titles {
        position: relative;
        height: 1.8em;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
    }
    
    .rotating-titles span {
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #ffffff;
    }
    
    /* Hide drone warning popup on mobile */
    #drone-warning {
        display: none !important;
    }
    
    /* Hide drone result popup on mobile */
    #drone-result {
        display: none !important;
    }
    
    /* Hide prize popup on mobile */
    #prize-popup {
        display: none !important;
    }

    .title-indicators {
        justify-content: center;
        display: flex;
        width: 100%;
    }
    
    .title-indicators {
        margin-top: 0.5rem;
    }
    
    .title-dot {
        width: 20px;
        height: 20px;
    }
    
    /* Center the stats row */
    .hero-stats {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.15rem;
        justify-content: center;
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
        max-width: 100%;
        overflow: visible;
    }
    
    .stat-item {
        min-width: auto;
        flex: 1;
        padding: 0.5rem 0.2rem;
        text-align: center;
        max-width: 33%;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }

    #projects-item .stat-number,
    #years-item .stat-number,
    #persistence-item .stat-number {
        font-size: 1.65rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.85rem;
        white-space: nowrap;
        padding: 0.6rem 0.8rem;
    }
    
    /* Position fish tank as background behind hero content on mobile */
    .hero-right {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        max-width: none;
        z-index: 1;
        opacity: 0.25;
        pointer-events: none;
    }
    
    #canvas-container {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    /* Hero content stays above the fish tank background */
    .hero-left {
        position: relative;
        z-index: 10;
    }
    
    .hero-bg-text {
        font-size: 20vw;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Fun Popups */
    .fun-popup {
        position: fixed;
        left: 50% !important;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 350px;
    }
    
    /* About Section */
    .about {
        padding: 4rem 1rem;
    }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-card {
        padding: 1.25rem;
    }
    
    .detail-card h4 {
        font-size: 1rem;
    }
    
    .detail-card p {
        font-size: 0.85rem;
    }
    
    .avatar-container {
        transform: scale(0.85);
    }
    
    .floating-icons {
        display: none;
    }
    
    .intro-text {
        font-size: 1rem;
        text-align: center;
    }

    .skills-section {
        text-align: center;
    }

    .skills-title {
        text-align: center;
    }
    
    .skills-marquee {
        margin-top: 1.5rem;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .skills-track {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
        gap: 0.65rem;
    }

    .skills-track .skill-chip:nth-child(n+21) {
        display: none;
    }
    
    .skill-chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Work / Brain Section */
    .work.mind-of-luca {
        padding: 0.5rem 1rem 2.25rem;
        min-height: auto;
    }

    .work.mind-of-luca .section-header {
        margin-bottom: 0.15rem;
    }
    
    .brain-container {
        height: auto;
        transform: none;
        margin: -0.95rem auto 0;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .brain-nodes {
        transform: none;
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
        width: auto;
        max-width: 550px;
        margin: 0 auto;
        box-sizing: border-box;
        justify-items: center;
        align-items: center;
        justify-content: center;
    }
    
    .brain-node {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 178px;
        height: 178px;
        min-height: auto;
        padding: 0.75rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        border-radius: 50%;
        animation: none !important;
    }
    
    .node-icon {
        font-size: 3rem;
    }
    
    .node-label {
        font-size: 0.88rem;
        font-weight: 600;
        position: relative;
        opacity: 1;
        transform: none;
        text-align: center;
        line-height: 1.08;
    }
    
    .node-pulse {
        display: none;
    }
    
    /* Brain Panel - Full Screen on Mobile */
    .brain-panel {
        width: 100vw;
        height: 100vh;
        right: 0;
        /* Keep hidden until active */
        top: -100vh;
        border-radius: 0;
        padding-bottom: 24px;
        padding-right: 86px;
    }
    
    .brain-panel.active {
        top: 0;
    }
    
    .brain-panel-content {
        padding: 1rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    /* Brain Panel Projects - Center on Mobile */
    .brain-panel-projects {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .brain-project-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Panel Bottom Bubbles - Mobile Category Switcher */
    .panel-bottom-bubbles {
        left: auto;
        right: 6px;
        bottom: 12px;
        top: 72px;
        height: auto;
        width: 72px;
        padding: 0.45rem 0.25rem;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: flex-start;
        gap: 0.45rem;
        background: linear-gradient(to left, rgba(5, 5, 16, 0.96) 0%, rgba(5, 5, 16, 0.85) 70%, transparent 100%);
        border-radius: 14px;
    }
    
    .panel-bubble {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        min-height: 52px;
        flex-shrink: 0;
        border-radius: 50%;
        animation: none !important;
    }
    
    .bubble-icon {
        font-size: 1.2rem;
    }
    
    .bubble-label {
        font-size: 0.4rem;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }
    
    /* Goals / Stamp Book Section */
    .goals-section.stamp-book {
        padding: 2rem 1rem;
    }
    
    .goals-section .section-header {
        margin-bottom: 1rem;
    }
    
    .stamp-book-wrapper {
        width: 100%;
        overflow-x: hidden;
        margin-top: 0;
    }
    
    .stamp-book-container {
        width: 100%;
        min-width: auto;
        flex-direction: column;
        gap: 0;
        min-height: auto;
        height: auto;
        position: relative;
        padding-bottom: 0.5rem;
    }

    .mobile-page-nav {
        position: relative;
        z-index: 260;
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 14px;
        background: linear-gradient(to top, rgba(5, 5, 16, 0.96) 0%, rgba(5, 5, 16, 0.88) 70%, rgba(5, 5, 16, 0.45) 100%);
        backdrop-filter: blur(6px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }

    .mobile-page-nav.long-page-nav {
        margin-top: 1.35rem;
        transform: translateY(6px);
        width: calc(100% - 2.6rem);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .stamp-book-wrapper.long-page-no-scroll,
    .stamp-book-wrapper.long-page-no-scroll .stamp-book-container,
    .stamp-book-wrapper.long-page-no-scroll .book-right-side,
    .stamp-book-wrapper.long-page-no-scroll .book-right-side .flippable-page.mobile-active,
    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-front.mobile-visible,
    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-back.mobile-visible {
        overflow-y: visible !important;
    }

    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .stamp-page,
    .stamp-book-wrapper.long-page-no-scroll .under-page.mobile-active .stamp-page {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-front.mobile-visible[data-section="business"] .stamps-grid,
    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-back.mobile-visible[data-section="learning"] .stamps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }

    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-front.mobile-visible[data-section="business"] .stamp,
    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-back.mobile-visible[data-section="learning"] .stamp {
        transform: scale(0.8) !important;
    }

    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-front.mobile-visible[data-section="business"] .stamp-label,
    .stamp-book-wrapper.long-page-no-scroll .flippable-page.mobile-active .page-back.mobile-visible[data-section="learning"] .stamp-label {
        font-size: 0.54rem !important;
    }

    .mobile-nav-btn,
    .mobile-page-indicator {
        position: relative;
        z-index: 251;
    }
    
    .book-spine {
        display: none;
    }
    
    /* Keep intro page available - mobile JS toggles active page visibility. */
    .book-left-side {
        display: none;
    }

    .book-left-side.mobile-active,
    .book-right-side.mobile-active {
        display: block !important;
    }

    .book-right-side .flippable-page.mobile-active,
    .book-right-side .under-page.mobile-active {
        display: block !important;
    }
    
    .book-right-side {
        width: 100%;
        min-height: auto;
    }
    
    /* Show pages as single cards, not flipping */
    .flippable-page {
        position: relative !important;
        transform: none !important;
        transform-style: flat !important;
    }
    
    .flippable-page .page-front {
        position: relative;
        backface-visibility: visible;
    }
    
    .flippable-page .page-back {
        display: none;
    }
    
    /* Show flip buttons prominently */
    .flip-btn {
        display: block;
        width: 100%;
        padding: 1rem;
        margin-top: 1rem;
        font-size: 1rem;
        background: var(--color-primary);
        color: white;
        border: none;
        border-radius: 0.5rem;
    }
    
    .stamp-page {
        padding: 1.5rem 1rem;
        min-height: 400px;
        max-height: 480px;
        height: auto;
    }
    
    .goals-intro {
        padding: 1rem;
    }
    
    .goals-quote {
        font-size: 1rem;
    }
    
    .goals-description p {
        font-size: 0.85rem;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stamp {
        transform: scale(0.9);
    }
    
    .stamp-border {
        width: 50px;
        height: 50px;
    }
    
    .stamp-inner {
        font-size: 1.3rem;
    }
    
    .stamp-label {
        font-size: 0.6rem;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .goals-quote {
        font-size: 1rem;
    }
    
    .goals-description p {
        font-size: 0.85rem;
    }
    
    .flippable-page {
        position: relative;
        transform-style: flat;
    }
    
    .page-back {
        position: relative;
        backface-visibility: visible;
        transform: none;
    }
    
    .flip-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Contact Section */
    .contact {
        padding: 4rem 1rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .application-tabs {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .app-tab {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .app-tab .tab-text {
        display: inline;
    }
    
    .form-glass-container {
        padding: 1.25rem;
        margin: 0;
        border-radius: 1rem;
    }
    
    .question-input,
    .question-textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem;
    }
    
    .question-label {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .option-buttons {
        gap: 0.5rem;
    }
    
    .option-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .question-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 100px;
    }
    
    /* Chatbot Widget */
    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
        z-index: 999;
    }
    
    .chatbot-trigger {
        transform: scale(1);
        transform-origin: bottom right;
    }
    
    .robot-face {
        width: 70px;
        height: 70px;
        overflow: hidden;
        border-radius: 50%;
        background: linear-gradient(145deg, rgba(20, 10, 40, 0.9), rgba(10, 5, 25, 0.95));
        border: 2px solid var(--color-primary);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }
    
    .robot-face canvas {
        transform: scale(1.5);
        transform-origin: top center;
        position: relative;
        top: -15px;
        left: 0px;
    }
    
    .speech-bubble {
        font-size: 0.58rem;
        padding: 5px 8px;
        max-width: 106px;
        white-space: normal;
        line-height: 1.25;
    }

    .about-cta-group {
        display: flex !important;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .about-cta-group .resume-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 210px;
        width: auto !important;
        max-width: 92vw;
        white-space: nowrap;
        overflow: visible;
    }

    .about-cta-group .resume-btn-icon {
        display: none;
    }

    .about-cta-group .resume-btn-text {
        display: inline !important;
        color: #fff;
        font-size: 0.78rem;
        letter-spacing: 0.8px;
    }
    
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 70vh;
        right: 10px;
        bottom: 75px;
        border-radius: 1rem;
    }
    
    .chatbot-messages {
        max-height: calc(70vh - 140px);
    }
    
    /* Resume Modal */
    .resume-modal-content {
        width: 95vw;
        height: 90vh;
        margin: 5vh auto;
        padding: 1rem;
    }

    .resume-modal-close {
        top: 12px;
        right: 12px;
    }

    .resume-zoom-controls {
        top: 12px;
        left: 10px;
        gap: 0.35rem;
    }

    .resume-modal-body {
        padding-top: 56px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
        align-items: flex-start;
        padding-right: 86px;
    }

    .footer-left {
        justify-content: flex-start;
        width: 100%;
        gap: 0.7rem;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    /* Hide "I'm" on mobile */
    .hero-title .title-line:first-child {
        display: none;
    }
    
    .hero-title .title-line.big {
        font-size: 18vw;
        line-height: 1;
        background: linear-gradient(135deg, #00ffff 0%, #a855f7 50%, #ff6b9d 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
    }
    
    /* Smaller dots on mobile */
    .title-indicators {
        gap: 0.4rem;
    }
    
    .title-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-stats {
        gap: 0.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    #projects-item .stat-number,
    #years-item .stat-number,
    #persistence-item .stat-number {
        font-size: 1.45rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }
    
    .stat-item {
        padding: 0.4rem 0.15rem;
    }
    
    /* Show scroll indicator on mobile */
    .scroll-indicator {
        display: flex !important;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1.5rem;
        opacity: 0.8;
    }
    
    .scroll-mouse {
        width: 20px;
        height: 32px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .about-details {
        gap: 0.75rem;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stamp {
        transform: scale(0.85);
    }
    
    .work.mind-of-luca {
        padding-top: 0.25rem;
    }

    .work.mind-of-luca .section-header {
        margin-bottom: 0 !important;
    }

    .brain-container {
        transform: none;
        margin: 0.15rem auto 0;
    }

    .brain-node {
        width: 160px;
        height: 160px;
        padding: 0.65rem;
    }

    .node-icon {
        font-size: 2.5rem;
    }

    .node-label {
        font-size: 0.78rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .app-tab {
        padding: 0.75rem;
    }
    
    .tab-icon {
        font-size: 1.2rem;
    }
    
    .tab-text {
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 1rem 2rem;
    }
    
    .hero-content {
        flex-direction: row;
        padding-top: 0;
    }
    
    .hero-right {
        height: 200px;
    }
    
    .loader-content {
        transform: scale(0.7);
    }
}

/* Hamburger Menu Button (add to HTML if needed) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}

/* ===== PROJECT SPOTLIGHT MODAL ===== */
.project-spotlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s ease, visibility 0s ease;
    cursor: auto;
}

.project-spotlight-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-spotlight {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90vw;
    max-width: 1000px;
    height: auto;
    max-height: 85vh;
    background: linear-gradient(145deg, rgba(15, 10, 35, 0.98), rgba(8, 5, 20, 0.99));
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 24px;
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s ease, visibility 0s ease, transform 0s ease;
    overflow: hidden;
    box-shadow: 
        0 0 80px rgba(139, 92, 246, 0.5),
        0 0 150px rgba(6, 182, 212, 0.2);
    cursor: auto;
}

.project-spotlight.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.spotlight-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.spotlight-close:hover {
    background: rgba(139, 92, 246, 0.5);
    transform: rotate(90deg);
}

.spotlight-nav {
    position: absolute;
    bottom: 15px;
    top: auto;
    transform: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.6);
    color: white;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.spotlight-nav svg {
    width: 24px;
    height: 24px;
}

.spotlight-nav:hover {
    background: rgba(139, 92, 246, 0.7);
}

.spotlight-prev {
    left: calc(50% + 250px);
    transform: translateX(-150px);
}

.spotlight-next {
    left: calc(50% + 250px);
    transform: translateX(100px);
}

.spotlight-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    max-height: 85vh;
}

.spotlight-image-container {
    flex: 1;
    min-width: 0;
    max-width: 55%;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.spotlight-image-container.has-image {
    display: flex;
}

.spotlight-image-container:not(.has-image) {
    cursor: default;
    pointer-events: none;
}

.spotlight-image-container img {
    width: 100%;
    height: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.spotlight-image-expand {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(5, 5, 16, 0.72);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    cursor: zoom-in;
}

.spotlight-image-expand:hover,
.spotlight-image-container:focus-visible .spotlight-image-expand {
    transform: translateY(-2px);
    background: rgba(6, 182, 212, 0.22);
    border-color: rgba(6, 182, 212, 0.55);
}

.spotlight-image-container:focus-visible {
    outline: 2px solid rgba(6, 182, 212, 0.65);
    outline-offset: -2px;
}

.spotlight-image-glow {
    display: none;
}

.spotlight-image-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(14px);
    cursor: zoom-out;
}

.spotlight-image-overlay.active {
    display: flex;
}

.spotlight-image-overlay * {
    cursor: auto;
}

.spotlight-image-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: min(92vw, 1400px);
    max-height: 90vh;
}

.spotlight-image-overlay-content img {
    width: auto;
    max-width: 100%;
    max-height: calc(90vh - 4rem);
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.spotlight-image-overlay-caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-align: center;
}

.spotlight-image-overlay-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.spotlight-image-overlay-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
    transform: scale(1.08);
}

.spotlight-info {
    flex: 1;
    min-width: 0;
    padding: 2rem;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    pointer-events: auto;
}

.spotlight-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.spotlight-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.spotlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spotlight-tags span {
    padding: 0.35rem 0.9rem;
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 20px;
    color: #06b6d4;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spotlight-counter {
    position: absolute;
    bottom: 15px;
    left: calc(50% + 250px);
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.spotlight-hint {
    display: none;
}

/* Mobile - stack vertically */
@media (max-width: 768px) {
    .project-spotlight {
        width: 95vw;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .spotlight-content {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .spotlight-image-container {
        max-width: 100%;
        max-height: 45vh;
    }

    .spotlight-image-expand {
        right: 0.85rem;
        bottom: 0.85rem;
        padding: 0.6rem 0.85rem;
        font-size: 0.78rem;
    }
    
    .spotlight-image-container img {
        max-height: 45vh;
    }

    .spotlight-image-overlay {
        padding: 1rem;
    }

    .spotlight-image-overlay-content img {
        max-height: calc(100vh - 6rem);
        border-radius: 14px;
    }

    .spotlight-image-overlay-caption {
        font-size: 0.85rem;
    }
    
    .spotlight-info {
        padding: 1.25rem;
    }
    
    .spotlight-nav {
        width: 40px;
        height: 40px;
    }
    
    .spotlight-prev {
        left: 8px;
    }
    
    .spotlight-next {
        right: 8px;
    }
    
    .spotlight-title {
        font-size: 1.3rem;
    }
    
    .spotlight-desc {
        font-size: 0.85rem;
    }
}

/* ============================================
   Presentation Button & Fullscreen Modal
   ============================================ */
.spotlight-presentation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #10b981;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: presentation-pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
}

.spotlight-presentation-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
}

.spotlight-presentation-btn svg {
    flex-shrink: 0;
}

@keyframes presentation-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(16, 185, 129, 0.7), 0 0 40px rgba(16, 185, 129, 0.3);
    }
}

.spotlight-finalreport-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4) !important;
    animation: finalreport-pulse 2s ease-in-out infinite !important;
}

.spotlight-finalreport-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6) !important;
}

@keyframes finalreport-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(99, 102, 241, 0.7), 0 0 40px rgba(99, 102, 241, 0.3);
    }
}

/* Fullscreen Presentation Overlay */
.presentation-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: auto !important;
}

.presentation-fullscreen-overlay * {
    cursor: auto !important;
}

/* Fullscreen Toggle Button */
.presentation-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 9999999999;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
}

.presentation-fullscreen-btn:hover {
    background: rgba(16, 185, 129, 0.5);
    border-color: #10b981;
    transform: scale(1.1);
}

.presentation-fullscreen-btn svg {
    width: 24px;
    height: 24px;
}

.presentation-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999999999;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.presentation-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
    transform: scale(1.1);
}

.presentation-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentation-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Slideshow Presentation Styles */
.presentation-slideshow {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.presentation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.presentation-header h2 {
    color: #fff;
    font-size: 2rem;
    font-family: var(--font-display);
    margin: 0;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.slide-counter {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.presentation-slide-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-height: calc(100vh - 200px);
    position: relative;
}

.slide-image-wrapper {
    flex: 1;
    max-width: 90%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s ease;
}

.slide-nav {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slide-nav:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    transform: scale(1.1);
}

.slide-nav svg {
    width: 28px;
    height: 28px;
}

.slide-dots {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.slide-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.slide-dot.active {
    background: #10b981;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.slide-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* PPTX Slide Rendering */
.pptx-slide {
    flex: 1;
    max-width: 85%;
    max-height: 70vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: opacity 0.15s ease;
    aspect-ratio: 16/9;
}

.pptx-slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pptx-slide-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    max-width: 90%;
}

.pptx-slide-text h2 {
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pptx-slide-text p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.pptx-empty-slide {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
}

/* Loading and Error States */
.presentation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: #fff;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.presentation-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    color: #fff;
}

.presentation-error h2 {
    font-size: 1.5rem;
    margin: 0;
}

.presentation-error p {
    color: rgba(255, 255, 255, 0.7);
}

.download-fallback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-fallback:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .presentation-header h2 {
        font-size: 1.25rem;
    }
    
    .slide-nav {
        width: 45px;
        height: 45px;
    }
    
    .slide-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .slide-image-wrapper img {
        max-height: 50vh;
    }
    
    .pptx-slide {
        max-width: 95%;
        padding: 1rem;
    }

    .presentation-slideshow.mobile-vertical {
        padding: 0.75rem 0.45rem 0.85rem;
    }

    .presentation-slideshow.mobile-vertical .presentation-header {
        width: 100%;
        justify-content: flex-end;
        gap: 0;
        margin-bottom: 0.45rem;
        padding-right: 4.1rem;
        min-height: 42px;
    }

    .presentation-slideshow.mobile-vertical .presentation-header h2 {
        display: none;
    }

    .presentation-slideshow.mobile-vertical .slide-counter {
        transform: rotate(90deg);
        transform-origin: center;
        font-size: 0.82rem;
        padding: 0.35rem 0.8rem;
    }

    .presentation-slideshow.mobile-vertical .presentation-slide-container {
        gap: 0.5rem;
        max-height: calc(100vh - 135px);
        flex-direction: column;
    }

    .presentation-slideshow.mobile-vertical .pdf-slide-wrapper {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 250px);
    }

    .presentation-slideshow.mobile-vertical .pdf-slide-wrapper img {
        max-width: 100%;
        max-height: 100%;
    }

    .presentation-slideshow.mobile-vertical .slide-nav {
        width: 40px;
        height: 40px;
    }

    .presentation-slideshow.mobile-vertical .slide-prev svg,
    .presentation-slideshow.mobile-vertical .slide-next svg {
        transform: rotate(90deg);
    }

    .presentation-slideshow.mobile-vertical .slide-dots,
    .presentation-slideshow.mobile-vertical .slide-hint,
    .presentation-slideshow.mobile-vertical .presentation-fullscreen-btn {
        display: none !important;
    }

    .presentation-slideshow.mobile-vertical .presentation-close-btn {
        top: 14px;
        right: 14px;
    }
}

/* PDF Slide Wrapper */
.pdf-slide-wrapper {
    flex: 1;
    max-width: 90%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-slide-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.1s ease;
}

/* Hard no-motion mode for mobile/touch devices */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .floating-shapes,
    .noise-overlay,
    .scanline,
    .cursor-container,
    .hero-decoration,
    .node-pulse {
        display: none !important;
    }

    .brain-node,
    .panel-bubble {
        animation: none !important;
    }

    /* Keep AI quick-reply buttons moving on mobile as requested. */
    .quick-replies-track {
        animation: scroll-quick-replies 40s linear infinite !important;
    }

    .quick-replies-track:hover,
    .quick-replies-carousel:hover .quick-replies-track {
        animation-play-state: paused !important;
    }

    .quick-reply {
        transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
    }

    .rotating-titles span {
        transition: opacity 0.5s ease, transform 0.5s ease !important;
        padding-top: 0.25rem;
    }

    .work.mind-of-luca .section-header {
        margin-bottom: 0 !important;
    }

    .brain-container {
        transform: none;
        margin: 0.15rem auto 0;
    }

    .title-dot {
        animation: dotBounce 2s ease-in-out infinite !important;
        transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
    }

    .stat-number,
    .stat-label {
        text-shadow: none !important;
        filter: none !important;
    }

    .about-cta-group {
        display: flex !important;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-top: 1rem;
    }

    .about-cta-group .resume-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto;
        max-width: 90vw;
        padding: 0.6rem 1rem;
    }

    body {
        cursor: auto !important;
    }

    .post-loader-notice {
        width: min(94vw, 460px);
        bottom: 12px;
    }

    .post-loader-notice-text {
        font-size: 0.75rem;
    }
}