/* WebGL Background Styles */
body {
    overflow-x: hidden;
}

#background-canvas {
    opacity: 0;
    animation: fadeInBackground 2s ease-in-out forwards;
}

@keyframes fadeInBackground {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Glassmorphism effect for content containers */
.glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Enhanced navbar for background */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 147, 89, 0.2);
    box-shadow: 0 8px 32px rgba(255, 147, 89, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 147, 89, 0.3);
}

/* Navigation text colors for light theme */
.nav-menu a {
    color: #333333 !important;
}

.nav-menu a:hover {
    color: #FF9359 !important;
}

.nav-brand .brand-name {
    background: linear-gradient(135deg, #FF9359, #FFB86C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced hero section */
.hero {
    position: relative;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 147, 89, 0.08) 0%,
        rgba(255, 184, 108, 0.06) 50%,
        rgba(255, 206, 84, 0.08) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Enhanced feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 147, 89, 0.2);
    box-shadow: 0 8px 32px rgba(255, 147, 89, 0.15);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 147, 89, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 147, 89, 0.25);
}

/* Enhanced buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FF9359, #FFB86C);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(255, 147, 89, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(255, 147, 89, 0.4);
    transform: translateY(-2px);
}

/* Enhanced language dropdown */
.lang-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 147, 89, 0.3);
    box-shadow: 0 20px 60px rgba(255, 147, 89, 0.2);
}

.lang-option {
    color: rgba(51, 51, 51, 0.8);
    transition: all 0.3s ease;
}

.lang-option:hover {
    background: rgba(255, 147, 89, 0.1);
    color: #FF9359;
}

/* Enhanced footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 147, 89, 0.2);
    color: #333333 !important;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-title {
    background: linear-gradient(135deg, #FF9359, #FFB86C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-heading {
    color: #666666 !important;
    margin-bottom: var(--spacing-sm);
}

.footer-description,
.footer-links a {
    color: #666666 !important;
}

.footer-links a:hover {
    color: #FF9359 !important;
}

.footer-bottom {
    color: #999999 !important;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 147, 89, 0.1);
}

/* Support page enhancements */
.support-header {
    background: linear-gradient(
        135deg,
        rgba(255, 147, 89, 0.9) 0%,
        rgba(255, 184, 108, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.support-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 147, 89, 0.2);
    box-shadow: 0 10px 40px rgba(255, 147, 89, 0.15);
}

.guide-step {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 4px solid #FF9359;
    box-shadow: 0 8px 30px rgba(255, 147, 89, 0.15);
}

/* Privacy page enhancements */
.legal-header {
    background: linear-gradient(
        135deg,
        rgba(255, 147, 89, 0.9) 0%,
        rgba(255, 184, 108, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.legal-document {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 147, 89, 0.2);
    box-shadow: 0 20px 60px rgba(255, 147, 89, 0.2);
}

.legal-section {
    border-bottom: 1px solid rgba(255, 147, 89, 0.1);
}

.toc {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 147, 89, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .navbar,
    .footer {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .feature-card,
    .quick-link-card,
    .guide-step {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    #background-canvas {
        animation: none;
    }

    .btn::before {
        transition: none;
    }

    .feature-card,
    .btn {
        transition: none;
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    .feature-card,
    .quick-link-card,
    .guide-step {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
}