/* ===== AI TECH DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* AI Tech Color Palette */
:root {
    /* Core Tech Colors */
    --electric-blue: #00d4ff;
    --neon-cyan: #00ffff;
    --ai-purple: #6366f1;
    --tech-green: #00ff88;
    --warning-orange: #ff6b35;
    
    /* Dark Theme Base */
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #1a1a24;
    --glass-bg: rgba(26, 26, 36, 0.8);
    --border-subtle: rgba(0, 212, 255, 0.2);
    --border-glow: rgba(0, 212, 255, 0.5);
    
    /* Typography Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-accent: var(--electric-blue);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--electric-blue) 0%, var(--ai-purple) 100%);
    --gradient-glow: linear-gradient(135deg, var(--neon-cyan) 0%, var(--electric-blue) 50%, var(--ai-purple) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-dark: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Borders & Effects */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Shadows & Glows */
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.6);
    --glow-text: 0 0 20px currentColor;
    
    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-glow: 0.5s ease-in-out;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

.wrapper {
    background: var(--gradient-dark);
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

/* ===== TECH TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-text);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    color: var(--text-accent);
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 500;
    color: var(--text-primary);
}

strong {
    color: var(--text-accent);
    font-weight: 600;
    text-shadow: 0 0 10px currentColor;
}

/* ===== FUTURISTIC HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--darker-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
    filter: hue-rotate(200deg) contrast(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(5, 5, 8, 0.95) 100%),
        radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 212, 255, 0.03) 100px
        );
    z-index: 1;
    animation: techScan 8s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: var(--space-lg);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--electric-blue));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.hero-title {
    margin-bottom: var(--space-lg);
    animation: textReveal 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-family: var(--font-mono);
    animation: textReveal 1s ease-out 0.6s both;
}

.hero-subtitle::before {
    content: '> ';
    color: var(--electric-blue);
    font-weight: 600;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
    animation: textReveal 1s ease-out 0.9s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all var(--transition-smooth);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-2px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.cta-button:hover::before {
    left: 0;
}

/* ===== TECH SECTIONS ===== */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--card-bg);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.section-title {
    position: relative;
    margin-bottom: var(--space-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background: var(--dark-bg);
    position: relative;
}

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

.experience-text {
    background: var(--glass-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.experience-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

/* ===== AI SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.service-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: all var(--transition-smooth);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

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

.service-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
    background: var(--card-bg);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.2) contrast(1.1);
}

.service-card h3 {
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.service-card p {
    text-align: center;
    line-height: 1.7;
}

/* ===== AI MISSION SECTION ===== */
.mission {
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
    z-index: 0;
}

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

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.mission-point {
    background: var(--glass-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    transition: all var(--transition-smooth);
    position: relative;
}

.mission-point:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.mission-point p {
    color: var(--text-secondary);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background: var(--dark-bg);
    position: relative;
}

.benefits-grid {
    max-width: 900px;
    margin: var(--space-xl) auto 0;
    position: relative;
    z-index: 1;
}

.benefit-item {
    background: var(--glass-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    margin-bottom: var(--space-lg);
    position: relative;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
}

.benefit-item:hover {
    border-color: var(--border-glow);
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

.benefit-item h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    text-align: left;
}

/* ===== TECH FOOTER ===== */
.footer {
    background: var(--darker-bg);
    color: var(--text-primary);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-info h3 {
    color: var(--text-accent);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    font-family: var(--font-mono);
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.footer-copyright {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* ===== TECH ANIMATIONS ===== */
@keyframes techScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes logoGlow {
    0% { filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--electric-blue)); }
    100% { filter: brightness(0) invert(1) drop-shadow(0 0 30px var(--neon-cyan)); }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .hero {
        min-height: 80vh;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-lg);
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}