:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --dark: #0f172a;
    --white: #ffffff;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --top-bar-height: 40px;
    --navbar-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Hind Siliguri', sans-serif; }

/* === BODY PADDING LOGIC (CRITICAL FIX) === */
body {
    background: #f8fafc;
    color: var(--dark);
    overflow-x: hidden;
    min-height: 100vh;
    
    /* সাধারণ পেজের জন্য (DNS/Whois): হেডার হাইট অনুযায়ী প্যাডিং */
    padding-top: calc(var(--top-bar-height) + var(--navbar-height));
}

/* হিরো পেজের জন্য (Index): প্যাডিং নেই, যাতে ব্যাকগ্রাউন্ড টপ থেকে শুরু হয় */
body.transparent-header {
    padding-top: 0 !important;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* ... বাকি CSS আগের মতই ... */

/* =========================
   1. TOP BAR STYLES
   ========================= */
.top-bar {
    height: var(--top-bar-height);
    background: #020617;
    display: flex; justify-content: center; align-items: center; gap: 15px;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 2000;
    transition: transform 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-btn {
    background: rgba(255,255,255,0.1); color: #fff; padding: 4px 12px;
    font-size: 0.85rem; font-weight: 600; border-radius: 4px;
    display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.1);
}
.top-btn:hover { background: var(--primary); border-color: var(--primary); }
.top-btn i { color: #f472b6; }

/* =========================
   2. NAVBAR (DEFAULT STATE - LIGHT MODE)
   ========================= */
.navbar {
    height: var(--navbar-height);
    display: flex; align-items: center;
    position: fixed; top: var(--top-bar-height); left: 0; width: 100%;
    z-index: 1000; transition: all 0.4s ease;
    
    /* Default: White BG, Black Text */
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}

/* LOGO: Default Original/Black */
.logo img {
    height: 38px; width: auto; display: block; transition: all 0.3s ease;
    filter: none;
}

/* MENU: Default Black Text */
.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-link {
    font-weight: 600; font-size: 1rem; position: relative; padding: 5px 0;
    transition: color 0.3s ease;
    color: var(--dark) !important;
}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 50%; 
    background: var(--gradient); transition: width 0.3s ease, left 0.3s ease; 
    border-radius: 50px;
}
.nav-link:hover::after { width: 100%; left: 0; }
.nav-link:hover { color: var(--primary) !important; }

/* Button */
.client-btn {
    background: var(--gradient); color: white; padding: 8px 25px;
    border-radius: 50px; font-weight: 600; border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; gap: 8px;
}
.client-btn:hover { box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3); }

.mobile-toggle, .mobile-user-icon { color: var(--dark) !important; }

/* =========================
   3. TRANSPARENT HEADER (DARK MODE - INDEX PAGE ONLY)
   ========================= */
body.transparent-header .navbar {
    background: transparent !important;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
/* Logo White */
body.transparent-header .logo img { filter: brightness(0) invert(1); }
/* Menu White */
body.transparent-header .nav-link { color: #ffffff !important; }
body.transparent-header .nav-link:hover { color: #e0e7ff !important; }
body.transparent-header .nav-link::after { background: #ffffff; }
/* Icons White */
body.transparent-header .mobile-toggle,
body.transparent-header .mobile-user-icon { color: #ffffff !important; }

/* =========================
   4. SCROLLED STATE (STICKY)
   ========================= */
body.scrolled .top-bar { transform: translateY(-100%); }
body.scrolled .navbar { top: 0; }

/* =========================
   5. MOBILE RESPONSIVE
   ========================= */
.mobile-actions { display: none; align-items: center; gap: 15px; }
.mobile-user-icon { font-size: 1.5rem; transition: 0.3s; }
.mobile-toggle { font-size: 1.6rem; cursor: pointer; transition: 0.3s; }

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: fixed; 
        top: calc(var(--top-bar-height) + var(--navbar-height)); 
        left: 0; right: 0; background: #ffffff;
        flex-direction: column; padding: 30px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px; gap: 20px; z-index: 999;
    }
    
    body.scrolled .nav-menu { top: var(--navbar-height); }

    .nav-link { color: var(--dark) !important; text-align: center; padding: 10px 0; display: block; }
    
    .nav-menu.active { display: flex; animation: fadeInDown 0.4s ease; }
    .desktop-only { display: none; }
    .mobile-actions { display: flex; }
    
    body.transparent-header .nav-menu { background: #ffffff; border-top: 1px solid #e2e8f0; }
    body.transparent-header .nav-menu .nav-link { color: var(--dark) !important; }
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }




/* =========================
   6. DROPDOWN MENU STYLES
   ========================= */

/* Parent Item Style */
.has-dropdown {
    position: relative;
    cursor: pointer;
}

.has-dropdown .fa-angle-down {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: 0.3s;
}

.has-dropdown:hover .fa-angle-down {
    transform: rotate(180deg);
}

/* Dropdown Box (Desktop) */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 10000;
    list-style: none;
    border-top: 3px solid var(--primary);
    display: block; /* Flex override */
}

/* Show Dropdown on Hover */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown li {
    display: block;
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark) !important; /* Always dark text inside dropdown */
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    transition: 0.3s;
    white-space: nowrap;
}

.dropdown li a:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
    padding-left: 25px; /* Slide effect */
}

/* =========================
   MOBILE DROPDOWN FIX
   ========================= */
@media (max-width: 768px) {
    .has-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown {
        position: relative;
        top: 0;
        box-shadow: none;
        background: #f8fafc;
        border-top: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Hidden by default on mobile */
        border-radius: 8px;
        margin-top: 10px;
    }
    
    /* Click to show in mobile (Optional JS or simple hover) */
    .has-dropdown:hover .dropdown {
        display: block;
    }

    .dropdown li a {
        text-align: center;
        padding: 12px;
    }
    
    .dropdown li a:hover {
        padding-left: 12px; /* Remove slide on mobile */
        background: #e2e8f0;
    }
}