/* ==============================================
   FITNFLEX - Navigation (Matching image.png)
   Bone PNG with menu items styled as in reference
   ============================================== */

.bone-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.95) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bone-navigation.scrolled {
    background: rgba(7, 17, 31, 0.99);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Change text colors to white when scrolled */
.bone-navigation.scrolled .brand-title {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.bone-navigation.scrolled .brand-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.bone-navigation.scrolled .nav-menu-item {
    color: #FFFFFF;
}

.bone-navigation.scrolled .nav-menu-item:hover,
.bone-navigation.scrolled .nav-menu-item.active {
    color: #00D9FF;
}

.bone-navigation.scrolled .nav-lang-btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.bone-navigation.scrolled .nav-lang-btn:hover {
    color: #00D9FF;
    border-color: #00D9FF;
}

/* Bone Container */
.nav-bone-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Bone Background Image */
.nav-bone-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76%;
    max-width: 1400px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 5px 20px rgba(30, 136, 229, 0.2));
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Content Overlay */
.nav-content-overlay {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 10;
}

/* ==============================================
   LEFT: Brand Logo
   ============================================== */
.nav-brand-section {
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

/* Circle logo image */
.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 217, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.25);
    flex-shrink: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.5);
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #00D9FF;
    letter-spacing: 3px;
    line-height: 1;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin: 0.25rem 0 0 0;
    letter-spacing: 1px;
}

/* ==============================================
   CENTER: Menu Items (matching image.png style)
   ============================================== */
.nav-menu-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-menu-item {
    color: rgba(10, 27, 112, 0.9);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    
    font-style: normal;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
    position: relative;
}

/* Hover effect similar to image.png */
.nav-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #eaac5b;
    transition: width 0.3s ease;
}

.nav-menu-item:hover::after,
.nav-menu-item.active::after {
    width: 80%;
}

.nav-menu-item:hover,
.nav-menu-item.active {
    color: #ffffff;
}

.nav-menu-item.active {
    background: rgba(10, 27, 112, 0.9);
}

/* ==============================================
   RIGHT: Action Buttons (matching image.png)
   ============================================== */
.nav-actions-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Button */
.nav-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #00D9FF;
    color: #00D9FF;
}

/* Book Now Button (matching image.png blue button) */
.nav-book-btn {
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    color: white;
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
    background: linear-gradient(135deg, #06B6D4, #0EA5E9);
}

/* WhatsApp Button (matching image.png green button) */
.nav-whatsapp-btn {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
}

/* ==============================================
   Mobile Menu
   ============================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid rgba(0, 217, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00D9FF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(7, 17, 31, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(0, 217, 255, 0.3);
    padding: 2rem;
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00D9FF;
    color: #00D9FF;
}

.mobile-menu-link.highlight {
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    color: white;
    border: none;
}

.mobile-menu-link.whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

/* ==============================================
   Responsive Breakpoints
   ============================================== */
@media (max-width: 1200px) {
    .nav-menu-section {
        gap: 0.25rem;
    }
    
    .nav-menu-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
    }
    
    .nav-book-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* ==============================================
   MOBILE RESPONSIVE (Tablet & Below)
   ============================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu-section {
        display: none;
    }

    /* Keep brand (logo + name) always visible */
    .nav-brand-section,
    .brand-logo,
    .brand-logo-img,
    .brand-text,
    .brand-title {
        display: flex !important;
    }
    .brand-title { display: block !important; }
    .brand-logo-img { display: block !important; }

    /* Hide lang + whatsapp on mobile, keep hamburger */
    .nav-actions-section .nav-lang-btn,
    .nav-actions-section .nav-book-btn,
    .nav-actions-section .nav-whatsapp-btn {
        display: none;
    }

    .nav-actions-section {
        gap: 0;
    }
    
    /* HIDE BONE IMAGE ON MOBILE */
    .nav-bone-bg {
        display: none !important;
    }
    
    .bone-navigation {
        background: rgba(7, 17, 31, 0.98);
    }
    
    .nav-bone-container {
        min-height: 70px;
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }
    
    .brand-title {
        font-size: clamp(1rem, 4vw, 1.3rem);
        color: #FFFFFF;
    }
    
    .brand-subtitle {
        font-size: clamp(0.55rem, 2vw, 0.65rem);
        color: rgba(255, 255, 255, 0.8);
    }

    .brand-logo-img {
        width: 34px;
        height: 34px;
    }
    
    .mobile-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 640px) {
    .nav-bone-container {
        min-height: 65px;
        padding: 0.6rem 1rem;
    }
    
    .brand-title {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
        letter-spacing: 2px;
    }
    
    .brand-subtitle {
        font-size: clamp(0.5rem, 2vw, 0.6rem);
    }
    
    .mobile-menu-toggle {
        padding: 0.4rem;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .mobile-menu {
        padding: 1.5rem 1rem;
        gap: 0.6rem;
        top: 65px;
    }
    
    .mobile-menu-link {
        font-size: 0.95rem;
        padding: 0.9rem;
    }
}

/* Standard Mobile Phones */
@media (max-width: 480px) {
    .nav-bone-container {
        min-height: 60px;
        padding: 0.5rem 0.875rem;
    }
    
    .brand-title {
        font-size: clamp(0.875rem, 4vw, 1rem);
        letter-spacing: 1.5px;
    }
    
    .brand-subtitle {
        font-size: clamp(0.45rem, 1.8vw, 0.55rem);
        margin-top: 0.15rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.35rem;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu {
        padding: 1.25rem 0.875rem;
        gap: 0.5rem;
        top: 60px;
    }
    
    .mobile-menu-link {
        font-size: 0.875rem;
        padding: 0.825rem 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Small Mobile Phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .nav-bone-container {
        min-height: 55px;
        padding: 0.4rem 0.75rem;
    }
    
    .brand-title {
        font-size: clamp(0.8rem, 4vw, 0.95rem);
        letter-spacing: 1px;
    }
    
    .brand-subtitle {
        font-size: clamp(0.4rem, 1.5vw, 0.5rem);
        margin-top: 0.1rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.3rem;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
        gap: 4px;
    }
    
    .mobile-menu {
        padding: 1rem 0.75rem;
        gap: 0.4rem;
        top: 55px;
    }
    
    .mobile-menu-link {
        font-size: 0.8rem;
        padding: 0.75rem 0.6rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .nav-bone-container {
        min-height: 50px;
        padding: 0.35rem 0.6rem;
    }
    
    .brand-title {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .brand-subtitle {
        font-size: 0.38rem;
        display: none; /* Hide subtitle on very small screens */
    }
    
    .mobile-menu-toggle {
        padding: 0.25rem;
    }
    
    .mobile-menu-toggle span {
        width: 16px;
        height: 1.5px;
    }
    
    .mobile-menu {
        padding: 0.875rem 0.6rem;
        gap: 0.35rem;
        top: 50px;
    }
    
    .mobile-menu-link {
        font-size: 0.75rem;
        padding: 0.65rem 0.5rem;
    }
}
