/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #0a0f1d;
    --bg-surface: #121829;
    --bg-card: #1a233a;
    
    --primary: #00f0ff;       /* Tech-Cyan / Blue */
    --secondary: #00ff87;     /* Neo-Mint Green */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #24324f;
    
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   2. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    width: 100%; /* Mobile First default */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00a8ff);
    color: #020617;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 255, 135, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 255, 135, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   3. HEADER & MOBILE NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--secondary);
}

/* Hamburger Icon */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: block; /* Visible on mobile */
    z-index: 1100;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Menu Toggle Animation */
.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Mobile Nav Drawer */
.main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
}

.main-nav.open {
    right: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.btn-nav-cta {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-align: center;
}

/* ==========================================================================
   4. SECTIONS (MOBILE-FIRST)
   ========================================================================== */
section {
    padding: 5rem 0;
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-visual lottie-player {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    background-color: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 255, 135, 0.05);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Advantage Section */
.advantage-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advantage-list li {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.advantage-list strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

/* Contact/Form Section */
.contact-section {
    background-color: var(--bg-surface);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   5. DESKTOP MEDIA QUERIES (RESPONSIVE SCALING)
   ========================================================================== */
@media (min-width: 768px) {
    .btn {
        width: auto;
    }
    
    .hero-actions {
        flex-direction: row;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .section-header h2 {
        font-size: 2.5rem;
    }

    /* Navbar rules */
    .menu-toggle {
        display: none; /* Hide toggle on desktops */
    }

    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 2.5rem;
    }

    /* Hero side-by-side */
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-content {
        flex: 1;
        max-width: 600px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    
    .hero-visual lottie-player {
        max-width: 500px;
    }
}
