/**
 * EAK Travel Consult - Premium Design System
 * Brand Colors: #0A3D62, #1B6CA8, #82CCDD, #F0A500
 */

:root {
    --primary: #0A3D62;
    --secondary: #1B6CA8;
    --accent: #82CCDD;
    --gold: #F0A500;
    --white: #FFFFFF;
    --light-bg: #F7F7F7;
    --dark-text: #1E1E1E;
    --shadow-sm: 0 2px 8px rgba(10, 61, 98, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 61, 98, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 61, 98, 0.16);
    --shadow-xl: 0 16px 48px rgba(10, 61, 98, 0.20);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background: var(--light-bg);
}

@media (max-width: 768px) {
    .up {

        margin-bottom: 18px !important;
        max-height: 42dvh !important;
        min-height: 410px !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 6px;
    border: 3px solid var(--light-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #FFB800 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240, 165, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Premium Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 61, 98, 0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(27, 108, 168, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 8px 20px;
    color: #4B5563;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #F0A500 0%, #FFB800 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 2px 8px rgba(240, 165, 0, 0.4);
}

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

.nav-link:hover {
    color: var(--primary);
    background: rgba(240, 165, 0, 0.05);
}

/* Active navigation link */
.nav-link[class*="border-yellow-500"] {
    color: #0A3D62 !important;
    font-weight: 700 !important;
    border-bottom-color: #F0A500 !important;
}

/* Footer Quick Links Hover Animation - Desktop/Tablet Only */
@media (min-width: 768px) {
    footer ul li a {
        position: relative;
        padding-bottom: 2px;
    }

    footer ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #F0A500 0%, #FFB800 100%);
        transition: width 0.3s ease;
    }

    footer ul li a:hover::after {
        width: 100%;
    }
}

/* Parallax Effect - Disable on Mobile */
@media (max-width: 768px) {
    .services-parallax div[style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-success {
    background: #ECFDF5;
    color: #059669;
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-info {
    background: #E0F2FE;
    color: var(--secondary);
}

/* Loading Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-bg);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Section Spacing */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 20px;
    color: #6B7280;
    margin-bottom: 48px;
}


/* Mobile Menu */
.mobile-menu {
    display: none;
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Mobile Devices (Portrait) - 320px to 480px */
@media (max-width: 480px) {

    /* Hero Section */
    section[style*="height: 120vh"] {
        height: 100vh !important;
    }

    /* Typography */
    h1[style*="font-size: 72px"] {
        font-size: 36px !important;
    }

    h2[style*="font-size: 48px"],
    h2[style*="font-size: 52px"] {
        font-size: 28px !important;
    }

    h3[style*="font-size: 32px"] {
        font-size: 20px !important;
    }

    h3[style*="font-size: 28px"] {
        font-size: 22px !important;
    }

    h3[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    p[style*="font-size: 20px"],
    p[style*="font-size: 19px"],
    p[style*="font-size: 18px"] {
        font-size: 15px !important;
    }

    /* Padding & Spacing */
    section[style*="padding: 100px"],
    section[style*="padding: 120px"] {
        padding: 40px 20px !important;
    }

    div[style*="padding: 80px"],
    div[style*="padding: 48px"] {
        padding: 24px !important;
    }

    div[style*="padding: 40px"] {
        padding: 20px !important;
    }

    /* Grid Layouts - Force Single Column */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 2fr 1fr"],
    .destinations-grid-first,
    .destinations-grid-second {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Buttons */
    a[style*="padding: 18px"],
    a[style*="padding: 20px"] {
        padding: 14px 24px !important;
        font-size: 15px !important;
    }

    /* Icons */
    div[style*="width: 140px"][style*="height: 140px"] {
        width: 100px !important;
        height: 100px !important;
    }

    i[style*="font-size: 48px"] {
        font-size: 32px !important;
    }

    /* Images */
    img[style*="height: 600px"] {
        height: 300px !important;
    }

    div[style*="height: 400px"] {
        height: 300px !important;
    }

    /* Destination cards - keep reasonable height on mobile */
    .destination-featured {
        height: 450px !important;
        min-height: 450px !important;
    }

    .destination-card {
        height: 350px !important;
        min-height: 350px !important;
    }

    /* INCREASE GAP between destination cards on mobile */
    /*.destinations-grid-first {
        gap: 20px !important;
        margin-bottom: ;
    }*/

    /* Hide Dubai landmarks badges on mobile */
    .dubai-landmarks-badges {
        display: none !important;
    }

    /* Hide MOST POPULAR badge on mobile */
    .most-popular-badge {
        display: none !important;
    }

    /* Enhance overlays on destination cards for better text readability */
    .destination-featured>div:nth-child(2),
    .destination-card>div:nth-child(2) {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 70%, transparent 85%) !important;
    }

    /* Enhance overlays on tour package card images */
    .tour-package-card>div:first-child>div:first-child {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 70%) !important;
    }

    /* CRITICAL: Reduce padding on tour packages section container to maximize card size */
    section div[style*="max-width: 1400px"][style*="padding: 0 40px"] {
        padding: 0 8px !important;
    }

    /* CRITICAL: Reduce padding on destinations section container to maximize card size */
    section div[style*="max-width: 1280px"][style*="padding: 0 20px"] {
        padding: 0 8px !important;
    }

    /* Fix sitemap hero banner height on mobile */
    .pop {
        min-height: 550px !important;
        max-height: none !important;
    }

    /* Make sitemap stats stack better on mobile */
    section.relative.h-\[500px\] {
        height: auto !important;
        min-height: 550px !important;
    }

    /* Hide desktop elements */
    div[style*="position: absolute"][style*="bottom: -30px"] {
        position: relative !important;
        bottom: 0 !important;
        right: 0 !important;
        margin-top: 20px !important;
    }
}

/* Mobile Devices (Landscape) & Small Tablets - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {

    /* Hero Section */
    section[style*="height: 120vh"] {
        height: 100vh !important;
    }

    /* Typography */
    h1[style*="font-size: 72px"] {
        font-size: 48px !important;
    }

    h2[style*="font-size: 48px"],
    h2[style*="font-size: 52px"] {
        font-size: 36px !important;
    }

    h3[style*="font-size: 32px"] {
        font-size: 24px !important;
    }

    /* Padding & Spacing */
    section[style*="padding: 100px"],
    section[style*="padding: 120px"] {
        padding: 60px 30px !important;
    }

    div[style*="padding: 80px"] {
        padding: 40px !important;
    }

    /* Grid Layouts - 2 Columns for tablets */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Images */
    img[style*="height: 600px"] {
        height: 400px !important;
    }

    div[style*="height: 400px"] {
        height: 350px !important;
    }
}

/* Tablets - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Typography */
    h1[style*="font-size: 72px"] {
        font-size: 56px !important;
    }

    h2[style*="font-size: 48px"],
    h2[style*="font-size: 52px"] {
        font-size: 40px !important;
    }

    /* Padding & Spacing */
    section[style*="padding: 100px"],
    section[style*="padding: 120px"] {
        padding: 80px 40px !important;
    }

    div[style*="padding: 80px"] {
        padding: 50px !important;
    }

    /* Grid Layouts */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hide Stats Badge on Tablet */
    .stats-badge-desktop {
        display: none !important;
    }
}

/* General Mobile Fixes */
@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .card {
        padding: 24px;
    }

    .mobile-menu {
        display: block;
    }

    /* Fix sticky header z-index issue on mobile */
    nav[class*="sticky"] {
        z-index: 9999 !important;
    }

    /* Remove sticky positioning from content sections on mobile */
    div[style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
    }

    /* Hide Stats Badge on Mobile & Tablet */
    .stats-badge-desktop {
        display: none !important;
    }

    /* Swiper Navigation - Smaller on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        /*width: 40px !important;
        height: 40px !important;*/
        display: none !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        /*font-size: 16px !important;*/
        display: none !important;
    }

    /* Hide horizontal timeline line on mobile */
    div[style*="position: absolute"][style*="top: 50%"][style*="height: 6px"] {
        display: none !important;
    }

    /* Stack flex items vertically */
    div[style*="display: flex"][style*="gap: 20px"],
    div[style*="display: flex"][style*="gap: 60px"] {
        flex-direction: column !important;
    }

    /* Full width buttons on mobile */
    a[style*="display: inline-flex"] {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Adjust max-widths */
    div[style*="max-width: 1400px"],
    div[style*="max-width: 1300px"],
    div[style*="max-width: 1000px"] {
        max-width: 100% !important;
    }

    /* Featured Service Card - Stack with image at bottom */
    .featured-service-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        min-height: auto !important;
    }

    .featured-service-grid>div:first-child {
        order: 1 !important;
        padding: 30px 20px !important;
    }

    .featured-service-grid>div:last-child {
        order: 2 !important;
        height: 300px !important;
    }

    .featured-service-grid img {
        position: relative !important;
    }

    /* Timeline Contact Cards - Center on mobile */
    .timeline-item {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-bottom: 40px !important;
    }

    .timeline-content {
        text-align: center !important;
        padding: 0 !important;
    }

    .timeline-content>div {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center all flex items inside timeline content */
    .timeline-content div[style*="display: flex"] {
        justify-content: center !important;
        align-items: center !important;
    }

    /* Force center alignment for office location items */
    .timeline-content div[style*="flex-direction: column"] {
        align-items: center !important;
    }

    /* Hide timeline dots and line on mobile */
    div[style*="position: absolute"][style*="left: 50%"][style*="width: 4px"] {
        display: none !important;
    }

    .timeline-item>div:first-child:not(.timeline-content),
    .timeline-item>div:last-child:not(.timeline-content) {
        display: none !important;
    }

    /* Hide icons in buttons on mobile */
    a[style*="display: inline-flex"] i {
        display: none !important;
    }
}

/* Swiper Custom Styles - Fix Z-index and Glassmorphic Design */
.swiper-button-next,
.swiper-button-prev {
    width: 56px !important;
    height: 56px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 50 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: white !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(2 255, 255, 0.5) !important;
    transform: scale(1.1) !important;
}

.swiper-pagination {
    z-index: 50 !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: rgba(240, 165, 0, 0.9) !important;
    border-color: rgba(240, 165, 0, 1) !important;
    width: 32px !important;
    border-radius: 6px !important;
}

/* Glassmorphic Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-gold {
    color: var(--gold);
}

.bg-primary {
    background: var(--primary);
}

.bg-secondary {
    background: var(--secondary);
}

.bg-accent {
    background: var(--accent);
}

.bg-gold {
    background: var(--gold);
}

.bg-light {
    background: var(--light-bg);
}