/* ============================================
   RESPONSIVE NAVIGATION MENU - FIXED
   ============================================ */

/* Navbar Base Styles */
.navbar {
    background: rgba(11, 59, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(11, 59, 47, 0.98);
    padding: 0.3rem 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

/* Logo Styles */
.logo {
    z-index: 1001;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo-badge {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-corporate-text .company {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.logo-corporate-text .highlight {
    color: #4CAF50;
}

.logo-corporate-text .slogan {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    list-style: none;
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    font-size: 14px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: #4CAF50;
}

.nav-link.active {
    color: #4CAF50;
}

.cta-nav {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    padding: 8px 20px !important;
    border-radius: 50px;
    margin-left: 5px;
}

.cta-nav::before {
    display: none;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Academy Link Special Styling */
.nav-links li:first-child .nav-link {
    color: #FFD700;
    font-weight: 700;
}

.nav-links li:first-child .nav-link:hover {
    color: #FFC107;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Mobile Menu Animation */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Breakpoint */
@media (max-width: 992px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, #0B3B2F 0%, #1a5d4a 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 80px 20px 30px;
        overflow-y: auto;
        padding-top: 90px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0;
        padding: 0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 10px;
    }
    
    .nav-link {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
        width: 100%;
        text-align: left;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    .nav-link.active {
        background: rgba(76, 175, 80, 0.15);
        border-radius: 8px;
        color: #4CAF50;
    }
    
    .cta-nav {
        margin: 10px 0 0;
        text-align: center;
        padding: 14px 20px !important;
        border-radius: 10px;
        width: 100%;
        justify-content: center;
    }
    
    .cta-nav:hover {
        transform: none;
    }
    
    /* Academy link mobile styling */
    .nav-links li:first-child .nav-link {
        color: #FFD700;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 999;
        display: none;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Adjust logo size on mobile */
    .logo-badge {
        width: 38px;
        height: 38px;
    }
    
    .logo-corporate-text .company {
        font-size: 15px;
    }
    
    .logo-corporate-text .slogan {
        display: none;
    }
    
    .navbar {
        height: 60px;
        padding: 0.3rem 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 12px;
    }
    
    .nav-links {
        width: 90%;
        max-width: 300px;
        padding: 70px 15px 20px;
    }
    
    .logo-badge {
        width: 32px;
        height: 32px;
    }
    
    .logo-corporate-text .company {
        font-size: 13px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .menu-toggle .bar {
        width: 24px;
        height: 2.5px;
    }
}

/* Animation for menu items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links.active li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.nav-links.active li:nth-child(1) { animation-delay: 0.05s; }
.nav-links.active li:nth-child(2) { animation-delay: 0.1s; }
.nav-links.active li:nth-child(3) { animation-delay: 0.15s; }
.nav-links.active li:nth-child(4) { animation-delay: 0.2s; }
.nav-links.active li:nth-child(5) { animation-delay: 0.25s; }
.nav-links.active li:nth-child(6) { animation-delay: 0.3s; }
.nav-links.active li:nth-child(7) { animation-delay: 0.35s; }
.nav-links.active li:nth-child(8) { animation-delay: 0.4s; }
.nav-links.active li:nth-child(9) { animation-delay: 0.45s; }

/* Hide scrollbar on mobile menu */
.nav-links::-webkit-scrollbar {
    width: 3px;
}

.nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 10px;
}