/* ===== ROOT VARIABLES ===== */
:root {
    --space-black: #0a0a0f;
    --deep-space: #0d0d1a;
    --nebula-purple: #6b21a8;
    --cosmic-blue: #1e40af;
    --electric-blue: #3b82f6;
    --star-white: #f8fafc;
    --muted-gray: #94a3b8;
    --gradient-primary: linear-gradient(135deg, var(--cosmic-blue) 0%, var(--nebula-purple) 100%);
    --gradient-glow: linear-gradient(135deg, var(--electric-blue) 0%, #8b5cf6 50%, var(--nebula-purple) 100%);
    --text-gradient: linear-gradient(90deg, var(--electric-blue), #a855f7, var(--electric-blue));
    --focus-color: #a855f7;
}

/* ===== LIGHT MODE ===== */
/* Light theme with same cool effects, light-appropriate colors */

[data-theme="light"] {
    --space-black: #f0f4ff;
    --deep-space: #e8efff;
    --star-white: #0f172a;
    --muted-gray: #475569;
}

/* Light gradient background */
[data-theme="light"] body {
    background: linear-gradient(180deg, #e0e7ff 0%, #f8fafc 50%, #faf5ff 100%);
}

/* Starfield - lighter, subtler */
[data-theme="light"] .starfield {
    opacity: 0.4;
}

[data-theme="light"] .stars-small,
[data-theme="light"] .stars-medium,
[data-theme="light"] .stars-large {
    filter: invert(0.3) brightness(1.5);
}

/* Nebula - light purple/blue tones */
[data-theme="light"] .nebula {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(167, 139, 250, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(96, 165, 250, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
}

/* Navigation */
[data-theme="light"] .navbar-orbital {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .navbar-orbital::before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.6), rgba(167, 139, 250, 0.6), rgba(139, 92, 246, 0.6));
}

[data-theme="light"] .logo-circle {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .mobile-nav-menu {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-link-orbital {
    color: #1e293b;
}

[data-theme="light"] .nav-link-orbital:hover {
    color: var(--nebula-purple);
}

[data-theme="light"] .mobile-nav-menu .nav-link-orbital {
    color: #1e293b;
}

[data-theme="light"] .lang-toggle {
    color: #1e293b;
}

/* Hero Section */
[data-theme="light"] .hero-title,
[data-theme="light"] .hero h1,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #0f172a;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero p {
    color: #475569;
}

/* Orbit rings - visible in light mode */
[data-theme="light"] .orbit-ring {
    border-color: rgba(139, 92, 246, 0.15);
}

/* Cards */
[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .portfolio-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .testimonial-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

/* Section Titles */
[data-theme="light"] .section-title,
[data-theme="light"] .service-title,
[data-theme="light"] .footer-title,
[data-theme="light"] .testimonial-name {
    color: #0f172a;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] .service-description,
[data-theme="light"] .testimonial-text,
[data-theme="light"] .testimonial-role,
[data-theme="light"] p {
    color: #475569;
}

/* Footer */
[data-theme="light"] .footer-orbital {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links a,
[data-theme="light"] .footer-links li a {
    color: #475569;
}

[data-theme="light"] .footer-links a:hover {
    color: var(--nebula-purple);
}

[data-theme="light"] .footer-bottom,
[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-bottom a,
[data-theme="light"] .footer-compliance p {
    color: #64748b;
}

[data-theme="light"] .social-link {
    color: #475569;
    border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] .social-link:hover {
    color: white;
    background: var(--nebula-purple);
    border-color: var(--nebula-purple);
}

/* Floating Planet */
[data-theme="light"] .planet-label {
    color: #0f172a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .planet-glow {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.5) 0%, rgba(96, 165, 250, 0.3) 50%, transparent 70%);
}

/* Forms and Inputs */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.2);
    color: #0f172a;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--nebula-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Cookie Consent */
[data-theme="light"] .cookie-consent {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .cookie-content h4,
[data-theme="light"] #cookieTitle {
    color: #0f172a;
}

[data-theme="light"] .cookie-content p,
[data-theme="light"] #cookieDesc {
    color: #475569;
}

/* Misc Text Elements */
[data-theme="light"] .text-muted,
[data-theme="light"] span.text-muted {
    color: #64748b !important;
}

[data-theme="light"] a.text-muted {
    color: #64748b !important;
}

[data-theme="light"] a.text-muted:hover {
    color: var(--nebula-purple) !important;
}

/* Stats section */
[data-theme="light"] .stats-section {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
}

/* Contact section */
[data-theme="light"] .contact-section {
    background: linear-gradient(180deg, transparent 0%, rgba(96, 165, 250, 0.08) 100%);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--star-white);
    outline-offset: 4px;
    border-radius: 20px;
}

.theme-toggle-track {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

[data-theme="light"] .theme-toggle-track {
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
}

.theme-icon {
    font-size: 14px;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.sun-icon {
    color: #fbbf24;
    opacity: 0.5;
}

.moon-icon {
    color: #e2e8f0;
    opacity: 1;
}

[data-theme="light"] .sun-icon {
    opacity: 1;
}

[data-theme="light"] .moon-icon {
    opacity: 0.5;
}

.theme-toggle-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-toggle-thumb {
    transform: translateX(30px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Mobile adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 15px;
        left: 15px;
    }

    .theme-toggle-track {
        width: 50px;
        height: 26px;
    }

    .theme-toggle-thumb {
        width: 20px;
        height: 20px;
    }

    [data-theme="light"] .theme-toggle-thumb {
        transform: translateX(24px);
    }

    .theme-icon {
        font-size: 12px;
    }
}

/* ===== FIXED LANGUAGE TOGGLE ===== */
.lang-toggle-fixed {
    position: fixed;
    top: 60px;
    left: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: var(--muted-gray);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-toggle-fixed:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--nebula-purple);
    color: var(--star-white);
    transform: scale(1.05);
}

.lang-toggle-fixed:focus-visible {
    outline: 2px solid var(--star-white);
    outline-offset: 3px;
    border-radius: 20px;
}

.lang-toggle-fixed .lang-icon {
    font-size: 1rem;
}

[data-theme="light"] .lang-toggle-fixed {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
}

[data-theme="light"] .lang-toggle-fixed:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--nebula-purple);
}

/* Mobile adjustments for fixed language toggle */
@media (max-width: 768px) {
    .lang-toggle-fixed {
        top: 50px;
        left: 15px;
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .lang-toggle-fixed .lang-icon {
        font-size: 0.9rem;
    }
}

/* ===== ACCESSIBILITY - SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nebula-purple);
    color: white;
    padding: 12px 24px;
    z-index: 10001;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
    box-shadow: 0 4px 20px rgba(107, 33, 168, 0.5);
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ===== ACCESSIBILITY - FOCUS INDICATORS ===== */
*:focus {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* Custom focus styles for specific elements */
.nav-link-orbital:focus-visible,
.btn-orbital:focus-visible {
    outline: 2px solid var(--star-white);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.5);
}

.logo-circle:focus-visible {
    outline: 3px solid var(--star-white);
    outline-offset: 4px;
}

.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.social-link:focus-visible {
    outline: 2px solid var(--star-white);
    outline-offset: 2px;
    background: var(--electric-blue);
    color: white;
}

/* ===== ACCESSIBILITY - SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .starfield,
    .stars,
    .nebula,
    .orbit-ring,
    .planet,
    .fade-in,
    .shooting-star {
        animation: none !important;
        transition: none !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--space-black);
    color: var(--star-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== STARFIELD BACKGROUND ===== */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars-small {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent);
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite;
}

.stars-medium {
    background-image:
        radial-gradient(2px 2px at 100px 50px, rgba(139,92,246,0.8), transparent),
        radial-gradient(2px 2px at 200px 150px, rgba(59,130,246,0.8), transparent),
        radial-gradient(2px 2px at 300px 250px, white, transparent),
        radial-gradient(2px 2px at 400px 100px, rgba(139,92,246,0.6), transparent);
    background-size: 400px 400px;
    animation: twinkle 6s ease-in-out infinite reverse;
}

.stars-large {
    background-image:
        radial-gradient(3px 3px at 150px 200px, rgba(59,130,246,0.9), transparent),
        radial-gradient(3px 3px at 350px 350px, rgba(168,85,247,0.8), transparent),
        radial-gradient(3px 3px at 550px 100px, white, transparent);
    background-size: 600px 600px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Nebula gradients */
.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

/* ===== FLOATING PLANET - CLIENT LOGIN ===== */
.floating-planet {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-planet:hover {
    transform: scale(1.1);
}

.floating-planet:focus-visible {
    outline: 2px solid var(--star-white);
    outline-offset: 8px;
    border-radius: 50%;
}

.planet-glow {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 70%);
    animation: planetPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.planet-body {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--nebula-purple) 50%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(59, 130, 246, 0.3),
        inset -8px -8px 20px rgba(0, 0, 0, 0.4),
        inset 8px 8px 20px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: visible;
    animation: planetFloat 6s ease-in-out infinite;
}

.planet-body::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 10px;
    width: 14px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    filter: blur(3px);
}

.planet-surface {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.planet-surface::before {
    content: '';
    position: absolute;
    top: 35%;
    left: -10%;
    width: 120%;
    height: 8px;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(-15deg);
    filter: blur(2px);
}

.planet-surface::after {
    content: '';
    position: absolute;
    top: 55%;
    left: -10%;
    width: 120%;
    height: 5px;
    background: rgba(139, 92, 246, 0.3);
    transform: rotate(-15deg);
    filter: blur(2px);
}

.planet-ring {
    position: absolute;
    width: 80px;
    height: 24px;
    border: 3px solid rgba(196, 181, 253, 0.8);
    border-radius: 50%;
    transform: rotateX(70deg) rotateZ(-15deg);
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -12px;
    box-shadow:
        0 0 15px rgba(139, 92, 246, 0.5),
        0 0 30px rgba(167, 139, 250, 0.3),
        inset 0 0 8px rgba(196, 181, 253, 0.4);
    animation: ringPulse 4s ease-in-out infinite;
}

/* Inner ring */
.planet-ring::before {
    content: '';
    position: absolute;
    width: 68px;
    height: 18px;
    border: 2px solid rgba(167, 139, 250, 0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-left: -34px;
    margin-top: -9px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

/* Outer ring */
.planet-ring::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 28px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin-left: -45px;
    margin-top: -14px;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

@keyframes ringPulse {
    0%, 100% {
        opacity: 0.85;
        box-shadow:
            0 0 15px rgba(139, 92, 246, 0.5),
            0 0 30px rgba(167, 139, 250, 0.3),
            inset 0 0 8px rgba(196, 181, 253, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow:
            0 0 20px rgba(139, 92, 246, 0.7),
            0 0 40px rgba(167, 139, 250, 0.4),
            inset 0 0 12px rgba(196, 181, 253, 0.6);
    }
}

.planet-label {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--star-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
}

@keyframes planetPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

@keyframes planetFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobile adjustments for floating planet */
@media (max-width: 768px) {
    .floating-planet {
        top: 15px;
        right: 15px;
    }

    .planet-body {
        width: 42px;
        height: 42px;
    }

    .planet-glow {
        width: 60px;
        height: 60px;
    }

    .planet-icon {
        font-size: 16px;
    }

    .planet-label {
        font-size: 9px;
    }

    .planet-ring {
        width: 65px;
        height: 20px;
        border-width: 2px;
        margin-left: -32.5px;
        margin-top: -10px;
    }

    .planet-ring::before {
        width: 55px;
        height: 15px;
        border-width: 1.5px;
        margin-left: -27.5px;
        margin-top: -7.5px;
    }

    .planet-ring::after {
        width: 75px;
        height: 23px;
        border-width: 1.5px;
        margin-left: -37.5px;
        margin-top: -11.5px;
    }
}

/* ===== NAVIGATION ===== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-wrapper.scrolled {
    padding: 1rem 1.5rem;
}

.navbar-orbital {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 0.5rem 1.5rem;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    transition: all 0.3s ease;
    overflow: visible;
    /* Glow effect */
    background-image: linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.85)),
                      linear-gradient(135deg, var(--electric-blue), var(--nebula-purple), var(--electric-blue));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
                0 0 40px rgba(59, 130, 246, 0.1),
                inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.navbar-orbital::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    padding: 2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--nebula-purple), var(--cosmic-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.navbar-orbital:hover::before {
    opacity: 1;
}

.navbar-wrapper.scrolled .navbar-orbital {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4),
                0 0 60px rgba(59, 130, 246, 0.15),
                inset 0 0 30px rgba(139, 92, 246, 0.08);
}

/* Desktop Navigation Layout */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
    min-width: 100px;
    height: 100%;
}

/* Logo Circle Container - "Planet" that's bigger than the pill "rings" */
.logo-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    /* Glow effect matching the pill */
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5),
                0 0 60px rgba(59, 130, 246, 0.2);
}

.logo-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--nebula-purple), var(--cosmic-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logo-circle:hover::before {
    opacity: 1;
}

.logo-circle:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6),
                0 0 60px rgba(59, 130, 246, 0.25);
    transform: translate(-50%, -50%) scale(1.05);
}

.navbar-wrapper.scrolled .logo-circle {
    width: 100px;
    height: 100px;
}

/* Logo Styles */
.navbar-logo {
    height: 85px;
    width: auto;
    max-width: 98px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-wrapper.scrolled .navbar-logo {
    height: 65px;
    max-width: 78px;
}

.navbar-brand-orbital {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    text-decoration: none;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.nav-link-orbital {
    color: var(--muted-gray) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link-orbital::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

.nav-link-orbital:hover {
    color: var(--star-white) !important;
}

.nav-link-orbital:hover::after {
    width: 80%;
}

/* Client Login Link */
.client-login-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--electric-blue) !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    padding: 0.375rem 0.75rem !important;
    transition: all 0.3s ease;
}

.client-login-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--electric-blue);
    color: var(--star-white) !important;
}

.client-login-link::after {
    display: none;
}

.login-icon {
    font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-nav-header {
    display: none;
    position: relative;
    z-index: 1;
}

.mobile-nav-menu {
    display: none;
}

@media (max-width: 991px) {
    /* Move navbar to bottom on mobile */
    .navbar-wrapper {
        top: auto;
        bottom: 0;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .navbar-wrapper.scrolled {
        padding: 0.5rem 1rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .navbar-orbital {
        border-radius: 20px;
        padding: 0.6rem 1rem;
    }

    .navbar-orbital::before {
        border-radius: 20px;
    }

    .navbar-content {
        display: none;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .mobile-logo {
        height: 32px;
        width: auto;
    }

    /* Mobile menu opens ABOVE the bottom bar */
    .mobile-nav-menu {
        position: fixed;
        bottom: 75px;
        bottom: calc(75px + env(safe-area-inset-bottom, 0px));
        top: auto;
        left: 1rem;
        right: 1rem;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1rem;
        display: none;
        flex-direction: column;
        gap: 0.25rem;
        border: 1px solid rgba(139, 92, 246, 0.3);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5),
                    0 0 20px rgba(139, 92, 246, 0.2);
        max-height: 70vh;
        overflow-y: auto;
    }

    .mobile-nav-menu.show {
        display: flex;
    }

    .mobile-nav-menu .nav-link-orbital {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
        text-align: center;
    }

    .mobile-nav-menu .btn-orbital {
        margin-top: 0.5rem;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    .mobile-nav-menu .lang-toggle {
        margin-top: 0.5rem;
        justify-content: center;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--muted-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating orbit animation */
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: orbit-rotate 20s linear infinite;
}

.orbit-ring-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-ring-3 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 40s;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--electric-blue);
}

/* ===== BUTTONS ===== */
.btn-orbital {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-orbital {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary-orbital:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    color: white;
}

.btn-secondary-orbital {
    background: transparent;
    color: var(--star-white);
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.btn-secondary-orbital:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--nebula-purple);
    transform: translateY(-3px);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--muted-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.service-card {
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-glow);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(107, 33, 168, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted-gray);
    line-height: 1.7;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.portfolio-card {
    background: rgba(13, 13, 26, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 25px 50px rgba(107, 33, 168, 0.25);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image::after {
    transform: translateX(100%);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.portfolio-description {
    color: var(--muted-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.portfolio-link {
    color: var(--electric-blue);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-link {
    color: var(--violet);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--electric-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(180deg, transparent 0%, rgba(107, 33, 168, 0.1) 50%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    overflow-x: hidden;
}

.testimonial-card {
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    color: var(--muted-gray);
    font-size: 0.9rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(180deg, transparent 0%, rgba(30, 64, 175, 0.1) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--muted-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-gray);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-form {
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--star-white);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    color: var(--star-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 3rem;
}

.form-select option {
    background: var(--deep-space);
    color: var(--star-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-submit .btn-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.btn-submit .btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gradient-glow);
    opacity: 0.9;
    z-index: 1;
    transition: width 0.1s ease-out;
}

/* Loading state */
.btn-submit.btn-loading {
    background: rgba(30, 64, 175, 0.3);
    cursor: wait;
    pointer-events: none;
}

.btn-submit.btn-loading .btn-loader {
    animation: loadingBar 2.5s ease-out forwards;
}

@keyframes loadingBar {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 92%; }
}

/* Success state */
.btn-submit.btn-success {
    pointer-events: none;
}

.btn-submit.btn-success .btn-loader {
    width: 100% !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    animation: none;
    transition: width 0.3s ease-out;
}

/* Error state */
.btn-submit.btn-error {
    pointer-events: none;
}

.btn-submit.btn-error .btn-loader {
    width: 100% !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: none;
    transition: width 0.3s ease-out;
}

/* ===== FOOTER ===== */
.footer-orbital {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    color: var(--muted-gray);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--electric-blue);
    color: white;
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Planet decoration */
.planet {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
}

.planet-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, #4c1d95 0%, #1e1b4b 50%, transparent 70%);
    top: 20%;
    right: -100px;
    opacity: 0.4;
}

.planet-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #1e40af 0%, #0f172a 60%, transparent 70%);
    bottom: 30%;
    left: -50px;
    opacity: 0.5;
}

/* Glowing line decoration */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), var(--nebula-purple), transparent);
    margin: 3rem auto;
    max-width: 600px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--space-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cosmic-blue), var(--nebula-purple));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--electric-blue), #a855f7);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Success message */
.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, rgba(13, 13, 26, 0.98), rgba(10, 10, 15, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 80px rgba(107, 33, 168, 0.3),
                0 0 40px rgba(59, 130, 246, 0.15);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--star-white);
    margin-bottom: 0.75rem;
}

.modal-message {
    color: var(--muted-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Large Modal (for quote form) */
.modal-content-large {
    max-width: 600px;
    padding: 2rem;
    text-align: left;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--muted-gray);
    font-size: 1.75rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--star-white);
    background: rgba(139, 92, 246, 0.2);
}

/* Turnstile wrapper */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

/* Contact wrapper centered (no form) */
.contact-wrapper-centered {
    display: flex;
    justify-content: center;
}

.contact-wrapper-centered .contact-info {
    text-align: center;
    max-width: 600px;
}

.contact-wrapper-centered .contact-methods {
    justify-content: center;
}

/* Mobile hamburger */
.navbar-toggler-orbital {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.navbar-toggler-orbital span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--star-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Language Toggle Button */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: var(--muted-gray);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-toggle:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--nebula-purple);
    color: var(--star-white);
}

.lang-toggle .lang-icon {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        overflow-y: scroll;
        height: auto;
    }

    body {
        overflow: visible;
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-height: auto;
        /* Add padding at bottom for fixed navbar */
        padding-bottom: 80px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Prevent any section from becoming a scroll container */
    .section,
    .stats-section,
    .testimonials-section,
    .contact-section {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Hero section - full screen height but no scroll container */
    .hero-section {
        padding: 40px 1rem 60px;
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
        overflow: visible !important;
        max-height: none !important;
    }

    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        overflow: visible;
    }

    /* Cards and forms */
    .contact-form {
        padding: 1.25rem;
        margin: 0;
    }

    .service-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-card {
        margin: 0;
    }

    /* Grids */
    .services-grid,
    .portfolio-grid {
        padding: 0;
        gap: 1rem;
    }

    /* Hide orbit rings on mobile to prevent overflow */
    .orbit-ring {
        display: none;
    }

    /* Hide planets on mobile */
    .planet {
        display: none;
    }

    /* Typography */
    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        padding: 0 0.25rem;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0;
        line-height: 1.5;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
        padding: 0 0.5rem;
    }

    .section-subtitle {
        padding: 0;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-orbital {
        padding-bottom: 100px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .footer-grid {
        gap: 1.5rem;
        padding: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-logo {
        height: 40px;
    }

    /* Buttons */
    .btn-orbital {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn-orbital {
        width: 100%;
        max-width: 260px;
    }

    /* Glow line */
    .glow-line {
        margin: 1.5rem auto;
        max-width: 80%;
    }

    /* Contact section */
    .contact-wrapper {
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 0.95rem;
    }

    .contact-method {
        font-size: 0.9rem;
    }

    .contact-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    /* Service cards */
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.15rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .testimonial-name {
        font-size: 0.95rem;
    }

    .testimonial-role {
        font-size: 0.8rem;
    }

    /* Portfolio */
    .portfolio-image {
        height: 160px;
        font-size: 2.5rem;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .portfolio-description {
        font-size: 0.85rem;
    }

    .portfolio-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 75px;
    }

    .hero-section {
        padding: 30px 0.75rem 50px;
        min-height: calc(100vh - 75px);
        min-height: calc(100dvh - 75px);
    }

    .hero-title {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.75rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-label {
        font-size: 0.9rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1rem;
    }

    .portfolio-image {
        height: 140px;
        font-size: 2rem;
    }

    .footer-grid {
        gap: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* ===== FOOTER COMPLIANCE ===== */
.footer-compliance {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    margin-bottom: 1.5rem;
}

.footer-compliance p {
    color: var(--muted-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== COMPLIANCE BADGE ===== */
.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--nebula-purple), #6b21a8);
    border-radius: 20px;
    font-size: 0.875rem;
    color: white;
}

.compliance-badge .badge-icon {
    font-size: 1.25rem;
}

/* ===== ACCESSIBILITY PAGE ===== */
.accessibility-page {
    padding: 120px 1.5rem 80px;
    max-width: 800px;
    margin: 0 auto;
}

.accessibility-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accessibility-page section {
    margin-bottom: 2.5rem;
}

.accessibility-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--star-white);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.accessibility-page p {
    color: var(--muted-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.accessibility-page ul {
    color: var(--muted-gray);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.accessibility-page li {
    margin-bottom: 0.5rem;
}

.accessibility-page a {
    color: var(--electric-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.accessibility-page a:hover {
    color: #a855f7;
}

.accessibility-page time {
    color: var(--star-white);
}

@media (max-width: 768px) {
    .accessibility-page {
        padding: 100px 1rem 100px;
    }
}

/* ===== FORM REQUIRED INDICATOR ===== */
.form-label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* ===== FORM ERROR STATES ===== */
.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-select[aria-invalid="true"] {
    border-color: #ef4444;
}

.form-input[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13, 13, 26, 0.98) 0%, rgba(30, 64, 175, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1.25rem 2rem;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    color: var(--star-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.cookie-text p {
    color: var(--muted-gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-learn-more {
    color: var(--electric-blue);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.cookie-learn-more:hover {
    color: #a855f7;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-cookie-accept {
    background: var(--gradient-glow);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 33, 168, 0.4);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 33, 168, 0.6);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--muted-gray);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-cookie-decline:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--star-white);
    border-color: rgba(148, 163, 184, 0.5);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 1.25rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-text h4 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}
