/* =========================================================
   HEADER — DARK THEME
   Project: ict.abusayed.net
========================================================= */

/* =========================================================
   TOP NAVIGATION
========================================================= */
nav.topnav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(16, 19, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #2a3141;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

nav.topnav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
    width: 100%;
}

/* =========================================================
   LOGO
========================================================= */
.logo {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #f0f0f5 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-text {
    position: relative;
    display: inline-block;
}

.logo-text::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #d97706;
    border-radius: 2px;
}

/* =========================================================
   RIGHT CONTROLS
========================================================= */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   DESKTOP ICON MENU
========================================================= */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-icons .icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    text-decoration: none;
}

.nav-icons .icon-btn:hover {
    background: rgba(217, 119, 6, 0.15);
    transform: translateY(-2px);
}

.nav-icons .icon-btn svg {
    width: 22px;
    height: 22px;
    stroke: #f0f0f5;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease, transform 0.25s ease;
}

.nav-icons .icon-btn:hover svg {
    stroke: #d97706;
    transform: scale(1.05);
}

/* =========================================================
   MOBILE-ONLY HOME ICON
========================================================= */
.mobile-home-btn {
    display: none;
}

/* =========================================================
   HAMBURGER BUTTON
========================================================= */
#hamburgerBtn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a3141;
    border-radius: 50%;
    background: #1a1d27;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    flex-shrink: 0;
}

#hamburgerBtn:hover {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.1);
    transform: translateY(-2px);
}

#hamburgerBtn .hamburger-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 18px;
    gap: 5px;
    position: relative;
    z-index: 1;
}

#hamburgerBtn .hamburger-box .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #f0f0f5;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

#hamburgerBtn:hover .bar {
    background: #d97706;
}

/* =========================================================
   SIDEBAR MENU
========================================================= */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    z-index: 100;
    background: #161a23;
    border-left: 1px solid #2a3141;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2a3141;
}

.menu-logo {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-weight: 700;
    font-size: 14px;
    color: #a0a0b8;
    letter-spacing: 0.5px;
}

.close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #2a3141;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    padding: 0;
    transition: all 0.25s ease;
}

.close-btn svg {
    width: 16px;
    height: 16px;
    stroke: #f0f0f5;
    fill: none;
    stroke-width: 1.8;
    transition: stroke 0.25s ease;
}

.close-btn:hover {
    border-color: #d97706;
}

.close-btn:hover svg {
    stroke: #d97706;
}

/* =========================================================
   SIDEBAR AUTH BUTTONS (Login + Registration)
========================================================= */
.menu-auth {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid #2a3141;
}

.menu-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Login — Outline (amber border) */
.menu-auth-btn--login {
    background: transparent;
    border: 1.5px solid #d97706;
    color: #d97706;
}

.menu-auth-btn--login:hover {
    background: rgba(217, 119, 6, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.3);
}

/* Registration — Solid (amber fill) */
.menu-auth-btn--register {
    background: #d97706;
    border: 1.5px solid #d97706;
    color: #10131a;
}

.menu-auth-btn--register:hover {
    background: #f2a93b;
    border-color: #f2a93b;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
}

/* =========================================================
   SIDEBAR NAV LINKS
========================================================= */
.menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    gap: 2px;
}

.menu-links a {
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-weight: 600;
    font-size: 18px;
    color: #a0a0b8;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #2a3141;
    transition: all 0.2s ease;
    text-decoration: none;
}

.menu-links a:last-child {
    border-bottom: none;
}

.menu-links a .num {
    font-size: 12px;
    color: #d97706;
    font-weight: 700;
}

.menu-links a:hover {
    color: #f0f0f5;
    padding-left: 6px;
}

/* =========================================================
   SIDEBAR BOTTOM (Contact + Social)
========================================================= */
.menu-bottom {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #2a3141;
    font-family: var(--mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    color: #6b7280;
}

.menu-bottom a {
    color: #a0a0b8;
    transition: color 0.2s;
    text-decoration: none;
}

.menu-bottom a:hover {
    color: #d97706;
}

.menu-social {
    display: flex;
    gap: 16px;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* ---------- Tablet & Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
    nav.topnav .wrap {
        height: 64px;
        padding: 0 18px;
    }

    .nav-icons {
        display: none;
    }

    /* ✅ লোগো টেক্সট বড় করা হয়েছে */
    .logo {
        font-size: 17px;
        letter-spacing: 1.8px;
    }

    /* ✅ মোবাইল হোম আইকন বড় করা হয়েছে */
    .mobile-home-btn {
        display: flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        border: 1px solid #2a3141;
        border-radius: 50%;
        background: #1a1d27;
        color: #f0f0f5;
        transition: all 0.25s ease;
        flex-shrink: 0;
        text-decoration: none;
        padding: 0;
    }

    .mobile-home-btn:hover,
    .mobile-home-btn:active {
        border-color: #d97706;
        background: rgba(217, 119, 6, 0.1);
        transform: translateY(-2px);
    }

    .mobile-home-btn svg {
        width: 24px;
        height: 24px;
        stroke: #f0f0f5;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke 0.25s ease;
    }

    .mobile-home-btn:hover svg {
        stroke: #d97706;
    }

    /* ✅ হ্যামবার্গার বড় করা হয়েছে */
    #hamburgerBtn {
        width: 46px;
        height: 46px;
    }

    #hamburgerBtn .hamburger-box {
        width: 24px;
        height: 20px;
        gap: 5px;
    }

    #hamburgerBtn .hamburger-box .bar {
        width: 24px;
    }

    .menu-overlay {
        width: 100%;
        max-width: 100%;
    }

    .menu-auth {
        padding: 18px 20px;
    }

    .menu-auth-btn {
        padding: 13px 16px;
        font-size: 13.5px;
    }
}

/* ---------- Small Mobile (max-width: 480px) ---------- */
@media (max-width: 480px) {
    nav.topnav .wrap {
        padding: 0 14px;
        height: 62px;
    }

    /* ✅ লোগো টেক্সট আরও বড় */
    .logo {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    /* ✅ হোম আইকন আরও বড় */
    .mobile-home-btn {
        width: 42px;
        height: 42px;
    }

    .mobile-home-btn svg {
        width: 22px;
        height: 22px;
    }

    /* ✅ হ্যামবার্গার আরও বড় */
    #hamburgerBtn {
        width: 42px;
        height: 42px;
    }

    #hamburgerBtn .hamburger-box {
        width: 22px;
        height: 18px;
        gap: 5px;
    }

    #hamburgerBtn .hamburger-box .bar {
        width: 22px;
    }

    .menu-links a {
        font-size: 17px;
        gap: 12px;
        padding: 13px 0;
    }

    .menu-links a .num {
        font-size: 11px;
    }

    .menu-auth {
        padding: 16px 18px;
        gap: 8px;
    }

    .menu-auth-btn {
        padding: 12px 14px;
        font-size: 12.5px;
    }

    .menu-top {
        padding: 16px 18px;
    }

    .menu-links {
        padding: 14px 18px 8px;
    }

    .menu-bottom {
        padding: 16px 18px 24px;
        flex-direction: column;
        gap: 12px;
    }
}

/* ---------- Extra Small Mobile (max-width: 360px) ---------- */
@media (max-width: 360px) {
    nav.topnav .wrap {
        padding: 0 12px;
        height: 60px;
    }

    .logo {
        font-size: 14px;
        letter-spacing: 1.2px;
    }

    .mobile-home-btn {
        width: 40px;
        height: 40px;
    }

    .mobile-home-btn svg {
        width: 20px;
        height: 20px;
    }

    #hamburgerBtn {
        width: 40px;
        height: 40px;
    }

    #hamburgerBtn .hamburger-box {
        width: 20px;
        height: 16px;
        gap: 4px;
    }

    #hamburgerBtn .hamburger-box .bar {
        width: 20px;
    }

    .menu-auth {
        grid-template-columns: 1fr;
        padding: 14px 16px;
    }
}