/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --bg-dark: #090b10;
    --bg-surface: #12151c;
    --bg-surface-hover: #1a1e28;
    --primary: #00d4ff; /* Futuristic Cyan */
    --primary-glow: rgba(0, 212, 255, 0.4);
    --secondary: #2d6aff; /* Deep Blue */
    --text-main: #ffffff;
    --text-muted: #a0aab8;
    --border-light: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --nav-height: 80px;
    --radius-card: 16px;
    --radius-btn: 8px;
    
    /* Transitions */
    --ease: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--ease);
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(90deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: center;
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--ease);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--ease);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(9, 11, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cards (Services / Features) */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    border-radius: var(--radius-card);
    transition: var(--ease);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: var(--ease);
}

.card:hover::before { opacity: 1; }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-btn);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    background: var(--bg-surface);
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

/* Delays for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* =========================================
   5. PAGE SPECIFIC SECTIONS
   ========================================= */

/* Hero */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 106, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-surface), #0f1219);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* Bullet List Style */
.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Visual placeholder */
.visual-box {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-surface-hover), var(--bg-dark));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.visual-box::after {
    content: '';
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

/* =========================================
   6. RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: var(--ease);
    }
    
    .nav-links.nav-active {
        transform: translateX(0);
    }
    
    .mobile-toggle { display: block; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero { padding-top: 140px; }
}