/* =========================================================================
   Shreemad Bhagwat Katha - Premium Royal Aesthetic
========================================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Outfit:wght@300;400;500;600;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Royal Spiritual Palette */
    --gold-light: #FFDF73;
    --gold-main: #D4AF37;
    --gold-dark: #997A00;
    
    --saffron-light: #FFB347;
    --saffron-main: #FF6600;
    --maroon-main: #660000;
    --maroon-dark: #330000;
    
    /* Neutrals */
    --bg-dark: #0A0500;
    --bg-light: #FAFAFA;
    --text-dark: #222222;
    --text-light: #E0E0E0;
    --text-white: #FFFFFF;

    /* Gradients */
    --grad-royal: linear-gradient(135deg, var(--maroon-dark), var(--maroon-main));
    --grad-gold: linear-gradient(45deg, var(--gold-dark), var(--gold-main), var(--gold-light));
    --grad-saffron: linear-gradient(135deg, var(--saffron-main), #ff8c00);
    
    /* Shadows & Glows */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-glass: 0 15px 35px rgba(0,0,0,0.2);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* =========================================================================
   Global & Typography
========================================================================= */
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Royal Gradients for Text */
.text-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* =========================================================================
   Navbar (Glassmorphism)
========================================================================= */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-soft);
    padding: 12px 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-size: 1.8rem;
}

.navbar-logo {
    height: 75px;
    width: 75px;
    border-radius: 50%;
    border: 3px solid var(--gold-main);
    padding: 2px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
    border-color: var(--saffron-main);
}

.nav-link {
    color: var(--text-dark) !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--saffron-main) !important;
}

/* =========================================================================
   Buttons (Premium Royal)
========================================================================= */
.btn-primary, .btn-warning {
    background: var(--grad-gold);
    border: none;
    color: var(--bg-dark) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before, .btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-saffron);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before, .btn-warning:hover::before {
    opacity: 1;
}

.btn-primary:hover, .btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
    color: var(--text-white) !important;
}

.btn-outline-secondary, .btn-outline-primary, .btn-outline-light {
    border: 2px solid var(--gold-main);
    color: var(--gold-main);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-outline-light {
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline-secondary:hover, .btn-outline-primary:hover, .btn-outline-light:hover {
    background: var(--grad-gold);
    border-color: transparent;
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* =========================================================================
   Section Titles & Containers
========================================================================= */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--maroon-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '🕉️';
    display: block;
    font-size: 1.5rem;
    color: var(--saffron-main);
    margin: 10px auto 0;
    text-align: center;
}

.bg-light-theme {
    background-color: #FFFBF5;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-dark-theme {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* =========================================================================
   Glassmorphism Cards (Premium)
========================================================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-glass);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-gold);
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.15);
}

.glass-card i {
    font-size: 3.5rem;
    background: var(--grad-saffron);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.glass-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.glass-card h5 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--maroon-dark);
}

/* =========================================================================
   Hero Section 
========================================================================= */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,5,0,0.8), rgba(10,5,0,0.4));
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(212,175,55,0.6);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtext {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtext { font-size: 1.1rem; }
}

/* =========================================================================
   Gallery (Premium Overlays)
========================================================================= */
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(51,0,0,0.9), rgba(51,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.gallery-overlay h5 {
    color: var(--gold-light);
    transform: translateY(20px);
    transition: transform 0.4s ease;
    font-size: 1.5rem;
}

.gallery-overlay p {
    color: var(--text-white);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-item:hover .gallery-overlay h5,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* =========================================================================
   Team & Profiles (Elegant Cards)
========================================================================= */
.team-card {
    background: var(--text-white);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border-top: 5px solid var(--saffron-main);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glass);
}

.team-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--bg-light);
    box-shadow: var(--glow-gold);
    transition: transform 0.4s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.profile-img-wrap {
    position: relative;
    display: inline-block;
}

.profile-img-wrap::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px dashed var(--gold-main);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

/* =========================================================================
   Forms & Booking (Glassmorphism)
========================================================================= */
.booking-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-glass);
}

.form-control {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--text-white);
    border-color: var(--gold-main);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--saffron-main);
    font-size: 1.2rem;
}

.input-icon input {
    padding-left: 50px;
}

/* =========================================================================
   Footer (Royal Dark)
========================================================================= */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 4px solid var(--gold-main);
    position: relative;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(5px);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    color: var(--gold-light);
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.social-icons a:hover {
    background: var(--grad-gold);
    color: var(--bg-dark);
    transform: translateY(-5px);
}
