/* ===== NAVIGATION STYLES ===== */
.navigation {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-container {
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(236, 198, 181, 0.6);
    border-radius: 32px;
    padding: 16px 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

/* ===== LOGO STYLES ===== */
.logo-link {
    display: inline-block;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 56px;
    width: auto;
    display: block;
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    padding: 8px 0;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ecc6b5, #d4a574);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

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

.nav-link.active {
    color: #ffffff;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    background: none;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 4px;
}

/* Hamburger Animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.mobile-nav.active {
    max-height: 140px;
    opacity: 1;
    padding-top: 16px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.mobile-nav-link {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    padding: 8px 0;
    transition: all 0.3s ease;
    opacity: 0;
    letter-spacing: 1.5px;
}

.mobile-nav.active .mobile-nav-link {
    opacity: 1;
    transition-delay: calc(var(--i, 0) * 0.1s);
}

.mobile-nav-link.navigating {
    opacity: 1 !important;
    pointer-events: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffffff;
}

.mobile-nav-link.active {
    color: #ecc6b5;
}

/* ===== RESPONSIVE STYLES ===== */

/* Desktop */
@media (min-width: 1025px) {
    .logo-image {
        height: 64px;
    }
    
    .navigation {
        width: 820px;
    }
    
    .nav-container {
        padding: 18px 60px;
        border-radius: 32px;
    }
    
    .desktop-nav {
        display: flex;
        gap: 44px;
    }
    
    .hamburger {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
    .logo-image {
        height: 56px;
    }
    
    .navigation {
        width: 580px;
    }
    
    .nav-container {
        padding: 16px 32px;
        border-radius: 32px;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .hamburger {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .logo-image {
        height: 48px;
    }
    
    .navigation {
        top: 24px;
        width: calc(100% - 30px);
        max-width: none;
    }
    
    .nav-container {
        padding: 20px 20px;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-radius: 32px;
    }
    
    .nav-content {
        padding: 0 4px 0 8px;
    }
    
    .nav-container.expanded {
        border-radius: 32px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo-link {
        font-size: 22px;
    }
    
    .mobile-nav-links {
        padding-left: 8px;
    }
    
    /* Dynamic Island Effect */
    .mobile-nav-link:nth-child(1) {
        --i: 0;
    }
    
    .mobile-nav-link:nth-child(2) {
        --i: 1;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-image {
        height: 44px;
    }
    
    .navigation {
        width: calc(100% - 20px);
        top: 20px;
    }
    
    .nav-container {
        padding: 18px 16px;
        border-radius: 32px;
    }
    
    .nav-content {
        padding: 0 2px 0 6px;
    }
    
    .logo-link {
        font-size: 20px;
    }
    
    .mobile-nav-links {
        padding-left: 6px;
    }
}

/* ===== ACCESSIBILITY & FOCUS STYLES ===== */
.nav-link:focus,
.mobile-nav-link:focus,
.hamburger:focus-visible {
  outline: none;
}

/* Reduce motion for users with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}