/* ================================================
   MODERN NAVIGATION STYLES WITH GLASSMORPHISM
   ================================================ */

:root {
    --primary: #2596be;
    --secondary: #fd9909;
    --dark: #333;
    --light: #f4f4f4;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 0 2rem !important;
}

/* ================================================
   NAVBAR GLASSMORPHISM
   ================================================ */

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(37, 150, 190, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-height: 70px;
    margin: auto;
}

/* LOGO STYLING */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* NAVIGATION MENU */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    border-radius: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(37, 150, 190, 0.08);
}

.nav-link:hover::before {
    width: 30px;
}

.nav-link.active {
    color: var(--secondary);
    background: rgba(253, 153, 9, 0.08);
}

.nav-link.active::before {
    width: 30px;
    background: var(--secondary);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}

.line {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .line-1 {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .line-2 {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .line-3 {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* PACKAGES DROPDOWN */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 150, 190, 0.1);
    border-radius: 12px;
    min-width: 300px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-inner {
    padding: 0.5rem 0;
}

.dropdown-header {
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(37, 150, 190, 0.1);
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(37, 150, 190, 0.08);
    color: var(--secondary);
    padding-left: 2rem;
}

.package-name {
    flex: 1;
    font-weight: 500;
    min-width: 150px;
}

.package-location {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

.dropdown-item:hover .package-location {
    color: var(--secondary);
}

.dropdown-view-all {
    background: rgba(253, 153, 9, 0.08);
    border-top: 1px solid rgba(37, 150, 190, 0.1);
    font-weight: 600;
    color: var(--secondary);
}

.dropdown-view-all:hover {
    background: rgba(253, 153, 9, 0.15);
}

/* NAVIGATION UNDERLINE */
.nav-underline {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar:hover .nav-underline {
    transform: scaleX(1);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 1rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
    }

    .nav-link::before {
        display: none;
    }

    .nav-link:hover {
        background: rgba(37, 150, 190, 0.1);
        color: var(--secondary);
    }

    .logo-text {
        display: none;
    }

    .nav-container {
        gap: 1rem;
    }

    /* Mobile dropdown handling */
    .nav-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(37, 150, 190, 0.1);
        border-radius: 8px;
        margin: 0.5rem 1rem;
        box-shadow: none;
        min-width: auto;
        width: calc(100% - 2rem);
    }

    .dropdown-header {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .package-name {
        flex: none;
        min-width: auto;
        font-size: 0.9rem;
    }

    .package-location {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

/* ================================================
   ANIMATION KEYFRAMES
   ================================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.navbar {
    animation: slideInDown 0.6s ease-out;
}