/* ==========================================================
   MARUDHAR RASIYA FOLK - ROYAL RAJASTHANI THEME
   ========================================================== */

/* --- CSS VARIABLES (For Optimization & Easy Editing) --- */
:root {
    --maroon: #6A040F;
    --dark-maroon: #370617;
    --gold: #FFBA08;
    --saffron: #DC2F02;
    --sand: #FDF5E6;
    --light-sand: #FAEDCD;
    --text-dark: #3E2723;
    --text-muted: #4E342E;
}

/* --- BASE RESET & FONTS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--sand);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--maroon);
    padding: 10px 5%; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: top 0.4s ease-in-out;
}

.navbar-hidden {
    top: -100px; 
}

/* --- LOGO & TITLE --- */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 15px; 
}

.navbar .logo h2 {
    color: var(--gold); 
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin: 0; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
}

.nav-logo-img {
    height: 50px; 
    width: auto;
    border-radius: 6px; 
    border: 1px solid var(--gold); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
}

/* --- NAVIGATION LINKS --- */
.nav-links {
    list-style: none; /* Removes the bullet points */
    display: flex; /* Lines them up horizontally */
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white; 
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* --- HAMBURGER MENU (Hidden on Desktop) --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==========================================================
   MOBILE RESPONSIVENESS (Update your existing media queries)
   ========================================================== */
@media (max-width: 992px) {
    /* Show Hamburger on tablets and phones */
    .hamburger {
        display: flex;
    }

    /* Hide links off-screen initially */
    .nav-links {
        position: absolute;
        top: 100%; /* Drops right below the navbar */
        left: -100%; /* Hides it to the left */
        flex-direction: column;
        background-color: var(--maroon);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        border-bottom: 3px solid var(--gold);
    }

    /* Class added by JS to slide the menu in */
    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.1rem; /* Slightly larger for easier tapping */
        display: block;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 5px solid var(--gold);
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 7.5s infinite; 
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 1.5s; }
.slide:nth-child(3) { animation-delay: 3.0s; }
.slide:nth-child(4) { animation-delay: 4.5s; }
.slide:nth-child(5) { animation-delay: 6.0s; }

@keyframes slideFade {
    0% { opacity: 1; }
    15% { opacity: 1; }  
    25% { opacity: 0; }  
    90% { opacity: 0; }  
    100% { opacity: 1; } 
}

/* --- FESTIVAL VIBE OVERLAY --- */
.slider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Darker at the edges, slightly transparent in the center so the glowing text pops */
    background: radial-gradient(circle, rgba(10, 2, 5, 0.4) 0%, rgba(10, 2, 5, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- FESTIVAL TYPOGRAPHY --- */
/* 1. The tilted accent text */
.hero-pre-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: -15px;
    transform: rotate(-5deg); /* The tilted "WE CAN" vibe */
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    z-index: 3;
}

/* 2. The massive glowing gradient text */
.hero-title-massive {
    font-family: 'Cinzel', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    /* Vibrant Sunset Gradient Fill */
    background: linear-gradient(45deg, var(--gold) 20%, var(--saffron) 50%, #FF5722 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.6));
    z-index: 2;
}

/* 3. The hollow glowing outline text */
.hero-title-outline {
    font-family: 'Cinzel', serif;
    font-size: clamp(4.5rem, 11vw, 9.5rem);
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    margin-top: -10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    /* Transparent center with glowing gold border */
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px var(--gold);
    filter: drop-shadow(0px 0px 20px rgba(220, 47, 2, 0.4));
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #E0E0E0;
    margin-top: 30px;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* --- BUTTONS (Sleek Pill Shape) --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 30px; /* Pill shape */
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.btn-primary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--saffron);
    box-shadow: 0 4px 15px rgba(220, 47, 2, 0.2);
}

.btn-primary:hover {
    background-color: var(--saffron);
    box-shadow: 0 0 20px rgba(220, 47, 2, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--maroon);
    box-shadow: 0 0 20px rgba(255, 186, 8, 0.6);
    transform: translateY(-3px);
}

/* --- GENERAL LAYOUT & TYPOGRAPHY --- */
.section-padding { padding: 90px 0; }
.bg-light { background-color: var(--light-sand); }

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--maroon);
    margin-bottom: 15px;
}

.section-title::after {
    content: '❖';
    display: block;
    color: var(--saffron);
    font-size: 1.5rem;
    margin-top: 5px;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

/* --- GENERIC CARDS (Blogs, Events, Customers) --- */
.card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid var(--maroon);
    border-bottom: 5px solid var(--gold);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(106, 4, 15, 0.15);
}

.card h3 {
    color: var(--maroon);
    margin-bottom: 15px;
}

/* --- NEW ROYAL SERVICES SECTION --- */
.services-grid { margin-top: 50px; }

.service-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(106, 4, 15, 0.08);
    border: 1px solid rgba(255, 186, 8, 0.3);
    transition: all 0.5s ease;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 2px dashed var(--gold);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 0%;
    background: linear-gradient(to top, var(--maroon), var(--dark-maroon));
    z-index: -2;
    transition: height 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(106, 4, 15, 0.25);
    border-color: var(--maroon);
}

.service-card:hover::after { height: 100%; }
.service-card:hover::before { border: 2px solid var(--gold); opacity: 1; }

.card-icon {
    width: 90px; height: 90px;
    background-color: var(--sand);
    border-radius: 50%;
    margin: 0 auto 25px auto;
    border: 3px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 4px;
    transition: all 0.6s ease;
}

.card-icon img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.service-card:hover .card-icon {
    border-color: var(--sand);
    transform: rotateY(180deg);
}

.service-content h3 {
    color: var(--maroon);
    font-size: 1.6rem;
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    transition: color 0.5s ease;
}

.card-divider {
    height: 3px; width: 50px;
    background-color: var(--saffron);
    margin: 0 auto 20px auto;
    transition: background-color 0.5s ease;
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p { color: var(--sand); }
.service-card:hover .card-divider { background-color: var(--gold); }

.service-link {
    display: inline-block;
    color: var(--saffron);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.5s ease;
}

.service-card:hover .service-link { color: var(--gold); }
.service-link span { display: inline-block; transition: transform 0.3s ease; }
.service-card:hover .service-link span { transform: translateX(8px); }

/* --- ABOUT SECTION --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.about-image { flex: 1; position: relative; }

.about-image::before {
    content: '';
    position: absolute;
    top: 25px; left: -25px; width: 100%; height: 100%;
    border: 4px solid var(--gold);
    border-radius: 150px 150px 20px 20px;
    z-index: 0;
    transition: all 0.5s ease;
}

.image-frame {
    position: relative;
    z-index: 1;
    border-radius: 150px 150px 20px 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(106, 4, 15, 0.3);
}

.image-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.about-image:hover::before { top: 15px; left: -15px; }
.about-image:hover .image-frame img { transform: scale(1.08); }

.about-text { flex: 1; text-align: left; }
.about-text h3 { font-size: 2.2rem; color: var(--maroon); margin-bottom: 20px; }
.text-saffron { color: var(--saffron); }
.about-text p { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-muted); line-height: 1.8; }
.mt-20 { margin-top: 20px; }

/* --- IMAGE BOX (Gallery/Awards Placeholders) --- */
.image-box {
    background: var(--maroon);
    color: var(--gold);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.image-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- CONTACT FORM --- */
.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    background-color: var(--sand);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--maroon);
    box-shadow: 0 0 5px rgba(128, 0, 0, 0.2);
}

/* THE FIX: Added button styling so it's always visible */
.contact-form .btn-primary {
    background-color: var(--maroon); /* Solid maroon background */
    color: var(--gold);              /* Gold text color */
    padding: 15px;
    border: 2px solid var(--gold);    /* Gold border for royal look */
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.contact-form .btn-primary:hover {
    background-color: var(--gold);
    color: var(--maroon);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- COMPACT FOOTER --- */
.footer {
    background-color: var(--maroon);
    color: white;
    padding: 40px 0 0 0; /* Reduced top padding */
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    /* Force 4 columns on desktop to keep height low */
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr; 
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-logo {
    width: 160px; /* Slightly adjusted for the 1-row layout */
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--gold);
    margin-bottom: 15px;
}

.footer-col h3 {
    font-size: 1.2rem; /* Slightly smaller headers to save space */
    margin-bottom: 15px;
}

.footer-col p, .footer-col ul li {
    font-size: 0.85rem; /* Compact text size */
    margin-bottom: 8px;
}

.social-links li a i {
    width: 18px;
    color: var(--gold);
}

.footer-bottom {
    padding: 15px; /* Compact bottom bar */
    background-color: rgba(0, 0, 0, 0.3);
}

/* Ensure it stays readable on tablets/mobile */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablets */
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacked on mobile */
    }
}
/* ==========================================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================================== */

@media (max-width: 992px) {
    .about-wrapper { gap: 30px; }
    .about-text h3 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    .nav-links {
        margin-top: 15px;
        justify-content: center;
    }
    
    /* Layout */
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2.2rem; }
    .grid-3 { gap: 20px; grid-template-columns: 1fr; } /* Stacks cards on mobile */
    
    /* Hero */
    .hero-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    /* About */
    .about-wrapper { flex-direction: column; text-align: center; }
    .about-text { text-align: center; }
    .about-image { width: 90%; max-width: 400px; margin: 0 auto 30px auto; }
    .about-image::before { top: 15px; left: 15px; }
    .about-image:hover::before { top: 10px; left: 10px; }
    
    /* Contact */
    .contact-form { padding: 25px; width: 95%; }
}

/* --- ENHANCED BLOG & EVENT CARDS --- */
.media-card { padding: 0; overflow: hidden; }
.media-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; border-bottom: 3px solid var(--gold); }
.media-card:hover img { transform: scale(1.1); }
.media-card-content { padding: 30px; }

/* --- MASONRY TESTIMONIALS SECTION --- */
/* Matches the screenshot's gradient vibe but uses our Theme Colors */
/* --- MASONRY TESTIMONIALS SECTION --- */
.testimonial-section {
    /* Uses a Rajasthani Fort image with a royal maroon/orange overlay so the white text stays readable */
    background: url('https://www.wowclub.com/blog/content/images/size/w1520/2020/05/562059.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a smooth parallax scrolling effect */
    border-top: 5px solid var(--gold);
    border-bottom: 5px solid var(--gold);
}

.testimonial-header .text-white {
    color: rgb(0, 0, 0) !important;
    text-align: left;
}

.testimonial-header .section-title::after {
    margin-left: 0; /* Aligns the motif to the left */
    color: white;
}

.testimonial-header .section-desc {
    margin-left: 0;
    font-size: 1.3rem;
    font-weight: 400;
}

/* 2-Column Interlocking Layout */
.testimonial-masonry {
    column-count: 2;
    column-gap: 30px;
    margin-top: 40px;
}

.masonry-card {
    break-inside: avoid; /* Prevents a card from splitting across columns */
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6); /* Adds the subtle border from the screenshot */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 15px 30px rgba(0, 0, 0, 0.3);
}

/* Card Background Variations based on theme */
.card-sand { background-color: var(--sand); }
.card-light { background-color: var(--light-sand); }
.card-white { background-color: #FFFFFF; }

.masonry-card .stars {
    color: var(--saffron);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.masonry-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Large faded names like the screenshot */
.client-name {
    font-size: 2rem;
    color: var(--maroon);
    font-weight: 700;
    opacity: 0.9;
}

/* Mobile Responsiveness for Testimonials */
@media (max-width: 768px) {
    .testimonial-masonry {
        column-count: 1; /* Stacks into a single column on phones */
    }
    .testimonial-header .text-white {
        text-align: center;
    }
    .testimonial-header .section-title::after {
        margin: 5px auto 0 auto; /* Centers the motif on mobile */
    }
}

/* --- ENHANCED CONTACT SECTION --- */
.contact-wrapper { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.contact-info { flex: 1; min-width: 300px; background: var(--maroon); color: var(--sand); padding: 40px; border-radius: 8px; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(106,4,15,0.2); }
.contact-info h3 { color: var(--gold); margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-form-container { flex: 2; min-width: 300px; }

/* --- ENHANCED FOOTER --- */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; padding-bottom: 30px; border-bottom: 1px solid rgba(255,186,8,0.3); margin-bottom: 20px; }
.footer-col h3 { color: var(--gold); margin-bottom: 20px; font-size: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #d3d3d3; text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p { line-height: 1.8; }

/* --- CERTIFICATE & AWARD FRAMES --- */
.certificate-box {
    background-color: white;
    padding: 15px; /* Creates a white matte border around the image */
    border: 4px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-box img {
    width: 100%;
    height: auto; /* Keeps the natural shape of the certificate */
    object-fit: contain;
    border: 1px solid #eee; /* Subtle inner line */
}

.certificate-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(106, 4, 15, 0.2);
    border-color: var(--maroon);
}