/* ======================================================
   LOGO SECTION (LEFT)
   ====================================================== */

.nav-logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.nav-logo-section .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-logo-section .logo-link:hover {
    transform: scale(1.05);
}

.nav-logo-section img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(102, 204, 255, 0.3));
}

.nav-logo-section .logo-link:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(102, 204, 255, 0.6));
}

.logo-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(102, 204, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-logo-section .logo-link:active .logo-ripple {
    width: 100px;
    height: 100px;
    opacity: 0;
}

/* Mobile logo */
@media (max-width: 768px) {
    .nav-logo-section img {
        height: 32px;
    }
}

/* ======================================================
   NAVBAR BASE
   ====================================================== */

.modern-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: none;
}

.modern-nav.scrolled {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.modern-nav:hover {
    background: transparent;
    border-bottom: none;
}

/* ======================================================
   NAV CONTAINER
   ====================================================== */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nav-container {
        height: 60px;
        padding: 0 1rem;
        gap: 1rem;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }
    
    .nav-logo-section img {
        height: 28px;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 375px) {
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .nav-logo-section img {
        height: 26px;
    }
    
    .action-btn {
        width: 38px;
        height: 38px;
    }
}

/* ======================================================
   NAV MENU
   ====================================================== */

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    background: rgba(102, 204, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 204, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(102, 204, 255, 0.2);
    color: var(--water-cyan);
    transform: translateY(-2px);
    border-color: rgba(102, 204, 255, 0.3);
    box-shadow: 0 4px 15px rgba(102, 204, 255, 0.2);
}

.nav-item.active {
    background: rgba(102, 204, 255, 0.25);
    color: var(--water-cyan);
    border-color: rgba(102, 204, 255, 0.4);
    box-shadow: 0 4px 20px rgba(102, 204, 255, 0.3);
}

.nav-item.active .nav-underline {
    width: 60%;
}

.nav-icon {
    color: var(--water-cyan);
    font-size: 1rem;
}

.nav-text {
    white-space: nowrap;
}

.nav-underline {
    position: absolute;
    bottom: 6px;
    left: 20%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--water-cyan), var(--primary-blue));
    transition: width 0.3s ease;
}

.nav-item:hover .nav-underline {
    width: 60%;
}

/* ======================================================
   NAV ACTIONS (SEARCH + HAMBURGER)
   ====================================================== */

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(102, 204, 255, 0.12);
    border: 2px solid rgba(102, 204, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--water-cyan);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: rgba(102, 204, 255, 0.25);
    border-color: var(--water-cyan);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 204, 255, 0.3);
    color: #ffffff;
}

.action-btn:active {
    transform: scale(0.95);
}

.btn-ripple {
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(102, 204, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.action-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* ======================================================
   HAMBURGER
   ====================================================== */

.hamburger-menu-btn {
    display: none;
}

.hamburger-icon {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    height: 2.5px;
    width: 100%;
    background: var(--water-cyan);
    border-radius: 2px;
}

/* ======================================================
   MOBILE RULES
   ====================================================== */

@media (max-width: 768px) {

    .nav-menu {
        display: none;
    }

    .search-toggle {
        display: none;
    }

    .hamburger-menu-btn {
        display: flex;
    }
}

/* ======================================================
   NAV HIDE / SHOW (OPTIONAL CLASS)
   ====================================================== */


/* ======================================================
   SAFE SPACING FOR PAGE CONTENT
   ====================================================== */

.main-content {
    padding-top: 70px;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 60px;
    }
}
