:root {
    --primary-navy: #0A1F44;
    --navy-dark: #050E1F;
    --navy-light: #112D5E;
    --gold: #C9A227;
    --gold-dark: #AF8B1E;
    --gold-light: #D4B34A;
    --accent-gold: #C9A227;
    --text-dark: #1F2937;
    --bg-white: #FFFFFF;
    --gray-bg: #F8FAFC;
    --gray-100: #F1F5F9;
}

[data-theme='dark'] {
    --primary-navy: #050E1F;
    --navy-dark: #030712;
    --navy-light: #112D5E;
    --text-dark: #F3F4F6;
    --bg-white: #0A1F44;
    --gray-bg: #111D35;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Utilities */
.gold-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.youtube-btn {
    background: #FF0000;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.youtube-btn:hover {
    background: #E60000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
}

/* Header & Top Bar */
.top-bar {
    height: 40px;
    background-color: var(--navy-dark);
    display: flex;
    align-items: center;
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 60;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header {
    transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
    header.scrolled {
        transform: translateY(-40px);
    }
}

.main-header {
    transition: all 0.3s ease;
}

header.scrolled .main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dark header.scrolled .main-header {
    background-color: rgba(5, 14, 31, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--gray-bg);
    /* Adjusted to use a variable or a specific color */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .service-card {
    background: var(--navy-light);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Grayscale Map Effect */
.grayscale {
    filter: grayscale(100%);
}

.hover\:grayscale-0:hover {
    filter: grayscale(0%);
}

.ad-banner-wrap {
    position: relative;
    padding: 1rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(10, 31, 68, 0.04)),
        var(--bg-white);
    border: 1px solid rgba(201, 162, 39, 0.18);
}

.dark .ad-banner-wrap {
    background:
        linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(255, 255, 255, 0.04)),
        var(--navy-dark);
}

.site-ad-section {
    padding: 4rem 0 0;
}

.ad-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 18px 45px rgba(10, 31, 68, 0.12);
}

.dark .ad-carousel {
    border-color: rgba(255, 255, 255, 0.1);
}

.ad-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.ad-carousel-slide {
    min-width: 100%;
    display: block;
    background: #ffffff;
}

.ad-carousel-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1774 / 887;
    object-fit: contain;
    background: #ffffff;
}

.ad-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 31, 68, 0.12);
    box-shadow: 0 8px 22px rgba(10, 31, 68, 0.18);
    transition: all 0.2s ease;
    z-index: 2;
}

.ad-carousel-btn:hover {
    color: #ffffff;
    background: var(--gold);
}

.ad-carousel-prev {
    left: 1rem;
}

.ad-carousel-next {
    right: 1rem;
}

.ad-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.ad-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(10, 31, 68, 0.18);
    transition: all 0.2s ease;
}

.ad-carousel-dot.active {
    width: 1.7rem;
    background: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 640px) {
    .ad-banner-wrap {
        padding: 0.75rem;
    }

    .ad-carousel-btn {
        width: 2.25rem;
        height: 2.25rem;
    }

    .ad-carousel-prev {
        left: 0.5rem;
    }

    .ad-carousel-next {
        right: 0.5rem;
    }

    .ad-carousel-dots {
        bottom: 0.5rem;
        gap: 0.35rem;
    }
}
