/* =====================================================
   QuantumByte Technologies - Main Stylesheet
   =====================================================
   Modern, responsive CSS with CSS Variables for theming
   Dark mode by default to match original design
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES & THEME
   ===================================================== */
:root {
    /* Color Palette - Dark Theme (matching original exactly) */
    --background: #03060d;
    --foreground: #f7f8fc;
    --card: #070b14;
    --card-foreground: #f7f8fc;
    --primary: #e11d48;
    --primary-foreground: #fafafa;
    --secondary: #161b24;
    --secondary-foreground: #fafafa;
    --muted: #11161f;
    --muted-foreground: #8c8f95;
    --accent: #f97316;
    --accent-foreground: #ffffff;
    --border: #1d222b;
    --input: #1d222b;
    --ring: #e11d48;

    /* Additional colors */
    --color-red-600: #be123c;
    --color-red-950: #4c0519;
    --color-orange-500: #fb923c;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 10px 40px -10px rgba(225, 29, 72, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* =====================================================
   2. BASE RESET & TYPOGRAPHY
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* =====================================================
   3. UTILITY CLASSES
   ===================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-lg {
    max-width: 1400px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }

.text-balance { text-wrap: balance; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-grow { flex-grow: 1; }

.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

/* =====================================================
   4. GRID SYSTEM
   ===================================================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
    .lg\:grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5 {
        grid-template-columns: 1fr;
    }

    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   5. BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: #FA4144;
    color: var(--primary-foreground);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(225, 29, 72, 0.4);
}

.btn-secondary {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary);
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.btn-secondary:hover {
    background: rgba(225, 29, 72, 0.2);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 2px solid rgba(225, 29, 72, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   6. NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: rgba(3, 6, 13, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(3, 6, 13, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--foreground);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1.5rem;
        background: rgba(7, 11, 20, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .navbar-menu.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar-cta {
        display: none;
    }
}

/* =====================================================
   7. HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 80px;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* Make background transparent to see the canvas, but keep a slight gradient for text readability if needed */
    background: linear-gradient(to bottom, rgba(3, 6, 13, 0.2), rgba(3, 6, 13, 0.8));
    z-index: 2;
    pointer-events: none;
}

.hero-grid {
    display: none; /* Hide the old grid */
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(139, 92, 246, 0.125) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.125) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 110%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 110%);
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 1.5rem 8rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-red-950);
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.hero-badge-dot {
    position: relative;
    width: 8px;
    height: 8px;
}

.hero-badge-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50%;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =====================================================
   8. SECTIONS
   ===================================================== */
.section {
    padding: 5rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-muted {
    background: rgba(37, 37, 56, 0.3);
}

.section-gradient {
    background: linear-gradient(to right, rgba(225, 29, 72, 0.1), var(--background), rgba(225, 29, 72, 0.05));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-red-950);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.section-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   9. CARDS
   ===================================================== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 72, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    color: var(--primary);
    transition: background var(--transition-normal);
}

.card:hover .card-icon {
    background: rgba(225, 29, 72, 0.2);
}

.card-icon svg,
.card-icon i {
    width: 24px;
    height: 24px;
}

.card-icon-gradient {
    background: #FA4144;
    color: white;
}

.card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    flex-grow: 1;
}

/* =====================================================
   10. PRICING CARDS
   ===================================================== */
.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), rgba(225, 29, 72, 0.8));
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    box-shadow: var(--shadow);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    font-size: 0.875rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
}

.pricing-period {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.pricing-features li svg,
.pricing-features li .check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

/* =====================================================
   11. STATS CARDS
   ===================================================== */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 65, 68, 0.3);
    box-shadow: 0 20px 40px -10px rgba(250, 65, 68, 0.1);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: #FA4144;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* =====================================================
   12. PROCESS/STEPS
   ===================================================== */
.step-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 72, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-connector {
    display: none;
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}

@media (min-width: 1024px) {
    .step-connector {
        display: block;
    }
}

/* =====================================================
   13. TESTIMONIALS
   ===================================================== */
.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
    color: var(--primary);
}

.testimonial-content {
    font-size: 1rem;
    color: var(--muted-foreground);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.875rem;
}

/* =====================================================
   14. TRUST BADGES
   ===================================================== */
.trust-badge {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.trust-badge-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 65, 68, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    color: #FA4144;
    transition: all 0.3s ease;
}

.trust-badge:hover .trust-badge-icon {
    background: rgba(250, 65, 68, 0.2);
    transform: scale(1.1);
}

.trust-badge-icon svg {
    width: 32px;
    height: 32px;
}

.trust-badge h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.trust-badge p {
    font-size: 0.875rem;
}

/* =====================================================
   15. CTA SECTION
   ===================================================== */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 65, 68, 0.5), transparent);
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250, 65, 68, 0.5), transparent);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section > p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons .btn {
    min-width: 200px;
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* =====================================================
   16. FOOTER
   ===================================================== */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-brand img {
    height: 74px;
    width: 250px;
    object-fit: contain;
    /* object-position: 100% 50%; */
    margin-bottom: 1rem;
    margin-left: -20px;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }
}

/* =====================================================
   17. FORMS
   ===================================================== */
.form-container {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(250, 65, 68, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
}

.form-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    transition: background var(--transition-fast);
}

.form-close:hover {
    background: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: #FA4144;
    box-shadow: 0 0 0 4px rgba(250, 65, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-foreground);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 3rem 1rem;
}

.form-success h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-success p {
    color: var(--muted-foreground);
}

/* =====================================================
   18. CONTACT PAGE
   ===================================================== */
.contact-section {
    padding: 8rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    padding: 3rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info > p {
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
    border-color: rgba(250, 65, 68, 0.3);
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.contact-info-item a:hover {
    color: var(--primary);
}

/* =====================================================
   19. PRIVACY POLICY PAGE
   ===================================================== */
.privacy-header {
    padding: 8rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.privacy-header h1 {
    margin-bottom: 1rem;
}

.privacy-header p {
    font-size: 1.125rem;
}

.privacy-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
}

.privacy-contact {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.privacy-contact h2 {
    margin-bottom: 1rem;
}

.privacy-contact p {
    margin-bottom: 1.5rem;
}

.privacy-contact-info p {
    margin-bottom: 0.75rem;
}

.privacy-contact-info span {
    font-weight: 600;
    color: var(--foreground);
}

/* =====================================================
   20. ABOUT PAGE
   ===================================================== */
.about-hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(250, 65, 68, 0.15), transparent 70%);
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
    z-index: -1;
}

.about-hero h1 {
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* =====================================================
   21. SERVICES PAGE
   ===================================================== */
.services-hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(250, 65, 68, 0.15), transparent 70%);
    position: relative;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
    z-index: -1;
}

.services-hero h1 {
    margin-bottom: 1.5rem;
}

.services-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-grid .scroll-animate {
    height: 100%;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card-lg {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.service-card-lg:hover {
    transform: translateY(-5px);
    border-color: rgba(250, 65, 68, 0.3);
    box-shadow: 0 20px 40px -10px rgba(250, 65, 68, 0.1);
}

.service-card-lg .card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    background: rgba(250, 65, 68, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FA4144;
    transition: all 0.3s ease;
}

.service-card-lg:hover .card-icon {
    background: rgba(250, 65, 68, 0.2);
    transform: scale(1.1);
}

.service-card-lg .card-icon svg {
    width: 32px;
    height: 32px;
}

.service-card-lg h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card-lg p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* =====================================================
   22. ANIMATIONS
   ===================================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: slideInUp 0.7s ease-out forwards;
}

.animate-fade-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   23. RESPONSIVE HELPERS
   ===================================================== */
@media (max-width: 1024px) {
    .lg\:py-32 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .section {
        padding: 3rem 0;
    }

    .section-lg {
        padding: 4rem 0;
    }
}

@media (max-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* =====================================================
   24. ALERT MESSAGES
   ===================================================== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* =====================================================
   25. LOADING SPINNER
   ===================================================== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   26. ICONS (SVG styles)
   ===================================================== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* =====================================================
   22. PORTFOLIO PAGE
   ===================================================== */
.portfolio-hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(250, 65, 68, 0.15), transparent 70%);
    position: relative;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
    z-index: -1;
}

.portfolio-hero h1 {
    margin-bottom: 1.5rem;
}

.portfolio-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 992px) {
    .project-card {
        grid-template-columns: 1.2fr 1fr;
    }
    
    /* Alternate layout for even items */
    .project-card:nth-child(even) {
        grid-template-columns: 1fr 1.2fr;
    }
    .project-card:nth-child(even) .project-image {
        order: 2;
    }
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(250, 65, 68, 0.3);
}

.project-image {
    position: relative;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.project-category {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.project-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.project-summary {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-details h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.project-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.project-details ul li::before {
    content: '\2022';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tags span {
    background: rgba(250, 65, 68, 0.1);
    color: var(--primary);
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
