/* Menu Variables */
:root {
    --primary-color: #FEB800;
    --secondary-color: #1a1f24;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.3s ease;
    --menu-width: 280px;
    --header-height: 75px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    --nav-item-hover: rgba(254, 184, 0, 0.1);
    --gradient-overlay: linear-gradient(120deg, #FEB800, #FFA000);
    --button-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    --button-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.2);
    --hover-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header Container */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    z-index: 1000;
    height: var(--header-height);
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header scroll effect */
.site-header.scrolled {
    transform: translateY(-100%);
}

.site-header.visible {
    transform: translateY(0);
    background-color: rgba(26, 31, 36, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 var(--spacing-xl, 3rem);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl, 3rem);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md, 1.5rem);
    margin-left: auto;
}

.logo-container {
    text-align: left;
    height: 50px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: logoEntrance 1s ease-out;
    transition: transform 0.3s ease;
    max-width: 130px; /* Ensure logo has a fixed maximum width */
    display: block; /* Ensure logo displays properly */
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container:hover .logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Navigation Menu */
.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Take up available space in the middle */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    justify-content: center; /* Center the navigation items */
}

.nav-links li {
    opacity: 0;
    animation: fadeInNav 0.5s ease forwards;
    position: relative;
}

@keyframes fadeInNav {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }
.nav-links li:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Navigation Link Styling */
.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.7rem 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

/* Background effect on hover */
.nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 6px;
}

.nav-link:hover:before {
    transform: translateY(0);
    opacity: 0.1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    box-shadow: 0 1px 3px rgba(254, 184, 0, 0.3);
}

.nav-link i {
    font-size: 1.15rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover i,
.nav-link.active i {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-color);
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.2));
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--button-shadow);
}

.nav-link.active {
    background-color: var(--nav-item-hover);
}

/* Book Now Button in Header */
.header-book-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #f59e0b; /* Solid amber color instead of gradient */
    color: #000000;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    animation: none; /* Remove pulsing animation */
    border: none;
}

.header-book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #F97316, #EAB308);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-book-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(234, 179, 8, 0.4);
    border-color: rgba(0, 0, 0, 0.15);
}

.header-book-btn:hover::before {
    opacity: 1;
}

.header-book-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.header-book-btn:hover i {
    transform: translateY(-2px) scale(1.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .menu-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Content Adjustment */
main {
    margin-top: var(--header-height);
}

/* Enhanced Language Switcher Styling */
.language-switcher {
    position: relative;
    perspective: 1000px;
    margin-left: auto; /* Push to the far right */
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--hover-transition);
    box-shadow: var(--button-shadow);
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
    border-color: var(--primary-color);
}

.current-lang i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.current-lang i:first-child {
    color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    transform-origin: top center;
    transform: rotateX(-15deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.language-switcher:hover .language-dropdown {
    max-height: 350px;
    opacity: 1;
    padding: 0.8rem;
    transform: rotateX(0);
    top: 110%;
}

.language-switcher:hover .current-lang i:last-child {
    transform: rotate(180deg);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 0.3rem;
    border: 1px solid transparent;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: var(--primary-color);
    border-color: rgba(254, 184, 0, 0.3);
}

.lang-option img {
    width: 22px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lang-option:hover img {
    transform: scale(1.15);
}

/* Mobile Styles */
@media (max-width: 992px) {
    .language-switcher {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .primary-nav {
        display: none;
    }

    .header-book-btn {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--secondary-color);
        z-index: 1000;
        transition: right 0.3s ease;
        display: none;
        overflow-y: auto;
    }

    .mobile-nav.open {
        right: 0;
        display: block;
    }

    .mobile-nav-container {
        padding: calc(var(--header-height) + 20px) 2rem 2rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
        margin-bottom: 1rem;
    }

    .mobile-nav.open .mobile-nav-links li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.1s * var(--i));
    }

    .mobile-nav-links a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 1.5rem;
    }

    .mobile-nav-links a i {
        width: 24px;
        text-align: center;
    }

    .mobile-nav-footer {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-mobile-book {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: var(--primary-color);
        color: var(--text-dark);
        text-decoration: none;
        padding: 1rem;
        border-radius: 8px;
        font-weight: 600;
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
    }

    .btn-mobile-book:hover {
        background: #ffc107;
        transform: translateY(-2px);
    }

    .mobile-language-switcher {
        padding: 1rem 0;
    }

    .mobile-lang-title {
        color: var(--text-light);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        font-weight: 500;
        opacity: 0.8;
    }

    .mobile-lang-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }

    .mobile-lang-option {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        color: var(--text-light);
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .mobile-lang-option:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-lang-option img {
        width: 20px;
        height: 15px;
        object-fit: cover;
        border-radius: 2px;
    }
}

/* Remove mobile language dropdown styles since they're not needed */
/*
.mobile-language-dropdown,
.mobile-current-lang,
.mobile-lang-options,
.mobile-lang-option {
    display: none !important;
}
*/

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 992px) {
    :root {
        --header-height: 70px;
        --menu-width: 320px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    :root {
        --header-height: 65px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        height: 38px;
    }
    
    .mobile-nav {
        max-width: 100%;
    }
    
    .mobile-lang-option {
        width: calc(33.33% - 0.5rem);
    }
}

/* Small mobile adjustments */
@media (max-width: 374px) {
    .mobile-lang-option {
        width: calc(50% - 0.5rem);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .logo-container:hover .logo,
    .nav-link:hover i {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .site-header {
        position: relative;
        background: none;
        box-shadow: none;
        height: auto;
    }

    .nav-link {
        color: var(--text-dark);
    }

    .mobile-menu-btn, 
    .header-book-btn {
        display: none;
    }
}

/* Floating Book Now button for small screens */
.floating-book-btn {
    display: none; /* Hidden by default, will be shown on mobile */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f59e0b; /* Match the header button */
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 99;
    text-decoration: none;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: var(--hover-transition);
}

.floating-book-btn i {
    font-size: 1.1rem;
}

.floating-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .floating-book-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Header Center Fix - Centers the navigation menu while keeping layout balanced */
/* This ensures all pages using menu.css get centered navigation */

/* Keep the flex layout but center the navigation */
html body .site-header .nav-container {
    justify-content: space-between !important;
    gap: 2rem !important;
}

/* Logo stays on the left */
html body .site-header .header-left {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

/* Center the navigation menu */
html body .site-header .primary-nav {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Right section stays on the right */
html body .site-header .header-right {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

/* Ensure navigation links are properly centered */
html body .site-header .nav-links {
    justify-content: center !important;
    align-items: center !important;
}

/* For mobile responsive - ensure center alignment is maintained */
@media (max-width: 992px) {
    html body .site-header .nav-container {
        justify-content: space-between !important;
    }
    
    html body .site-header .primary-nav {
        display: none !important; /* Hidden on mobile, shown via mobile menu */
    }
}

/* Extra specificity to override any conflicting styles */
body .site-header .nav-container {
    justify-content: space-between !important;
}

body .site-header .primary-nav {
    justify-content: center !important;
}