
/* ================= TOP BAR ================= */
.top-bar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1301;
    background-color: var(--secondryColor);
    padding: 8px 0;
    transition: var(--transition);
}

.topmenu-text {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 0;
}

.topmenu-text a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.topmenu-text a:hover {
    opacity: 1;
    color: var(--identity);
}

.topmenu-text i {
    margin-right: 8px;
    color: var(--identity);
}

/* ================= NAVBAR ================= */
.custom-navbar {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(170, 224, 249, 0.5);
    z-index: 1300;
    top: 40px; /* matches top-bar height */
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primaryColor);
    letter-spacing: -0.5px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--black) !important;
    text-transform: uppercase;
    padding: 10px 15px !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primaryColor) !important;
}

/* Underline indicator */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--primaryColor);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after {
    width: 30px;
}

/* ================= WHATSAPP BUTTON ================= */
.whatsapp-btn {
    background: var(--primaryColor);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(205, 21, 24, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: var(--secondryColor);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 8, 141, 0.4);
}

/* ================= MEGA MENU ================= */
.mega-dropdown {
    position: static;
}

.mega-menu {
    display: block;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 4px solid var(--primaryColor);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

.mega-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-inner {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 1.5rem;
}

.mega-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondryColor);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mega-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--identity);
}

.mega-menu a {
    display: block;
    font-size: 14px;
    color: #555;
    padding: 8px 0;
    text-decoration: none;
    transition: var(--transition);
}

.mega-menu a:hover {
    color: var(--primaryColor);
    padding-left: 8px;
}

.mega-close {
    background: var(--primaryColor);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}
/* ================= RESPONSIVE FIXES ================= */
@media (max-width: 1199px) {
    body { padding-top: 70px; }
    .top-bar { display: none; }
    .custom-navbar { top: 0; padding: 15px 0; }
    
    .mega-menu {
        position: fixed;
        top: 0;
        height: 100vh;
        z-index: 2000;
        overflow-y: auto;
        border-top: none;
    }
    
    .mega-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: var(--gray-light);
        border-bottom: 1px solid var(--identity);
    }
    
    .mega-close {
        background: var(--primaryColor);
        border: none;
        color: white;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 24px;
        line-height: 1;
    }
}

/* ================= FLOATING WHATSAPP ================= */
.floating-whatsapp{
    position: fixed !important;
    right: 20px;
    bottom: 20px;

    width: 60px;
    height: 60px;

    background: #25D366;
    color: #fff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;

    z-index: 2147483647 !important; /* ABSOLUTE TOP */

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.floating-whatsapp:hover{
    transform: scale(1.15);
    color: #fff;
}


/* Smooth Scroll aur Offset Fix */
html {
    scroll-behavior: smooth;
}

/* Jab page jump karega, toh wo header ke peeche nahi chupega */
section[id] {
    scroll-margin-top: 130px; /* Topbar + Navbar height */
}
