/* ============================================================================
   Sri Sri Sri Maha Shakti Peetham - Corporate Design System
   Palette: Deep Maroon, Sandal, Golden Glow, Light Cream, Pure White
   Aesthetic: Luxury Spiritual + Apple UI Glassmorphism
   ============================================================================ */

:root {
    --color-maroon: #580D1D;
    --color-maroon-dark: #3F0510;
    --color-maroon-light: #7E1E30;
    --color-gold: #D4AF37;
    --color-gold-glow: #F3E5AB;
    --color-sandal: #E2C799;
    --color-sandal-light: #F5E6CC;
    --color-cream: #FDFBF7;
    --color-white: #FFFFFF;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px rgba(88, 13, 29, 0.04);
    --shadow-medium: 0 15px 35px rgba(88, 13, 29, 0.08);
    --shadow-gold: 0 0 15px rgba(212, 175, 55, 0.4);
    --border-glass: 1px solid rgba(226, 199, 153, 0.3);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-maroon-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-cream {
    background-color: var(--color-cream) !important;
}

.text-maroon {
    color: var(--color-maroon) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-sandal {
    color: var(--color-sandal) !important;
}

.font-title {
    font-family: var(--font-title);
}

.font-heading {
    font-family: var(--font-title);
    font-weight: 700;
}

/* Glassmorphism Navbar */
.glass-nav {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    box-shadow: 0 2px 20px rgba(88, 13, 29, 0.02);
    transition: all 0.4s ease;
    z-index: 1050;
}

.glass-nav.scrolled {
    padding: 10px 0 !important;
    background: rgba(253, 251, 247, 0.95);
    box-shadow: var(--shadow-soft);
}

.navbar-brand .brand-text {
    line-height: 1.1;
}

.nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(226, 199, 153, 0.15);
    color: var(--color-maroon-light) !important;
}

/* Buttons */
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white) !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--color-maroon);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-maroon {
    background-color: var(--color-maroon);
    color: var(--color-white) !important;
    border: 1px solid var(--color-maroon);
    transition: all 0.3s ease;
}

.btn-maroon:hover {
    background-color: var(--color-maroon-dark);
    border-color: var(--color-maroon-dark);
    transform: translateY(-2px);
}

.btn-outline-maroon {
    border: 1px solid var(--color-maroon);
    color: var(--color-maroon) !important;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-maroon:hover {
    background-color: var(--color-maroon);
    color: var(--color-white) !important;
}

.btn-floating-phone, .btn-floating-wa, .btn-floating-hundi {
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white) !important;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-floating-phone {
    background-color: var(--color-gold);
}

.btn-floating-phone:hover {
    background-color: var(--color-maroon);
    transform: scale(1.1);
}

.btn-floating-wa {
    background-color: #25D366;
}

.btn-floating-wa:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.btn-floating-hundi {
    background: linear-gradient(135deg, var(--color-maroon), var(--color-gold));
    width: auto;
    padding: 0 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
}

.btn-floating-hundi:hover {
    transform: scale(1.05);
}

.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-gold);
}

.glass-card-sm {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: 12px;
}

.glass-user-pill {
    background: rgba(226, 199, 153, 0.1);
    transition: all 0.3s ease;
}

.glass-user-pill:hover {
    background: rgba(226, 199, 153, 0.2);
}

/* Text Glow & Aura Shadows */
.text-glow-gold {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.footer-aura {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(88,13,29,0) 70%);
    pointer-events: none;
}

/* Hero Section & Parallax Banner */
.hero-wrapper {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-maroon-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scale(1.05);
    transition: transform 2s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(63, 5, 16, 0.5) 0%, rgba(63, 5, 16, 0.95) 100%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    color: var(--color-cream);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: var(--color-sandal);
    letter-spacing: 2px;
}

/* Premium Timeline (Founder's Story) */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-sandal);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.5;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-cream);
    border: 4px solid var(--color-gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-gold);
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--color-white);
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(226, 199, 153, 0.2);
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    .timeline-right {
        left: 0%;
    }
}

/* Gallery Hover Styles */
.gallery-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(226, 199, 153, 0.2);
}

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(88, 13, 29, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-wrapper:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-wrapper:hover .gallery-overlay {
    opacity: 1;
}

/* User & Admin Dashboard Grid Sidebar */
.dashboard-container {
    display: flex;
    gap: 2rem;
}

.sidebar-menu {
    background: rgba(255, 255, 255, 0.8);
    border: var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    min-height: 500px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.2rem;
    color: var(--color-maroon);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.sidebar-link:hover, .sidebar-link.active {
    background: var(--color-maroon);
    color: var(--color-white);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

/* Animation utilities */
.animate-spin-slow {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* Multilingual Telugu Styling modifications if needed */
.telugu-font {
    line-height: 1.8;
}
