:root {
    --bg-color: #fdfaf5; /* Lighter, warmer background */
    --text-color: #2b2b2b;
    --card-bg: #ffffff;
    --footer-bg: #eee2c0;
    --primary-color: #8B4513; /* SaddleBrown for a traditional touch */
    --accent-color: #FFA500; /* Orange for highlights */
    --dark-brown: #5A2D0C;
    --light-cream: #FFF8E1;
    --dark-green-whatsapp: #128C7E;
    --light-green-whatsapp: #25D366;
    --water-blue: #00BFFF; /* DeepSkyBlue */
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Modern font */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative; /* For floating elements */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Common Section Titles */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Header --- */
header {
    width: 100%;
    position: relative;
    z-index: 1000;
}
.top-bar {
    background-color: var(--light-cream);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px; /* Slightly larger logo */
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem; /* Larger font size for title */
    color: var(--dark-brown);
    font-weight: 700;
}

/* Menu Toggle Button with Icon */
.toggle-buttons {
    display: block; /* Ensure toggle button is visible in mobile */
}
.toggle-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1; /* Aligns icon vertically */
}

.menu-icon {
    font-size: 2.0rem; /* Size of the Font Awesome icon */
    color: var(--primary-color); /* Color of the icon */
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Advanced Fullscreen Navbar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* Semi-transparent white overlay */
    transform: translateX(100%); /* Initially off-screen */
    z-index: 1010; /* Increased z-index */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Ensures it's not focusable when hidden */
    opacity: 0; /* For fade effect when shown */
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease, visibility 0s linear 0.5s; /* Added visibility transition delay for hiding */
}

.main-nav.show {
    transform: translateX(0); /* Slide in */
    visibility: visible; /* Make visible */
    opacity: 1; /* Fade in */
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.3s ease, visibility 0s linear 0s; /* No delay on visibility transition when showing */
}

.main-nav .close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-nav .close-button:hover {
    transform: rotate(90deg);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.main-nav li {
    margin: 20px 0;
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.main-nav.show li {
    opacity: 1; /* Fade in */
    transform: translateY(0);
}

/* Staggered animation for nav items */
.main-nav.show li:nth-child(1) { transition-delay: 0.1s; }
.main-nav.show li:nth-child(2) { transition-delay: 0.2s; }
.main-nav.show li:nth-child(3) { transition-delay: 0.3s; }
.main-nav.show li:nth-child(4) { transition-delay: 0.4s; }
.main-nav.show li:nth-child(5) { transition-delay: 0.5s; } /* For sitemap / contact */


.main-nav li a {
    font-size: 2.5rem; /* Large menu items */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.main-nav li a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    overflow: hidden; /* Ensures no content spills out */
}

.slideshow-container {
    width: 100vw;
    height: 550px; /* Consistent height for desktop */
    position: relative;
    overflow: hidden;
}

.mySlides {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: .4 }
    to { opacity: 1 }
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999; /* Lower z-index than navbar */
}

.dot {
    cursor: pointer;
    height: 12px; /* Slightly larger dots */
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.3s ease;
}

.active, .dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9); /* More opaque */
    padding: 30px; /* More padding */
    border-radius: 15px; /* Softer corners */
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    animation: fadeInScale 1s ease-out forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.hero-text h2 {
    font-size: 2.8rem; /* Larger heading */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

/* New Homepage Action Buttons */
.homepage-actions {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
}

.homepage-actions .btn {
    position: relative; /* For flower/ripple effect */
    display: inline-flex; /* Use flex for icon & text alignment */
    align-items: center;
    justify-content: center;
    padding: 15px 35px; /* Larger padding for prominent buttons */
    font-size: 1.2rem; /* Larger font size */
    font-weight: 600;
    border-radius: 10px; /* More rounded corners */
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    overflow: hidden; /* Hide overflow from ripple */
    z-index: 1;
}

.homepage-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4); /* Ripple color */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
    z-index: -1;
    opacity: 0;
}

.homepage-actions .btn.ripple-active::before { /* Use .ripple-active class from JS */
    width: 200%;
    height: 200%;
    opacity: 1;
}

.homepage-actions .btn:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

.homepage-actions .btn i {
    margin-right: 8px; /* Space between icon and text */
}

.btn-donate-large {
    background-color: #28a745; /* Green for donate */
    color: white;
}
.btn-donate-large:hover {
    background-color: #218838;
}

.btn-about-large {
    background-color: #007bff; /* Blue for about */
    color: white;
}
.btn-about-large:hover {
    background-color: #0056b3;
}

.btn-gallery-large {
    background-color: #17a2b8; /* Cyan for gallery */
    color: white;
}
.btn-gallery-large:hover {
    background-color: #138496;
}

/* --- Introduction Section --- */
.introduction-section {
    padding: 80px 20px;
    background-color: var(--light-cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.introduction-section .section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.introduction-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.intro-description {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    min-height: 5.4em; /* Approx height for 3 lines, prevents layout shift */
    display: inline-block; /* For typing effect */
    vertical-align: top; /* For typing effect */
    border-right: 2px solid rgba(0,0,0,0.7); /* Cursor for typing effect */
    white-space: pre-wrap; /* Preserve whitespace and allow wrapping */
    overflow: hidden; /* Hide overflowing text */
    animation: blink-caret 0.75s step-end infinite; /* Cursor blink */
}

/* Remove cursor when typing is done or not active */
.intro-description.typing-done {
    border-right: none;
    animation: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(0,0,0,0.7) }
}

.btn-primary-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary-small:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}


/* --- Mahadev Shivling Section --- */
.mahadev-section {
    background: linear-gradient(to bottom right, #fdfaf5, #fff4e6); /* Subtle gradient background */
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shivling-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.shivling-img {
    width: 200px; /* Size of Shivling image */
    height: 200px;
    object-fit: contain;
    animation: rotate3D 15s linear infinite; /* 3D rotation animation */
    transform-style: preserve-3d; /* Enable 3D transformations */
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.3)); /* Soft shadow */
    z-index: 2; /* Ensure Shivling is above stream */
}

@keyframes rotate3D {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Water Stream Effect - Refined */
.water-source-cloud {
    position: absolute;
    top: -20px; /* Position above shivling */
    left: 50%; /* Center the cloud */
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border-radius: 50% 50% 0 0 / 100px 100px 0 0; /* Cloud shape */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1; /* Below Shivling, above stream */
    animation: floatCloud 5s ease-in-out infinite alternate;
}

@keyframes floatCloud {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.water-stream {
    width: 15px; /* Width of the stream */
    height: 0;
    background: linear-gradient(to bottom, var(--water-blue), rgba(var(--water-blue), 0.5));
    position: absolute;
    top: 50px; /* Start below cloud, aligned with Shivling top */
    left: 50%; /* Position above Shivling, centered */
    transform: translateX(-50%);
    border-radius: 5px;
    animation: waterFall 2s linear infinite; /* Faster and continuous */
    z-index: 0; /* Behind shivling image, but in front of glow */
    opacity: 0; /* Hidden initially */
}

@keyframes waterFall {
    0% { height: 0; opacity: 0; transform: translateX(-50%) translateY(0); }
    10% { height: 40px; opacity: 1; }
    80% { height: 150px; opacity: 1; } /* Falls onto shivling */
    90% { height: 150px; opacity: 0.5; }
    100% { height: 0; opacity: 0; transform: translateX(-50%) translateY(180px); } /* End below shivling */
}

.water-splash {
    position: absolute;
    bottom: -10px; /* Position at the base of shivling */
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 60px;
    height: 15px;
    background-color: var(--water-blue);
    border-radius: 50%;
    opacity: 0;
    animation: splashEffect 2s linear infinite; /* Matches waterFall duration */
    z-index: 0;
}

@keyframes splashEffect {
    0% { transform: translateX(-50%) scale(0); opacity: 0; }
    75% { transform: translateX(-50%) scale(0); opacity: 0; } /* Delay to align with water arrival */
    80% { transform: translateX(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}


.mahadev-section h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.mahadev-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Services Section --- */
.services {
    padding: 60px 20px;
    background-color: var(--light-cream);
    text-align: center;
}

.services h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 700;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Increased gap */
}

.card {
    background-color: var(--card-bg);
    padding: 30px; /* More padding */
    width: 320px; /* Slightly wider cards */
    border-radius: 15px; /* Softer corners */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card .service-icon {
    font-size: 3.5rem; /* Larger icons for services */
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Panchi Seva Flying Effect */
#flying-dove {
    animation: flyEffect 4s infinite ease-in-out; /* Continuous flying animation */
}

@keyframes flyEffect {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px) rotate(5deg);
        color: #87CEEB; /* Sky blue */
    }
    50% {
        transform: translateY(0) translateX(0);
    }
    75% {
        transform: translateY(-5px) translateX(-5px) rotate(-5deg);
        color: #6495ED; /* Cornflower blue */
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}


.card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    font-size: 1.05rem;
    color: #555;
}

/* --- Impact/Statistics Section --- */
.impact-section {
    padding: 80px 20px;
    background-color: #f5f5dc; /* Lighter shade of beige */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.impact-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items for mobile and desktop */
    gap: 30px;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 220px; /* Fixed width for stats */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-item .impact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease; /* Added transform for grow effect */
}

/* Specific icon hover effects */
.stat-item:hover .fa-cow {
    color: #a0522d; /* Sienna */
    transform: scale(1.1);
}

.stat-item:hover .fa-tree {
    color: #28a745; /* Green color on hover */
    transform: scale(1.1);
}

.stat-item:hover .fa-handshake,
.stat-item:hover .fa-chart-line {
    color: var(--accent-color); /* Orange color on hover */
    transform: scale(1.1);
}

.stat-number {
    font-size: 3.5rem; /* Large number */
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--dark-brown);
    font-weight: 500;
    margin: 0;
}


/* --- Latest Updates Snippet (from Gallery's News) --- */
.latest-updates-snippet {
    padding: 60px 20px;
    background-color: var(--bg-color);
    text-align: center;
}

.news-display-box {
    background-color: #e6f7ff; /* Light blue for news */
    border: 1px solid #b3e0ff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
    margin: 0 auto 30px auto;
    max-width: 700px;
    text-align: left; /* Align text inside box to left */
    position: relative; /* For overlay */
    overflow: hidden; /* Hide overflowing overlay initially */
    transition: all 0.3s ease;
    cursor: default; /* Indicate non-clickable by default */
}

/* Share & Admin Overlay for news box */
.share-admin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.news-display-box:hover .share-admin-overlay,
.news-display-box.active .share-admin-overlay { /* .active for touch devices */
    opacity: 1; /* Show on hover/touch */
}

.share-whatsapp-btn, .admin-edit-news-btn {
    background-color: var(--light-green-whatsapp);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.share-whatsapp-btn:hover {
    background-color: var(--dark-green-whatsapp);
    transform: translateY(-2px);
}
.share-whatsapp-btn i {
    font-size: 1.5rem;
}

.admin-edit-news-btn {
    background-color: #ffc107; /* Yellow for edit */
    color: #333;
}
.admin-edit-news-btn:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}
.admin-edit-news-btn i {
    font-size: 1.5rem;
}


.news-image-container {
    width: 100%;
    max-height: 250px; /* Limit height of news image */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex; /* To center image */
    justify-content: center;
    align-items: center;
}
.news-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.current-news-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #333;
}

.news-date {
    font-size: 0.85rem;
    color: #777;
    text-align: right;
    display: block;
}


/* --- Contact Section Styles --- */
.contact-section {
    padding: 80px 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

.contact-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Contact section titles already handled by .section-title */

.contact-description {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    max-width: 850px;
    margin: 0 auto 60px auto;
    line-height: 1.8;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 2.2rem;
    color: var(--accent-color);
    width: 40px;
    text-align: center;
    margin-top: 2px;
}

.info-item h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.info-item p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

.info-item p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Colorful Map Styling */
.contact-map {
    flex: 2;
    min-width: 350px;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.contact-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-map iframe {
    border-radius: 12px;
    flex-grow: 1;
    /* Adding filters for colorful effect */
    filter: hue-rotate(20deg) saturate(1.5) brightness(0.9); /* Adjust values as desired */
    transition: filter 0.5s ease;
}

.contact-map iframe:hover {
    filter: hue-rotate(0deg) saturate(1.2) brightness(1); /* Subtle change on hover */
}


/* --- Bhamashah Section Styles (Developer Card) --- */
.bhamashah-section {
    padding: 80px 20px;
    background-color: var(--light-cream); /* A subtle, warm background color */
    color: var(--text-color);
    text-align: center;
    position: relative; /* For particle effect */
    z-index: 1; /* Ensure content is above particles */
    overflow: hidden;
}

.bhamashah-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.bhamashah-card {
    background-color: #ffffff;
    padding: 30px; /* Increased padding */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15); /* Stronger, more modern shadow */
    text-align: center;
    width: 100%;
    max-width: 450px; /* Wider card */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to top */
    position: relative;
    overflow: hidden;
}

.bhamashah-card:hover { /* .active for touch devices */
    transform: translateY(-15px); /* More pronounced lift */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}


.bhamashah-card img {
    width: 200px; /* Larger image */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 6px solid var(--primary-color); /* Thicker, primary color border */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bhamashah-card h3 {
    font-size: 2.2rem; /* Larger heading */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.bhamashah-card .developer-details {
    opacity: 1; /* Always visible, no hide/unhide effect */
    transform: translateY(0); /* No translation */
    transition: none; /* No transition for opacity/transform */
    text-align: center;
    padding-top: 10px; /* Space from title */
    position: static; /* No absolute positioning */
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.bhamashah-card .bhamashah-detail {
    font-size: 1.15rem;
    color: #777;
    margin-bottom: 10px;
}

.bhamashah-card .bhamashah-message {
    font-size: 1.2rem; /* Larger message text */
    color: #555;
    margin-bottom: 0;
    font-style: italic;
    margin-top: 15px; /* Adjust spacing */
    line-height: 1.8;
}

.bhamashah-note {
    font-size: 1.1rem;
    color: #888;
    margin-top: 60px;
    line-height: 1.6;
    font-weight: 500;
}

/* --- Particle Background for Footer Area --- */
.particle-bg {
    position: relative;
    height: 100px; /* Height of the particle area */
    background: linear-gradient(to top, #eee2c0, #fdfaf5);
    overflow: hidden;
    z-index: 0; /* Behind content but above footer */
}

.particle-bg::before,
.particle-bg::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: particleAnimation 15s infinite ease-in-out;
}

.particle-bg::before {
    width: 8px; height: 8px;
    top: 20%; left: 10%;
    animation-delay: 0s;
}
.particle-bg::after {
    width: 6px; height: 6px;
    top: 70%; right: 15%;
    animation-delay: 5s;
    background-color: rgba(255, 255, 255, 0.5);
}

@keyframes particleAnimation {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
    25% { transform: translateY(-10px) translateX(5px) scale(0.9); opacity: 0.8; }
    50% { transform: translateY(0) translateX(0) scale(1.1); opacity: 0.6; }
    75% { transform: translateY(10px) translateX(-5px) scale(0.95); opacity: 0.7; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.7; }
}


/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    text-align: center;
    padding: 20px; /* More padding */
    font-size: 0.9rem; /* Slightly larger font */
    color: var(--dark-brown);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2; /* Ensure footer is above particles */
}

footer p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--dark-green-whatsapp), var(--light-green-whatsapp)); /* Gradient background */
    color: white;
    width: 60px; /* Initial width for just icon */
    height: 60px;
    border-radius: 30px; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Adjust font size for text */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: width 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Hide text initially */
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5); /* Subtle white border */
}

.whatsapp-float i {
    font-size: 2.2rem; /* Icon size */
    margin-right: 0px; /* No margin initially */
    transition: margin-right 0.3s ease;
}

.whatsapp-float .whatsapp-text {
    font-weight: 600;
    white-space: nowrap; /* Prevent text wrapping */
    opacity: 0; /* Hidden initially */
    width: 0; /* No width initially */
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden; /* Hide overflowing text */
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #107c70, #20c25a); /* Slightly different gradient on hover */
    width: 200px; /* Expand width on hover */
}

.whatsapp-float:hover i {
    margin-right: 10px; /* Add margin on hover */
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1; /* Show text on hover */
    width: auto; /* Allow text to take width */
}


/* --- Back-to-Top Button --- */
#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 90px; /* Above WhatsApp button */
    right: 20px;
    z-index: 998;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}

/* --- Welcome Pop-up --- */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Above all other elements */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.welcome-popup.show {
    opacity: 1;
    visibility: visible;
}

.welcome-popup-content {
    background: linear-gradient(to bottom right, var(--light-cream), var(--card-bg));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px); /* Start slightly above center */
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.welcome-popup.show .welcome-popup-content {
    transform: translateY(0); /* Slide into place */
    opacity: 1;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.welcome-popup-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-popup-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup-btn:hover {
    color: #555;
}


/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .main-nav {
        position: static; /* Desktop: Navbar is static */
        transform: translateX(0);
        background: none;
        height: auto;
        flex-direction: row;
        box-shadow: none;
        transition: none;
        visibility: visible; /* Always visible on desktop */
        opacity: 1;
    }
    .main-nav .close-button, .toggle-buttons {
        display: none; /* Hide toggle button and close button on desktop */
    }
    .main-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .main-nav li {
        margin: 0 15px; /* Adjust spacing for desktop */
        opacity: 1; /* Always visible */
        transform: none;
    }
    .main-nav li a {
        font-size: 1.1rem; /* Smaller font for desktop menu */
        color: var(--text-color);
    }
    .main-nav li a:hover {
        color: var(--primary-color);
    }

    /* Desktop-specific navbar underline effect */
    .main-nav li a {
        position: relative;
        overflow: hidden;
    }
    .main-nav li a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        height: 2px;
        width: 0;
        background-color: var(--accent-color);
        transition: width 0.3s ease, left 0.3s ease;
    }
    .main-nav li a:hover::after {
        width: 100%;
        left: 0;
    }

    .whatsapp-float {
        width: 60px; /* Default width for icon only on desktop */
        padding: 10px;
    }
    .whatsapp-float .whatsapp-text {
        width: 0;
        opacity: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .hero {
        flex-direction: column;
        align-items: center;
    }
    .slideshow-container {
        height: 280px; /* Shorter height for mobile */
    }
    .slide-dots {
        bottom: 10px; /* Adjust dot position for mobile */
    }
    .hero-text {
        position: static;
        transform: none;
        background: rgba(255, 255, 255, 0.9);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        margin: 20px auto; /* Add margin for spacing */
        animation: none; /* Remove desktop specific animation */
    }
    .hero-text h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    /* Homepage action buttons responsive for mobile */
    .homepage-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .homepage-actions .btn {
        width: 100%; /* Full width buttons */
        padding: 12px 20px;
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }
    /* Mobile Navbar Font Alignment Fix */
    .main-nav li a {
        font-size: 1.8rem; /* Adjusted for mobile to fit better, still prominent */
        padding: 8px 0; /* Add some vertical padding */
    }
    .main-nav ul {
        width: 100%; /* Ensure ul takes full width */
        padding: 0 15px; /* Add horizontal padding to prevent links from touching edges */
    }


    .mahadev-section {
        padding: 40px 15px;
    }
    .shivling-img {
        width: 150px;
        height: 150px;
    }
    /* Adjusted for better water flow on mobile */
    .water-source-cloud {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
    }
    .water-stream {
        top: 40px;
        height: 120px;
        left: 50%;
        transform: translateX(-50%);
    }
    .water-splash {
        bottom: -5px;
    }
    .mahadev-section h3 {
        font-size: 2rem;
    }
    .mahadev-section p {
        font-size: 0.95rem;
    }
    .services h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    .service-cards {
        gap: 20px;
    }
    .card {
        width: 100%; /* Full width cards on mobile */
        max-width: 300px;
        padding: 25px;
    }
    .card h3 {
        font-size: 1.6rem;
    }
    .card p {
        font-size: 0.95rem;
    }

    /* Introduction Section Mobile */
    .introduction-section {
        padding: 50px 15px;
    }
    .introduction-section .section-title {
        font-size: 2.2rem;
    }
    .intro-description {
        font-size: 1rem;
    }

    /* Impact Section Mobile */
    .impact-section {
        padding: 50px 15px;
    }
    .impact-section .section-title {
        font-size: 2.2rem;
    }
    .impact-stats {
        flex-direction: column; /* Stack stats vertically */
        gap: 20px;
        align-items: center; /* Center items for mobile */
    }
    .stat-item {
        width: 100%; /* Full width */
        max-width: 250px; /* Constrain max width */
    }
    .stat-number {
        font-size: 3rem;
    }

    /* Latest Updates Snippet Mobile */
    .latest-updates-snippet {
        padding: 50px 15px;
    }
    .latest-updates-snippet .section-title {
        font-size: 2.2rem;
    }
    .news-display-box {
        padding: 20px;
    }
    .current-news-text {
        font-size: 1rem;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 50px 15px;
    }
    .contact-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    .contact-section .section-title::after {
        width: 70px;
        height: 4px;
        margin-top: 10px;
    }
    .contact-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }
    .info-item {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-item i {
        margin-bottom: 10px;
        font-size: 2rem;
        width: auto;
    }
    .info-item h3 {
        font-size: 1.4rem;
    }
    .info-item p {
        font-size: 0.95rem;
    }
    .contact-map {
        min-width: auto;
        height: 300px;
    }
    .contact-map iframe {
        height: 100%;
    }

    /* Bhamashah Section Mobile */
    .bhamashah-section {
        padding: 50px 15px;
    }
    .bhamashah-card {
        max-width: 90%;
        padding: 25px;
        height: auto; /* Allow height to adjust */
    }
    .bhamashah-card img {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
    }
    .bhamashah-card h3 {
        font-size: 1.8rem;
    }
    .bhamashah-card .bhamashah-detail,
    .bhamashah-card .bhamashah-message {
        font-size: 1rem;
    }
    .bhamashah-card .developer-details {
        opacity: 1; /* Always show details on mobile for ease of use */
        transform: translateY(0);
        position: static; /* Adjust positioning for mobile */
        padding-top: 0;
        width: auto;
    }
    .bhamashah-note {
        font-size: 0.9rem;
        margin-top: 40px;
    }
    .particle-bg {
        height: 60px; /* Shorter particle area on mobile */
    }

    .whatsapp-float {
        width: 50px; /* Smaller button on mobile */
        height: 50px;
        font-size: 1rem;
        padding: 10px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float i {
        font-size: 1.8rem;
    }
    .whatsapp-float:hover {
        width: 180px; /* Still expand on hover */
    }
}
/* आपके मौजूदा CSS में इन नियमों को जोड़ें या अपडेट करें */

/* --- Header --- */
/* ... (मौजूदा top-bar, logo styles) ... */

/* Menu Toggle Button (button itself) */
.toggle-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; /* आइकन के चारों ओर थोड़ी पैडिंग जोड़ें */
    border-radius: 50%; /* इसे गोलाकार बनाएं */
    transition: background-color 0.3s ease, transform 0.2s ease; /* होवर/एक्टिव इफेक्ट के लिए ट्रांज़िशन */
    display: flex; /* आइकन को सेंटर करने के लिए */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* सूक्ष्म छाया */
}

.toggle-buttons button:hover {
    background-color: rgba(var(--primary-color), 0.1); /* होवर पर हल्का बैकग्राउंड कलर */
    transform: scale(1.05); /* होवर पर थोड़ा बड़ा करें */
}

/* Menu Icon (the <i> tag itself) */
.menu-icon {
    font-size: 2.2rem; /* आइकन का साइज़ थोड़ा एडजस्ट करें */
    color: var(--primary-color); /* आइकन का कलर */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Click/Active effect for the button */
.toggle-buttons button:active {
    transform: scale(0.95); /* क्लिक करने पर थोड़ा 'दबे' */
    background-color: rgba(var(--primary-color), 0.2); /* क्लिक पर थोड़ा गहरा बैकग्राउंड */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* क्लिक पर छाया कम करें */
}

/* Optional: Animation for the bars icon on menu open */
/* जब मेनू खुलता है तो आइकन को X में बदलने के लिए */
.main-nav.show ~ header .toggle-buttons .menu-icon {
    transform: rotate(90deg); /* आइकन को थोड़ा घुमाएं */
    color: var(--accent-color); /* आइकन का कलर बदलें */
}

/* एक 'पल्स' एनीमेशन जोड़ें ताकि यह ध्यान आकर्षित करे */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.toggle-buttons button.attention-pulse {
    animation: pulse 1s infinite; /* हर 1 सेकंड में पल्स करें */
}