/* =========================================
   CSS VARIABLES (Kinetic Volt Theme)
   ========================================= */
:root {
    /* Color Palette */
    --primary: #D4FF00;
    --primary-rgb: 212, 255, 0;
    --secondary: #1A1A1A;
    --secondary-rgb: 26, 26, 26;
    --accent: #00F0FF;
    --accent-rgb: 0, 240, 255;
    
    /* Backgrounds */
    --background: #050505;
    --background-alt: #0F0F0F;
    --surface: #141414;
    
    /* Text */
    --text: #FFFFFF;
    --text-secondary: #B0B0B0;
    --text-muted: #666666;
    
    /* Borders */
    --border: #333333;
    
    /* Fonts */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   HEADER STYLES
   ========================================= */
header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu {
    border-top: 1px solid var(--border);
}

/* =========================================
   HERO ANIMATION (Grid Scanner)
   ========================================= */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 240, 255, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 240, 255, 0.1) 100%);
    background-size: 60px 60px;
    perspective: 500px;
    animation: gridMove 10s linear infinite;
    transform-style: preserve-3d;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent);
    animation: scan 4s ease-in-out infinite;
    top: -10%;
    z-index: 2;
}

@keyframes gridMove { 
    to { background-position: 0 60px; } 
}

@keyframes scan { 
    0% { top: -10%; opacity: 0; } 
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; } 
}

/* =========================================
   PLAYGROUND STYLES (Fixed Height)
   ========================================= */
.upload-zone, .result-display {
    height: 400px;
    min-height: 300px;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    border: 2px dashed var(--border);
    border-radius: 0; /* Brutalist */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: var(--primary);
    background-color: rgba(212, 255, 0, 0.05);
}

/* Images inside playground fit perfectly */
#preview-image, #result-image, #result-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Loading Scanner Animation */
.scanner-loader {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: loadingScan 1.5s infinite linear;
    width: 200px;
}

@keyframes loadingScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================================
   CARD & SECTION STYLING
   ========================================= */
section {
    padding: 5rem 2rem;
}

.card, .step-card, .feature-card, .testimonial-card, .gallery-item {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover, .feature-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* FAQ Accordion */
.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

.faq-item.active .ri-add-line {
    transform: rotate(45deg);
    color: var(--primary);
}

/* =========================================
   FOOTER STYLES
   ========================================= */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */
/* Mobile (max 767px) */
@media (max-width: 767px) {
    html { font-size: 14px; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .playground-grid,
    .steps-grid,
    .gallery-grid,
    .testimonials-grid,
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 1rem;
    }
    
    .upload-zone, .result-display {
        height: 300px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 15px; }
    
    .gallery-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    html { font-size: 16px; }
}