/* ==================== NAVBAR STYLES ==================== */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

/* Logo Section */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 45px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #2d3748;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    list-style: none;
    padding: 12px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #667eea;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 5px);
    pointer-events: all;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    margin: 0 8px;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: white;
    transition: height 0.3s ease;
    border-radius: 2px;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding-left: 32px;
    transform: translateX(2px);
}

.dropdown-link:hover::before {
    height: 70%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #2d3748;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Active Link State */
.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    width: 100%;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media screen and (max-width: 992px) {
    .nav-container {
        padding: 0 30px;
    }

    .nav-menu {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 90px;
    }

    .logo-img {
        height: 60px;
    }

    .logo-text {
        font-size: 30px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 30px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
    }

    .nav-link {
        justify-content: center;
        font-size: 17px;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }

    .dropdown-link {
        padding: 10px 24px;
        font-size: 15px;
    }

    .dropdown-link:hover {
        padding-left: 24px;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 80px;
    }

    .logo-img {
        height: 52px;
    }

    .logo-text {
        font-size: 28px;
    }

    .hamburger span {
        width: 25px;
    }

    .nav-menu {
        top: 80px;
    }
}
