/* VEERASASTHA TEMPLE - MAIN THEME */
:root {
    --temple-gold: #d4a017;
    --temple-gold-light: #f0c040;
    --temple-red: #c0392b;
    --temple-red-dark: #922b21;
    --temple-saffron: #e67e22;
    --temple-dark: #1a0a00;
    --temple-brown: #3e1f00;
    --temple-cream: #fdf6e3;
    --temple-white: #ffffff;
    --gradient-main: linear-gradient(135deg, #8B0000 0%, #c0392b 40%, #d4a017 100%);
    --gradient-gold: linear-gradient(135deg, #d4a017 0%, #f0c040 50%, #d4a017 100%);
    --gradient-dark: linear-gradient(135deg, #1a0a00 0%, #3e1f00 100%);
    --shadow-gold: 0 8px 32px rgba(212, 160, 23, 0.35);
    --shadow-red: 0 8px 32px rgba(192, 57, 43, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--temple-cream);
    color: var(--temple-dark);
    overflow-x: hidden;
}

/* SCROLLING BANNER */
.temple-banner {
    background: var(--gradient-main);
    background-size: 300% 300%;
    animation: bannerGrad 8s ease infinite;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1003;
}
@keyframes bannerGrad {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.temple-banner-track {
    display: inline-block;
    padding-left: 100%;
    animation: scrollBanner 35s linear infinite;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
@keyframes scrollBanner {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
.banner-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 60px;
}
.banner-item i { color: var(--temple-gold-light); }
.banner-sep { color: var(--temple-gold-light); margin: 0 20px; font-size: 18px; }

/* TOPBAR */
.temple-topbar {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.85);
    padding: 8px 0;
    font-size: 13px;
    z-index: 1002;
    position: relative;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.topbar-info a:hover { color: var(--temple-gold-light); }
.topbar-info i { color: var(--temple-gold); font-size: 13px; }
.topbar-social { display: flex; gap: 8px; }
.topbar-social a {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,160,23,0.15);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 50%;
    color: var(--temple-gold-light);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}
.topbar-social a:hover {
    background: var(--temple-gold);
    color: var(--temple-dark);
    transform: translateY(-2px);
}

/* HEADER / NAVBAR */
.temple-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.temple-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.18); }
.temple-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.temple-logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-name {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 1px;
}
.logo-tagline {
    font-size: 11px;
    color: var(--temple-saffron);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.temple-nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
.temple-nav-links a {
    display: block;
    padding: 9px 18px;
    color: var(--temple-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.25s;
    position: relative;
}
.temple-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s;
}
.temple-nav-links a:hover, .temple-nav-links a.active {
    color: var(--temple-red);
    background: rgba(192,57,43,0.07);
}
.temple-nav-links a:hover::after, .temple-nav-links a.active::after { width: 60%; }
.nav-donate-btn {
    background: var(--gradient-main) !important;
    color: #fff !important;
    border-radius: 25px !important;
    padding: 9px 22px !important;
    box-shadow: var(--shadow-red);
}
.nav-donate-btn::after { display: none !important; }
.nav-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(192,57,43,0.45) !important;
    background: var(--gradient-main) !important;
    color: #fff !important;
}
.mobile-nav-toggle {
    display: none;
    background: var(--gradient-main);
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}
.mobile-nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fff; margin: 5px 0;
    border-radius: 2px; transition: all 0.3s;
}

/* HERO SECTION */
.temple-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-dark);
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('../img/Veerasastha.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}
.hero-overlay-grad {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,10,0,0.85) 0%, rgba(192,57,43,0.6) 50%, rgba(212,160,23,0.4) 100%);
}
.hero-content-wrap {
    position: relative; z-index: 2;
    text-align: center;
    padding: 60px 20px;
}
.hero-om {
    font-size: 52px;
    color: var(--temple-gold-light);
    text-shadow: 0 0 30px rgba(212,160,23,0.8);
    animation: omGlow 3s ease-in-out infinite;
    display: block;
    margin-bottom: 10px;
}
@keyframes omGlow {
    0%,100% { text-shadow: 0 0 20px rgba(212,160,23,0.6); }
    50% { text-shadow: 0 0 50px rgba(212,160,23,1), 0 0 80px rgba(212,160,23,0.5); }
}
.hero-title-main {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: fadeUp 1s ease-out both;
}
.hero-title-sub {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--temple-gold-light);
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeUp 1s ease-out 0.2s both;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
    animation: fadeUp 1s ease-out 0.4s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeUp 1s ease-out 0.6s both;
}
.btn-temple-primary {
    padding: 14px 36px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-red);
    transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-temple-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(192,57,43,0.5);
    color: #fff;
}
.btn-temple-outline {
    padding: 14px 36px;
    background: transparent;
    color: var(--temple-gold-light);
    border: 2px solid var(--temple-gold);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-temple-outline:hover {
    background: var(--gradient-gold);
    color: var(--temple-dark);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.hero-stats {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
    margin-top: 50px;
    animation: fadeUp 1s ease-out 0.8s both;
}
.hero-stat {
    text-align: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 16px;
    padding: 20px 30px;
    min-width: 120px;
}
.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--temple-gold-light);
    display: block;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}

/* SECTION COMMON */
.section-header { text-align: center; margin-bottom: 50px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,160,23,0.12);
    border: 1px solid rgba(212,160,23,0.4);
    color: var(--temple-saffron);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--temple-dark);
    line-height: 1.3;
}
.section-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-divider {
    width: 60px; height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* POOJA TIMINGS */
.pooja-section {
    padding: 80px 0;
    background: #fff;
}
.pooja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.pooja-card {
    background: var(--temple-cream);
    border: 1px solid rgba(212,160,23,0.25);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.pooja-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-main);
}
.pooja-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--temple-gold);
}
.pooja-icon {
    width: 64px; height: 64px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #fff;
    box-shadow: var(--shadow-red);
}
.pooja-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--temple-dark);
    margin-bottom: 6px;
}
.pooja-time {
    font-size: 22px;
    font-weight: 800;
    color: var(--temple-red);
    margin-bottom: 6px;
}
.pooja-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* EVENTS SECTION */
.events-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdf6e3 0%, #fff8f0 100%);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid rgba(212,160,23,0.15);
}
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(192,57,43,0.15);
}
.event-header {
    background: var(--gradient-main);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.event-date-box {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    min-width: 60px;
    backdrop-filter: blur(10px);
}
.event-day { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.event-month { font-size: 11px; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px; }
.event-header-info h4 { color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.event-header-info span { color: rgba(255,255,255,0.8); font-size: 13px; }
.event-body { padding: 20px 24px; }
.event-body p { color: #555; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.event-tag {
    display: inline-block;
    background: rgba(212,160,23,0.12);
    color: var(--temple-saffron);
    border: 1px solid rgba(212,160,23,0.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ABOUT TEMPLE */
.about-section {
    padding: 80px 0;
    background: #fff;
}
.about-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.about-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.about-image-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--gradient-main);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-red);
}
.about-content { padding: 20px 0 20px 30px; }
.about-content p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 20px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.about-feature-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--temple-cream);
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--temple-dark);
}
.about-feature-item i { color: var(--temple-red); font-size: 16px; }

/* GALLERY PREVIEW */
.gallery-section {
    padding: 80px 0;
    background: var(--temple-cream);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    background: #ddd;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(192,57,43,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 28px; }
.gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(192,57,43,0.1), rgba(212,160,23,0.1));
    font-size: 40px;
    color: var(--temple-gold);
}

/* CONTACT SECTION */
.contact-section {
    padding: 80px 0;
    background: #fff;
}
.contact-card {
    background: var(--temple-cream);
    border: 1px solid rgba(212,160,23,0.25);
    border-radius: 20px;
    padding: 36px 32px;
    height: 100%;
}
.contact-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--temple-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212,160,23,0.3);
}
.contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 18px;
}
.contact-item-icon {
    width: 40px; height: 40px;
    background: var(--gradient-main);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}
.contact-item-text { font-size: 14px; color: #555; line-height: 1.5; }
.contact-item-text strong { display: block; color: var(--temple-dark); font-size: 13px; margin-bottom: 2px; }
.contact-form .form-control {
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 14px;
}
.contact-form .form-control:focus {
    border-color: var(--temple-gold);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
    outline: none;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
.temple-footer {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--temple-gold-light);
    margin-bottom: 8px;
}
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.5); font-style: italic; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-top: 14px; }
.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--temple-gold-light);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212,160,23,0.3);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.footer-links a i { color: var(--temple-gold); font-size: 12px; }
.footer-links a:hover { color: var(--temple-gold-light); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
.footer-contact-item i { color: var(--temple-gold); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,160,23,0.15);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 50%;
    color: var(--temple-gold-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--temple-gold);
    color: var(--temple-dark);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}
.footer-bottom span { color: var(--temple-gold); }

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 44px; height: 44px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-red);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
    text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); color: #fff; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .mobile-nav-toggle { display: block; }
    .temple-nav-links {
        display: none;
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 30px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 1001;
        gap: 4px;
    }
    .temple-nav-links.open { display: flex; right: 0; }
    .temple-nav-links a { width: 100%; padding: 12px 16px; }
    .about-content { padding: 30px 0 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .hero-stats { gap: 16px; }
    .hero-stat { padding: 14px 20px; min-width: 100px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .pooja-grid { grid-template-columns: 1fr 1fr; }
    .about-content { padding: 20px 0 0; }
}
