/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* 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: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* BIOS Setup Utility Theme */
.bios-root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #002d6b; /* deep BIOS blue */
    font-family: var(--font-mono);
}

.bios-screen {
    width: min(1100px, 96vw);
    height: min(680px, 92vh);
    display: grid;
    grid-template-rows: 36px 36px 1fr 32px;
    background: #003b88; /* panel blue */
    box-shadow: 0 0 0 2px #001b3f, 0 0 0 4px #94d1ff, 0 0 0 6px #001b3f; /* BIOS framed border */
    color: #e5f2ff;
}

.bios-topbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 0 12px;
    background: linear-gradient(#001f49, #00306f);
    color: #9ad1ff;
    border-bottom: 1px solid #0a3e89;
    font-weight: 600;
}

.bios-brand { color: #ffee7a; }
.bios-product { color: #9ad1ff; }
.bios-clock { color: #9ad1ff; font-variant-numeric: tabular-nums; }

.bios-tabs {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 12px;
    border-bottom: 1px solid #0a3e89;
}

.bios-tab {
    background: transparent;
    border: 1px solid #0a3e89;
    color: #cbe8ff;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-weight: 600;
}

.bios-tab.active {
    background: #001f49;
    color: #ffee7a; /* amber for active */
    box-shadow: inset 0 0 0 2px #ffee7a;
}

.bios-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    padding: 12px;
    /* Critical for scrollable children in CSS Grid */
    min-height: 0;
}

.bios-panel {
    display: none;
    background: #002b6a;
    border: 1px solid #0a3e89;
    padding: 12px;
    /* Make long lists scroll inside the panel */
    overflow: hidden auto;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
}

.bios-panel.active { display: block; }

.bios-list {
    list-style: none;
}

.bios-list .bios-option {
    padding: 8px 10px;
    border: 1px solid transparent;
    margin-bottom: 6px;
    color: #e5f2ff;
}

.bios-list .bios-option.selected {
    background: #ffee7a;
    color: #002b6a;
    border-color: #ffee7a;
}

.bios-list .bios-option .bios-value { color: #9ad1ff; }

.bios-list.bios-compact .bios-option { padding: 6px 8px; }

.bios-help {
    margin-left: 12px;
    background: #001f49;
    border: 1px solid #0a3e89;
    padding: 12px;
}

.help-title {
    color: #ffee7a;
    font-weight: 700;
    margin-bottom: 8px;
}

.help-content { color: #cbe8ff; line-height: 1.5; }

.bios-footer {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 0 12px;
    border-top: 1px solid #0a3e89;
    background: #001f49;
    color: #9ad1ff;
}

.bios-toast {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffee7a;
    color: #002b6a;
    padding: 8px 12px;
    border: 2px solid #002b6a;
    box-shadow: 0 2px 0 #001b3f;
    display: none;
    font-weight: 700;
}

.bios-toast.show { display: inline-block; }

/* Theme toggle (Amber accent) */
.bios-root.bios-amber .bios-tab.active { color: #fff3b0; box-shadow: inset 0 0 0 2px #fff3b0; }
.bios-root.bios-amber .help-title { color: #fff3b0; }
.bios-root.bios-amber .bios-list .bios-option.selected { background: #fff3b0; color: #002b6a; border-color: #fff3b0; }

/* Hide previous UI when BIOS is active */
#main-content { display: none !important; }
#overlay-circle { display: none !important; }
#bg-canvas { display: none !important; }

/* BIOS responsive layout */
@media (max-width: 768px) {
    .bios-screen {
        width: 100vw;
        height: 100vh;
        grid-template-rows: 28px 36px 1fr 28px;
        box-shadow: 0 0 0 2px #001b3f, 0 0 0 3px #94d1ff;
    }
    .bios-topbar {
        gap: 8px;
        padding: 0 8px;
        font-size: 12px;
    }
    .bios-tabs {
        gap: 8px;
        padding: 0 8px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }
    .bios-tab {
        padding: 5px 10px;
        font-size: 12px;
    }
    .bios-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        padding: 8px;
        min-height: 0;
    }
    .bios-panel {
        padding: 8px;
        min-height: 0;
    }
    .bios-help {
        margin-left: 0;
        margin-top: 8px;
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 8px;
    }
    .bios-list .bios-option { padding: 6px 8px; }
    .bios-footer {
        gap: 12px;
        padding: 0 8px;
        font-size: 12px;
        flex-wrap: wrap;
    }
    .bios-toast { bottom: 40px; font-size: 12px; }
}

@media (max-width: 480px) {
    .bios-topbar { font-size: 11px; }
    .bios-product { display: none; }
    .bios-tab { padding: 4px 8px; font-size: 11px; }
    .help-title { font-size: 12px; }
    .help-content { font-size: 12px; }
}

/* Loading Screen */
#overlay-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#overlay-circle.hidden {
    opacity: 0;
    visibility: hidden;
}

#loading-text {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loading-avatar {
    margin-bottom: var(--space-lg);
    position: relative;
}

.loading-avatar img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

.loading-text-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Modern Navigation */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
}

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

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
    animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-2xl);
    opacity: 0.3;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-element:nth-child(1) { top: 10%; left: 10%; }
.floating-element:nth-child(2) { top: 20%; right: 10%; }
.floating-element:nth-child(3) { bottom: 20%; left: 10%; }
.floating-element:nth-child(4) { bottom: 10%; right: 20%; }

/* Stats Section */
.stats-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--bg-glass);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
}

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

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card.modern {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card.modern:hover::before {
    transform: scaleX(1);
}

.service-card.modern:hover {
    transform: translateY(-10px);
    background: var(--bg-glass);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.service-card.modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.service-card.modern p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-link:hover {
    gap: var(--space-md);
    color: var(--primary-light);
}

/* Overlay Styles (keeping existing functionality) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: all var(--transition-normal);
}

.overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-lg);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.close-btn {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-primary);
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
    text-align: center;
}

/* Modern Footer */
.modern-footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

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

.footer-brand {
    max-width: 400px;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
    display: block;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
}

.footer-column h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column li i {
    margin-right: var(--space-sm);
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.footer-tagline {
    margin-top: var(--space-sm);
    font-style: italic;
    color: var(--primary-color);
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Mobile Menu Styles */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-2xl);
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
    
    .floating-elements {
        display: none;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .overlay-content {
        margin: var(--space-sm);
        padding: var(--space-lg);
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}