/* 
   Dharmika Modern Theme
   Shree Maulasar Balaji Mandir
*/

:root {
    --primary-color: #FF9933; /* Saffron */
    --primary-dark: #cc7a29;
    --accent-color: #FFD700; /* Gold */
    --accent-dark: #b39700;
    --dark-bg: #1a0f0a; /* Deep temple dark */
    --darker-bg: #0d0705;
    --light-text: #f8f8f8;
    --muted-text: #dcdcdc;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Glassmorphism values */
    --glass-bg: rgba(26, 15, 10, 0.6);
    --glass-border: rgba(255, 153, 51, 0.2);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--darker-bg);
    color: var(--light-text);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.text-center { text-align: center; }
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}
.section-title span {
    color: var(--primary-color);
    font-style: italic;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
    background: rgba(13, 7, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 153, 51, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.admin-link {
    background: rgba(255, 153, 51, 0.1);
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    border: 1px solid rgba(255, 153, 51, 0.3);
    color: var(--primary-color) !important;
}
.admin-link::after { display: none; }
.admin-link:hover {
    background: rgba(255, 153, 51, 0.2);
}
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 7, 5, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    transition: top 0.4s ease-in-out;
}
.mobile-menu.active {
    top: 0;
}
.mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--light-text);
    text-decoration: none;
}
.mobile-menu a:active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05); /* For slight pan effect */
    animation: panBg 20s linear infinite alternate;
}
@keyframes panBg {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(13, 7, 5, 0.6) 0%, rgba(13, 7, 5, 0.9) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 800px;
}
.sub-greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
.main-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background: -webkit-linear-gradient(45deg, #FFD700, #FF9933);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-down a {
    color: var(--muted-text);
    font-size: 1.5rem;
    transition: color 0.3s;
}
.scroll-down a:hover {
    color: var(--primary-color);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Marquee Section */
.marquee-section {
    background: rgba(255, 153, 51, 0.1);
    border-top: 1px solid rgba(255, 153, 51, 0.2);
    border-bottom: 1px solid rgba(255, 153, 51, 0.2);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}
.marquee-label {
    background: var(--primary-color);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-right: 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}
marquee {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 500;
}

/* Sections Base */
.section {
    padding: 6rem 2rem;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
    padding: 1rem;
}
.about-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.img-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--accent-color);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--muted-text);
    font-size: 1.1rem;
}
.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item h4 {
    color: var(--primary-color);
    font-size: 2rem;
}
.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* History Details */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    text-align: center;
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--accent-color);
}
.feature-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* Aarti Timings */
.timings-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.timings-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.timing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: background 0.3s;
}
.timing-item:hover {
    background: rgba(255, 153, 51, 0.08);
}
.timing-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--light-text);
}
.timing-time {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 153, 51, 0.1);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-col h4 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.8rem;
}
.footer-col a {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: var(--primary-color);
}
.footer-col p {
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}
.footer-bottom {
    text-align: center;
    color: #666;
    padding-top: 2rem;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-text {
        text-align: center;
    }
    .stats-row {
        justify-content: center;
    }
    .img-badge {
        right: 10px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .main-title { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .timing-item { flex-direction: column; text-align: center; gap: 0.5rem; }
}

@media screen and (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin Styles specific */
.admin-container {
    max-width: 900px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}
.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}
.admin-form-group {
    margin-bottom: 1.5rem;
}
.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}
.admin-form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}
.admin-form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}
textarea.admin-form-control {
    resize: vertical;
    min-height: 100px;
}
.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media screen and (max-width: 768px) {
    .panel-grid { grid-template-columns: 1fr; }
}
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}
.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.gallery-item {
    padding: 1rem;
    text-align: center;
}
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}
.gallery-caption {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Contact Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}
.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
}
.contact-text h4 {
    margin-bottom: 0.2rem;
    color: var(--accent-color);
}
.contact-text p {
    color: var(--muted-text);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255,153,51,0.1);
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,153,51,0.3);
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color 0.3s;
}
.lang-btn.active, .lang-btn:hover {
    color: var(--primary-color);
}
.lang-sep {
    color: rgba(255,255,255,0.2);
}
@media screen and (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
}
