/* Homepage Header Styling */
.homepage-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #136b0b;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.tagline-text {
    font-size: 14px;
    color: #444;
    font-family: 'Poppins', sans-serif;
    margin-left: 2px;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Optional: use 'center' if you want it centered */
}


/* Navigation */
.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #000;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    padding: 6px 12px;
}

.nav-menu a:hover {
    color: #136b0b;
    border-bottom: 2px solid #136b0b;
}

/* Mobile Toggle */
.mobile-toggle {
    font-size: 26px;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

/* ===============================
   🇮🇳 Animated Tricolor Background
   =============================== */
.animated-bg {
    background: linear-gradient(-45deg,
        #ff9933,  /* Saffron */
        #ffffff,  /* White */
        #138808,  /* Green */
        #ffffff   /* Repeat for smooth blend */
    );
    background-size: 300% 300%; /* reduced to show saffron quicker */
    animation: tricolorFlow 15s ease infinite;
    background-position: 0% 50%; /* force saffron at start */
}

@keyframes tricolorFlow {
    0%   { background-position: 0% 50%; }     /* saffron */
    50%  { background-position: 100% 50%; }   /* shift through green */
    100% { background-position: 0% 50%; }     /* loop back to saffron */
}


.logo-text, .tagline-text, .nav-menu a {
    text-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* AUTO SCROLL */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: top 0.4s ease;
    background-color: #fff; /* Or keep your animated background */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
body {
    padding-top: 80px; /* Prevent content from hiding behind fixed header */
}

/* Mobile View */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 20px;
        top: 70px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 12px;
        border-radius: 4px;
        z-index: 999;
        width: 200px;
        text-align: left;
    }

    .nav-menu.nav-open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
}
