/* =========================================
   GLOBAL VARIABLES & RESET
========================================= */
:root {
    /* Brand Colors */
    --color-primary: #0A1C3A;
    /* Deep Midnight Navy */
    --color-primary-dark: #050B14;
    /* Darker Background Navy */
    --color-gold: #DCAE40;
    /* Gleaming Gold Accent */
    --color-gold-hover: #F2C965;
    /* Lighter Gold for Hover */
    --color-text-light: #F0F4F8;
    /* Soft Off-White for contrast */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Hind Siliguri', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    /* Extra height just to allow scrolling for the sticky navbar */
    overflow-x: hidden;
}

/* =========================================
   HEADER & GLASS NAVBAR (DYNAMIC)
========================================= */
.header-wrapper {
    position: sticky;
    top: 25px;
    /* Floats 25px from the top initially */
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State: Docks to the very top */
.header-wrapper.scrolled {
    top: 0;
    padding: 0;
}

.glass-navbar {
    width: 100%;
    max-width: 1300px;
    background: #ffffff;
    /* Initial State: White Background */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State: Expands to full width, dark glassy background */
.header-wrapper.scrolled .glass-navbar {
    max-width: 100%;
    border-radius: 0;
    border: none;
    background: rgba(10, 28, 58, 0.95);
    /* Reverts to Dark Navy Glass */
    padding: 15px 80px;
    /* Slimmer padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Brand / Logo Area */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State: Shrink logo slightly */
.header-wrapper.scrolled .nav-logo-img {
    width: 60px;
    height: 60px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: #000000;
    /* Initial State: Black Text */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: color 0.4s ease;
}

.brand-bengali {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #000000;
    /* Initial State: Black Text */
    line-height: 1.2;
    transition: color 0.4s ease;
}

/* Scrolled State: Brand text reverts to white */
.header-wrapper.scrolled .brand-subtitle,
.header-wrapper.scrolled .brand-bengali {
    color: var(--color-text-light);
}

/* =========================================
   DESKTOP NAVIGATION
========================================= */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 30px;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: #000000;
    /* Initial State: Black Text */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold);
    border-radius: 2px;
}

/* Scrolled State: Nav links revert to white */
.header-wrapper.scrolled .nav-link {
    color: var(--color-text-light);
}

.header-wrapper.scrolled .nav-link:hover,
.header-wrapper.scrolled .nav-link.active {
    color: var(--color-gold);
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
    color: var(--color-primary-dark);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 174, 64, 0.3);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 174, 64, 0.5);
    background: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold) 100%);
}

/* =========================================
   MOBILE NAVIGATION (80% RIGHT SLIDE)
========================================= */
.mobile-toggle-btn {
    display: block;
    background: none;
    border: none;
    color: #000000;
    /* Initial State: Black Icon */
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.4s ease;
}

/* Scrolled State: Mobile icon reverts to gold */
.header-wrapper.scrolled .mobile-toggle-btn {
    color: var(--color-gold);
}

@media (min-width: 1024px) {
    .mobile-toggle-btn {
        display: none;
    }
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -80%;
    /* Hidden off-screen to the right */
    width: 80%;
    /* Exactly 80% width */
    height: 100vh;
    background: var(--color-primary-dark);
    z-index: 2001;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(220, 174, 64, 0.25);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
    /* Slides into view smoothly */
}

.mobile-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 40px;
}

.mobile-nav-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(220, 174, 64, 0.1);
    transition: color 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--color-gold);
}

.mobile-btn {
    margin-top: 20px;
    text-align: center;
}

/* =========================================
   MAIN CONTENT & SECTION TITLES
========================================= */
.main-content {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Styled Heading with short gold lines */
.section-title {
    text-align: center;
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* Space between lines and text */
    margin-bottom: 60px;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 1px;
    width: 60px;
    /* Shortened elegant lines */
    background-color: var(--color-gold);
}

/* =========================================
   FOOTER (4-COLUMN LAYOUT)
========================================= */
footer {
    /* background-color: var(--color-primary-dark); */
    background-color: red !important;
    /* #050B14 */
    color: var(--color-text-light);
    position: relative;
    width: 100%;

    /* Alpona Background Image Setup with Overlay */
    /* The linear-gradient creates a dark overlay (RGB values match your dark background) */
    background-image:
        linear-gradient(rgba(5, 11, 20, 0.6), rgba(5, 11, 20, 0.9)),
        url('img/bg-foot.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;

}

/* Alpona Image acts as the absolute top border of the footer */
.footer-alpona {
    width: 100%;
    display: block;
    /* Prevents tiny gap below image */
    object-fit: cover;
    max-height: 120px;
    /* Adjust this based on your image height */
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    /* Increased top padding (120px) to clear the alpona background image */
    padding: 180px 20px 60px 20px;
    display: grid;
    /* Responsive 4-column grid */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

/* Column 1: Logo & Info */
.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    margin-bottom: 20px;
    object-fit: cover;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
}

/* Column 2 & 3: Links */
.footer-links h4 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

/* Column 4: Social & Newsletter */
.footer-social h4 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    /* Subtle hover lift */
}

.newsletter h5 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 40px;
    background: transparent;
    border: 1px solid rgba(220, 174, 64, 0.5);
    border-radius: 6px;
    color: var(--color-text-light);
    outline: none;
}

.newsletter-form input::placeholder {
    color: #888;
}

.newsletter-form input:focus {
    border-color: var(--color-gold);
}

.newsletter-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gold);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.newsletter-form button:hover {
    color: var(--color-gold-hover);
}

/* =========================================
   FOOTER BOTTOM (COPYRIGHT)
========================================= */
.footer-bottom {
    border-top: 1px solid rgba(220, 174, 64, 0.2);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Stacks text vertically */
    align-items: center;
    gap: 5px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #aaaaaa;
}

.footer-tagline {
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}