/* ==========================================
   CSS Variables - Design System
   ========================================== */

:root {
    /* Primary Colors */
    --primary-900: #1a1a2e;
    --primary-800: #16213e;
    --primary-700: #0f3460;

    /* Accent Colors - Gradient */
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --accent-cyan: #4facfe;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-100: rgba(255, 255, 255, 0.9);
    --gray-200: rgba(255, 255, 255, 0.7);
    --gray-300: rgba(255, 255, 255, 0.5);
    --gray-400: rgba(255, 255, 255, 0.3);
    --gray-500: rgba(255, 255, 255, 0.1);

    /* Background */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
    --glow-hover: 0 0 24px rgba(99, 102, 241, 0.3);

    /* Timing Functions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.6, 1);

    /* Duration */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* ==========================================
   Global Resets
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================
   Utility Classes
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* Fade-in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Navigation Bar
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-500);
    z-index: 1000;
    transition: background var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.nav-logo:hover {
    opacity: 0.9;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
}

.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    color: var(--gray-200);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--duration-normal) var(--ease-out);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all var(--duration-normal) var(--ease-out);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==========================================
   CTA Button Styles
   ========================================== */

.cta-button {
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: var(--white);
}

.cta-button.primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--gray-400);
    color: var(--white);
}

.cta-button.secondary:hover {
    border-color: var(--white);
    background: var(--gray-500);
}

.cta-button.large {
    padding: 16px 48px;
    font-size: 16px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at top,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.1) 30%,
        transparent 70%
    );
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-6);
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-200);
    line-height: 1.6;
    margin-bottom: var(--space-10);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }
}

/* ==========================================
   Section Headers
   ========================================== */

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

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-200);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

/* ==========================================
   Services Section
   ========================================== */

.services {
    padding: var(--space-32) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-500);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 320px;
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-5);
    color: var(--accent-blue);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.service-description {
    font-size: 16px;
    color: var(--gray-200);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.service-features li {
    font-size: 14px;
    color: var(--gray-300);
    padding-left: var(--space-5);
    position: relative;
}

.service-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Technology Section
   ========================================== */

.technology {
    padding: var(--space-24) 0;
}

.tech-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-16);
}

.tech-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-300);
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--duration-normal) var(--ease-out);
}

.tech-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--white);
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
}

.tech-category {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.tech-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-200);
    min-width: 140px;
}

.tech-tags {
    font-size: 14px;
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .tech-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-category {
        flex-direction: column;
        align-items: flex-start;
    }

    .tech-label {
        min-width: auto;
    }
}

/* ==========================================
   Use Cases Section
   ========================================== */

.use-cases {
    padding: var(--space-24) 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
}

.use-case {
    text-align: left;
}

.use-case-number {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.use-case-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.use-case-description {
    font-size: 16px;
    color: var(--gray-200);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

/* ==========================================
   Why Us Section
   ========================================== */

.why-us {
    padding: var(--space-24) 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
}

.advantage {
    padding: var(--space-6);
    text-align: left;
}

.advantage-icon {
    font-size: 32px;
    margin-bottom: var(--space-3);
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.advantage-description {
    font-size: 14px;
    color: var(--gray-200);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Contact CTA Section
   ========================================== */

.contact-cta {
    padding: var(--space-32) 0;
}

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

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--space-5);
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--gray-200);
    line-height: 1.6;
    margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 36px;
    }

    .cta-subtitle {
        font-size: 16px;
    }
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    border-top: 1px solid var(--gray-500);
    padding: var(--space-20) 0 var(--space-5);
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-16);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
}

.footer-logo .logo-text {
    font-size: 22px;
}

@media (max-width: 768px) {
    .footer-logo .logo-text {
        font-size: 20px;
    }
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray-300);
    line-height: 1.6;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-300);
    transition: color var(--duration-normal) var(--ease-out);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-5);
    border-top: 1px solid var(--gray-500);
    font-size: 14px;
    color: var(--gray-300);
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
}

.footer-legal a {
    color: var(--gray-300);
    transition: color var(--duration-normal) var(--ease-out);
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

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