/* THEME VARIABLES */
:root {
    --bg-main: #ffffff;
    --bg-surface: #f9fafb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --nav-bg: rgba(255, 255, 255, 0.75);
    --border-alpha: rgba(0, 0, 0, 0.05);
    --hero-overlay: rgba(255, 255, 255, 0.75);
    --map-filter: none;
}

/* Dark Mode Override */
html.dark {
    --bg-main: #0a0a0a;
    --bg-surface: #141414;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --nav-bg: rgba(10, 10, 10, 0.85);
    --border-alpha: rgba(255, 255, 255, 0.05);
    --hero-overlay: rgba(10, 10, 10, 0.9);
    --map-filter: grayscale(1) invert(1) brightness(0.8) contrast(1.2);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Enhanced Glass Navigation */
.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Hero with Particle Effect */
.hero-gradient {
    background:
        linear-gradient(var(--hero-overlay), var(--hero-overlay)),
        url("https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1950&q=80");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%,
            rgba(255, 107, 0, 0.05) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 80%,
            rgba(255, 215, 0, 0.05) 0%,
            transparent 50%);
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Floating WhatsApp Button */
.floating-wa {
    animation: bounce 2s infinite;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Category Cards */
.category-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-alpha);
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 107, 0, 0.2),
            transparent);
    transition: left 0.7s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.2);
}

.category-card:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* Stats Counter Animation */
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Card Hover Effects */
.service-box {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-alpha);
}

.service-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b00, #ffd700);
    transition: width 0.4s ease;
}

.service-box:hover::after {
    width: 100%;
}

.service-box:hover {
    transform: translateX(6px);
    background: rgba(255, 107, 0, 0.03);
}

/* Brand Marquee */
.brand-marquee {
    animation: scroll 18s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-logo {
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-alpha);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
    border-color: rgba(255, 107, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

/* CTA Pulse Animation */
.cta-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(255, 107, 0, 0);
    }
}

/* Mobile Menu Slide */
#mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.active {
    transform: translateY(0);
}

/* Loading Animation */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #ff6b00;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Smooth Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-alpha);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.5);
}

/* Map Theme Filter */
.map-container {
    filter: var(--map-filter);
    transition: filter 0.5s ease;
}