@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --primary-color: #D4AF37; /* Gold */
    --secondary-color: #8A2BE2; /* BlueViolet */
    --background-color: #0a0a1a; /* Deep Space Black */
    --text-color: #e0e0e0; /* Light Gray */
    --neon-glow-sm: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    --neon-glow-md: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    --neon-glow-lg: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color), 0 0 45px var(--primary-color), 0 0 60px var(--primary-color);
    --neon-glow-secondary-sm: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
    --neon-glow-secondary-lg: 0 0 15px var(--secondary-color), 0 0 30px var(--secondary-color), 0 0 45px var(--secondary-color), 0 0 60px var(--secondary-color);
    --scanline-opacity: 0.08;
    --scanline-color: rgba(0, 0, 0, var(--scanline-opacity));
    --holographic-border: 1px solid rgba(212, 175, 55, 0.3);
    --holographic-shadow: 0 0 15px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(212, 175, 55, 0.1);
    --font-heading: 'Cinzel Decorative', cursive;
    --font-body: 'Space Mono', monospace;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* Text Glow and Scanline Effect */
.glow-text-sm {
    text-shadow: var(--neon-glow-sm);
}
.glow-text-md {
    text-shadow: var(--neon-glow-md);
}
.glow-text-lg {
    text-shadow: var(--neon-glow-lg);
}
.glow-text-secondary-sm {
    text-shadow: var(--neon-glow-secondary-sm);
}
.glow-text-secondary-lg {
    text-shadow: var(--neon-glow-secondary-lg);
}

/* Data-text for dynamic glow/outline effect */
[data-text] {
    position: relative;
    display: inline-block; /* Changed from block to inline-block for better behavior with text */
}

/* Base styling for data-text glow */
[data-text]::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary-color); /* Default glow color */
    text-shadow:
        0 0 5px rgba(255,255,255,0.7), /* White outer glow */
        0 0 10px rgba(255,255,255,0.5),
        0 0 15px rgba(255,255,255,0.3),
        0 0 20px var(--primary-color), /* Primary neon glow */
        0 0 30px var(--primary-color),
        0 0 40px var(--primary-color);
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
    pointer-events: none; /* Prevent pseudo-element from interfering with interactions */
    -webkit-text-stroke: 0px transparent; /* No stroke by default */
}

/* Specific element overrides for data-text glow */
h1[data-text]::before,
.cta-button-hero[data-text]::before,
#submitInsightBtn[data-text]::before,
.nav-link[data-text]::before {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255,255,255,0.7),
                 0 0 10px rgba(255,255,255,0.5),
                 0 0 15px rgba(255,255,255,0.3),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color),
                 0 0 40px var(--primary-color);
}

h2[data-text]::before,
.cta-button-nav[data-text]::before {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(255,255,255,0.7),
                 0 0 10px rgba(255,255,255,0.5),
                 0 0 15px rgba(255,255,255,0.3),
                 0 0 20px var(--secondary-color),
                 0 0 30px var(--secondary-color),
                 0 0 40px var(--secondary-color);
}

/* Scanline Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        var(--scanline-color) 2px
    );
    opacity: var(--scanline-opacity);
    z-index: 10000;
    animation: flicker 15s infinite alternate ease-in-out;
}

/* Flicker Animation for Scanlines */
@keyframes flicker {
    0% { opacity: var(--scanline-opacity); }
    50% { opacity: calc(var(--scanline-opacity) * 1.5); }
    100% { opacity: var(--scanline-opacity); }
}

/* Basic Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(10, 10, 26, 0.7); /* Dark base with transparency */
}

.nav-link {
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative; /* Needed for potential pseudo-element animations */
}
.nav-link:hover {
    color: var(--primary-color);
    text-shadow: var(--neon-glow-sm);
}

/* Buttons */
.cta-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--background-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button-nav {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button-nav:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-shadow: none;
    box-shadow: var(--neon-glow-md);
}

.cta-button-hero {
    background-color: transparent;
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button-hero:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-shadow: none;
    box-shadow: var(--neon-glow-lg);
}

.cta-button-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    text-shadow: none;
    box-shadow: var(--neon-glow-secondary-lg);
}

.cta-button-submit {
    background-color: transparent;
    border: 4px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: none;
}

.cta-button-submit:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: var(--neon-glow-lg);
}


.glow-hover-sm:hover {
    box-shadow: var(--neon-glow-sm);
}
.glow-hover-lg:hover {
    box-shadow: var(--neon-glow-lg);
}
.glow-hover-xl:hover {
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color), 0 0 60px var(--primary-color), 0 0 80px var(--primary-color);
}

/* Glitch Effect on CTAs during interaction (example on submit) */
.cta-button-submit.glitching {
    animation: glitch 0.3s linear infinite alternate-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(5px, -5px); }
    60% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, -5px); }
    100% { transform: translate(0); }
}


/* Section Background Video & Parallax */
.section-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 1rem;
    background-color: var(--background-color); /* Fallback */
    overflow: hidden;
}

.section-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden; /* Important for video element */
}

.section-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: opacity(0.3) saturate(1.5); /* Subtle effect */
}

/* Parallax Scroll for Temporal Insights section */
#cognitive-futures {
    background-attachment: fixed; /* Basic parallax */
    background-size: cover;
    background-position: center;
}

/* Timeline Scroll Archetype - Basic structure */
#timeline-scroll-container section {
    scroll-snap-align: start;
    position: relative; /* Ensure relative positioning for z-index */
}

/* Hero Section Overlay for Text Readability */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Ensure text is above video and gradient */
    text-align: center;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8); /* Subtle shadow for readability */
}

/* Holographic Cards */
.holographic-card {
    background: rgba(10, 10, 26, 0.4);
    border: var(--holographic-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--holographic-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
}

.holographic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
}

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

/* Interactive Orb */
.interactive-orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.7) 0%, rgba(10, 10, 26, 0) 70%);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5), inset 0 0 15px rgba(138, 43, 226, 0.3);
    border: 2px solid var(--secondary-color);
}

.orb-core {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
    animation: pulse 2s infinite ease-in-out;
}

.orb-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, rgba(138, 43, 226, 0) 70%);
    animation: orbit 6s linear infinite;
    opacity: 0.7;
}

.orb-details {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    pointer-events: none; /* Allow clicks to pass through to the orb */
}

.interactive-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.8), inset 0 0 25px rgba(138, 43, 226, 0.5);
}

.interactive-orb.active .orb-details,
.interactive-orb:hover .orb-details {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Neural Network Explorer */
.neural-network-explorer {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
    opacity: 0.7;
    animation: glowNode 2s infinite alternate ease-in-out;
}

.node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.node:nth-child(2) { top: 30%; left: 60%; animation-delay: 0.2s; }
.node:nth-child(3) { top: 50%; left: 40%; animation-delay: 0.4s; }
.node:nth-child(4) { top: 70%; left: 30%; animation-delay: 0.6s; }
.node:nth-child(5) { top: 80%; left: 70%; animation-delay: 0.8s; }
.node:nth-child(6) { top: 40%; left: 80%; animation-delay: 1s; }
.node:nth-child(7) { top: 10%; left: 50%; animation-delay: 1.2s; }
.node:nth-child(8) { top: 60%; left: 10%; animation-delay: 1.4s; }
.node:nth-child(9) { top: 85%; left: 50%; animation-delay: 1.6s; }
.node:nth-child(10) { top: 25%; left: 85%; animation-delay: 1.8s; }


.path {
    position: absolute;
    background-color: var(--secondary-color);
    opacity: 0.3;
    filter: blur(2px);
    animation: flowPath 4s linear infinite;
}

.path:nth-child(11) { /* Path 1 */
    top: 25%; left: 30%; width: 40%; height: 2px;
    transform-origin: 0% 50%;
    animation-delay: 0s;
}
.path:nth-child(12) { /* Path 2 */
    top: 40%; left: 30%; width: 50%; height: 2px;
    transform-origin: 0% 50%;
    animation-delay: 0.5s;
}
.path:nth-child(13) { /* Path 3 */
    top: 60%; left: 20%; width: 60%; height: 2px;
    transform-origin: 0% 50%;
    animation-delay: 1s;
}


@keyframes glowNode {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

@keyframes flowPath {
    0% { transform: translateX(-100%); opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Integration Logos */
.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
}

.integration-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

.integration-logo img {
    max-width: 70px;
    height: auto;
}

/* Futures Cards */
.futures-card {
    background: rgba(10, 10, 26, 0.4);
    border: var(--holographic-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--holographic-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to bottom */
    min-height: 250px;
}

.futures-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
}

/* Insight Request Form */
#insight-request-form {
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.glow-input {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--secondary-color) !important; /* Overwrite default */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glow-input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px var(--primary-color), inset 0 0 8px var(--primary-color);
}

/* Footer */
footer {
    background-color: rgba(10, 10, 26, 0.7);
    border-top: 1px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.9rem;
    }
    .cta-button-nav, .cta-button-hero, .cta-button-secondary, .cta-button-submit {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    .text-5xl { font-size: 2.5rem; }
    .text-7xl { font-size: 3.5rem; }
    .text-xl { font-size: 1.1rem; }
    .text-3xl { font-size: 1.5rem; }
    .text-4xl { font-size: 2rem; }
    .text-6xl { font-size: 2.8rem; }
    .text-2xl { font-size: 1.2rem; }
    .text-lg { font-size: 1rem; }
    .section-bg { padding: 2rem 0.5rem; }

    .holographic-card, .futures-card {
        padding: 1.5rem;
    }
    .interactive-orb {
        width: 150px;
        height: 150px;
    }
    .orb-core {
        width: 40px;
        height: 40px;
    }
    .orb-details {
        font-size: 0.9rem;
    }
    #insight-request-form {
        padding: 1.5rem;
    }
    .cta-button-submit {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    footer {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .text-5xl { font-size: 2rem; }
    .text-7xl { font-size: 2.8rem; }
    .text-xl { font-size: 1rem; }
    .text-3xl { font-size: 1.3rem; }
    .text-4xl { font-size: 1.8rem; }
    .text-6xl { font-size: 2.5rem; }
    .text-2xl { font-size: 1.1rem; }
    .text-lg { font-size: 0.9rem; }

    nav {
        display: none !important; /* Hide nav on small screens, header button handles primary CTA */
    }
    header {
        justify-content: space-between;
    }
    .cta-button-nav {
        display: none; /* Hide nav CTA */
    }
    .cta-button-hero, .cta-button-secondary {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .interactive-orb {
        width: 120px;
        height: 120px;
    }
    .orb-core {
        width: 30px;
        height: 30px;
    }
    .futures-card, .holographic-card {
        min-height: 200px;
        padding: 1rem;
    }
    .futures-card h3, .holographic-card h3 {
        font-size: 1rem;
    }
    .futures-card p, .holographic-card p {
        font-size: 0.8rem;
    }
    #insight-request-form {
        padding: 1rem;
    }
    #insight-request-form label {
        font-size: 0.9rem;
    }
    #insight-request-form input, #insight-request-form select, #insight-request-form textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    .cta-button-submit {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}