/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --gold: #d4af37;        /* The Royal Saffron Gold */
    --gold-dark: #b4901e;   /* Darker shade for hover */
    --dark: #1a1a1a;        /* Soft Black */
    --light: #f8f9fa;       /* Off-white background */
    --white: #ffffff;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents side scrolling on mobile */
    background-color: var(--white);
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-black {
    background-color: var(--dark) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

/* Section Titles with Gold Underline */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto 0;
}

/* =========================================
   3. BUTTONS
   ========================================= */
.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border: 2px solid var(--gold);
    font-weight: 700;
    padding: 10px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 50px; /* Pill shape */
}

.btn-gold:hover {
    background-color: transparent;
    border: 2px solid #d4af37;
    color: var(--gold);
}

.btn-outline-dark {
    border: 2px solid var(--dark);
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    transition: background 0.3s;
}

.navbar-brand {
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 400;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}

/* Mobile Menu Adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--dark);
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
    }
    .nav-link {
        margin-left: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* =========================================
   5. HERO SECTIONS
   ========================================= */
.hero-section {
    position: relative;    
    /* Note: Background image is set inline in HTML for flexibility */
}

.hero-section::before {
    /* Dark Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2; /* Ensures text sits above the overlay */
}

/* =========================================
   6. CARDS & PRICING
   ========================================= */
.card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px); /* Lifts card up */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Featured Pricing Card (Pop-out effect) */
.transform-scale {
    transform: scale(1.05);
    border: 2px solid var(--gold) !important;
    z-index: 10;
}

@media (max-width: 768px) {
    .transform-scale {
        transform: scale(1); /* Disable zoom on mobile */
        margin: 20px 0;
    }
}

/* =========================================
   7. GALLERY & IMAGES
   ========================================= */
/* Specific styling for Gallery Grid images */
.gallery img {
    height: 250px;
    width: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s ease;
}

/* Zoom effect container */
.hover-zoom {
    overflow: hidden; /* Hides the part of image that zooms out */
    border-radius: 10px;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Gallery Filter Buttons */
.gallery button.active {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Team Member Images */
.rounded-circle.shadow {
    border: 4px solid var(--gold);
}

/* =========================================
   8. FORMS & INPUTS
   ========================================= */
.form-control, .form-select {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    background-color: #fff;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer a.hover-gold:hover {
    color: var(--gold) !important;
    padding-left: 5px; /* Subtle slide effect */
    transition: 0.3s;
}

/* Social Icons */
footer .fs-4 a {
    transition: 0.3s;
}

footer .fs-4 a:hover {
    color: var(--white) !important;
}

/* =========================================
   10. FLOATING WHATSAPP BUTTON
   ========================================= */
/* Animation for the button to pulse slightly */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

a[href*="wa.me"] {
    animation: pulse 2s infinite;
}

a[href*="wa.me"]:hover {
    transform: scale(1.1);
}

/* =========================================
   11. SCROLLBAR (Chrome/Edge/Safari)
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* =========================================
   12. NEW ADDITIONS (Spinner, Scroll, etc.)
   ========================================= */

/* A. LOADING SPINNER */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* B. SCROLL TO TOP BUTTON */
#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 80px; /* Above WhatsApp button */
    right: 20px;
    z-index: 999;
    background-color: var(--dark);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}
#scrollTopBtn:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* C. URGENCY BAR (Top Strip) */
.urgency-bar {
    background-color: #d32f2f; /* Red for urgency */
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 1031; /* Above navbar */
}

/* D. SCROLLING TEXT MARQUEE */
.marquee-container {
    background: var(--gold);
    color: var(--dark);
    overflow: hidden;
    white-space: nowrap;
    padding: 15px 0;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* E. GOOGLE MAP (Responsive) */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.map-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* =========================================
   13. CUSTOM SPLASH SCREEN ANIMATION
   ========================================= */
#splash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Allows clicks to pass through after it's gone */
}

.splash-screen {
    background-color: var(--gold); /* Your Brand Gold */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* 🟢 ANIMATION: Start Full -> Wait -> Shrink */
    animation: stayThenShrink 5.5s forwards ease-in-out;
}

/* Text/Logo Design inside the Splash */
.splash-content {
    text-align: center;
    color: var(--dark); /* Black Text */
    animation: fadeOutContent 5.0s forwards; /* Text fades out slightly before circle shrinks */
}

/* 🟢 KEYFRAME 1: The Yellow Screen Behavior */
@keyframes stayThenShrink {
    0% {
        transform: scale(1); /* Start Full Screen */
        border-radius: 0%;
    }
    85% {
        transform: scale(1); /* Stay Full Screen for ~4.5 seconds */
        border-radius: 0%;
    }
    100% {
        transform: scale(0); /* Shrink to zero at the end */
        border-radius: 100%; /* Becomes a circle as it shrinks */
    }
}

/* 🟢 KEYFRAME 2: The Text Behavior */
@keyframes fadeOutContent {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); } /* Fade In quickly */
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* =========================================
   14. URGENCY POPUP STYLES
   ========================================= */
.urgency-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark background */
    z-index: 10000; /* On top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Blur effect behind popup */
    animation: fadeIn 0.5s ease-out;
}

.urgency-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-top: 5px solid #d32f2f; /* Red top border */
    transform: scale(0.8);
    animation: popIn 0.5s forwards;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}
.close-btn:hover { color: #d32f2f; }

/* Pulse Animation for the Button */
.pulse-animation {
    animation: pulseBtn 2s infinite;
}
@keyframes pulseBtn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Entry Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =========================================
   ACHIEVEMENTS SECTION
   ========================================= */

.achieve-section {
    padding: 80px 0;
    background-color: #fffcf5;
    background-image: radial-gradient(#d4af37 0.6px, transparent 0.6px);
    background-size: 34px 34px;
    position: relative;
    width: 100%;
    /* Fallback font */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.achieve-card {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.achieve-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 20px 40px rgba(212,175,55,0.15);
}

/* CIRCLE ICON WRAPPER */
.achieve-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fffcf5;
    border: 1px solid #d4af37;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}
.achieve-icon-box svg {
    width: 34px;
    height: 34px;
}


.achieve-card:hover .achieve-icon-box {
    background: #d4af37;
    color: #ffffff;
}

/* TEXT STYLES */
.achieve-number {
    /* Ensure you load this font in your HTML head */
    font-family: 'Playfair Display', serif; 
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #b4901e; 
}

.achieve-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin: 0;
}

.achieve-divider {
    width: 60px; 
    height: 3px; 
    background: #d4af37; 
    margin: 0 auto; 
    border-radius: 2px;
}
/* =========================================
   15. ADDITIONAL BUTTON & CARD STYLES
   ========================================= */
/* Service Card Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15) !important; /* Gold shadow */
}

.btn-gold-outline {
    background-color: #d4af37;
    color: #ffffff;
    border-radius: 50px;
    border: 2px solid #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.btn-gold-outline:hover {
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.6),
        0 10px 30px rgba(212, 175, 55, 0.4);
}
/* =========================================
   16. ABOUT SECTION STYLES
   ========================================= */

/* --- About Section Styles --- */
:root {
    --swagat-gold: #D4AF37;
    --text-dark: #222;
    --text-muted: #555;
    --bg-white: #ffffff;
}

.about-section {
    font-family: 'Lato', sans-serif;
    color: var(--text-muted);
    background-color: var(--bg-white);
    overflow: hidden; 
}

/* Title Styling */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--swagat-gold);
    border-radius: 2px;
}

/* Text Styling */
.about-lead {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic; 
    border-left: 4px solid var(--swagat-gold);
    padding-left: 20px;
}

.about-text {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.text-highlight {
    color: var(--text-dark);
    font-weight: 700;
}

/* Image Styling */
.image-container {
    position: relative;
    padding: 15px;
}

.about-image {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    width: 100%;
    object-fit: cover;
}

/* Gold Border Frame around Image */
.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--swagat-gold);
    border-radius: 12px;
    transform: translate(-15px, -15px);
    z-index: -1;
}

/* ✅ FIX: Badge Styling */
.badge-container {
    display: inline-flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: nowrap;
    align-items: center;
}

.badge-custom {
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-gold {
    background-color: var(--swagat-gold);
    color: #fff;
}

.badge-dark {
    background-color: var(--text-dark);
    color: var(--swagat-gold);
    border: 1px solid var(--text-dark);
}


/* Mobile Responsiveness */
@media (max-width: 991px) {
    .section-title { font-size: 2.2rem; text-align: center; }
    .section-title::after { left: 50%; transform: translateX(-50%); }
    .about-lead { text-align: center; border-left: none; padding-left: 0; }
    .about-text { text-align: center; }
    .badge-container { justify-content: center; margin-bottom: 20px; }
    .image-container { margin-bottom: 40px; }
}

/* =========================================
   17. RESPONSIVE MEDIA QUERIES (ALL SCREENS)
   ========================================= */

/* ------------------------------------------------
   XXL Screens (Large Desktops > 1400px) 
   ------------------------------------------------ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .section-title {
        font-size: 3.5rem; /* Larger titles for big screens */
    }
}

/* ------------------------------------------------
   Laptops & Desktops (992px - 1199px)
   ------------------------------------------------ */
@media (max-width: 1199px) {
    .achieve-number {
        font-size: 2.5rem;
    }
    
    .about-lead {
        font-size: 1.1rem;
    }
}

/* ------------------------------------------------
   Tablets & Landscape Mobile (768px - 991px)
   ------------------------------------------------ */
@media (max-width: 991px) {
    /* Navbar Adjustments */
    .navbar-collapse {
        background-color: rgba(0,0,0,0.95);
        padding: 20px;
        text-align: center;
    }
    
    .navbar-nav {
        gap: 15px;
    }

    /* About Section Stacking */
    .image-container::before {
        transform: translate(-10px, -10px); /* Tighter frame */
    }
    
    .section-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Achievements Grid */
    .achieve-card {
        margin-bottom: 20px;
        padding: 30px 15px;
    }
}

/* ------------------------------------------------
   Mobile Devices (Max Width: 767px)
   ------------------------------------------------ */
@media (max-width: 767px) {
    
    /* Global Typography Reduction */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 0.95rem; }

    /* Hero Section */
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }

    /* Card Hover Effects - Disable on Touch to prevent sticking */
    .card:hover, .hover-lift:hover {
        transform: none; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }

    /* About Section */
    .badge-container {
        flex-direction: column; /* Stack badges vertically */
        width: 100%;
        gap: 10px;
    }
    
    .badge-custom {
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Urgency Popup */
    .urgency-card {
        width: 95%;
        padding: 1.5rem;
    }
    
    .close-btn {
        top: 5px;
        right: 10px;
    }
}

/* ------------------------------------------------
   Small Mobile (Max Width: 576px)
   ------------------------------------------------ */
@media (max-width: 576px) {
    
    /* Navbar Brand */
    .navbar-brand img {
        max-height: 40px; /* Smaller logo */
    }

    /* Buttons */
    .btn-gold, .btn-gold-outline {
        width: 100%; /* Full width buttons on phone */
        margin-bottom: 10px;
        display: block;
    }

    /* Gallery */
    .gallery img {
        height: 200px; /* Shorter images */
    }

    /* Achievements */
    .achieve-number {
        font-size: 2rem;
    }
    
    .achieve-icon-box {
        width: 60px;
        height: 60px;
    }

    /* Splash Screen */
    .splash-content img {
        width: 150px; /* Smaller logo on splash */
    }

    /* Floating WhatsApp & Scroll Top */
    #scrollTopBtn {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* =========================================
   18. FIXES FOR WHITE SPACE & OVERFLOW ISSUES
   ========================================= */
/* GLOBAL RESET TO FIX WHITE SPACE */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* Stops horizontal scrolling */
    background-color: #0d0d0d;     /* Sets default background to Black (not white) */
    margin: 0;
    padding: 0;
}

/* Fix for Bootstrap Rows causing overflow */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Ensure sections cover the full screen height */
section {
    position: relative;
    width: 100%;
}

/* FIX: Prevents the Gold Badge from being cut off on mobile */
@media (max-width: 767px) {
    .badge-responsive {
        /* On mobile, we align it flush with the left edge (0) 
           instead of pushing it 50% out */
        transform: translate(0, -50%) !important; 
        
        /* Optional: Add a tiny gap from the left edge if you like */
        left: 10px !important; 
    }
}
/* =========================================
   19. TEXTAREA CUSTOMIZATION
   ========================================= */
.special-textarea {
    border-radius: 16px;
    padding: 1.25rem 1rem;
    font-size: 15px;
}

.form-floating > label {
    color: #666;
    font-size: 14px;
}

/* Focus effect */
.special-textarea:focus {
    border-color: #d4b255;
    box-shadow: 0 0 0 0.2rem rgba(212, 178, 85, 0.25);
}
