/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    max-width: 300px;
    width: 100%;
    padding: 20px;
}

.logo-animation {
    margin-bottom: 40px;
    animation: logoFloat 2s ease-in-out infinite;
}

.logo-animation img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.3));
}

.loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #0052A3, #FFD700, #0052A3);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loading 2s ease-in-out forwards, shimmer 1.5s linear infinite;
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes loading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dark Mode Styles */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #0d0d0d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: #252525;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Section Backgrounds */
[data-theme="dark"] .stats,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .why-choose,
[data-theme="dark"] .about,
[data-theme="dark"] .process,
[data-theme="dark"] .partner-brands,
[data-theme="dark"] .video-section,
[data-theme="dark"] .faq,
[data-theme="dark"] .working-hours,
[data-theme="dark"] .contact {
    background: var(--bg-secondary);
}

/* Cards */
[data-theme="dark"] .service-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .why-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .info-card,
[data-theme="dark"] .hours-list,
[data-theme="dark"] .emergency-contact {
    background: var(--card-bg) !important;
    border-color: var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-light);
}

/* Text Colors */
[data-theme="dark"] .section-title,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .why-card h3,
[data-theme="dark"] .about-text,
[data-theme="dark"] .process-step h3,
[data-theme="dark"] .faq-question h3,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .hours-item .day,
[data-theme="dark"] .info-card h3,
[data-theme="dark"] .info-card h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .why-card p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .process-step p,
[data-theme="dark"] .about-text,
[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .info-content p {
    color: var(--text-secondary) !important;
}

/* Footer */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #000000 100%) !important;
}

[data-theme="dark"] .footer-description,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-contact-list a,
[data-theme="dark"] .footer-contact-list span {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-title {
    color: var(--text-primary) !important;
}

/* Gallery */
[data-theme="dark"] .gallery-item img {
    opacity: 0.85;
    filter: brightness(0.9);
}

[data-theme="dark"] .gallery-overlay {
    background: rgba(0, 82, 163, 0.95);
}

/* Forms */
[data-theme="dark"] .contact-form-new input,
[data-theme="dark"] .contact-form-new textarea,
[data-theme="dark"] .contact-form-new select {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .contact-form-new label {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-group-new i {
    color: var(--text-secondary) !important;
}

/* Service Features */
[data-theme="dark"] .service-features li {
    color: var(--text-secondary) !important;
}

/* Hero overlay adjustment for dark mode */
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 82, 163, 0.7) 100%);
}

/* Stats numbers stay bright */
[data-theme="dark"] .stat-number {
    color: #FFD700 !important;
}

/* Working hours */
[data-theme="dark"] .hours-item .time {
    color: #4A90E2 !important;
}

/* Testimonial author */
[data-theme="dark"] .author-info h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .author-info span {
    color: var(--text-secondary) !important;
}

/* Theme Toggle Button */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.theme-toggle,
.lang-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.lang-toggle {
    width: auto;
    padding: 0 14px;
    gap: 6px;
}

.flag-icon {
    font-size: 18px;
    line-height: 1;
}

.lang-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.theme-toggle:hover,
.lang-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .navbar-controls {
        gap: 10px;
    }
    
    .theme-toggle,
    .lang-toggle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .lang-toggle {
        padding: 0 12px;
    }
    
    .flag-icon {
        font-size: 16px;
    }
    
    .lang-text {
        font-size: 12px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .logo-animation img {
        width: 140px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .lang-toggle {
        padding: 0 10px;
        gap: 5px;
    }
}
