/* ==========================================
   FANCY UPGRADED HEADER - Modern & Responsive
   ========================================== */

:root {
    --primary: #052651;
    --primary-light: #564406;
    --primary-dark: #1c0f02;
    --accent: #ebc831;
    --accent-dark: #ad911f;
    --accent-light: #f0e082;
    --white: #fdfdf2;
    --dark: #1c0f02;
    --text-light: rgba(255, 253, 204, 0.9);
    --glass-bg: rgba(5, 38, 81, 0.85);
    --glass-border: rgba(255, 253, 204, 0.18);
}

/* Global Box Sizing - Prevent Layout Shift */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Header Container - Glass-morphism Effect */
.header-top-bar {
    background: linear-gradient(135deg, 
        #1a3a52 0%, 
        #2d5a7f 50%, 
        #1a3a52 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    padding: 10px 0;
    position: relative;
    z-index: 40;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
}

.header-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 50%, 
        transparent 100%);
    opacity: 0.6;
}

.header-top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(16px, 5vw, 40px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Contact Info - Enhanced */
.header-contact-info {
    display: flex;
    align-items: center;
    gap: clamp(16px, 4vw, 32px);
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px 12px;
    border-radius: 8px;
}

.contact-item:hover {
    color: var(--accent);
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.contact-item-pulse .contact-icon-wrapper {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.contact-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-wrapper {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    transform: rotate(10deg);
}

.contact-icon-wrapper svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Social Icons - Fancy Hover Effects */
.header-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.15);
    backdrop-filter: blur(5px);
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-4px) rotate(360deg);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.social-icon:hover svg {
    color: var(--primary);
    transform: scale(1.1);
}

/* Responsive Contact Info */
@media (max-width: 1024px) {
    .header-contact-info {
        gap: 16px;
    }
    
    .contact-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        padding: 8px 0;
    }
    
    .header-contact-info {
        gap: 8px;
    }
    
    .contact-item {
        padding: 4px 8px;
    }
    
    .contact-text {
        display: none;
    }
    
    .contact-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ==========================================
   NAVIGATION BAR - Modern Glass Design
   ========================================== */

.nav-bar {
    background: linear-gradient(90deg, 
        #ebc831 0%, 
        #f6da6e 50%,
        #ebc831 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 30;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    width: 100%;
}

.nav-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 50%, 
        transparent 100%);
    opacity: 0.3;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px clamp(16px, 5vw, 40px);
    max-width: 1400px;
    margin: 0 auto;
    gap: clamp(12px, 3vw, 32px);
    box-sizing: border-box;
    width: 100%;
}

/* Logo Section - Enhanced */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-section::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.logo-section:hover::before {
    opacity: 0.3;
}

.logo-section:hover {
    transform: scale(1.05) translateY(-2px);
}

.logo-img {
    height: clamp(48px, 8vw, 60px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.logo-section:hover .logo-img {
    filter: drop-shadow(0 6px 16px rgba(255, 193, 7, 0.4));
}

.logo-placeholder {
    width: clamp(48px, 8vw, 60px);
    height: clamp(48px, 8vw, 60px);
    background: linear-gradient(135deg, var(--white), #f8f8f8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--accent);
}

/* Desktop Navigation Menu - Modern Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 12px);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu.hidden {
    display: none;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    padding: 12px clamp(12px, 2vw, 20px);
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 82, 0.08);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    color: var(--primary-dark);
    background: rgba(26, 58, 82, 0.1);
}

.nav-link.active::before {
    width: 70%;
}

/* Fancy Book Now Button - Eye-catching CTA */
.btn-book-now-fancy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-weight: 800;
    font-size: clamp(13px, 1.5vw, 15px);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 6px 25px rgba(26, 58, 82, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-book-now-fancy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-book-now-fancy:hover::before {
    left: 100%;
}

.btn-book-now-fancy:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(26, 58, 82, 0.4);
}

.btn-book-now-fancy:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-book-now-fancy:hover .btn-icon {
    transform: translateX(4px);
}

.btn-shine {
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.btn-book-now-fancy:hover .btn-shine {
    transform: rotate(45deg) translateX(100%);
}

@media (max-width: 1024px) {
    .btn-book-now-fancy {
        padding: 10px 20px;
        gap: 8px;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 968px) {
    .nav-menu,
    .btn-book-now-fancy {
        display: none;
    }
}

/* Mobile Menu Button - Animated Hamburger */
.mobile-menu-btn {
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.2);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 58, 82, 0.3);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover svg {
    transform: rotate(90deg);
}

@media (max-width: 968px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Navigation Dropdown - Fancy Design */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg, 
        rgba(255, 193, 7, 0.98) 0%, 
        rgba(255, 200, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 2px solid rgba(26, 58, 82, 0.3);
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
}

@keyframes slideDownMobile {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav.active {
    display: flex;
    animation: slideDownMobile 0.3s ease-out;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 16px 12px;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(26, 58, 82, 0.15);
    animation: fadeInUp 0.3s ease-out backwards;
}

.mobile-nav li:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav li:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav li:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav li:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav li:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav li:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.mobile-nav-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(26, 58, 82, 0.15);
    color: var(--primary-dark);
    padding-left: 20px;
}

.mobile-nav-link:hover .mobile-nav-icon {
    transform: scale(1.2) rotate(10deg);
}

.mobile-nav-link.active {
    background: rgba(26, 58, 82, 0.2);
    color: var(--primary-dark);
    font-weight: 800;
}

/* Mobile Book Now - Fancy */
.mobile-book-wrapper {
    padding: 16px;
    border-top: 2px solid rgba(26, 58, 82, 0.2);
    background: linear-gradient(180deg, transparent, rgba(26, 58, 82, 0.05));
}

.mobile-book-now-fancy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-weight: 800;
    font-size: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(26, 58, 82, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.mobile-book-now-fancy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-book-now-fancy:active::before {
    left: 100%;
}

.mobile-book-now-fancy:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(26, 58, 82, 0.3);
}

.mobile-book-now-fancy svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.mobile-book-now-fancy:active svg {
    transform: translateX(4px);
}

/* Sticky Header - Enhanced */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* Scrolled State - Compact & Professional */
.header-sticky.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.header-sticky.scrolled .header-top-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-width: 0;
    border-bottom-color: transparent;
    background: linear-gradient(135deg, 
        rgba(15, 36, 56, 0.98) 0%, 
        rgba(30, 74, 100, 0.98) 50%, 
        rgba(15, 36, 56, 0.98) 100%);
}

.header-sticky.scrolled .header-top-bar::before {
    opacity: 0;
    height: 0;
}

/* Hide header on scroll down */
.header-sticky.header-scroll-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Show header on scroll up */
.header-sticky.header-scroll-visible {
    transform: translateY(0);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design - Advanced */
@media (max-width: 1200px) {
    .nav-link {
        padding: 10px 14px;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 6px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .header-top-bar-content,
    .nav-container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        padding: 5px 0;
    }
    
    .header-contact-info {
        gap: 6px;
    }
    
    .nav-container {
        padding: 9px 16px;
    }
    
    .logo-img,
    .logo-placeholder {
        height: 44px;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .header-top-bar-content {
        padding: 0 12px;
    }
    
    .nav-container {
        padding: 7px 12px;
    }
    
    .logo-img,
    .logo-placeholder {
        height: 40px;
    }
    
    .contact-icon-wrapper {
        width: 26px;
        height: 26px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .mobile-nav-link {
        font-size: 14px;
        padding: 14px 10px;
    }
}

/* Accessibility Enhancements */
.nav-link:focus,
.btn-book-now-fancy:focus,
.mobile-menu-btn:focus,
.mobile-nav-link:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print Styles */
@media print {
    .header-top-bar,
    .nav-bar,
    .mobile-menu-btn,
    .btn-book-now-fancy {
        display: none;
    }
}

/* Performance Optimizations */
.header-sticky,
.nav-link,
.btn-book-now-fancy,
.mobile-menu-btn,
.social-icon {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
