/* 
 * Premium Header & Mega-Menu Styles 
 * Project: SkyDreamix Tech Solution
 */

:root {
    --header-height: 90px;

    --primary-color: #2EA3D6;
    --primary-dark: #1B6CA8;

    --highlight-color: #00E5FF;
    --highlight-purple: #7C3AED;
    --white: #ffffff;
    --dark: #08fd2d;
    --dark-text: #111827;

    --bg-light: #F5FAFF;

    --text-gray: #1e1e1e;

    --gradient-primary: linear-gradient(135deg, #3B82F6, #3FAADC);
    --section-padding: 50px 0px;
}

/* Top Header Modernization */
.top-header {
    background: linear-gradient(90deg, #2EA3D6 0%, #1B6CA8 100%);
    padding: 6px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.responsive-dropdown {
    display: none;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    background: #fff;
    border-radius: 15px;
}

.responsive-dropdown li {
    padding: 0;
    margin-bottom: 5px;
}


.responsive-dropdown li:last-child {
    margin-bottom: 0;
}

.responsive-dropdown li a {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 15px 25px !important;
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.responsive-dropdown li a i {
    font-size: 1.1rem;
    color: var(--primary-blue);
    width: 24px;
    text-align: center;
}

.responsive-dropdown li a:hover,
.responsive-dropdown li a:active {
    background: rgba(46, 163, 214, 0.12);
    /* Brighter sky blue background */
    color: #2EA3D6 !important;
    /* Sky Blue text */
    transform: translateX(12px);
    box-shadow: 0 5px 15px rgba(46, 163, 214, 0.1);
}

.responsive-dropdown li a:hover i {
    color: #00E5FF;
    /* Vibrant Highlight Color icon */
    transform: scale(1.15) rotate(5deg);
}

.responsive-dropdown li a:active i {
    animation: iconPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconPulse {
    0% { transform: scale(1.15) rotate(5deg); }
    50% { transform: scale(1.6) rotate(-15deg); color: #fff; }
    100% { transform: scale(1.15) rotate(5deg); }
}

.top-header i {
    font-size: 18px;
}

.top-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    gap: 25px;
}

.top-left a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.top-left a i {
    color: var(--white);
    font-size: 0.9rem;
}

.top-left a:hover {
    color: var(--bg-light);
}

.top-right {
    display: flex;
    gap: 15px;
}

.top-right i {
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-right i:hover {

    transform: translateY(-2px);
}

/* Main Header Glassmorphism */
.main-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    padding: 2px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    height: 50px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Nav Links */
.navbar-nav .nav-link {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    padding: 10px 15px !important;
    position: relative;
    transition: all 0.3s ease;
    border: none !important;
    white-space: nowrap !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px !important;
    /* Force exact thickness */
    background: #2ea3d6;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
    pointer-events: none;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #2ea3d6;
    font-weight: 600 !important;
    background: transparent !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link-title {
    display: flex;
    align-items: center;
}

.custom-dropdown {
    position: relative;
}

.premium-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 163, 214, 0.1) !important;
    border-radius: 20px !important;
    padding: 15px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    min-width: 280px !important;
    margin-top: 15px !important;
    opacity: 0;
    visibility: hidden;
    display: block !important;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-dropdown:hover .premium-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.premium-dropdown .dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 15px;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    color: #1e293b !important;
    white-space: normal !important;
}

.premium-dropdown .dropdown-item:hover,
.premium-dropdown .dropdown-item.active {
    background: rgba(46, 163, 214, 0.05) !important;
    transform: translateX(5px);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 163, 214, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.premium-dropdown .dropdown-item:hover .dropdown-icon,
.premium-dropdown .dropdown-item.active .dropdown-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content .title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    display: block;
}

.dropdown-content .desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Mega Menu Core */
.nav-item.mega-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 0;
    z-index: 999;
}

.nav-item.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.mega-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #020617;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.mega-col h4 i {
    color: #2ea3d6;
}

.mega-col a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.mega-col a i {
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    color: #2ea3d6;
}

.mega-col a:hover {
    color: #2ea3d6;
    padding-left: 5px;
}

.mega-col a:hover i {
    opacity: 1;
}

/* Mega Image / Card Style */
.mega-image {
    grid-column: span 2;
    background: #f8fafc;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mega-image-top,
.mega-image-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mega-img-box {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.mega-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s ease;
}

.mega-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9), rgba(46, 163, 214, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.mega-img-overlay span {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-img-box:hover img {
    transform: scale(1.15);
}

.mega-img-box:hover .mega-img-overlay {
    opacity: 1;
    transform: translateY(0);
}

.mega-image a:hover img {
    transform: scale(1.15);
}

/* Header Buttons */
.header-btns {
    display: flex;
    gap: 15px;
    align-items: center;
}

.call-btn {
    color: var(--white);
    background-color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(46, 163, 214, 0.3);
}

.call-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(9, 11, 12, 0.4);
}

.call-btn i {
    color: var(--primary-color);
}

.quote-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(46, 163, 214, 0.3);
}

.quote-btn:hover {
    background: #1b6ca8;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(46, 163, 214, 0.4);
    color: var(--white);
}

/* Responsive */
/* Responsive Adjustments */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 10px 6px !important;
        font-size: 0.88rem;
    }

    .header-btns {
        gap: 8px;
    }

    .call-btn,
    .quote-btn {
        padding: 10px 15px;
        font-size: 0.82rem;
    }

    .navbar-brand img {
        height: 45px;
        max-width: 190px;
    }
}

/* Consolidated Mobile & Tablet Styles (< 992px) */
@media (max-width: 991px) {
    .mega-grid {
        display: none;
    }

    .responsive-dropdown {
        display: block;
    }

    .top-header {
        padding: 8px 0;
    }

    .top-header-flex .top-left {
        display: none !important;
    }

    .top-header-flex .top-right {
        justify-content: center !important;
        width: 100% !important;
    }

    .main-header {
        background: #fff !important;
        padding: 8px 0;
    }

    .navbar {
        padding: 0;
    }

    .navbar-brand img {
        height: 42px;
        max-width: 170px;
    }

    /* Navbar Toggler Customization */
    .navbar .navbar-toggler {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        transition: all 0.3s ease;
    }

    .hamburger-icon {
        width: 30px !important;
        height: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .hamburger-icon span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #2ea3d6 !important;
        border-radius: 4px !important;
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover .hamburger-icon span {
        background-color: #1b6ca8 !important;
    }

    /* Mobile Navigation Container */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 10000;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        overflow-y: auto;
        visibility: hidden;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-menu-header img {
        height: 38px;
        max-width: 150px;
        width: auto;
        object-fit: contain;
    }

    .mobile-menu-header .close-btn {
        background: rgba(46, 163, 214, 0.05);
        border: none;
        font-size: 1.4rem;
        color: var(--primary-color);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .navbar-nav {
        padding: 20px 25px;
        gap: 0;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 15px 10px !important;
        font-size: 1.05rem;
        font-weight: 600;
        color: #1e293b;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-nav .nav-link i.d-lg-none {
        width: 30px;
        text-align: center;
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link i.fa-chevron-down {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .nav-item.show>.nav-link i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    /* Target dropdowns specifically on mobile */
    .premium-dropdown,
    .mega-menu {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: #f8fafc !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
    }

    .nav-item.show .premium-dropdown,
    .nav-item.show .mega-menu {
        display: block !important;
        animation: mobileMenuFadeIn 0.4s ease;
    }

    @keyframes mobileMenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .premium-dropdown .dropdown-item {
        padding: 12px 20px !important;
        border-radius: 0 !important;
        transform: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    }

    .mega-grid {
        display: none;
        /* Already hidden or to be toggled */
        grid-template-columns: 1fr;
        padding: 0 25px 20px;
        gap: 0;
    }

    .nav-item.show .mega-menu {
        display: block !important;
    }

    .mega-col {
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        padding: 5px 0;
    }

    .mega-col h4 {
        margin-bottom: 0;
        font-size: 1rem;
        color: #1e293b;
        padding: 12px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 600;
    }

    .mega-col h4::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
        color: var(--primary-color);
    }

    .mega-col.active h4::after {
        transform: rotate(180deg);
    }

    .mega-col .mega-links {
        display: none;
        padding-bottom: 10px;
    }

    .mega-col.active .mega-links {
        display: block;
        animation: mobileMenuFadeIn 0.3s ease;
    }

    .mega-col a {
        padding: 8px 15px;
        margin-bottom: 0;
        border-bottom: none;
        font-size: 0.9rem;
        color: #64748b;
        display: flex;
        align-items: center;
    }

    .mega-col a i {
        display: inline-block;
        opacity: 1;
        margin-right: 10px;
        font-size: 0.7rem;
    }

    .mega-image {
        display: none;
    }

    .header-btns {
        flex-direction: column;
        padding: 25px;
        gap: 15px;
        width: 100%;
        margin-bottom: 60px;
    }

    .mobile-action-btn {
        width: 100%;
        justify-content: center !important;
        padding: 16px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center;
        gap: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
    }

    .mobile-action-btn.call-now {
        background: #22c55e !important;
        /* Vivid Green */
        color: #fff !important;
    }

    .mobile-action-btn.whatsapp-now {
        background: #128c7e !important;
        /* WhatsApp Dark Green */
        color: #fff !important;
    }

    .mobile-action-btn.get-quote {
        background: #3b82f6 !important;
        /* Professional Blue */
        color: #fff !important;
    }

    .header-btns .mobile-action-btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {

    .navbar-brand img,
    .mobile-menu-header img {
        height: 38px !important;
        max-width: 180px !important;
    }

    .navbar .navbar-toggler {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Scroll Lock helper */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.hamburger-icon {
    width: 26px;
    height: 16px;
}

.main-header.scrolled {
    padding: 10px 0px;
}