/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

/* ========================================================== */
/* B. Header & Navigation - Logo with Image Support */
/* ========================================================== */


/* Color Palette */
:root {
    --primary-color: #ff9900; /* Saffron/Gold */
    --secondary-color: #0d47a1; /* Deep Blue */
    --text-color: #444;
    --light-bg: #fff;
    --dark-bg: #2c3e50;
    --font-devanagari: 'Tiro Devanagari Sanskrit', serif;
}

/* 1. Header & Navigation */
.main-header {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a, .nav-links button {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links button:hover {
    color: var(--primary-color);
}

/* CTA Button Animation */
.cta-button {
    background-color: var(--primary-color) !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    color: var(--dark-bg) !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite; /* Bar Bar Ke Animation */
}

.cta-button:hover {
    background-color: #ffb74d !important;
    transform: scale(1.05); 
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

/* Section Common Styles */
.section-padding {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
    font-family: var(--font-devanagari);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Buttons */
.primary-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s;
}

.primary-btn:hover, .secondary-btn:hover {
    background-color: #ffb74d;
    transform: scale(1.05);
}

/* 2. Hero Slider (Home Page Specific) */
.hero-slider-container {
    height: 600px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('placeholder-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.slide {
    position: absolute;
    width: 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 1.5s ease; /* Fade Animation */
}

.slide h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.slide p {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.slide.fade-in-animation {
    opacity: 1; /* JS handles display, CSS handles fade */
}

/* 3. Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: var(--font-devanagari);
}

/* Hover Animation */
.animation-hover:hover {
    transform: translateY(-12px); /* Lift Up Effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 4. About Page Specific */
.profile-detail-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.profile-detail-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 30px;
    border: 5px solid var(--primary-color);
}

.profile-detail-card h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

/* 5. Contact Page Specific */
.contact-form {
    max-width: 600px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.contact-details {
    margin-top: 40px;
}

.map-container {
    margin-top: 30px;
    border: 5px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    display: block;
}

/* 6. Aarti Page Specific */
.aarti-card {
    background-color: #fff3e0;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.aarti-card h2 {
    color: #cc6600;
    margin-bottom: 20px;
    font-family: var(--font-devanagari);
}

.aarti-text-content {
    font-family: var(--font-devanagari);
    font-size: 1.5em;
    line-height: 2;
    white-space: pre-wrap; /* Preserve line breaks if content has them */
}

/* 7. Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: #a4b0be;
    text-align: center;
    padding: 20px;
}

/* ========================================================== */
/* Animations */
/* ========================================================== */

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 153, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

/* ========================================================== */
/* Responsiveness (Mobile View) */
/* ========================================================== */

@media (max-width: 900px) {
    .section-title {
        font-size: 2.2em;
    }

    /* Header: Show Hamburger, Hide Nav */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; 
        left: 0;
        background-color: var(--dark-bg);
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        display: flex; /* Show when 'open' class is added by JS */
    }

    .nav-links a, .nav-links button {
        margin: 10px 0;
        padding: 10px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .nav-links .cta-button {
         border: 2px solid var(--primary-color) !important;
    }

    .hamburger {
        display: block; 
    }

    /* Hero Section Adjustments */
    .hero-slider-container {
        height: 400px;
    }

    .slide h2 {
        font-size: 2em;
    }

    .slide p {
        font-size: 1em;
    }
    
    /* About page */
    .profile-detail-card img {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
    .profile-detail-card {
        text-align: center;
    }
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: #a4b0be;
    padding: 40px 5% 10px; /* Adjusted padding */
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Important for responsiveness */
    max-width: 1200px;
    margin: 0 auto 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.footer-section {
    flex-basis: 30%; /* 3 columns */
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #a4b0be;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-section ul li a:hover,
.footer-section .contact-info a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    font-size: 0.9em;
    color: #888;
}

/* Footer Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        flex-basis: 100%;
        margin-bottom: 25px;
    }
    
    .footer-section ul {
        padding-left: 0;
    }
}

/* Hero Slider Button Fix: Button ko niche laane ke liye */
.slide {
    display: flex; /* FIX: Flex container for centering content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* position: absolute; - Already there */
    /* width: 100%; - Already there */
    height: 100%; /* FIX: Height 100% zaroori hai */
    /* ... rest of slide styles ... */
}

/* ========================================================== */
/* 4. Panchang & Rashifal Section Design (Modern & Responsive) */
/* ========================================================== */



/* Individual Panchang/Rashifal Cards */
#panchang > div > div {
    flex-basis: 45%; /* Existing style for desktop */
    text-align: left;
    background: var(--light-bg);
    padding: 35px; /* Slightly more padding for better look */
    border-radius: 12px; /* Smoother corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Deeper shadow for floating effect */
    border-bottom: 3px solid var(--secondary-color); /* Subtle accent line */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-bottom-color 0.4s;
}

/* Hover Effect: Lift and Shadow Pop */
#panchang > div > div:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    border-bottom-color: var(--primary-color); /* Color accent change */
}

/* Headings within the Cards */
#panchang h3 {
    margin-bottom: 20px !important; 
    font-size: 1.5em;
    position: relative;
    padding-bottom: 10px;
}

/* Subtle Underline for Headings */
#panchang h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}
#panchang > div > div:nth-child(2) h3::after {
    background-color: var(--secondary-color); /* Color change for Rashifal */
}


/* Panchang Detail Text */
#panchang p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 10px;
}
#panchang strong {
    font-weight: 700;
    color: var(--text-color);
}


/* ========================================================== */
/* RESPONSIVENESS (Panchang Section) */
/* ========================================================== */

/* Tablet & Medium Screens (Below 900px) - Cards Stack */
@media (max-width: 900px) {
    #panchang > div {
        flex-direction: column; /* Stack the cards vertically */
        gap: 30px; /* Increase gap between stacked cards */
        align-items: center;
    }
    
    #panchang > div > div {
        flex-basis: 90%; /* Take almost full width */
        max-width: 500px; /* Optional: Limit width for better reading */
    }
}

/* Mobile Screens (Below 600px) - Text Tightening */
@media (max-width: 600px) {
    #panchang > div > div {
        padding: 20px; /* Reduce padding */
        border-radius: 10px;
        flex-basis: 100%; /* Full width */
    }
    
    #panchang p {
        font-size: 1em;
        line-height: 1.6;
    }
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.05) translateY(-2px); /* Lift and scale */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.secondary-btn:active {
    transform: scale(0.95); /* Press Effect */
}

@media (max-width: 600px) {
    .primary-btn, .secondary-btn { 
        padding: 10px 18px; 
        font-size: 0.9em; 
        display: block;  /* Full width button */
        margin: 10px auto; 
        width: 80%; /* Width control */
    }
}

/* ========================================================== */
/* B. Section Animations (Required for scroll-animate) */
/* ========================================================== */

/* Note: Ensure global fadeInUp keyframe is defined elsewhere in your file */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Base class for scroll-animate elements */
.scroll-animate {
    opacity: 0;
    transition: none !important; /* Temporarily disable transitions during initial load */
}

/* JavaScript will add 'is-visible' class on scroll */
.scroll-animate.is-visible {
    opacity: 1;
    animation: fadeInUp 1s ease-out forwards;
}

/* ========================================================== */
/* 3. Services Grid & Cards */
/* ========================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    /* Animation: Grid Entrance (Uses .scroll-animate or similar class on the grid container itself) */
}

/* Service Card - Base and 3D Setup */
.service-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s ease, 
                border-top-color 0.5s;
    transform-style: preserve-3d; /* Essential for 3D flip/tilt */
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-family: var(--font-devanagari);
}

/* Hover Animation (3D Tilt & Lift) */
.animation-hover:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-top-color: var(--secondary-color); /* Color change for effect */
}


/* ========================================================== */
/* 4. KUNDALI FLIP CARD (Interactive Premium Design) */
/* ========================================================== */

.kundali-flip-card {
    position: relative;
    height: 350px; /* Fixed height for flip effect */
    padding: 0; /* Remove padding from .service-card */
    transform-style: preserve-3d; 
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); /* Smooth flip transition */
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: none; /* Flip card has its own border on front */
}

/* Disabling the default hover on the flip card to avoid conflict */
.kundali-flip-card.animation-hover:hover {
    transform: rotateY(180deg); /* The main flip action */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Keep shadow fixed */
    border-top-color: initial;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back side during flip */
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-front {
    background-color: var(--light-bg);
    z-index: 2;
    border-top: 5px solid var(--primary-color); /* Front accent */
}

.card-back {
    background-color: var(--secondary-color);
    color: #fff;
    transform: rotateY(180deg); /* Start the back side rotated */
    border-top: 5px solid var(--primary-color); /* Back accent */
}

.card-back h3 {
    color: var(--primary-color); /* Highlight color on back */
}

.card-back ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.card-back ul li {
    font-size: 1.1em;
    line-height: 2;
    margin-bottom: 5px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.flip-prompt {
    margin-top: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    animation: flash-text 1.5s infinite;
}

/* Flip Prompt Text Animation */
@keyframes flash-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================================== */
/* 5. Section Footer Button (Responsive) */
/* ========================================================== */

.secondary-btn {
    /* Existing base styles */
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
    display: inline-block; /* Ensure it stays inline-block on desktop */
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}
.secondary-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ========================================================== */
/* 6. RESPONSIVENESS (Grid & Button) */
/* ========================================================== */

@media (max-width: 900px) {
    /* Services Grid will automatically stack/adjust due to auto-fit */
}

@media (max-width: 600px) {
    /* Flip Card Height Adjustment */
    .kundali-flip-card {
        height: 320px;
    }
    .card-back ul li {
        font-size: 1em;
        line-height: 1.5;
    }

    /* Button Blockification */
    .secondary-btn { 
        padding: 10px 18px; 
        font-size: 0.9em; 
        display: block;  /* Full width button */
        margin: 50px auto 0; /* Margin-top fix */
        width: 80%; 
    }
}

/* ========================================================== */
/* A. Basic Reset & Global Styles (Unchanged - Good Practice) */
/* ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Color Palette */
:root {
    --primary-color: #4fe2e7; /* Saffron/Gold - Stronger Focus */
    --secondary-color: #333; /* Deep Blue - Stability */
    --accent-color: #ff5722; /* New: Orange-Red for highlights */
    --text-color: #444;
    --light-bg: #ffffff;
    --dark-bg: #1c2a37; /* Slightly darker/richer dark blue */
    --font-devanagari: 'Tiro Devanagari Sanskrit', serif;
}


/* ========================================================== */
/* B. Header & Navigation - Glassmorphism & Micro-Animations */
/* ========================================================== */

.main-header {
    background-color: rgba(28, 42, 55, 0.9); /* Semi-transparent dark bg */
    backdrop-filter: blur(5px); /* Glassmorphism Effect */
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Deeper shadow */
    transition: background-color 0.3s ease;
}

.logo {
    font-size: 1.9em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(1deg); /* Subtle playful animation */
}

.nav-links a, .nav-links button {
    /* ... existing styles ... */
    position: relative;
    overflow: hidden; /* For underline animation */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth animation */
}

.nav-links a:hover::after {
    width: 100%; /* Line expand animation */
}

/* CTA Button Animation - Upgraded Pulse */
.cta-button {
    /* ... existing styles ... */
    border: 2px solid var(--primary-color) !important;
    animation: advanced-pulse 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.cta-button:hover {
    background-color: var(--accent-color) !important; /* New Accent color on hover */
    transform: scale(1.1); /* Stronger scale */
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.8); /* Glow effect on hover */
}


/* ========================================================== */
/* C. Section Titles & Buttons - Dynamic Underline & Press */
/* ========================================================== */

/* ========================================================== */
/* C. Testimonials Section - Highly Responsive and Attractive */
/* ========================================================== */

.testimonial-section {
    background-color: #fcf3e8; /* Light background color */
}

.testimonial-grid {
    display: grid;
    /* Desktop: Two columns, minimum 300px each, max-width adjusted */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Base Card Style (Used in place of .service-card for clarity) */
.testimonial-card {
    background-color: var(--light-bg);
    padding: 30px; /* Reduced padding slightly for a tighter look */
    border-radius: 15px; /* Smoother, modern corners */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Nicer shadow */
    border-top: 8px solid var(--accent-color); /* Stronger accent color border */
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-top-color 0.4s;
}

/* Hover Effect: Stronger Lift and Accent Change */
.testimonial-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-top-color: var(--primary-color); 
}

/* Quote Text Style */
.quote-text {
    font-style: italic;
    font-size: 1.25em; /* Slightly larger quote text */
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Quote Icon */
.quote-text .fas.fa-quote-left {
    color: var(--accent-color);
    font-size: 1.5em; /* Larger icon */
    margin-right: 10px;
    vertical-align: top;
}

/* Client Name/Attribution Style */
.client-name {
    text-align: right;
    margin-top: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.05em;
    position: relative;
}

/* Client Name Underline */
.client-name::before {
    content: '';
    position: absolute;
    right: 0;
    top: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


/* ========================================================== */
/* C. RESPONSIVENESS (Testimonials Section) */
/* ========================================================== */

@media (max-width: 768px) {
    .testimonial-grid {
        /* This will automatically make cards full width due to minmax(300px, 1fr) 
           as the screen width will be less than 600px. */
        gap: 20px; /* Reduced gap */
    }
    
    .testimonial-card {
        padding: 30px 25px; /* Adjust padding for mobile */
    }
    
    .quote-text {
        font-size: 1.1em; /* Smaller font size on mobile */
    }
    
    .client-name {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 20px;
        border-radius: 10px;
    }
    .quote-text {
        font-size: 1em;
    }
    .quote-text .fas.fa-quote-left {
        font-size: 1.3em;
    }
}

.section-title {
    /* ... existing styles ... */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-bg); /* Title color change for better contrast */
    padding-bottom: 20px;
}

/* Dynamic 3-Part Underline */
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0; /* Changed from -10px */
    transform: translateX(-50%);
    width: 100px; /* Wider line */
    height: 6px; /* Thicker line */
    background: linear-gradient(to right, 
                var(--secondary-color) 0%, 
                var(--primary-color) 50%, 
                var(--secondary-color) 100%);
    border-radius: 3px;
}

/* Buttons - Upgraded Press Effect */
.primary-btn {
    /* ... existing styles ... */
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
}

.primary-btn:hover {
    /* ... existing styles ... */
    transform: scale(1.08) translateY(-3px); /* Stronger lift */
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.6);
}

.primary-btn:active {
    transform: scale(0.95); /* Press Effect */
    box-shadow: 0 2px 5px rgba(255, 153, 0, 0.2);
}

.secondary-btn {
    /* ... existing styles ... */
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    /* ... existing styles ... */
    border-color: var(--primary-color);
    transform: scale(1.08) translateY(-3px);
}
.secondary-btn:active {
    transform: scale(0.95); /* Press Effect */
}


/* ========================================================== */
/* D. Hero Slider - Advanced Background Animation (Ken Burns) */
/* ========================================================== */

/* NOTE: Ken-Burns requires using a specific background image per slide
   and setting the animation on the container or a pseudo-element. 
   I've put a basic structure here.
*/

.hero-slider-container {
    height: 70vh; /* Use Viewport Height for better scale */
    min-height: 500px;
    /* ... existing styles ... */
    background-size: 110% 110%; /* Initial large size for KB effect */
    animation: ken-burns-zoom 20s infinite alternate; /* Background zoom animation */
}

/* Fade animation is good, keep it. */


/* ========================================================== */
/* E. Service Cards - 3D Hover (Kundali Flip Card is great!) */
/* ========================================================== */

.service-card {
    /* ... existing styles ... */
    overflow: hidden; /* Clean up sharp edges during tilt */
    position: relative;
}

/* New: Subtle background particle-like effect on card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, 
                rgba(255, 153, 0, 0.05) 0%, 
                rgba(255, 255, 255, 0) 70%);
    transition: opacity 0.5s ease;
    opacity: 0;
    pointer-events: none; /* Make sure it doesn't block interaction */
}

/* Hover Animation (3D Tilt & Lift) - Existing but strong */
.animation-hover:hover {
    transform: perspective(1000px) rotateX(3deg) translateY(-18px); /* More dramatic tilt/lift */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); /* Stronger, wider shadow */
    border-top-color: var(--secondary-color);
}

.animation-hover:hover::before {
    opacity: 1; /* Show subtle particle glow on hover */
}


/* ========================================================== */
/* F. Aarti Page Specific - Modern Scroll Effect */
/* ========================================================== */

.aarti-card {  
    background-color: var(--light-bg); /* Use light-bg for clean look */
    border: 1px solid #e0e0e0;
    padding: 40px 5%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 30px auto;
    overflow: hidden; /* Essential for effect */
    position: relative;
}

.aarti-card h2 {
    color: var(--accent-color); /* Highlight with accent color */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.aarti-text-content {
    /* ... existing styles ... */
    max-height: 400px; /* Fixed height for scroll box */
    overflow-y: scroll; /* Enable scrolling */
    padding-right: 15px; /* Space for scrollbar */
    position: relative;
    /* Custom Scrollbar - For Webkit browsers (Chrome, Safari) */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

/* Subtle gradient mask to suggest more content below */
.aarti-text-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--light-bg), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* ========================================================== */
/* G. Footer - Modern Layout (Already Good, Minor Polish) */
/* ========================================================== */
.main-footer {
    /* ... existing styles ... */
    border-top: 5px solid var(--primary-color); /* Stronger separation */
}

/* ========================================================== */
/* H. Master Animation Keyframes */
/* ========================================================== */

/* Upgraded Pulse for CTA */
@keyframes advanced-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 153, 0, 0);
    }
    75% {
        box-shadow: 0 0 0 5px rgba(255, 153, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}

/* Ken Burns Zoom Effect */
@keyframes ken-burns-zoom {
    0% {
        background-size: 110% 110%;
        background-position: center center;
    }
    100% {
        background-size: 100% 100%;
        background-position: top left;
    }
}

/* Fade In Up (Keep existing, good for scroll reveal) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); } /* Stronger effect */
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================== */
/* I. Scroll Animate - Sequence (For JS integration) */
/* ========================================================== */

.scroll-animate.is-visible:nth-child(1) { animation-delay: 0.1s; }
.scroll-animate.is-visible:nth-child(2) { animation-delay: 0.3s; }
.scroll-animate.is-visible:nth-child(3) { animation-delay: 0.5s; }
.scroll-animate.is-visible:nth-child(4) { animation-delay: 0.7s; }

/* The .scroll-animate class on child elements will now load in sequence! */

/* ========================================================== */
/* D. Floating Contact Buttons (WhatsApp & Call) */
/* ========================================================== */

.floating-contact {
    position: fixed;
    bottom: 25px; /* Bottom position */
    right: 25px; /* Right side position */
    z-index: 1050; /* Above everything else */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between buttons */
}

.contact-btn {
    width: 55px; /* Fixed size */
    height: 55px;
    border-radius: 50%; /* Perfect circle */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.6em; /* Large icon size */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bounce transition */
    position: relative;
    cursor: pointer;
    overflow: hidden; /* For the ripple effect */
}

/* WhatsApp Specific Styles */
.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}

/* Phone Call Specific Styles */
.call-btn {
    background-color: var(--accent-color); /* Your Accent Orange/Red */
}

/* Button Hover Effect: Pop and Rotate */
.contact-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Ripple/Ping Animation (for attention) */
.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: -1;
    animation: ripple-ping 2s infinite;
}
/* Delay the ping on the second button for a staggered effect */
.call-btn::before {
    animation-delay: 1s; 
}


/* Tooltip (Hover Label) Style */
.contact-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px; /* Position next to the button */
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.9em;
    opacity: 1;
    transition: opacity 0.3s ease, right 0.3s ease;
}
.contact-btn[data-tooltip]::after {
    opacity: 0;
    right: 55px;
}


/* ========================================================== */
/* E. Thank You Popup Message (Transient Notification) */
/* ========================================================== */

.thank-you-popup {
    position: fixed;
    top: 100px; /* Position below the header */
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Initial invisible state */
    z-index: 1100;
    opacity: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.7, 1);
    font-weight: 600;
    text-align: center;
}

.thank-you-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Slide down to visible state */
}


/* ========================================================== */
/* F. Keyframes for Floating Button Animation */
/* ========================================================== */

@keyframes ripple-ping {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}


/* ========================================================== */
/* G. Responsiveness for Floating Buttons */
/* ========================================================== */

@media (max-width: 600px) {
    /* For smaller screens, position them a bit closer to the edge */
    .floating-contact {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .contact-btn {
        width: 50px; /* Slightly smaller size */
        height: 50px;
        font-size: 1.4em; 
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    /* Hide the Tooltip on mobile as the screen is small */
    .contact-btn[data-tooltip]:hover::after {
        display: none;
    }

    .thank-you-popup {
        top: 80px; /* Adjust popup position for smaller header */
        width: 90%; /* Take up most of the width */
        padding: 10px 20px;
        font-size: 0.9em;
    }
}


.logo-with-image {
    display: flex;
    align-items: center;
    font-size: 1.9em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.logo-img {
    width: 40px; /* Adjust size as needed */
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 50%; /* If you want a circular image */
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.logo-text {
    /* Keep the text color and font styles */
    color: var(--primary-color);
    font-weight: 800;
}

/* Remove the old .logo style that conflicts with the image setup if it's separate */
/* .logo { 
    font-size: 1.9em;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
} */
/* Ensure to remove or comment out the simple .logo block from your previous CSS */

/* ... rest of your CSS ... */

/* ========================================================== */
/* O. Gallery Page Specific Styles */
/* ========================================================== */
/* ========================================================== */
/* J. Gallery Page Specific Styles (FINAL) */
/* ========================================================== */

.gallery-page { padding-top: 50px; }

/* Subtitle for sections within the gallery */
.section-subtitle { 
    font-size: 2em; 
    color: var(--secondary-color); /* Changed to secondary for better hierarchy */
    margin-top: 60px; 
    margin-bottom: 30px; 
    font-weight: 700;
}

/* --- 1. Video Gallery Grid --- */
.video-gallery-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    max-width: 1200px; 
    margin: 0 auto 50px;
}

.video-card {
    display: block; /* Make the whole card clickable */
    background-color: var(--light-bg); 
    border-radius: 10px; 
    box-shadow: var(--shadow-medium);
    overflow: hidden; 
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.video-card:hover { 
    transform: scale(1.02); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.video-thumb-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb {
    transform: scale(1.1); /* Zoom effect on hover */
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3.5em; /* Large play button */
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.video-card:hover .play-icon {
    color: var(--accent-color); /* Color change on hover */
    font-size: 4em;
    opacity: 1;
}

.video-card p { 
    padding: 15px; 
    font-size: 1em;
    color: var(--secondary-color); 
    font-weight: 600; 
    text-align: center;
}


/* --- 2. Photo Gallery Grid --- */
.photo-gallery-grid {
    /* Reuses .services-grid layout */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly smaller photo cards */
    margin-bottom: 50px;
    gap: 20px;
}

.photo-card {
    background-color: var(--light-bg); 
    border-radius: 10px; 
    box-shadow: var(--shadow-light);
    overflow: hidden; 
    cursor: pointer; 
    transition: all 0.4s ease; 
    border: 3px solid transparent;
}

.photo-card img {
    width: 100%; 
    height: 180px; /* Adjusted fixed height */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-card:hover {
    transform: scale(1.05) rotate(-1deg); /* Slight zoom-out effect on hover */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); 
    border-color: var(--primary-color);
}
.photo-card:hover img { 
    transform: scale(1.1);
}

.photo-caption { 
    padding: 10px 15px; 
    font-size: 0.9em; 
    color: var(--text-color); 
    text-align: center; 
}


/* --- Responsiveness for Gallery --- */
@media (max-width: 600px) {
    .section-subtitle {
        font-size: 1.6em;
        margin-top: 40px;
    }
    
    .video-gallery-grid {
        grid-template-columns: 1fr; /* Stack videos vertically */
        gap: 20px;
    }
    
    .photo-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Allow 2 columns on small screens */
        gap: 15px;
    }
    
    .photo-card img {
        height: 140px; /* Adjust image height for mobile */
    }
}

/* ========================================================== */
/* FINAL FIX: Mobile Image Position (Hero Slider) */
/* ========================================================== */

/* FIX: Ensure the background property from inline style is correctly handled. 
   We target the 'slide' class within the media query.
*/
@media (max-width: 600px) {
    /* 1. Adjust the height on very small screens */
    .hero-slider-container {
        height: 250px; /* Reduced height to save screen space on mobile */
        min-height: 200px;
    }
    
    /* 2. IMPORTANT FIX: Change Background Position for Mobile */
    .slide {
        /* This will override the inline 'center center' to 'top center' or 'top' 
           to ensure the main subject (like a face or top half) is visible. */
        background-position: top center !important; 
        /* The image will try to align its top edge to the top of the container. */
    }

    /* 3. Adjust text size for readability */
    .slide h2 {
        font-size: 1.8em; /* Smaller, readable title */
    }
    .slide p {
        font-size: 1em; /* Smaller, readable text */
    }
}




