:root {
    --primary-color: #D35400;
    /* Darker, more grounded Saffron */
    --primary-dark: #000000;
    --secondary-color: #B7950B;
    /* Muted Gold */
    --text-color: #333333;
    /* Dark Grey for better readability */
    --text-light: #666666;
    --bg-color: #FFFFFF;
    /* Pure White */
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    /* Clean, professional sans */
    --font-heading: 'Playfair Display', serif;
    /* Elegant, classic serif */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 100px;
    /* Accounts for fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 48px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    /* Slightly rounded, not pill */
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #d35400;
    /* Darker Gold/Mustard to match theme better */
    color: var(--white);
    font-weight: 700;
    padding: 10px 30px;
    /* Increased length/padding */
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    letter-spacing: 0.5px;
}

.btn-donate:hover {
    background-color: transparent;
    border-color: #D4AC0D;
    color: #D4AC0D;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-color);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    /* Increased padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.navbar .container {
    display: flex;
    justify-content: center;
    /* Center the whole content */
    gap: 40px;
    /* Fixed consistent gap */
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
    transform: scale(1.05);
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    /* margin-left: 50px; Removed to fix spacing issue */
}

.nav-links li {
    list-style: none;
    position: relative;
}

.nav-links a:not(.btn-donate):not(.btn-login) {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../images/temple_hall.png');
    background-size: cover;
    background-position: center;
    height: 85vh;
    /* Slightly increased as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards & Grid */
.timings {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--bg-color);
}

.timings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.timing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.timing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.timing-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.timing-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.timing-card img {
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.5s ease-in-out;
}

.timing-card:hover img {
    transform: scale(1.03);
}

/* Darshan Section */
.darshan {
    padding: 100px 0;
    background: var(--white);
}

.darshan-slider {
    display: flex;
    gap: 40px;
    /* Increased gap */
    overflow-x: auto;
    padding: 20px 20px 40px;
    /* Added side padding */
    scroll-snap-type: x mandatory;
    justify-content: center;
    /* Center items if they fit */
}

.darshan-card {
    min-width: 300px;
    height: 400px;
    border-radius: 20px;
    background: transparent;
    /* Remove background to avoid hiding img */
    position: relative;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.darshan-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Ensure it's above base */
    transition: transform 0.5s ease-in-out;
}

.darshan-card:hover .darshan-img {
    transform: scale(1.05);
}

/* Darshan Card Info */
.darshan-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: white;
    text-align: left;
    z-index: 2;
}

.darshan-info h3 {
    color: #FFD700;
    /* Bright Gold */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.darshan-info p {
    color: #F0F0F0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Specific fix for Jagannath Image cropping */
.jagannath-fix {
    transform: scale(3.0);
    /* Maximum aggressive zoom */
    object-position: center 100%;
    /* Focus strictly on the bottom */
}

.darshan-card:hover .jagannath-fix {
    transform: scale(3.1);
    /* Maintain zoom on hover */
}

.darshan-card:hover {
    transform: scale(1.02);
}

.darshan-card span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    /* Prevent cut-off on small screens */
    overflow-y: auto;
    /* Enable scrolling if content is tall */
    border-radius: 24px;
    z-index: 2001;
    display: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active,
.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal.active {
    transform: translate(-50%, -50%);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-dark);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        font-weight: bold;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        font-family: var(--font-heading);
        font-size: 1.2rem;
    }

    .nav-right>div:not(.mobile-menu-btn):not(:first-child) {
        display: none !important;
    }

    /* Footer */
    footer {
        background-color: #1a1a1a;
        color: #ccc;
        padding: 80px 0 30px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 50px;
        margin-bottom: 60px;
    }

    .footer-col h3 {
        color: var(--secondary-color);
        margin-bottom: 25px;
        font-size: 1.4rem;
    }

    .social-links {
        display: flex;
        gap: 20px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: var(--white);
    }

    .social-links a:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }

    .copyright {
        text-align: center;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    /* Modals */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: 2000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%);
        background: var(--white);
        width: 90%;
        max-width: 500px;
        border-radius: 24px;
        z-index: 2001;
        display: none;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .modal.active,
    .modal-overlay.active {
        display: block;
        opacity: 1;
    }

    .modal.active {
        transform: translate(-50%, -50%);
    }

    .modal-header {
        padding: 25px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal-header h3 {
        margin: 0;
        color: var(--primary-color);
        font-size: 1.4rem;
    }

    .close-modal {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #999;
        transition: color 0.3s;
    }

    .close-modal:hover {
        color: var(--primary-dark);
    }

    .modal-body {
        padding: 30px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-group label {
        display: block;
        margin-bottom: 10px;
        font-weight: 600;
        color: var(--text-color);
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 14px;
        border: 2px solid #eee;
        border-radius: 12px;
        font-family: var(--font-main);
        font-size: 1rem;
        transition: border-color 0.3s;
        background: #f9f9f9;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        background: var(--white);
    }

    /* Animations */
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .section-title {
            font-size: 2.2rem;
        }

        .hero-content h1 {
            font-size: 2.8rem;
        }

        .nav-links {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: var(--white);
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .nav-links.active {
            display: flex;
        }

        .mobile-menu-btn {
            display: block;
        }
    }

    /* Donation CTA */
    /* Donation CTA */
    /* Donation CTA */
    .donation-cta {
        background-color: #F9FAFB;
        /* Very light grey/off-white */
        padding: 80px 0;
        color: var(--text-color);
        text-align: center;
        border-top: 1px solid var(--border-color);
    }

    .donation-cta h2 {
        color: var(--text-color);
        margin-bottom: 16px;
        font-size: 2.5rem;
    }

    .donation-cta p {
        margin: 0 auto 32px;
        max-width: 600px;
        font-size: 1.1rem;
        color: var(--text-light);
    }

    .donation-cta .btn {
        background-color: var(--primary-color);
        color: var(--white);
        box-shadow: var(--shadow-sm);
    }

    .donation-cta .btn:hover {
        background-color: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    .darshan {
        padding: 50px 0;
    }

    .darshan-slider {
        justify-content: flex-start;
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
        scroll-padding-left: 20px;
    }

    /* Darshan Card Info */
    .darshan-info {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 24px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        color: white;
        text-align: left;
        z-index: 2;
        box-sizing: border-box;
    }

    .darshan-info h3 {
        color: var(--white);
        margin: 0 0 4px 0;
        font-size: 1.25rem;
        font-weight: 600;
        white-space: normal;
        word-wrap: break-word;
    }

    .darshan-info p {
        margin: 0;
        font-size: 0.9rem;
        opacity: 0.9;
        font-weight: 400;
        white-space: normal;
        word-wrap: break-word;
    }

    /* Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-overlay.active {
        display: block;
        opacity: 1;
    }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        background: white;
        padding: 0;
        border-radius: 12px;
        z-index: 1001;
        display: none;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        max-width: 90%;
        width: 500px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal.active {
        display: block;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .modal-content {
        padding: 30px;
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: #64748b;
        transition: color 0.2s;
        line-height: 1;
    }

    .close-modal:hover {
        color: #ef4444;
    }

    .donation-grid {
        margin-bottom: 60px;
        grid-template-columns: repeat(2, 1fr);
    }

    .donation-grid-four {
        margin-bottom: 60px;
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
    }

    @media (max-width: 768px) {

        .donation-grid,
        .donation-grid-four {
            grid-template-columns: 1fr;
        }
    }
}

     