/* Color Variables */
:root {
    --primary-maroon: #7b1113;
    --saffron: #f97316;
    --gold: #ffc107;
    --light-bg: #fdfbf7;
    --text-dark: #222222;
}

/* Update this at the top of your style.css */
html,
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Ye line extra space ko chupa degi */
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
.brand-font {
    font-family: 'Yatra One', cursive;
}

.tracking-wider {
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-maroon) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--saffron) !important;
    transform: translateY(-2px);
}

.call-btn-top {
    transition: 0.3s;
}

.call-btn-top:hover {
    color: var(--saffron) !important;
}

/* Buttons */
.btn-brand {
    background: linear-gradient(45deg, var(--primary-maroon), var(--saffron));
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    /* Beautiful Temple Background Image */
    background: url(images/bg.jpg) center/cover no-repeat;
    padding: 140px 0 100px;
    color: white;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(20, 0, 0, 0.85) 0%, rgba(123, 17, 19, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.8rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    color: var(--gold);
    line-height: 1.2;
}

/* Lead Form */
.lead-form-box {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-top: 6px solid var(--saffron);
    position: relative;
    z-index: 2;
}

.lead-form-box .form-control,
.lead-form-box .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(90deg, var(--primary-maroon), #4a0a0b);
    color: white;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Divine Glow Effect Fixed */
.divine-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    background: white;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid var(--saffron);
}

.service-img {
    height: 180px;
    object-fit: cover;
    transition: 0.5s;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 20px 15px;
}

.service-card h4 {
    color: var(--primary-maroon);
    font-size: 1.3rem;
}

/* CTA Banner inside Services */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-maroon), var(--saffron));
}

/* Stats & Steps Area */
.bg-pattern {
    background-color: var(--primary-maroon);
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0z" fill="none"/%3E%3Ccircle cx="2" cy="2" r="2" fill="%23fff"/%3E%3C/svg%3E');
}

.step-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    border: 2px dashed rgba(255, 193, 7, 0.5);
    transition: 0.5s;
}

.step-icon:hover {
    background: var(--gold);
    color: var(--primary-maroon);
    transform: rotate(10deg);
    border: 2px solid white;
}

/* 6x4 Grid for Gallery */
.gallery-grid {
    display: grid;
    /* This creates 6 columns of equal size. If screen is small, it wraps automatically */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

/* Floating Social Buttons */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: 0.3s;
}

.float-wa:hover {
    background: #1ebe57;
    color: white;
}

.float-call {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(45deg, var(--primary-maroon), #c0392b);
    color: #fff;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(123, 17, 19, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: 0.3s;
}

.float-call:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* Badges */
.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 12px;
    margin-bottom: 10px;
    color: #444;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.hero .trust-badge {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: #111;
    padding: 70px 0 20px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--saffron);
    padding-left: 8px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero .d-flex {
        justify-content: center;
    }

    .float-wa {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

    .float-call {
        width: 55px;
        height: 55px;
        font-size: 25px;
        bottom: 20px;
        left: 20px;
    }
}

/* =========================================
   CRITICAL MOBILE OVERFLOW & ALIGNMENT FIX
   ========================================= */

/* 1. Kills any horizontal scroll or white space completely */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Fixes text cutting off and centers perfectly on mobile */
@media (max-width: 768px) {
    .hero {
        overflow-x: hidden !important;
    }

    .hero-content {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero p {
        padding: 0 10px;
        /* Text ko center aur frame ke andar rakhega */
    }

    .hero .d-flex {
        justify-content: center !important;
    }

    .trust-badge {
        margin-right: 5px !important;
        margin-left: 5px !important;
        font-size: 0.8rem !important;
        /* Badges ko thoda adjust karega taaki screen ke bahar na jayen */
        padding: 6px 10px !important;
    }
}

/* Fix for Lead Form Heading Color */
.lead-form-box h3 {
    color: var(--primary-maroon) !important;
}

/* Form ke andar ke baaki text ko dark karne ke liye (if needed) */
.lead-form-box p {
    color: #444444 !important;
}

/* =========================================
   MOBILE VIEW FIX FOR SERVICE CARDS & PHOTOS
   ========================================= */
@media (max-width: 768px) {

    /* 1. Row aur Container ki extra width fix karna */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Cards ko mobile screen ke andar fit rakhna */
    .card {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 3. Photos ko bina cut kiye poora dikhana */
    .card img,
    .card-img-top {
        width: 100% !important;
        height: auto !important;
        /* Photo ko uske original ratio me layega */
        max-height: 250px !important;
        /* Photo zyada lambi na ho */
        object-fit: cover !important;
        /* Agar photo fit nahi ho rahi toh contain karein */
    }

    /* 4. Text aur buttons ke spacing ko theek karna */
    .card-body {
        padding: 15px !important;
        word-wrap: break-word !important;
    }
}