/*
|--------------------------------------------------------------------------
| arlaang - Dark Theme Design System
|--------------------------------------------------------------------------
*/

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    /* Accent Colors */
    --accent: #22d3ee;
    --accent-light: #67e8f9;
    --accent-dark: #06b6d4;
    --accent-glow: rgba(34, 211, 238, 0.3);
    
    /* Success/Warning/Error */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Dark Theme Backgrounds */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-elevated: #1a1a24;
    --bg-hover: #22222e;
    --bg-input: #16161e;
    
    /* Borders */
    --border: #2a2a3a;
    --border-light: #3a3a4a;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #1e293b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary-glow) 0%, var(--accent-glow) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    /* 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;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Container */
    --container-max: 1280px;
}

/* Light Theme Variables */
[data-theme="light"] {
    /* Light Theme Backgrounds */
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: #ffffff;
    --bg-elevated: #f8fafc;
    --bg-hover: #e2e8f0;
    --bg-input: #ffffff;
    
    /* Light Theme Borders */
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    
    /* Light Theme Text */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Light Theme Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Light Theme Navbar - Light background with dark text */
html[data-theme="light"] .navbar {
    --text-secondary: #475569;
    --text-primary: #1e293b;
}

html[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Light mode nav links - dark text for light navbar */
html[data-theme="light"] .navbar .nav-link,
html[data-theme="light"] .navbar-nav .nav-link,
html[data-theme="light"] .navbar-nav li a.nav-link {
    color: #475569 !important;
}

html[data-theme="light"] .navbar .nav-link:hover,
html[data-theme="light"] .navbar .nav-link.active,
html[data-theme="light"] .navbar-nav .nav-link:hover,
html[data-theme="light"] .navbar-nav .nav-link.active,
html[data-theme="light"] .navbar-nav li a.nav-link:hover,
html[data-theme="light"] .navbar-nav li a.nav-link.active {
    color: #1e293b !important;
}

/* Light mode mobile menu button - dark color */
html[data-theme="light"] .navbar .mobile-menu-btn span {
    background: #1e293b !important;
}

/* Light mode search input in navbar - light style */
html[data-theme="light"] .navbar .nav-search-input {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Light mode brand text */
html[data-theme="light"] .navbar .brand-text {
    color: #1e293b !important;
}

/* Light mode theme toggle and lang switcher */
html[data-theme="light"] .navbar .theme-toggle {
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .navbar .theme-toggle:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

html[data-theme="light"] .navbar .lang-btn {
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle i {
    font-size: 1rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.lang-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn i:first-child {
    font-size: 1rem;
}

.lang-btn i:last-child {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}

.lang-switcher.active .lang-btn i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.lang-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--primary);
    color: white;
}

.lang-code {
    font-weight: 600;
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.lang-option.active .lang-code {
    background: rgba(255, 255, 255, 0.2);
}

.lang-name {
    font-size: 0.875rem;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glow:hover {
    box-shadow: 0 0 40px var(--primary-glow);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-text {
    color: #3b82f6;
}

.brand-dot {
    color: #fbbf24;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-search-item {
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--primary-glow) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, var(--accent-glow) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: var(--space-2xl);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    margin: 0 auto var(--space-lg);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.service-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Testimonials */
.testimonial-card {
    padding: var(--space-xl);
}

.testimonial-content {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-position {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    color: var(--warning);
    margin-bottom: var(--space-md);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Grid Utilities */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Spacing Utilities */
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-primary {
    background: var(--primary-glow);
    color: var(--primary-light);
    border-color: var(--primary);
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    border-color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border-color: var(--warning);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border-color: var(--error);
}

/* Alert */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    border: 1px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet breakpoint */
@media (max-width: 992px) {
    .navbar-nav .nav-search-form {
        display: none;
    }
    
    .navbar-nav li:last-child .nav-link,
    .navbar-nav .btn {
        display: none;
    }
    
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Navbar - Critical mobile fixes */
    .navbar {
        position: fixed;
    }
    
    .navbar-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .navbar-nav.active {
        display: flex !important;
    }
    
    .navbar-nav li {
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .navbar-nav li:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--bg-elevated);
    }
    
    .navbar-nav .nav-search-item {
        display: none !important;
    }
    
    /* Navbar Actions */
    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }
    
    .navbar-actions .btn.btn-primary {
        display: none; /* Hide Get Quote on mobile - it's in the menu */
    }
    
    .navbar-actions .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .navbar-actions .lang-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .navbar-actions .lang-btn i:first-child {
        font-size: 0.875rem;
    }
    
    .navbar-actions .lang-btn i:last-child {
        display: none; /* Hide chevron on mobile */
    }
    
    /* Mobile menu button - always visible on mobile */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-sm);
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: all var(--transition-base);
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Grid layouts */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Hero section */
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.9375rem; }
    .hero-actions { 
        flex-direction: column; 
        gap: var(--space-md);
        width: 100%;
    }
    .hero-actions .btn { 
        width: 100%; 
        justify-content: center; 
    }
    
    /* Sections */
    .section { padding: var(--space-xl) 0; }
    .page-header { padding: 100px 0 40px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    /* Cards */
    .card { padding: var(--space-md); }
    .service-card { padding: var(--space-md); }
    
    /* Container */
    .container { padding: 0 var(--space-md); }
    
    /* Cookie consent */
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    .cookie-content {
        flex-direction: column;
    }
    
    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.375rem; }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-actions .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }
    
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.875rem; line-height: 1.5; }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9375rem;
    }
    
    .section-title { font-size: 1.5rem; }
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-light);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Language Grid */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.language-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.language-item:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.language-item.featured {
    border-color: var(--accent);
    background: rgba(34, 211, 238, 0.05);
}

/* Navbar Search Form */
.nav-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 var(--space-sm);
    transition: all var(--transition-fast);
}

.nav-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.nav-search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: var(--space-sm);
    width: 120px;
    font-size: 0.875rem;
    outline: none;
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

.nav-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.nav-search-btn:hover {
    color: var(--primary-light);
}

/* Newsletter Section */
.footer-newsletter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.newsletter-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.newsletter-content h3 i {
    color: var(--primary-light);
}

.newsletter-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: var(--space-md);
    flex: 1;
    max-width: 400px;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-message {
    text-align: center;
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* WYSIWYG Editor Overrides */
.tox-tinymce {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background: var(--bg-elevated) !important;
}

.tox .tox-edit-area__iframe {
    background: var(--bg-input) !important;
}

/* Extra responsive */
@media (max-width: 768px) {
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
    }
    
    .navbar-nav .nav-search-form {
        display: none;
    }
}

/* Checkbox Card Styles for Forms */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.checkbox-grid-languages {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    min-height: 100px;
}

.checkbox-card-content i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.checkbox-card-content span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-card:hover .checkbox-card-content {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.checkbox-card input:checked + .checkbox-card-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkbox-card input:checked + .checkbox-card-content i {
    color: var(--primary);
}

/* Checkbox Item Styles (for languages) */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-item:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-item .checkbox-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
}

.checkbox-item:has(input:checked) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Contact form service checkboxes */
.contact-form .checkbox-grid {
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-grid-languages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-card-content {
        padding: var(--space-md);
        min-height: 80px;
    }
}
