/* ============================================
   NEURAL AI - 3D Website Styles
   Tone: Retro-futuristic with Acid Neon accents
   Typography: Clash Display + Space Grotesk
   ============================================ */

:root {
    /* Acid Neon Palette */
    --neon-lime: #CCFF00;
    --neon-pink: #FF3CAC;
    --deep-black: #0D0D0D;
    --void-black: #1A1A2E;
    --electric-blue: #00D4FF;
    --soft-white: #F5F5F5;
    --muted-gray: #8A8A9A;
    
    /* Typography */
    --font-display: 'Clash Display', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--deep-black);
    color: var(--soft-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Three.js Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#canvas-container canvas {
    display: block;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(to bottom, rgba(13, 13, 13, 0.9), transparent);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-lime);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    color: var(--soft-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-lime);
    transition: width var(--transition-medium);
}

.nav-link:hover {
    color: var(--neon-lime);
}

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

.nav-cta {
    background: var(--neon-lime);
    color: var(--deep-black) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.nav-cta:hover {
    background: var(--neon-pink);
    color: var(--soft-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 60, 172, 0.3);
}

.nav-cta::after {
    display: none;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-accent {
    color: var(--neon-lime);
    text-shadow: 0 0 40px rgba(204, 255, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-gray);
    max-width: 600px;
    margin: 0 auto var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary {
    background: var(--neon-lime);
    color: var(--deep-black);
}

.btn-primary:hover {
    background: var(--neon-pink);
    color: var(--soft-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 60, 172, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--soft-white);
    border: 2px solid var(--soft-white);
}

.btn-secondary:hover {
    background: var(--soft-white);
    color: var(--deep-black);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-lime);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Styles */
section {
    padding: var(--space-xl) var(--space-lg);
    position: relative;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-pink);
    margin-bottom: var(--space-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-pink);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
}

/* Features Section */
.features {
    background: linear-gradient(to bottom, transparent, rgba(26, 26, 46, 0.5));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: var(--space-md);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-lime), var(--neon-pink));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--neon-lime), var(--neon-pink));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--deep-black);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-desc {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Technology Section */
.technology {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

.tech-ring:nth-child(1) {
    width: 200px;
    height: 200px;
    border-color: var(--neon-lime);
    animation-delay: 0s;
}

.tech-ring:nth-child(2) {
    width: 300px;
    height: 300px;
    border-color: var(--neon-pink);
    animation-delay: 0.5s;
}

.tech-ring:nth-child(3) {
    width: 400px;
    height: 400px;
    border-color: var(--electric-blue);
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.tech-content {
    padding-left: var(--space-lg);
}

.tech-desc {
    font-size: 1.1rem;
    color: var(--muted-gray);
    margin: var(--space-md) 0;
    line-height: 1.8;
}

.tech-specs {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.spec {
    text-align: center;
}

.spec-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-lime);
}

.spec-label {
    font-size: 0.875rem;
    color: var(--muted-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section */
.about {
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.5), transparent);
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-desc {
    font-size: 1.25rem;
    color: var(--muted-gray);
    margin: var(--space-md) 0 var(--space-lg);
    line-height: 1.8;
}

.about-values {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.value {
    text-align: center;
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 150px;
    transition: all var(--transition-fast);
}

.value:hover {
    border-color: var(--neon-lime);
    background: rgba(204, 255, 0, 0.05);
}

.value-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-pink);
    opacity: 0.5;
}

.value-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--muted-gray);
    margin: var(--space-md) 0 var(--space-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--soft-white);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-lime);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}

.form-input::placeholder {
    color: var(--muted-gray);
}

/* Footer */
.footer {
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-lime);
}

.footer-tagline {
    color: var(--muted-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-link {
    color: var(--muted-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--neon-lime);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted-gray);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .technology {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tech-content {
        padding-left: 0;
    }
    
    .tech-visual {
        order: -1;
    }
    
    .tech-specs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-lime);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}