/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* Logo */
.navbar .logo img {
    height: 50px;
    width: auto;
    cursor: pointer;
}

/* Nav Links */
.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar .nav-links li {
    position: relative;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f5a623, #ff6b6b);
    transition: width 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #f5a623;
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.navbar .btn {
    background: linear-gradient(90deg, #f5a623, #f5a623);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.3);
    white-space: nowrap;
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.5);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #222;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* MODAL OVERLAY */
.modal {
    display: none;
    /* hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* MODAL CONTENT */
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.modal-content h2 {
    margin-top: 0;
    color: #f5a623;
    font-size: 1.5rem;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.modal-content button {
    background: #f5a623;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
}

.modal-content button:hover {
    background: #e59410;
}

/* CLOSE BUTTON */
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.dropdown {
    position: relative;
}

/* Submenu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

/* Submenu Items */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-left: 3px solid transparent;
}

/* Hover effect */
.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: #f5a623;
    border-left: 3px solid #f5a623;
    padding-left: 22px;
}

/* Show submenu on hover (desktop) */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 240px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
}

/* Submenu item links */
.dropdown-submenu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, padding-left 0.25s ease;
}

/* Hover effect */
.dropdown-submenu li a:hover {
    background: #f9f9f9;
    color: #f5a623;
    padding-left: 20px;
}

/* Show submenu on hover */
.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown-menu .dropdown:hover>.dropdown-submenu {
    display: block;
}


/* Small animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; /* hidden by default */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 90%;
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .navbar .nav-links.active {
        display: flex !important; /* force show on toggle */
        animation: slideDown 0.3s ease;
    }

    .navbar .nav-links {
        gap: 10px !important;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 10px;
        background: transparent;
    }

    .dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 0.9rem;
        border-left: none;
    }

    .dropdown-menu li a:hover {
        background: #f0f0f0;
        color: #f5a623;
        border-left: none;
        padding-left: 15px;
    }

    .dropdown-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding-left: 15px;
        background: transparent;
    }
    
    /*.dropdown:hover .dropdown-menu {*/
    /*    display: none !important;*/
    /*  }*/

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}