/* ============================================
   DUBAI TOURS - HEADER STYLES
   Updated Colors: Deep Blue (#19407A), Sky Blue (#0099FF), Gold (#0099FF)
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* ============================================
   LIQUID GLASS HEADER (iOS 26 STYLE)
   ============================================ */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    position: fixed;
    width: 96%;
    max-width: 1400px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.scroll-down {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    top: 10px;
    width: 98%;
    box-shadow: 0 10px 35px rgba(25, 64, 122, 0.12);
}

.main-header.scroll-up {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    top: 15px;
    width: 97%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    gap: 20px;
}

/* ============================================
   LOGO STYLES
   ============================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: #19407A;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    user-select: none;
}

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

.logo svg {
    flex-shrink: 0;
}

.logo svg path {
    fill: #19407A;
}

.logo span {
    letter-spacing: 1.5px;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.nav-link {
    color: #19407A;
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: #0099FF;
    background: rgba(0, 153, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 153, 255, 0.15);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icon Buttons (WhatsApp & Call) */
.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.btn-icon:hover::before {
    transform: scale(1);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #20BD5B;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.btn-call {
    background-color: #19407A;
    color: #fff;
}

.btn-call:hover {
    background-color: #0099FF;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 6px 25px rgba(0, 59, 115, 0.4);
}

/* Book Now Button */
.btn-book {
    background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
    color: #fff;
    padding: 13px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 59, 115, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-book:hover {
    background: linear-gradient(135deg, #FF8A00 0%, #FFB800 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 184, 0, 0.4);
}

.btn-book svg {
    flex-shrink: 0;
}

/* ============================================
   MOBILE TOGGLE BUTTON
   ============================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: #19407A;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.floating-buttons {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.float-btn:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.float-btn:active {
    transform: scale(1.1);
}

/* WhatsApp Floating Button */
.float-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20BD5B 100%);
    color: #fff;
    animation-delay: 0.2s;
}

.float-whatsapp:hover {
    background: linear-gradient(135deg, #20BD5B 0%, #1DA851 100%);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

.float-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
}

/* Call Floating Button */
.float-call {
    background: linear-gradient(135deg, #19407A 0%, #0099FF 100%);
    color: #fff;
    animation-delay: 0.4s;
}

.float-call:hover {
    background: linear-gradient(135deg, #163a6d 0%, #0088e6 100%);
    box-shadow: 0 10px 35px rgba(0, 59, 115, 0.5);
}

.float-call::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0099FF;
    animation: ring 1.5s infinite;
}

/* Tooltip (Liquid Glass) */
.float-tooltip {
    position: absolute;
    right: 80px;
    background: rgba(25, 64, 122, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #0099FF;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.float-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #19407A;
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .nav-links {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 14px;
        color: #fff;
    }
    
    .btn-book span {
        display: none;
    }
    
    .btn-book {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ============================================
   RESPONSIVE DESIGN (Consolidated & Clean)
   ============================================ */

/* Medium Devices (Tablets) */
@media (max-width: 991px) {
    .nav-links {
        gap: 20px;
    }
    .nav-link {
        font-size: 14px;
    }
    .logo-img {
        height: 80px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    /* body padding removed to fix white gap above hero section */

    .main-header {
        width: 94%;
        top: 8px;
        border-radius: 50px;
        padding: 0 5px;
    }

    .header-content {
        padding: 6px 0;
        gap: 10px;
    }

    .logo-img {
        height: 42px;
    }

    /* Hide desktop nav on mobile — handled by hamburger */
    /* Fullscreen Glass Menu for mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(13, 42, 94, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 120px 20px 40px;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 0;
    }

    .nav-link {
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        padding: 10px;
        width: auto;
        border-radius: 0;
        border-bottom: none;
        transition: all 0.3s;
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
    }

    .nav-link::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: #FFB800;
        transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 3px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #FFB800;
        background: transparent;
        box-shadow: none;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    /* Show hamburger toggle */
    .mobile-toggle {
        display: flex;
        order: 3;
        flex-shrink: 0;
    }

    /* Header actions: only show Apply Now on mobile, hide icon buttons (floating covers them) */
    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .btn-icon {
        display: none;
    }

    .btn-book {
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        justify-content: center;
    }

    .btn-book span {
        display: none;
    }

    .floating-buttons {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .float-btn {
        width: 52px;
        height: 52px;
    }
}

/* Extra Small Devices (< 400px) */
@media (max-width: 400px) {
    .logo-img {
        height: 44px;
    }
    .btn-book {
        padding: 8px 12px;
        font-size: 11px;
    }
    .btn-book span {
        display: none;
    }
    .btn-book {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ============================================
   GLOBAL LIQUID GLASS POPUP FORM (iOS 26)
   ============================================ */
.apply-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(25, 64, 122, 0.45);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none; 
    align-items: center; justify-content: center;
    padding: 20px;
}

.apply-popup-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(45px) saturate(210%);
    -webkit-backdrop-filter: blur(45px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
    color: #fff;
    width: 95%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.apply-popup-overlay.active { display: flex; }

.apply-popup-header { text-align: center; margin-bottom: 25px; }
.apply-popup-icon { font-size: 40px; margin-bottom: 8px; }

.apply-popup-header h2 {
    color: #fff;
    font-weight: 950;
    font-size: clamp(22px, 4vw, 34px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.apply-popup-header p { font-size: 15px; color: rgba(255,255,255,0.8); margin-top: 5px; }

.apf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 10px; }
@media (max-width: 768px) { .apf-grid { grid-template-columns: 1fr; gap: 12px; } }

.apf-group { display: flex; flex-direction: column; gap: 6px; }
.apf-group label { font-size: 13px; font-weight: 800; color: #fff; padding-left: 5px; }


.apf-group input, .apf-group select, .apf-group textarea {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    padding: 16px 22px;
    font-size: 16px;
}
.apf-group input::placeholder, .apf-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.85);
}
.apf-group select option {
    background: #19407A;
    color: #fff;
}

.apf-btn {
    background: #0099FF;
    color: #fff;
    font-weight: 950;
    border-radius: 24px;
    padding: 24px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 15px 45px rgba(0, 153, 255, 0.35);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.apf-btn:hover {
    background: #fff;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 30px 70px rgba(255, 255, 255, 0.3);
}

.apf-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.8s;
}

.apf-btn:hover::after {
    left: 150%;
}

.apply-popup-close {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.4s;
    border: none;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 24px;
    cursor: pointer;
}

.apply-popup-close:hover {
    background: #ff4757;
    transform: rotate(90deg) scale(1.1);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   POPUP FORM — MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
    .apply-popup-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .apply-popup-box {
        padding: 30px 20px 24px;
        border-radius: 24px 24px 0 0;
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
    }

    .apply-popup-header h2 {
        font-size: 20px;
    }

    .apply-popup-icon {
        font-size: 32px;
    }

    .apf-group input,
    .apf-group select,
    .apf-group textarea {
        padding: 13px 16px;
        font-size: 15px;
        border-radius: 14px;
    }

    .apf-btn {
        padding: 16px;
        font-size: 15px;
        border-radius: 16px;
    }

    .apply-popup-close {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    /* Floating buttons — push left so they don't cover content */
    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }

    /* Hide floating buttons when popup open */
    body.popup-open .floating-buttons {
        display: none;
    }
}

@media (max-width: 400px) {
    .apply-popup-box {
        padding: 24px 16px 20px;
    }

    .apply-popup-header h2 {
        font-size: 18px;
    }
}
