/* ========================================
   NAVBAR - FINAL CLEAN VERSION
   ======================================== */

/* Desktop Navbar */
.professional-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0, 123, 93, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.professional-header.scrolled {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.nav-container {
    width: 100%;
    max-width: 100%;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    background: #007b5d;
    border-radius: 8px;
    padding: 8px;
}

.logo span {
    color: #000;
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-links li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #007b5d;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007b5d;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 3px;
}

.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 123, 93, 0.08) !important;
    padding: 12px 0 !important;
    min-width: 260px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(15px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10000 !important;
    list-style: none !important;
    margin-top: 12px !important;
    pointer-events: none !important;
    display: block !important;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

.dropdown-section {
    padding: 0 !important;
    pointer-events: none !important;
}

.dropdown-section-title {
    display: block !important;
    padding: 12px 20px 8px !important;
    color: #007b5d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.dropdown-item i {
    color: #007b5d !important;
    font-size: 15px !important;
    width: 20px !important;
    text-align: center !important;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, #f0f9f6 0%, #e8f8f1 100%) !important;
    color: #007b5d !important;
    padding-left: 24px !important;
}

.dropdown-divider {
    height: 1px !important;
    background: #e8f8f1 !important;
    margin: 8px 16px !important;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.btn-signin,
.btn-signup {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-signin {
    color: #007b5d;
    border: 1px solid #007b5d;
    background: transparent;
}

.btn-signin:hover {
    background: #007b5d;
    color: white;
}

.btn-signup {
    background: #007b5d;
    color: white;
    border: 1px solid #007b5d;
}

.btn-signup:hover {
    background: #00a878;
    color: white;
    border-color: #00a878;
}

/* Hamburger - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 10001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #007b5d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Body padding for fixed navbar */
body {
    padding-top: 60px;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ========================================
   MOBILE & TABLET (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
        height: 58px;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    /* Hide desktop menu and dropdown */
    .nav-links,
    .auth-buttons,
    .dropdown-menu {
        display: none !important;
    }
    
    /* Show hamburger */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        background: transparent;
        border: none;
        z-index: 10001;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #007b5d;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    body {
        padding-top: 58px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 56px;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .hamburger span {
        width: 22px;
    }
    
    body {
        padding-top: 56px;
    }
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mobile-menu-content {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0) !important;
}

.mobile-menu-handle {
    padding: 12px 0;
    display: flex;
    justify-content: center;
    cursor: grab;
}

.mobile-menu-handle-bar {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 600;
    color: #007b5d;
    margin: 0;
}

.mobile-menu-body {
    padding: 20px 24px 40px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-section {
    margin-top: 20px;
}

.mobile-nav-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #007b5d;
    padding: 12px 20px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-nav-link span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-link:hover {
    background: #e8f5f1;
    color: #007b5d;
    transform: translateX(5px);
}

.mobile-nav-link i {
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover i {
    color: #007b5d;
    transform: translateX(3px);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.mobile-auth-buttons a,
.mobile-auth-buttons .mobile-btn-signin,
.mobile-auth-buttons .mobile-btn-signup {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mobile-auth-buttons .mobile-btn-signin {
    background: white;
    color: #007b5d;
    border: 2px solid #007b5d;
}

.mobile-auth-buttons .mobile-btn-signin:hover {
    background: #f0f9f6;
}

.mobile-auth-buttons .mobile-btn-signup {
    background: linear-gradient(135deg, #007b5d, #006b4f);
    color: white;
    border: 2px solid #007b5d;
}

.mobile-auth-buttons .mobile-btn-signup:hover {
    background: linear-gradient(135deg, #006b4f, #005a42);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 93, 0.3);
}
