/* ==========================================
   Sri Bhuvaneshwari Devi Temple Website
   Main Stylesheet
   ========================================== */

/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    /* Primary Colors */
    --primary-red: #8B0000;
    --primary-dark-red: #6B0000;
    --primary-crimson: #DC143C;
    --primary-gold: #FFD700;
    --primary-orange: #FF8C00;
    --primary-yellow: #FFA500;
    
    /* Secondary Colors */
    --bg-cream: #FFF8F0;
    --bg-light: #FFFFFF;
    --text-dark: #2C1810;
    --text-gray: #555555;
    --border-color: #E0D5C7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-crimson) 100%);
    --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-orange) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(220, 20, 60, 0.85) 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
}

/* ==========================================
   Global Styles & Reset
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-red);
}

/* ==========================================
   Header Styles
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 25px;
}

.contact-info i {
    margin-right: 8px;
    color: var(--primary-gold);
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-left: 10px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

.main-header {
    padding: 20px 0;
    border-bottom: 3px solid var(--primary-gold);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.temple-title h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temple-subtitle {
    font-size: 1.2rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.temple-location {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--primary-crimson);
}

/* ==========================================
   Navigation Styles
   ========================================== */
.navigation {
    background: var(--gradient-gold);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: var(--primary-red);
}

.nav-menu i {
    margin-right: 5px;
}

.btn-donate {
    background: var(--primary-crimson) !important;
    border-radius: 25px;
    margin-left: 10px;
    padding: 15px 25px !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    border-top: 3px solid var(--primary-gold);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--bg-cream);
    color: var(--primary-red);
    padding-left: 25px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    height: 600px;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-gold);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 2rem;
    color: var(--primary-gold);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

/* ==========================================
   Button Styles
   ========================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-red);
}

/* ==========================================
   Section Styles
   ========================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-top: 25px;
}

/* ==========================================
   Live Streaming Section
   ========================================== */
.live-streaming {
    background: white;
}

.live-stream-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-crimson);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    z-index: 10;
    animation: pulse 2s infinite;
}

.live-badge i {
    color: var(--primary-gold);
    margin-right: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stream-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.stream-placeholder i {
    font-size: 5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.stream-placeholder h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.stream-placeholder p {
    font-size: 1.1rem;
    color: #cccccc;
}

.stream-note {
    margin-top: 15px;
    font-style: italic;
    color: var(--primary-yellow) !important;
}

/* ==========================================
   Quick Services Section
   ========================================== */
.quick-services {
    background: var(--bg-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-md);
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--primary-gold);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 600;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-crimson);
    padding-left: 10px;
}

/* ==========================================
   News & Updates Section
   ========================================== */
.news-updates {
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-cream);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.news-date .month {
    font-size: 1.1rem;
    display: block;
    margin-top: 5px;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.news-link {
    color: var(--primary-red);
    font-weight: 600;
    transition: var(--transition-fast);
}

.news-link:hover {
    color: var(--primary-crimson);
}

.news-cta {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ==========================================
   About Preview Section
   ========================================== */
.about-preview {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.highlight {
    color: var(--primary-orange);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.temple-features {
    margin: 30px 0;
}

.temple-features li {
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.temple-features i {
    color: var(--primary-gold);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* ==========================================
   Maha Vidya Preview Section
   ========================================== */
.maha-vidya-preview {
    background: var(--bg-cream);
}

.vidya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: var(--spacing-md);
}

.vidya-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.vidya-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.vidya-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.vidya-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.vidya-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.vidya-cta {
    text-align: center;
}

/* ==========================================
   Social Service Preview Section
   ========================================== */
.social-service-preview {
    background: white;
    position: relative;
}

.social-service-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--gradient-gold);
    opacity: 0.1;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.highlight-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 2px solid var(--border-color);
}

.highlight-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
}

.highlight-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.highlight-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.service-cta {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer {
    background: linear-gradient(135deg, #2C1810 0%, #1a0f0a 100%);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-gold);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 10px;
}

.footer-info li {
    margin-bottom: 15px;
    color: #cccccc;
}

.footer-info i {
    color: var(--primary-gold);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: #999999;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Tablet Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .temple-title h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Reduce logo size on mobile */
    .logo img {
        max-height: 60px !important;  /* Reduced from default */
        width: auto;
    }
    
    /* Reduce temple name text size */
    .site-title {
        font-size: 1rem !important;  /* Smaller on mobile */
        line-height: 1;
        margin: 10px 0;
    }
    
    /* Reduce Telugu text size */
    .site-title small {
        font-size: 0.9rem !important;
        display: block;
        margin-top: 5px;
    }
    
    /* Reduce location text */
    .site-tagline {
        font-size: 0.85rem !important;
        line-height: 1.4;
    }
    
    /* Make header more compact */
    .site-header {
        padding: 15px 0 !important;
    }
    
    /* Reduce top contact bar */
    .top-bar {
        font-size: 0.85rem !important;
        padding: 8px 0 !important;
    }
    
    
    .navigation {
        display: none;
    }
    
    .navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .top-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-info span {
        margin-right: 0;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .temple-title h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        
    }
    
    .temple-subtitle {
        font-size: 0.9rem;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .news-grid,
    .vidya-grid,
    .service-highlights {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        min-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .service-card,
    .highlight-card {
        padding: 25px 20px;
    }
}