:root {
    --saffron: #E8521A;
    --deep-saffron: #C1400D;
    --gold: #F5C842;
    --gold-light: #FFE07A;
    --gold-dark: #B8960C;
    --maroon: #6B1A1A;
    --maroon-deep: #3D0B0B;
    --cream: #FFF8EE;
    --warm-white: #FFFDF5;
    --shadow-divine: 0 10px 40px rgba(232, 82, 26, 0.3);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--maroon-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-family: 'Noto Serif Gujarati', serif;
    font-size: clamp(30px, 6vw, 60px);
    color: var(--gold);
    text-align: center;
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 10px rgba(245, 200, 66, 0.5);
        transform: scale(1);
    }

    to {
        text-shadow: 0 0 30px var(--gold), 0 0 50px var(--saffron);
        transform: scale(1.05);
    }
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--maroon-deep);
    color: var(--cream);
    font-family: 'Noto Sans Gujarati', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grain Overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.2;
}

/* Typography */
h1,
h2,
h3,
.serif {
    font-family: 'Noto Serif Gujarati', serif;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 85px;
    background: rgba(61, 11, 11, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(245, 200, 66, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    height: 70px;
    background: rgba(61, 11, 11, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-logo-symbol {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--gold) 0%, var(--saffron) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 25px rgba(245, 200, 66, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(245, 200, 66, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(245, 200, 66, 0.8), 0 0 60px rgba(232, 82, 26, 0.3);
    }
}

.nav-logo-text {
    color: var(--gold);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.nav-logo-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(245, 200, 66, 0.7);
    font-family: 'Noto Sans Gujarati', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 248, 238, 0.85);
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-donate-btn {
    background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 5px;
    box-shadow: var(--shadow-divine);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.nav-donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(232, 82, 26, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: url('/assets/hero.png') center/cover no-repeat;
    filter: brightness(0.4) contrast(1.1);
    transform: scale(1.1);
    animation: hero-zoom 20s infinite alternate;
}

@keyframes hero-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(61, 11, 11, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.hero-om {
    font-size: 100px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--saffron));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(245, 200, 66, 0.6));
    margin-bottom: 10px;
    display: block;
    animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-title {
    font-size: clamp(50px, 8vw, 110px);
    font-weight: 900;
    background: linear-gradient(to bottom, #FFE07A, #F5C842, #E8521A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 25px rgba(0, 0, 0, 0.8));
    line-height: 1.5;
    padding-bottom: 30px;
    margin-bottom: 0px;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
    color: white;
    box-shadow: var(--shadow-divine);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(232, 82, 26, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.btn-outline:hover {
    background: rgba(245, 200, 66, 0.1);
    transform: translateY(-5px);
}

/* Ticker */
.ticker-wrap {
    background: var(--maroon);
    border-top: 1px solid var(--gold-dark);
    border-bottom: 1px solid var(--gold-dark);
    height: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ticker-item {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticker-item::before {
    content: '🚩';
}

/* Section Layout */
section {
    padding: 120px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.eyebrow {
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.title {
    font-size: clamp(32px, 5vw, 55px);
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.desc {
    color: rgba(255, 248, 238, 0.7);
    font-size: 18px;
}

/* About Section */
.about {
    background: #1A0400;
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.about-visual {
    flex: 1;
    min-width: 400px;
    position: relative;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 200, 66, 0.2);
    position: relative;
    z-index: 2;
}

.about-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--saffron);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

.about-content {
    flex: 1;
    min-width: 400px;
}

.about-content p {
    font-size: 19px;
    color: rgba(255, 248, 238, 0.85);
    margin-bottom: 25px;
    line-height: 1.8;
}

.highlight-card {
    background: rgba(107, 26, 26, 0.3);
    border-left: 5px solid var(--saffron);
    padding: 30px;
    margin-top: 40px;
    border-radius: 0 10px 10px 0;
}

/* Darshan Section */
.darshan {
    background: linear-gradient(180deg, var(--maroon-deep), #1A0400);
}

.timings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.timing-card {
    background: rgba(107, 26, 26, 0.4);
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    border: 1px solid rgba(245, 200, 66, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timing-card:hover {
    transform: translateY(-10px);
    background: rgba(107, 26, 26, 0.6);
    border-color: rgba(245, 200, 66, 0.4);
}

.timing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.timing-card:hover::before {
    transform: scaleX(1);
}

.timing-icon {
    font-size: 45px;
    margin-bottom: 20px;
    display: block;
}

.timing-name {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 10px;
}

.timing-time {
    font-size: 18px;
    color: var(--cream);
    font-weight: 600;
}

/* Gallery Section */
.gallery {
    background: #1A0400;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-span-2 {
    grid-column: span 2;
}

.gallery-row-2 {
    grid-row: span 2;
}

/* Seva Section */
.seva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.seva-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(245, 200, 66, 0.1);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.seva-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.seva-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--saffron);
    margin: 20px 0;
}

/* Footer */
footer {
    background: #0D0200;
    padding: 80px 5% 40px;
    border-top: 2px solid var(--gold-dark);
    text-align: center;
}

.footer-logo {
    font-size: 35px;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin-bottom: 50px;
}

.footer-links a {
    color: rgba(255, 248, 238, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(245, 200, 66, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold);
    font-size: 20px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--maroon-deep);
    transform: translateY(-5px);
}

.footer-copy {
    color: rgba(255, 248, 238, 0.3);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-visual,
    .about-content {
        min-width: 100%;
    }

    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 250px);
    }
}