/* Custom Styles for Yog Gurukul Asom */

:root {
    --primary-color: #FF5722;
    /* Saffron/Orange - Energy & Purity */
    --secondary-color: #4CAF50;
    /* Green - Nature & Harmony */
    --success-color: #2196F3;
    /* Blue - Calm & Spirituality */
    --info-color: #FFFFFF;
    /* White - Peace & Clarity */
    --warning-color: #FFC107;
    /* Amber/Gold - Warmth & Wisdom */
    --dark-color: #1a1a2e;
    /* Deep Navy - Stability */
    --light-color: #f8f9fa;
    /* Light Gray - Clean background */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}
a.nav-link:hover{
    color: var(--warning-color);
}
.navbar-scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.form-control:focus{
    box-shadow: unset !important;
}
.navbar-brand {
    font-size: 1.25rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.1;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

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

/* Button Styles */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 1s ease;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 60vh;
    }

    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }

    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .hero-section .btn {
        margin-bottom: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    position: relative;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

.d-none {
    display: none !important;
}

.shloka-text {
    font-family: 'Tiro Devanagari Sanskrit', serif;
    font-weight: 700;
    line-height: 2;
    display: block;
    font-size: 20px;
    background: linear-gradient(90deg,
            #b8860b 0%, #ffd700 20%, #fffacd 38%,
            #ffd700 55%, #daa520 72%, #ffd700 85%, #b8860b 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: goldShine 3.5s linear infinite;
}

@keyframes goldShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 250% center;
    }
}
.navbar-toggler:focus{
    box-shadow: none !important;
}
/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(25, 135, 84, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Apply to Button */
.pulse-btn {
    animation: pulse 2s infinite;
    transition: 0.3s ease;
}
.glow-text {
    font-weight: 700;
    text-transform: uppercase;
    /* Deep yellow + bhagwa gradient */
    background: linear-gradient(
        90deg,
        #ff6f00 0%,     /* deep bhagwa */
        #ff8f00 15%,
        #ffb300 30%,
        #ffd600 45%,    /* deep yellow */
        #fff176 50%,    /* shine */
        #ffd600 55%,
        #ffb300 70%,
        #ff8f00 85%,
        #e65100 100%    /* dark saffron */
    );

    background-size: 300% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation:
        bhagwaFlow 4s linear infinite,
        diyaGlow 1.8s ease-in-out infinite alternate;
}

/* Moving golden flow */
@keyframes bhagwaFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

/* Diya flame brightness */
@keyframes diyaGlow {

    0% {
        filter: brightness(1);
        transform: scale(1);
    }

    25% {
        filter: brightness(1.15);
    }

    50% {
        filter: brightness(1.35);
    }

    75% {
        filter: brightness(1.18);
    }

    100% {
        filter: brightness(1.05);
    }
}