/* ============================================
   COLORSURGE CONSULTING - CRITICAL CSS
   Above-the-fold styles for fast initial render
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --primary-light: #333333;
    --secondary: #20B4E2;
    --secondary-light: #4DC8F0;
    --secondary-dark: #1890BA;
    --accent: #F5A623;
    --accent-light: #FFD54F;

    /* Neutral Colors */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --muted: #e2e8f0;
    --border: #cbd5e1;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-display: 'Montserrat', 'Arial Black', sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

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

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}
.main-header.scrolled { box-shadow: var(--shadow-md); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-lg);
}

.logo { display: flex; align-items: center; }
.logo-image { height: 50px; width: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    transition: color var(--transition-fast);
    position: relative;
}
.nav-link:hover { color: var(--secondary); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition-fast);
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--secondary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}
.nav-cta:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}
.nav-cta svg { flex-shrink: 0; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-fast);
}
.hamburger { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hamburger::before { content: ''; top: -8px; left: 0; }
.hamburger::after { content: ''; top: 8px; left: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.btn-primary {
    background: var(--secondary);
    color: white;
}
.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}
.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}
.btn-full { width: 100%; }
.btn svg { flex-shrink: 0; }

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}
.particle-1 { width: 300px; height: 300px; top: -150px; left: -100px; animation-delay: 0s; }
.particle-2 { width: 200px; height: 200px; top: 20%; right: -50px; animation-delay: -5s; }
.particle-3 { width: 150px; height: 150px; bottom: 20%; left: 10%; animation-delay: -10s; }
.particle-4 { width: 100px; height: 100px; top: 50%; right: 20%; animation-delay: -15s; }
.particle-5 { width: 80px; height: 80px; bottom: 10%; right: 30%; animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-5deg); }
}

.hero-content {
    max-width: 800px;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-badge svg { color: var(--accent); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}
.hero-title .highlight {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}
.hero-feature svg { color: var(--secondary); flex-shrink: 0; }

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.hero-ctas .btn-secondary {
    border-color: white;
    color: white;
}
.hero-ctas .btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
}
.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
}
.wave-divider.bottom { bottom: 0; }
.wave-divider.top { top: 0; transform: rotate(180deg); }
.wave-divider svg {
    width: 100%;
    height: 100%;
}

/* Trust Bar */
.trust-bar {
    position: relative;
    background: var(--bg);
    padding: var(--space-3xl) 0;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
}
.trust-item.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.trust-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(32, 180, 226, 0.1) 0%, rgba(32, 180, 226, 0.05) 100%);
    border-radius: var(--radius-lg);
}

.trust-text strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
}
.trust-text span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}
.section-header.light { color: white; }
.section-header.light .section-subtitle { opacity: 0.8; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}
.section-title .highlight { color: var(--secondary); }
.section-header.light .section-title { color: white; }

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Animation utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}
.animate-on-scroll.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}
.delay-100 { animation-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; }
.delay-300 { animation-delay: 0.3s !important; }
.delay-400 { animation-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; }

/* Mobile Responsive */
@media (max-width: 1023px) {
    .trust-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .mobile-menu-btn { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 999;
    }
    .nav-menu.open { right: 0; }

    .nav-link {
        padding: var(--space-sm) 0;
        font-size: 1.125rem;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }

    .mobile-menu-btn[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    .mobile-menu-btn[aria-expanded="true"] .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }
    .mobile-menu-btn[aria-expanded="true"] .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .hero { min-height: 70vh; padding: var(--space-3xl) 0; }
    .hero-features { flex-direction: column; gap: var(--space-md); }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }

    .trust-items { grid-template-columns: 1fr; }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--secondary-dark);
    transform: translateY(-4px);
}
