/* ==========================================
   Header Reset & Variables
   ========================================== */
:root {
    --primary-blue: #38bdf8;
    --royal-blue: #1e3a8a;
    --card-blue: #1e40af;
    --light-sky: #7dd3fc;
    --white: #ffffff;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ==========================================
   Main Header Layout (Left White to Right Red Gradient + Animated)
   ========================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    /* বামে সাদা থেকে ডানে লালের স্মুথ গ্র্যাডিয়েন্ট ব্যাকগ্রাউন্ড */
    background: linear-gradient(90deg, #ffffff 0%, #ef4444 50%, #dc2626 75%, #b91c1c 100%);
    background-size: 200% 100%;
    /* ডানে-বামে কালার শিফট হওয়ার অ্যানিমেশন */
    animation: gradientShift 6s ease infinite alternate;
    
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1.5px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 25px rgba(185, 28, 28, 0.25);
    z-index: 1000;
    margin-bottom: 25px;
}

/* গ্র্যাডিয়েন্ট ডানে-বামে মুভ করার কি-ফ্রেম অ্যানিমেশন */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================
   ব্র্যান্ড লোগো স্টাইল (রেসপন্সিভ ও ফিক্সড হাইট)
   ========================================== */
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 45px;          /* লোগোর হাইট ফিক্সড (প্রয়োজন অনুযায়ী ৪০px-৫০px করতে পারেন) */
    width: auto;           /* উইডথ রেসপন্সিভ (অনুপাত ঠিক থাকবে) */
    max-width: 100%;       /* স্ক্রিনের বাইরে যাওয়া বন্ধ করবে */
    object-fit: contain;   /* ইমেজ বিকৃত হওয়া রোধ করবে */
    display: block;
}

/* মোবাইল ও ছোট স্ক্রিনের জন্য ফ্লেক্সিবল সাইজ */
@media (max-width: 576px) {
    .site-logo {
        height: 35px;      /* মোবাইলে যাতে হেডার বড় না হয়ে যায় */
    }
}

/* ==========================================
   Desktop Navigation
   ========================================== */
.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.desktop-nav a {
    text-decoration: none;
    color: #ffffff; /* টেক্সট সম্পূর্ণ সাদা এবং স্পষ্ট */
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.desktop-nav a i {
    color: #38bdf8; /* উজ্জ্বল স্কাই ব্লু আইকন */
    font-size: 15px;
}

.desktop-nav a:hover, 
.desktop-nav a.active {
    color: #38bdf8;
    transform: translateY(-1px);
}

/* ==========================================
   Buttons & Action Section (Standout High-Contrast Buttons)
   ========================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* লগইন বাটন - হোয়াইট পিল ডিজাইন */
.btn-login {
    text-decoration: none;
    color: #1e3a8a;
    background: #ffffff;
    border: 1.5px solid #ffffff;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-login:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #e0f2fe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* রেজিস্টার বাটন - গ্র্যাডিয়েন্ট সাইয়ান/ব্লু পপ-আপ বাটন */
.btn-register {
    text-decoration: none;
    background: linear-gradient(135deg, #0284c7, #06b6d4);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-register:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0369a1, #0891b2);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
}

/* ==========================================
   Mobile Nav Drawer & Overlay
   ========================================== */
.mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #b91c1c; /* ডার্কের বদলে রেড ব্যাকগ্রাউন্ড */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-nav-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #ffffff; /* ড্রয়ারের ভেতর স্পষ্ট সাদা টেক্সট */
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-nav-links a i {
    color: #38bdf8;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #7dd3fc;
}

.drawer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 6px 0;
}

.mobile-register-link {
    color: #7dd3fc !important;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* ==========================================
   Responsive Breakpoints (Mobile & Tablet)
   ========================================== */
@media (max-width: 868px) {
    .desktop-nav, 
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav-drawer {
        display: block;
    }

    .btn-login {
        padding: 6px 14px;
        font-size: 13px;
    }

    .logo-title {
        font-size: 20px;
    }
}