/* ==========================================================
   AAHAN TECHNOLOGIES
   MODERN HEADER
   ========================================================== */


/* ==========================================================
   1. HEADER / NAVBAR
   ========================================================== */

.aahan-header {
    position: relative;
    z-index: 9999;
}

.aahan-navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999;

    padding: 14px 0;

    background: rgba(5, 8, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        padding 0.25s ease;
}


/* Optional class for future scroll behavior */
.aahan-navbar.is-scrolled {
    background: rgba(5, 8, 22, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}


/* ==========================================================
   2. LOGO
   ========================================================== */

.aahan-brand {
    display: inline-flex;
    align-items: center;

    margin-right: 24px;
    padding: 0;
}

.aahan-brand img {
    display: block;

    width: auto;
    height: 58px;

    object-fit: contain;
}


/* ==========================================================
   3. MAIN NAVIGATION
   ========================================================== */

.aahan-menu {
    gap: 18px;

    align-items: center;
}

.aahan-menu .nav-item {
    position: relative;
}

.aahan-menu .nav-link {
    position: relative;

    padding: 14px 0;

    color: #ffffff;

    font-family: "Figtree", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.aahan-menu .nav-link:hover,
.aahan-menu .nav-link:focus,
.aahan-menu .nav-link.show {
    color: #8b5cf6;
}


/* Dropdown arrow */
.aahan-menu .dropdown-toggle::after {
    margin-left: 7px;

    vertical-align: 0.14em;

    border-top-width: 0.32em;

    transition: transform 0.2s ease;
}

.aahan-menu .dropdown-toggle.show::after {
    transform: rotate(180deg);
}


/* ==========================================================
   4. PHONE CTA
   ========================================================== */

.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 12px 20px;

    border: 1px solid rgba(59, 130, 246, 0.55);
    border-radius: 12px;

    background: rgba(37, 99, 235, 0.25);

    color: #ffffff;
    text-decoration: none;

    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.header-phone i {
    color: #8b5cf6;
}

.header-phone:hover {
    color: #ffffff;

    background: rgba(124, 58, 237, 0.28);
    border-color: rgba(139, 92, 246, 0.7);

    transform: translateY(-1px);
}


/* ==========================================================
   5. MOBILE TOGGLER
   ========================================================== */

.aahan-toggler {
    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    box-shadow: none;
}

.aahan-toggler:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.aahan-toggler i {
    color: #ffffff;
    font-size: 20px;
}


/* ==========================================================
   6. SERVICES MEGA MENU
   ========================================================== */

.aahan-mega-menu {
    position: absolute;

    top: calc(100% + 16px);

    left: 2.5%;
    right: 2.5%;

    width: 95%;

    margin: 0;

    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(9, 15, 35, 0.99),
            rgba(13, 27, 62, 0.99)
        );

    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);

    color: #ffffff;
}


/* Bootstrap handles display with .show */
.aahan-mega-menu.show {
    display: block;
}


/* ==========================================================
   7. MEGA MENU GRID
   ========================================================== */

.mega-grid {
    display: grid;

    grid-template-columns:
        1.1fr
        1.1fr
        1.1fr
        1fr;

    gap: 26px;
}


/* ==========================================================
   8. MEGA MENU COLUMNS
   ========================================================== */

.mega-col {
    padding-right: 24px;

    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mega-col h4 {
    margin: 14px 0 18px;

    color: #ffffff;

    font-family: "Figtree", sans-serif;
    font-size: 17px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mega-col a {
    display: block;

    position: relative;

    padding: 11px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    color: #dbeafe;
    text-decoration: none;

    font-family: "Figtree", sans-serif;
    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.mega-col a::before {
    content: "›";

    margin-right: 10px;

    color: #60a5fa;

    font-size: 22px;
    line-height: 1;

    vertical-align: -2px;
}

.mega-col a:hover {
    color: #8b5cf6;

    transform: translateX(4px);
}


/* ==========================================================
   9. MEGA MENU ICONS
   ========================================================== */

.mega-icon,
.cta-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 16px;

    color: #ffffff;

    font-size: 22px;
}

.mega-icon.purple {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.mega-icon.blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.mega-icon.green {
    background: linear-gradient(135deg, #14b8a6, #22c55e);
}

.cta-circle {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}


/* ==========================================================
   10. MEGA MENU CTA
   ========================================================== */

.mega-cta {
    padding: 25px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at top left,
            rgba(124, 58, 237, 0.45),
            rgba(37, 99, 235, 0.15)
        );
}

.mega-cta h3 {
    margin: 18px 0;

    color: #ffffff;

    font-family: "Figtree", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.mega-cta ul {
    margin: 0 0 22px;
    padding: 0;

    list-style: none;
}

.mega-cta li {
    margin-bottom: 11px;

    color: #e5e7eb;

    font-size: 14px;
}

.mega-cta li i {
    margin-right: 8px;

    color: #8b5cf6;
}

.mega-btn {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    padding: 14px 20px;

    border-radius: 12px;

    background: linear-gradient(135deg, #7c3aed, #2563eb);

    color: #ffffff;
    text-decoration: none;

    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mega-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.mega-cta p {
    margin: 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


/* ==========================================================
   11. NORMAL DROPDOWNS
   ========================================================== */

.normal-dropdown {
    min-width: 230px;

    margin-top: 14px;

    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;

    background: #0f1b3d;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.normal-dropdown .dropdown-item {
    padding: 10px 14px;

    border-radius: 8px;

    color: #ffffff;

    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.normal-dropdown .dropdown-item:hover,
.normal-dropdown .dropdown-item:focus {
    background: rgba(124, 58, 237, 0.25);

    color: #ffffff;

    transform: translateX(3px);
}


/* ==========================================================
   12. DESKTOP
   ========================================================== */

@media (min-width: 992px) {

    .aahan-navbar .navbar-collapse {
        align-items: center;
    }

    .aahan-mega-menu {
        max-height: calc(100vh - 120px);

        overflow-y: auto;
    }

}


/* ==========================================================
   13. TABLET / MOBILE
   ========================================================== */

@media (max-width: 991px) {

    .aahan-navbar {
        padding: 10px 0;
    }


    /* Logo */

    .aahan-brand img {
        height: 45px;
    }


    /* Collapse */

    .aahan-navbar .navbar-collapse {
        margin-top: 14px;
        padding: 15px;

        max-height: calc(100vh - 90px);

        overflow-y: auto;

        border: 1px solid #e5e7eb;
        border-radius: 18px;

        background: #ffffff;

        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    }


    /* Navigation */

    .aahan-menu {
        gap: 0;

        align-items: stretch;
    }

    .aahan-menu .nav-item {
        width: 100%;
    }

    .aahan-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        padding: 13px 8px;

        border-bottom: 1px solid #e5e7eb;

        color: #111827;

        font-size: 15px;
    }

    .aahan-menu .nav-link:hover,
    .aahan-menu .nav-link:focus,
    .aahan-menu .nav-link.show {
        color: #7c3aed;
    }


    /* Phone */

    .header-phone {
        display: flex;

        width: 100%;

        margin-top: 14px;

        background: #142850;

        color: #ffffff;
    }


    /* Mega menu */

    .aahan-mega-menu {
        position: static;

        width: 100%;

        margin-top: 0;

        padding: 12px;

        border-radius: 12px;

        background: #142850;

        box-shadow: none;
    }

    .mega-grid {
        display: block;
    }

    .mega-col {
        padding: 12px 0;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mega-col:last-of-type {
        border-bottom: 0;
    }

    .mega-col h4 {
        margin: 8px 0;

        font-size: 14px;
    }

    .mega-col a {
        padding: 8px 0;

        font-size: 13px;
    }

    .mega-icon {
        display: none;
    }


    /* Mega CTA */

    .mega-cta {
        margin-top: 12px;
        padding: 16px;
    }

    .mega-cta h3 {
        font-size: 18px;
    }


    /* Normal dropdown */

    .normal-dropdown {
        position: static;

        width: 100%;

        margin: 0;

        padding: 6px;

        border: 0;
        border-radius: 10px;

        background: #142850;

        box-shadow: none;
    }

    .normal-dropdown .dropdown-item {
        color: #ffffff;

        font-size: 13px;
    }


    /* Bootstrap open state */

    .dropdown-menu.show {
        display: block;
    }

}


/* ==========================================================
   14. SMALL MOBILE
   ========================================================== */

@media (max-width: 575px) {

    .aahan-navbar .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .aahan-brand img {
        height: 42px;
    }

    .aahan-navbar .navbar-collapse {
        border-radius: 14px;
    }

    .mega-cta {
        border-radius: 14px;
    }

}

/* ==========================================================
   HEADER DROPDOWN CONFLICT FIX
   Keep this at the END of modern-header.css
   ========================================================== */


/* ----------------------------------------------------------
   NAVBAR LINK STATES
   ---------------------------------------------------------- */

.aahan-header .aahan-navbar .aahan-menu .nav-link,
.aahan-header .aahan-navbar .aahan-menu .nav-link:visited {
    color: #ffffff !important;
    background: transparent !important;
}

.aahan-header .aahan-navbar .aahan-menu .nav-link:hover,
.aahan-header .aahan-navbar .aahan-menu .nav-link:focus,
.aahan-header .aahan-navbar .aahan-menu .nav-link.show,
.aahan-header .aahan-navbar .aahan-menu .nav-link[aria-expanded="true"] {
    color: #8b5cf6 !important;
    background: transparent !important;
}


/* ----------------------------------------------------------
   DROPDOWN ARROW
   ---------------------------------------------------------- */

.aahan-header .dropdown-toggle::after {
    color: inherit !important;
}


/* ----------------------------------------------------------
   NORMAL DROPDOWN
   ---------------------------------------------------------- */

.aahan-header .normal-dropdown {
    min-width: 260px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;

    margin: 12px 0 0 !important;
    padding: 10px !important;

    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;

    background: #0f1b3d !important;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35) !important;
}


/* Bootstrap controls display */
.aahan-header .normal-dropdown:not(.show) {
    display: none;
}

.aahan-header .normal-dropdown.show {
    display: block !important;
}


/* ----------------------------------------------------------
   DROPDOWN ITEMS
   ---------------------------------------------------------- */

.aahan-header .normal-dropdown li {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
}


.aahan-header .normal-dropdown .dropdown-item {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 11px 14px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;

    color: #ffffff !important;

    font-family: "Figtree", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-align: left !important;
    text-decoration: none !important;

    white-space: nowrap !important;

    opacity: 1 !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.aahan-header .normal-dropdown .dropdown-item:hover,
.aahan-header .normal-dropdown .dropdown-item:focus,
.aahan-header .normal-dropdown .dropdown-item:active,
.aahan-header .normal-dropdown .dropdown-item.active {
    background: rgba(124, 58, 237, 0.25) !important;

    color: #ffffff !important;

    transform: translateX(3px);
}


/* ----------------------------------------------------------
   DESKTOP POSITION
   ---------------------------------------------------------- */

@media (min-width: 992px) {

    .aahan-header .nav-item.dropdown {
        position: relative;
    }

    .aahan-header .nav-item.dropdown.position-static {
        position: static !important;
    }


    .aahan-header .normal-dropdown {
        position: absolute !important;

        top: 100% !important;
        left: 0 !important;
        right: auto !important;

        transform: none !important;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 991px) {

    .aahan-header .normal-dropdown {
        position: static !important;

        width: 100% !important;
        min-width: 100% !important;

        margin: 0 !important;
        padding: 6px !important;

        transform: none !important;

        border: 0 !important;
        border-radius: 10px !important;

        background: #142850 !important;

        box-shadow: none !important;
    }


    .aahan-header .normal-dropdown .dropdown-item {
        padding: 10px 12px !important;

        color: #ffffff !important;

        white-space: normal !important;
    }

}