/* ========================================
   PROJECT CHIMERA - Cyberpunk Landing Page
   Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0A0A0F;
    --bg-secondary: #121218;
    --bg-tertiary: #1A1A25;
    
    --neon-blue: #00FFFF;
    --neon-pink: #FF00FF;
    --neon-green: #39FF14;
    --neon-yellow: #FFFF00;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #6A6A7A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    --gradient-glow: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --font-secondary: 'Rajdhani', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   Background Effects
   ======================================== */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   Loading Screen
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-container {
    position: relative;
    width: 400px;
    padding: 40px;
    border: 2px solid var(--neon-blue);
    background: rgba(10, 10, 15, 0.9);
}

.loader-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.5;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { top: -10%; }
    100% { top: 110%; }
}

.boot-sequence {
    text-align: center;
    margin-bottom: 30px;
}

.boot-text {
    display: block;
    font-family: var(--font-display);
    color: var(--neon-blue);
    margin: 5px 0;
    opacity: 0;
    animation: bootText 0.5s ease forwards;
}

@keyframes bootText {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.boot-text:nth-child(1) { animation-delay: 0.2s; }
.boot-text:nth-child(2) { animation-delay: 0.6s; }
.boot-text:nth-child(3) { animation-delay: 1s; }

.loader-bar-container {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    animation: loadBar 2s ease forwards;
}

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-percentage {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    color: var(--neon-pink);
    margin-top: 10px;
    animation: blink 0.5s ease infinite alternate;
}

@keyframes blink {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

/* ========================================
   Glitch Text Effect
   ======================================== */

.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch-text, .glitch-title, .glitch-subtitle, .cta-title {
    font-family: var(--font-display);
    position: relative;
    text-transform: uppercase;
}

.main-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-value);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--neon-blue);
    z-index: -1;
    animation: glitch-1 2s infinite;
}

.glitch-text::after {
    color: var(--neon-pink);
    z-index: -2;
    animation: glitch-2 3s infinite;
}

@keyframes glitch-1 {
    0%, 95% { clip-path: inset(0 0 0 0); }
    96% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
    97% { clip-path: inset(80% 0 5% 0); transform: translate(3px, 0); }
    98% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
    99% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 0); }
    100% { clip-path: inset(0 0 0 0); }
}

@keyframes glitch-2 {
    0%, 95% { clip-path: inset(0 0 0 0); }
    96% { clip-path: inset(10% 0 40% 0); transform: translate(3px, 0); }
    97% { clip-path: inset(70% 0 5% 0); transform: translate(-3px, 0); }
    98% { clip-path: inset(20% 0 60% 0); transform: translate(2px, 0); }
    99% { clip-path: inset(50% 0 10% 0); transform: translate(-2px, 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.glitch-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.glitch-subtitle {
    font-family: var(--font-secondary);
    color: var(--neon-green);
    letter-spacing: 4px;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Navigation
   ======================================== */

.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    color: var(--neon-blue);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--neon-blue);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========================================
   CTA Button Styles
   ======================================== */

.cta-button {
    font-family: var(--font-display);
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 15px 30px;
    font-size: 1rem;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-blue);
    transition: left var(--transition-normal);
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button.nav-cta {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.hero-cta {
    margin-top: var(--spacing-md);
}

.cta-primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-primary);
    font-weight: bold;
}

.cta-primary:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    color: var(--neon-green);
    letter-spacing: 6px;
    margin-bottom: var(--spacing-sm);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

/* Hologram Effect */
.hologram-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-core {
    width: 80px;
    height: 80px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--neon-blue), inset 0 0 20px var(--neon-blue);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-blue);
    border-bottom-color: var(--neon-pink);
}

.ring-1 {
    width: 140px;
    height: 140px;
    animation: rotate 8s linear infinite;
}

.ring-2 {
    width: 200px;
    height: 200px;
    border-top-color: var(--neon-pink);
    border-bottom-color: var(--neon-blue);
    animation: rotate-reverse 10s linear infinite;
}

.ring-3 {
    width: 260px;
    height: 260px;
    border-top-color: var(--neon-green);
    border-bottom-color: var(--neon-yellow);
    animation: rotate 12s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ========================================
   Problem Section
   ======================================== */

.problem-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, transparent, rgba(18, 18, 24, 0.5), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.problem-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.data-stream-container {
    position: relative;
    padding: 40px;
    border-left: 3px solid var(--neon-blue);
    background: rgba(0, 255, 255, 0.05);
}

.data-stream {
    font-family: var(--font-display);
    color: var(--neon-green);
    letter-spacing: 2px;
    line-height: 1.6;
}

.data-stream::before {
    content: '>';
    animation: blink 0.5s ease infinite;
}

/* ========================================
   Solution Section (Features)
   ======================================== */

.solution-section {
    padding: var(--spacing-xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--neon-blue);
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.feature-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   Technology Section
   ======================================== */

.technology-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 37, 0.5), transparent);
}

.tech-diagram-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: var(--spacing-lg) auto;
}

.diagram-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-1 {
    width: 300px;
    height: 300px;
    animation: rotate-slow 20s linear infinite;
}

.layer-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(57, 255, 20, 0.3);
    animation: rotate-reverse-slow 15s linear infinite;
}

@keyframes rotate-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-reverse-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.diagram-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border: 2px solid var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.core-text {
    font-family: var(--font-display);
    color: var(--neon-blue);
    letter-spacing: 4px;
}

/* ========================================
   Roadmap Section
   ======================================== */

.roadmap-section {
    padding: var(--spacing-xl) 0;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-blue), transparent);
}

.timeline-item {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 3px solid var(--neon-pink);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-left: 3px solid var(--neon-blue);
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    border-left: none;
    border-right: 3px solid var(--neon-pink);
}

.timeline-date {
    font-family: var(--font-display);
    color: var(--neon-green);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
}

.timeline-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-subtitle {
    font-family: var(--font-secondary);
    color: var(--neon-green);
    letter-spacing: 4px;
    margin-bottom: var(--spacing-md);
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--neon-blue);
    letter-spacing: 4px;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.countdown-divider {
    font-family: var(--font-display);
    color: var(--neon-pink);
    letter-spacing: 2px;
}

/* ========================================
   Footer
   ======================================== */

.cyber-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-family: var(--font-display);
    color: var(--neon-blue);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--neon-blue);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: var(--neon-pink);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================================
   Sound Toggle
   ======================================== */

.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-normal);
}

.sound-toggle:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .glitch-title {
        font-size: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin-bottom: var(--spacing-md);
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hologram-container {
        width: 200px;
        height: 200px;
    }

    .ring-1 { width: 90px; height: 90px; }
    .ring-2 { width: 130px; height: 130px; }
    .ring-3 { width: 170px; height: 170px; }

    .problem-content,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-diagram-container {
        max-width: 300px;
        height: 300px;
    }

    .layer-1 { width: 200px; height: 200px; }
    .layer-2 { width: 140px; height: 140px; }

    .roadmap-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 40px !important;
        border-right: none !important;
        border-left: 3px solid var(--neon-blue) !important;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .glitch-title {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }
}

/* ========================================
   AOS Animation Support
   ======================================== */

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos^="fade"][data-aos^="fade"]:not([data-aos*="up"]):not([data-aos*="down"]) {
    opacity: 0;
    transform: none;
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 4px;
}

button:focus-visible, a:focus-visible {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --text-primary: #FFFFFF;
        --neon-blue: #00FFFF;
        --neon-pink: #FF00FF;
    }

    .feature-card, .timeline-content {
        border-width: 2px;
    }
}