﻿:root {
    /* --- Sacred Theme Palette --- */

    /* Primary: Deep Earthy Saffron (Spiritual & Grounded) */
    --primary-color: #C25E00;
    --primary-dark: #9A4100;

    /* Secondary: Royal Crimson (Temple Velvet) */
    --secondary-color: #5D101D;

    /* Accents: Metallic Gold, not yellow */
    --accent-color: #D4AF37;

    /* Neutrals */
    --text-dark: #2C2420;
    /* Warm Black */
    --text-muted: #6B5D55;
    /* Warm Grey */
    --text-light: #F9F5F0;

    /* Backgrounds */
    --bg-light: #FFFCF5;
    /* Warm Parchment */
    --bg-white: #FFFFFF;

    /* Gradients */
    --gradient-saffron: linear-gradient(135deg, #C25E00 0%, #9A4100 100%);
    --gradient-royal: linear-gradient(135deg, #5D101D 0%, #3E060E 100%);
    --gradient-divine: linear-gradient(45deg, #D4AF37 0%, #F5D76E 100%);

    /* Shadows & Effects */
    --shadow-sm: 0 4px 15px rgba(194, 94, 0, 0.08);
    /* Colored shadow */
    --shadow-md: 0 10px 30px rgba(93, 16, 29, 0.1);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.15);

    --glass-bg: rgba(255, 252, 245, 0.95);
    --glass-border: 1px solid rgba(212, 175, 55, 0.2);
    /* Gold subtle border */
}

.drop-shadow-md {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navbar Premium --- */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    /* Slightly taller */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    top: 0;
    /* Ensure sticky/fixed behavior handles this */
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--secondary-color) !important;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    height: 75px;
    /* Slightly reduced for better fit */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 153, 51, 0.3));
    transition: transform 0.5s ease;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .brand-icon {
        height: 60px;
    }

    .brand-title {
        font-size: 1.3rem;
    }
}

.navbar-brand:hover .brand-icon {
    transform: rotate(15deg) scale(1.1);
}

.brand-text {
    line-height: 1.1;
}

.brand-title {
    display: block;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-subtitle {
    display: block;
    font-size: 0.65rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-dark);
    margin-top: 2px;
}

/* Nav Links */
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.9rem;
    /* Slightly smaller font */
    margin: 0 8px;
    /* Reduced margin */
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-saffron);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark) !important;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* CTA Button */

/* CTA Button */
.btn-donate {
    background: var(--gradient-saffron);
    color: white !important;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    margin-left: 1rem;
}

.btn-donate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(194, 94, 0, 0.4);
    letter-spacing: 2px;
}

.btn-donate:hover::after {
    opacity: 1;
}

/* WhatsApp Button in Nav */
.nav-whatsapp-btn {
    width: 40px;
    height: 40px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.nav-whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background: #128C7E;
}

/* Google Translate Widget Styling */
#google_translate_element {
    padding: 0;
    margin: 0;
}

.goog-te-gadget {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0 !important;
    /* Hide 'Powered by' text */
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    padding: 6px 10px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(0, 0, 0, 0.03) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    outline: none !important;
    cursor: pointer;
}

/* Hide Google Translate top bar */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
    display: none !important;
}

body {
    top: 0 !important;
}

@media (max-width: 1400px) {
    .nav-link {
        margin: 0 5px;
        font-size: 0.85rem;
    }

    .btn-donate {
        padding: 0.6rem 1.4rem;
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }
}

.lang-btn {
    border: none;
    background: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--white);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--secondary-color);
}

/* Footer Premium & Animated */
footer {
    background: linear-gradient(to bottom, #1a0f0a, #0f0500);
    /* Deep Coffee/Black */
    color: var(--text-light);
    padding-top: 6rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: none;
}


/* Animated Pattern Background */
.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDB2MTBIMHptMCAyMGg0MHYxMEgwMXoiIGZpbGw9IiMzMzMiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNhKSIvPjwvc3ZnPg==');
    background-size: 40px 40px;
    opacity: 0.3;
    animation: movePattern 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Floating Lamp/Diya Animation (Decorative) */
.footer-decoration {
    position: absolute;
    top: -30px;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(5deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Footer Content styling needs z-index to sit above pattern */
.footer-content {
    position: relative;
    z-index: 2;
}

footer h5 {
    color: var(--primary-color);
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

footer:hover h5::after {
    width: 60px;
}

.footer-text {
    color: #b0b0b0;
    line-height: 1.8;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.3);
    border-color: var(--primary-color);
}

.footer-link {
    display: block;
    color: #b0b0b0;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s;
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.footer-link::before {
    content: '›';
    margin-right: 8px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    color: #b0b0b0;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 2px;
    background: rgba(255, 153, 51, 0.1);

    border-radius: 8px;
}

/* Map Style */
.footer-map-container {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 153, 51, 0.2);
    transition: all 0.3s ease;
}

.footer-map-container:hover {
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
    border-color: var(--primary-color);
}

.footer-map-container iframe {
    width: 100%;
    height: 200px;
    border: 0;
    display: block;
    transition: transform 0.5s ease;
}

.footer-map-container:hover iframe {
    transform: scale(1.05);
}

/* Custom Dropdown (Language) */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: rgba(255, 153, 51, 0.1);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 153, 51, 0.3);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background: var(--primary-color);
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: white;
    min-width: 140px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px;
    z-index: 1050;
    animation: dropdownSlide 0.3s ease;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 153, 51, 0.1);
    color: var(--primary-dark);
}

.dropdown-content a.active {
    background-color: var(--primary-color);
    color: white;
}

.custom-dropdown:hover .dropdown-content {
    display: block;
}

.custom-dropdown:hover .dropdown-btn i.arrow {
    transform: rotate(180deg);
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Section Redesign --- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 1rem;
}

.display-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Section Redesign --- */
.section-padding {
    padding: 7rem 0;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    margin-left: -50px;
    /* Overlap effect */
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    pointer-events: none;
}

@media (max-width: 991px) {
    .about-card {
        margin-left: 0;
        margin-top: -30px;
    }
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.feature-list li i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    background: rgba(255, 153, 51, 0.1);
    padding: 8px;
    border-radius: 50%;
}

/* --- Gallery Redesign --- */
.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 350px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-caption {
    transform: translateY(0);
}

/* Utilities */
.text-saffron {
    color: var(--primary-color);
}

.text-maroon {
    color: var(--secondary-color);
}

/* Translation Fade Effect */

/* Particle Animation */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 153, 51, 0.6);
    border-radius: 50%;
    bottom: 0;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) translateX(var(--tx)) scale(0);
        opacity: 0;
    }
}

/* Additional Utilities */
.letter-spacing-4 {
    letter-spacing: 4px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.max-w-800 {
    max-width: 800px;
}

.transition-all {
    transition: all 0.3s ease;
}


.hero-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Section Redesign --- */
.section-padding {
    padding: 7rem 0;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}


.about-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    margin-left: -50px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    pointer-events: none;
}

@media (max-width: 991px) {
    .about-card {
        margin-left: 0;
        margin-top: -30px;
    }
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(194, 94, 0, 0.1);
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.feature-list li i {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-right: 20px;
    background: rgba(194, 94, 0, 0.08);
    /* Saffron tint */
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s;
}

.feature-list li:hover i {
    background: var(--primary-color);
    color: white;
}

/* --- Gallery Redesign --- */
.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 350px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(93, 16, 29, 0.9) 0%, rgba(194, 94, 0, 0.4) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    backdrop-filter: blur(2px);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}


.gallery-caption {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-caption {
    transform: translateY(0);
}


/* Utilities */
.text-saffron {
    color: var(--primary-color);
}

.text-maroon {
    color: var(--secondary-color);
}

.letter-spacing-4 {
    letter-spacing: 4px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.max-w-800 {
    max-width: 800px;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

/* Particle Animation (Fire) */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ff9933 0%, rgba(255, 0, 0, 0) 70%);
    border-radius: 50%;
    bottom: 0;
    box-shadow: 0 0 10px #ff9933;
    animation: floatUp 5s linear forwards;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-150px) translateX(var(--tx)) scale(0);
        opacity: 0;
    }
}

/* Live Wave Animation */
.parallax>use {
    animation: move-forever 20s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 5s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 8s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 11s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 18s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
}

/* --- Preloader Styles --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.om-symbol {
    font-size: 3.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    animation: pulseOm 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseOm {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 20px rgba(194, 94, 0, 0.4);
    }
}

.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Google Translate Customization --- */
#google_translate_element {
    margin-top: 5px;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(194, 94, 0, 0.3) !important;
    /* using primary-color-ish */
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    line-height: normal !important;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goog-te-gadget-simple:hover {
    background-color: #C25E00 !important;
    /* primary-color */
    border-color: #C25E00 !important;
}

.goog-te-gadget-simple:hover .goog-te-menu-value span {
    color: white !important;
}

.goog-te-menu-value {
    color: var(--text-dark) !important;
    font-family: 'Outfit', sans-serif !important;
}

.goog-te-menu-value span {
    color: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding-right: 5px !important;
}

.goog-te-menu-value img {
    display: none !important;
    /* Hide Google Icon */
}

/* Hide the Google Translate Top Bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Hide Tooltips */
.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* Ensure it stays above other content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b857;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-container {
    width: 35px;
    height: 35px;
}

.whatsapp-svg {
    fill: white;
    width: 100%;
    height: 100%;
}

/* Live Pulse Animation */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        /* Subtle grow */
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        /* Green ripple */
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }

}

/* --- Header WhatsApp Button --- */
.nav-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    border: 2px solid transparent;
    animation: wiggle 3s ease-in-out infinite;
}

.nav-whatsapp-btn:hover {
    background-color: white;
    color: #25d366 !important;
    border-color: #25d366;
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
    animation: none;
    /* Pause wiggle on hover */
}

/* Wiggle/Shake Animation */
@keyframes wiggle {

    0%,
    7% {
        transform: rotateZ(0);
    }

    15% {
        transform: rotateZ(-15deg);
    }

    20% {
        transform: rotateZ(10deg);
    }

    25% {
        transform: rotateZ(-10deg);
    }

    30% {
        transform: rotateZ(6deg);
    }

    35% {
        transform: rotateZ(-4deg);
    }

    40%,
    100% {
        transform: rotateZ(0);
    }

}

/* --- WhatsApp Chat Label --- */
.whatsapp-label {
    position: absolute;
    right: 70px;
    /* Position to the left of the button */
    background-color: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    animation: showLabel 3s infinite 2s;
    /* Delay start to let button appear first */
}

/* Tiny triangle pointing to button */
.whatsapp-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid white;
}

/* Hovering the button keeps the label visible */
.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    animation: none;
    /* Stop pulsing animation on hover */
}

@keyframes showLabel {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-20px);
    }

    10% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    90% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-20px);
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {

    /* Navbar text & logo adjustments */
    .brand-icon {
        height: 60px;
        /* Smaller logo on mobile */
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    /* Hero Section */
    .carousel-item {
        height: 85vh !important;
        /* Taller on mobile to fit content */
        min-height: auto !important;
    }

    .carousel-caption {
        padding-bottom: 3rem !important;
    }

    .carousel-caption img {
        /* The adv.png in hero */
        width: 100px !important;
        /* Smaller text logo */
    }

    .display-4 {
        font-size: 2.5rem;
        /* Smaller hero title */
    }

    .hero-lead,
    .lead {
        font-size: 1rem;
    }

    /* Section Spacing */
    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* About Section Swamiji Image */
    .col-lg-5 .rounded-circle {
        width: 250px !important;
        height: 250px !important;
    }

    .sacred-frame img {
        height: 300px !important;
    }
}

@media (max-width: 576px) {

    /* Extra small devices */
    .brand-text {
        display: none !important;
        /* Hide text, keep logo only if very tight */
    }

    /* Actually better to keep text but make it smaller */
    .brand-text {
        display: flex !important;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-icon {
        height: 50px;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .h3 {
        font-size: 1.2rem;
    }

    /* Stats */
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }

    .col-6:nth-last-child(-n+2) .border-end {
        border-bottom: none;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* --- Utilities for Math Info Card --- */
.text-xs {
    font-size: 0.75rem !important;
}

.hover-bg-light {
    transition: background-color 0.3s ease;
}

/* --- Custom Scrollbar for Seva Table --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Fade Animation for Language Switch */
.animation-fade {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Added Utilities for Annaprasada Section --- */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    /* Lighter base for contrast */
    border: 1px solid rgba(255, 193, 7, 0.2);
    /* Use warning color reference */
    padding: 2rem !important;
    /* Increase padding */
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow base */
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(0, 0, 0, 0.4)) !important;
    border-color: #ffc107 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
    /* Lift effect */
}

.counter {
    font-variant-numeric: tabular-nums;
    /* Prevent jitter during counting */
}

/* Animation for Live Indicator */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}


/* --- Global Responsiveness Fixes (Final) --- */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    width: 100vw;
}

/* Ensure no element exceeds viewport width */
* {
    max-width: 100vw;
}

img,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

/* Fix for AOS and Section Overflow */
section,
header,
footer,
main,
.container,
.container-fluid {
    overflow-x: clip;
    /* Modern fix for overflow without cutting off vertical shadows if possible, otherwise hidden */
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .display-1,
    .display-2,
    .display-3,
    .display-4,
    .display-5,
    .display-6 {
        word-wrap: break-word;
        hyphens: auto;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .display-6 {
        font-size: 1.4rem;
    }

    /* Hero Section - relaxed constraints */
    .hero-section .carousel-item {
        height: auto !important;
        min-height: auto !important;
        /* Allow natural height */
        padding-bottom: 2rem;
    }

    /* Navbar Brand Sizing */
    .navbar-brand {
        font-size: 1.1rem;
    }

    .brand-icon {
        height: 50px !important;
        width: auto !important;
    }

    .brand-subtitle {
        font-size: 0.5rem;
    }
}

/* --- Refined Clean Hero Header (V4) --- */
.page-header {
    position: relative;
    width: 100%;
    height: 320px;
    /* Increased length bit as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0c0000;
    margin-bottom: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Removed opacity and brightness filters for maximum clarity */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter overlay to let the image shine through */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 5;
    /* Higher z-index to stay above overlay */
    padding: 0 20px;
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    letter-spacing: 0.03em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    color: #fff;
    margin: 0;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: #f97316;
    /* Theme Orange */
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.page-header p {
    margin-top: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Optional Breadcrumbs */
.breadcrumb-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d4af37;
    /* Gold */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-item-custom:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .page-header {
        height: 220px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Allow tables to scroll if needed */
.table-responsive {
    overflow-x: auto !important;
}

/* --- Desktop Layout Fix: Prevent Header Overlap --- */
@media (min-width: 992px) {
    body {
        padding-top: 115px !important;
        /* Matches optimized header height (~107px) */
    }
}

body {
    padding-top: 85px !important;
    /* Mobile default */
}