/* ==========================================================================
   GOOGLEAI.WORLD - FUTURISTIC CYBER DESIGN SYSTEM
   ========================================================================== */

/* 1. Design System Tokens & Base Setup */
:root {
    --bg-color: #040814;
    --surface-color: rgba(11, 17, 37, 0.7);
    --surface-solid: #0b1125;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.25);
    
    /* Neon Accents */
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-violet: #7f00ff;
    --neon-magenta: #ec38bc;
    --neon-green: #00ff87;
    --neon-yellow: #fef00f;
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #8c9cb8;
    --text-muted: #4e5d78;
    --text-cyber: #00f2fe;
    
    /* Fonts */
    --font-cyber: 'Orbitron', sans-serif;
    --font-tech: 'Space Grotesk', sans-serif;
    --font-ui: 'Inter', sans-serif;
    
    /* Shadows */
    --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.4);
    --glow-magenta: 0 0 15px rgba(236, 56, 188, 0.4);
    --glow-green: 0 0 15px rgba(0, 255, 135, 0.4);
    --glow-violet: 0 0 15px rgba(127, 0, 255, 0.4);
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Global Resets & Scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

body {
    font-family: var(--font-ui);
    color: var(--text-secondary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-solid);
    border: 2px solid var(--bg-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* 3. Global Decorative Elements */
#neural-matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(circle at center, #070e24 0%, #030611 100%);
}

.sky-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.08) 0%, rgba(127, 0, 255, 0.03) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

/* 4. Common Layout & Grid Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: 100px 0;
}

/* 5. Typography & Accents */
h1, h2, h3, h4 {
    font-family: var(--font-tech);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 50%, var(--neon-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(0, 242, 254, 0.15));
}

.cyber-badge {
    display: inline-block;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 6px 14px;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.section-badge {
    display: inline-block;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-magenta);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-cyber);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 6. Buttons & Inputs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glow:hover::after {
    left: 120%;
    opacity: 1;
}

/* 7. Cyber Navigation Header */
.cyber-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(4, 8, 20, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo-link {
    display: flex;
    align-items: center;
    font-family: var(--font-cyber);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

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

.logo-suffix {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    background: rgba(0, 255, 135, 0.05);
    border: 1px solid rgba(0, 255, 135, 0.2);
    border-radius: 4px;
    padding: 3px 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-green);
    border-radius: 50%;
    animation: neon-pulse 1.5s infinite;
}

.status-text {
    font-family: var(--font-cyber);
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: 0.05em;
}

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

.nav-item {
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--neon-cyan);
}

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

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* 8. Hero Section Layout & AI Orb */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-text-block {
    z-index: 10;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    font-family: var(--font-cyber);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
}

.hero-interactive-block {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* AI Core Orb Structure */
.ai-core-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-core-orb {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.orb-core {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-blue) 40%, var(--neon-violet) 100%);
    filter: blur(4px);
    box-shadow: 
        0 0 30px rgba(0, 242, 254, 0.6),
        0 0 60px rgba(79, 172, 254, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
    animation: core-pulsate 4s ease-in-out infinite;
    z-index: 3;
}

.orb-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(11, 17, 37, 0.2);
    backdrop-filter: blur(4px);
}

.orb-layer-1 {
    transform: rotateX(45deg) rotateY(45deg);
    border-color: rgba(0, 242, 254, 0.4);
    animation: rotate-layer-1 12s linear infinite;
}

.orb-layer-2 {
    transform: rotateX(-45deg) rotateY(45deg);
    border-color: rgba(236, 56, 188, 0.4);
    animation: rotate-layer-2 15s linear infinite;
}

.orb-layer-3 {
    transform: rotateX(90deg);
    border-color: rgba(127, 0, 255, 0.3);
    animation: rotate-layer-3 8s linear infinite;
}

.orb-ring {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.ring-1 {
    width: 260px;
    height: 260px;
    border-color: rgba(0, 242, 254, 0.2);
    animation: rotate-clockwise 25s linear infinite;
}

.ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(236, 56, 188, 0.15);
    animation: rotate-counter-clockwise 30s linear infinite;
}

.ring-3 {
    width: 380px;
    height: 380px;
    border-color: rgba(0, 255, 135, 0.1);
    animation: rotate-clockwise 40s linear infinite;
}

.orb-shadow {
    position: absolute;
    bottom: -40px;
    width: 220px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
    z-index: 1;
}

/* HUD statistic labels */
.hud-stat {
    position: absolute;
    background: rgba(11, 17, 37, 0.7);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 4px;
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    z-index: 15;
    pointer-events: none;
}

.hud-left-top {
    top: -20px;
    left: -40px;
    border-left: 3px solid var(--neon-cyan);
}

.hud-right-bottom {
    bottom: -20px;
    right: -40px;
    border-right: 3px solid var(--neon-magenta);
}

.hud-label {
    color: var(--text-muted);
    margin-bottom: 2px;
}

.hud-value {
    color: var(--text-primary);
    font-weight: 700;
}

.flex-value {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.thread-bar {
    width: 12px;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
}

.thread-bar.filled {
    background: var(--neon-magenta);
    box-shadow: 0 0 5px var(--neon-magenta);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.scroll-indicator a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    transition: var(--transition-smooth);
}

.scroll-arrow {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
    animation: scroll-slide 2s infinite;
}

.scroll-indicator:hover .scroll-text {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* 9. AI Constellations Card Grid */
.constellations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.constellation-card {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    overflow: hidden;
    backdrop-filter: blur(12px) saturate(180%);
    transition: border-color 0.4s ease, transform 0.1s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.constellation-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.constellation-card:hover .card-glow {
    opacity: 1;
}

.card-border {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
}

.card-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.card-node-id {
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.card-title {
    font-family: var(--font-cyber);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-spec-badge {
    display: inline-block;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 90px;
}

.card-footer-metrics {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-lbl {
    font-size: 0.55rem;
    font-family: var(--font-cyber);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.metric-val {
    font-size: 0.85rem;
    font-family: var(--font-cyber);
    color: var(--text-primary);
    font-weight: 600;
}

.text-blue { color: var(--neon-cyan); }
.text-green { color: var(--neon-green); }
.text-pink { color: var(--neon-magenta); }
.text-yellow { color: var(--neon-yellow); }

/* 10. Interactive Cyber Console Terminal */
.terminal-wrapper {
    background: rgba(6, 10, 23, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
}

.terminal-bar {
    background: #060a16;
    height: 42px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls .control {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.terminal-status-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 4px;
    padding: 3px 8px;
}

.pulsing-glow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    animation: neon-pulse 2s infinite;
}

.terminal-body {
    padding: 24px;
    height: 380px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #a4b3d6;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    word-break: break-all;
}

.terminal-line.command-echo {
    color: var(--text-primary);
    font-weight: bold;
    margin-top: 16px;
}

.terminal-line.output-response {
    color: var(--neon-green);
    white-space: pre-wrap;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 255, 135, 0.25);
    margin-bottom: 16px;
}

.terminal-line.output-error {
    color: #ff5f56;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 95, 86, 0.25);
    margin-bottom: 16px;
}

.highlight-cmd {
    color: var(--neon-cyan);
    font-weight: 600;
}

.terminal-prompt-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

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

.input-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    width: 100%;
    caret-color: transparent; /* custom blinking cursor */
}

.fake-caret {
    position: absolute;
    width: 8px;
    height: 15px;
    background-color: var(--neon-cyan);
    animation: blink-caret 1s step-end infinite;
    pointer-events: none;
    left: 0;
}

.terminal-footer {
    background: #060a16;
    border-top: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-label {
    font-family: var(--font-cyber);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.presets-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.preset-btn:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* 11. Chronos (Evolution Line) */
.timeline-container {
    position: relative;
    max-width: 840px;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

.timeline-line-center {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan) 10%, var(--neon-magenta) 90%, transparent);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 48px;
    width: 50%;
}

.timeline-item.right-aligned {
    margin-left: 50%;
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--neon-cyan);
    top: 12px;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: var(--neon-magenta);
}

.left-aligned .timeline-dot {
    right: -7px;
}

.right-aligned .timeline-dot {
    left: -7px;
}

.timeline-content-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    width: 85%;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
}

.timeline-content-box::before {
    content: '';
    position: absolute;
    top: 13px;
    width: 10px;
    height: 10px;
    background: var(--surface-solid);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    transform: rotate(-45deg);
}

.left-aligned .timeline-content-box::before {
    right: -6px;
    transform: rotate(135deg);
}

.right-aligned .timeline-content-box::before {
    left: -6px;
    transform: rotate(-45deg);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.timeline-item:nth-child(even):hover .timeline-dot {
    box-shadow: 0 0 10px var(--neon-magenta);
}

.timeline-item:hover .timeline-content-box {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.time-stamp {
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.timeline-item:nth-child(even) .time-stamp {
    color: var(--neon-magenta);
}

.time-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

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

/* 12. Quantum Sign-up Portal */
.portal-box {
    position: relative;
    background: radial-gradient(circle at top left, rgba(11, 17, 37, 0.8) 0%, rgba(4, 8, 20, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.portal-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 250px;
    background: radial-gradient(ellipse at center, rgba(127, 0, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.portal-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    z-index: 0;
    mask-image: radial-gradient(circle, black, transparent 85%);
    -webkit-mask-image: radial-gradient(circle, black, transparent 85%);
}

.portal-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.portal-badge {
    display: inline-block;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--neon-violet);
    border: 1px solid rgba(127, 0, 255, 0.25);
    background: rgba(127, 0, 255, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.portal-title {
    font-family: var(--font-cyber);
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.portal-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.portal-form {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.form-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 380px;
    display: flex;
    align-items: center;
    background: rgba(4, 8, 20, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0 16px;
    transition: var(--transition-smooth);
}

.form-input-wrapper:focus-within {
    border-color: var(--neon-violet);
    box-shadow: var(--glow-violet);
}

.input-tag {
    font-family: var(--font-cyber);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-right: 12px;
    white-space: nowrap;
}

#sub-email {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    width: 100%;
    padding: 12px 0;
}

.btn-form {
    padding: 0 24px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-form:hover .btn-icon {
    transform: translateX(4px);
}

.form-feedback {
    margin-top: 16px;
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    min-height: 20px;
}

.form-feedback.success {
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.form-feedback.error {
    color: #ff5f56;
}

/* 13. Footer & Systems Strip */
.cyber-footer {
    background: #02040a;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-stats-strip {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    background: rgba(4, 8, 20, 0.3);
}

.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-metric .lbl {
    font-family: var(--font-cyber);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.stat-metric .val {
    font-family: var(--font-cyber);
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.pulse-text {
    color: var(--neon-green) !important;
    animation: text-pulse 2s infinite;
}

.footer-base {
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-cyber);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--neon-cyan);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-links a {
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* 14. Keyframes Animations */
@keyframes neon-pulse {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 2px currentColor;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor, 0 0 20px rgba(0, 255, 135, 0.2);
    }
}

@keyframes text-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes core-pulsate {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.6), 0 0 60px rgba(79, 172, 254, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 45px rgba(0, 242, 254, 0.8), 0 0 90px rgba(79, 172, 254, 0.6);
    }
}

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

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

@keyframes rotate-layer-1 {
    0% { transform: rotateX(45deg) rotateY(45deg) rotateZ(0deg); }
    100% { transform: rotateX(45deg) rotateY(45deg) rotateZ(360deg); }
}

@keyframes rotate-layer-2 {
    0% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(360deg); }
    100% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(0deg); }
}

@keyframes rotate-layer-3 {
    0% { transform: rotateX(90deg) rotateZ(0deg); }
    100% { transform: rotateX(90deg) rotateZ(360deg); }
}

@keyframes scroll-slide {
    0% {
        transform: translateY(0);
        height: 24px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        height: 4px;
        opacity: 0;
    }
}

@keyframes blink-caret {
    from, to { background-color: transparent }
    50% { background-color: var(--neon-cyan); }
}

/* 15. Responsive Styling Media Queries */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text-block {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .timeline-line-center {
        left: 24px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        justify-content: flex-start;
        padding-left: 48px;
    }
    
    .timeline-dot {
        left: 17px !important;
        right: auto !important;
    }
    
    .timeline-content-box {
        width: 100%;
    }
    
    .timeline-content-box::before {
        left: -6px !important;
        right: auto !important;
        transform: rotate(-45deg) !important;
    }
}

@media (max-width: 768px) {
    .cyber-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(4, 8, 20, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cyber-nav.active {
        left: 0;
    }
    
    .cyber-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .nav-item {
        font-size: 1.1rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-actions {
        display: none; /* Hide button on mobile menu */
    }
    
    .header-container {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .portal-form {
        flex-direction: column;
        align-items: center;
    }
    
    .form-input-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .btn-form {
        width: 100%;
    }
    
    .footer-base {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}
