* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #000000;
    --accent-color: #d4af37;
    --gold: #d4af37;
    --dark-blue: #000000;
    --teal: #000000;
    --light-teal: #333333;
    --dark-gold: #c49f47;
    --light-gold: #f4d03f;
    --text-dark: #000000;
    --text-light: #333333;
    --bg-light: #ffffff;
    --bg-dark: #ffffff;
    --white: #ffffff;
    --black: #000000;
}

/* Dark Theme (Default) */
body.dark-theme {
    --primary-color: #d4af37;
    --dark-blue: #000000;
    --teal: #000000;
    --light-teal: #333333;
    --text-dark: #ffffff;
    --text-light: #e5e5e5;
    --bg-light: #000000;
    --bg-dark: #000000;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    /* Better mobile scrolling */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.dark-theme .loading-screen {
    background: #000000;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    z-index: 10000;
    transition: all 0.4s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .navbar {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #d4af37;
}

body:not(.dark-theme) .navbar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #d4af37;
}

body.dark-theme .navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

body:not(.dark-theme) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Small Navbar Logo - Shows on scroll */
.navbar-logo {
    display: none;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.navbar-logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.navbar-logo-name {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

.theme-toggle svg {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
    stroke: var(--black);
    stroke-width: 2;
}

.theme-toggle .moon-icon {
    display: block;
    stroke: var(--black);
    stroke-width: 2;
}

body.dark-theme .theme-toggle .sun-icon {
    display: block;
    stroke: var(--white);
}

body.dark-theme .theme-toggle .moon-icon {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    flex-direction: row;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.logo .logo-img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(212, 175, 55, 0.4));
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 40px rgba(212, 175, 55, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.logo .name-img {
    width: 450px;
    height: auto;
    filter: drop-shadow(0 3px 15px rgba(212, 175, 55, 0.3));
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    object-fit: contain;
}

.logo .tagline {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    will-change: opacity, display;
    transition: opacity 0.5s ease;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    align-items: center;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

body:not(.dark-theme) .nav-menu a {
    color: var(--text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--gold);
}

.nav-menu a:hover {
    color: var(--gold);
}

/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    background: #d4af37;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.popup-icon svg {
    width: 4rem;
    height: 4rem;
    display: block;
    margin: 0 auto;
}

.popup-card h2 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-subtitle {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.popup-text {
    color: #000000;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.popup-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.popup-features span {
    background: rgba(212, 175, 55, 0.3);
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.popup-btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    margin-right: auto;
}

.popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    color: #000000;
    background: #2c4fa3;
}

/* Hamburger Menu - Hidden on desktop, visible on mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: fixed;
    top: 20px;
    right: 75px;
    z-index: 10002;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Services Banner Section */
.services-banner {
    padding: 2rem 2rem;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.service-item:hover,
.service-item:active {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-item:hover::before {
    right: 150%;
}

@media (hover: none) {
    .service-item:active {
        transform: scale(0.98);
    }
}

.service-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    display: block;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.service-item p {
    color: #333;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Hero Section with Parallax */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
    margin: 0;
    border: none;
}

/* Add scroll margin to all sections to prevent overlap with fixed navbar */
section {
    scroll-margin-top: 80px;
    margin: 0;
    border: none;
}

.parallax-bg {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background: var(--bg-light);
    opacity: 1;
    transform-origin: center;
    will-change: transform;
}



body.dark-theme .parallax-bg {
    background: #000000;
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.stats-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--gold), var(--secondary-color));
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.stat-card h2 {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-card p {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Section Styling */
.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
    font-weight: bold;
}

/* Destinations Section */
.destinations-section {
    padding: 2rem 2rem;
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.destination-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.destination-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.destination-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.9));
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.destination-card:hover .card-overlay {
    border-color: var(--gold);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: var(--white);
    z-index: 2;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--white);
}

.price {
    display: inline-block;
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

/* Packages Section - New Tours Layout */
.packages-section {
    padding: 3rem 2rem;
    background: #ffffff;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: none;
}

body.dark-theme .packages-section {
    background: #000000;
}

.tours-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
    align-items: stretch;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.tour-category-title {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-align: center;
}

body.dark-theme .tour-category-title {
    color: var(--light-teal);
}

/* Umrah Tours - Right Side */
.umrah-tours {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tour-card-horizontal {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}\n\n.tour-card-horizontal.sold-out {
    opacity: 0.85;
    filter: grayscale(30%);
}\n\n.sold-out-badge,
.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    letter-spacing: 0.3px;
}

.coming-soon-badge {
    background: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.tour-card-horizontal::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .tour-card-horizontal:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .tour-card-horizontal:hover::before {
        right: 150%;
    }
}

.tour-card-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.tour-card-icon svg {
    width: 3.5rem;
    height: 3.5rem;
    display: block;
}

.tour-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-card-content h4 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.tour-duration {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.tour-book-btn {
    padding: 0.8rem 2rem;
    background: #000;
    color: #d4af37;
    border: 2px solid #000;
    border-radius: 10px;
    align-self: flex-start;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

@media (hover: hover) {
    .tour-book-btn:hover {
        background: #d4af37;
        color: #000000;
        border-color: #d4af37;
        transform: scale(1.05);
    }
}

.tour-book-btn:active {
    background: #d4af37;
    color: #000000;
    border-color: #d4af37;
    transform: scale(1.05);
}

/* Hajj Tours - Left Side */
.hajj-tours {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tour-card-vertical {
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tour-card-vertical::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.6s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .tour-card-vertical:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .tour-card-vertical:hover::before {
        left: 100%;
    }
}

.tour-card-icon-large {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.tour-card-icon-large svg {
    width: 5rem;
    height: 5rem;
    display: block;
    margin: 0 auto;
}

.tour-card-vertical h4 {
    font-size: 2rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 1rem;
}

.hajj-description {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hajj-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex: 1;
}

.hajj-feature-item {
    color: #d4af37;
    font-size: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.hajj-cta {
    text-align: center;
    margin-top: auto;
}

.hajj-cta-text {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tour-book-btn-large {
    width: 100%;
    padding: 1.2rem;
    background: #000000;
    color: #d4af37;
    border: 2px solid #000000;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin-left: auto;
    margin-right: auto;
    display: block;
    position: relative;
    z-index: 10;
}

@media (hover: hover) {
    .tour-book-btn-large:hover {
        background: #d4af37;
        color: #000000;
        border-color: #d4af37;
        transform: scale(1.05);
    }
}

.tour-book-btn-large:active {
    background: #d4af37;
    color: #000000;
    border-color: #d4af37;
    transform: scale(1.05);
}

@media (hover: none) {
    .tour-book-btn:active,
    .tour-book-btn-large:active {
        transform: scale(0.95);
    }
}

/* Package Details Styling */
.package-duration,
.package-date {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.package-date {
    font-weight: 600;
    color: var(--accent-color);
}

.package-details {
    margin: 1.5rem 0;
    text-align: left;
}

.package-details h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.package-details ul {
    margin-bottom: 1rem;
}

.package-details ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hotel-distance {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-left: 1.2rem;
    font-weight: 500;
}

.package-price {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
}

.price-amount {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin: 0.3rem 0;
}

.price-note {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* About Section */
.about-section {
    padding: 2rem 2rem;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--dark-blue);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    display: block;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

/* About Images Left Side */
.about-images-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Mobile images - hidden on desktop */
.about-img-mobile {
    display: none;
}

.about-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

.about-img-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.about-img-container:hover img {
    transform: scale(1.05);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s ease;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--gold), var(--secondary-color));
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.testimonial-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-content-3col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-right-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.contact-horizontal-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 139, 139, 0.2);
    border: 2px solid rgba(0, 139, 139, 0.1);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.form-select {
    padding: 1rem;
    border: 2px solid var(--dark-blue);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Select dropdown styling */
.contact-form select option {
    background: var(--white);
    color: var(--text-dark);
    padding: 10px;
}

.contact-form select option:checked,
.contact-form select option:hover {
    background: #d4af37;
    color: #000000;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form select:invalid:not(:focus) {
    border-color: #dc2626;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #16a34a;
    background: rgba(72, 209, 204, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 139, 139, 0.3);
}

.submit-btn:hover {
    background: #d4af37;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 139, 139, 0.2);
    border: 2px solid rgba(0, 139, 139, 0.1);
    flex: 1;
    justify-content: space-around;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--dark-blue);
}

.info-icon svg {
    width: 2rem;
    height: 2rem;
    display: block;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-dark);
}

/* Contact Social Section */
.contact-social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 139, 139, 0.2);
    border: 2px solid rgba(0, 139, 139, 0.1);
    flex: 0 0 auto;
}

.contact-social h3 {
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icons-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.social-icon-link {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-5px);
}

.social-icon-box {
    background: #d4af37;
    padding: 1rem 0.8rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.social-icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.social-icon-link:hover .social-icon-box::before {
    right: 150%;
}

.social-icon-link:hover .social-icon-box {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.social-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
}

.social-icon-fa {
    font-size: 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    display: block;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
    color: #d4af37;
    transition: transform 0.3s ease;
}

.social-icon-link:hover .social-icon-fa {
    transform: scale(1.1);
}

.social-icon-link.whatsapp-chat .social-icon-fa,
.social-icon-link.whatsapp-channel .social-icon-fa {
    color: #25D366;
}

.social-icon-link.instagram .social-icon-fa {
    color: #E4405F;
}

.social-icon-link.maps .social-icon-fa {
    color: #EA4335;
}

.social-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000000;
    display: block;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #000000;
    padding: 1.5rem 2rem;
    text-align: center;
    border: none;
    margin: 0;
    border-top: 1px solid #d4af37;
}

body.dark-theme .footer {
    background: #000000;
    color: #ffffff;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Dark Theme Specific Adjustments */
body.dark-theme .service-item {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

body.dark-theme .service-item:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

body.dark-theme .service-item h3 {
    color: #1a1a1a !important;
}

body.dark-theme .service-item p {
    color: #333 !important;
}

body.dark-theme .stat-card {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

body.dark-theme .stat-card:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

body.dark-theme .tour-card-horizontal,
body.dark-theme .tour-card-vertical {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

body.dark-theme .tour-card-horizontal:hover,
body.dark-theme .tour-card-vertical:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

body.dark-theme .tour-card-horizontal h4,
body.dark-theme .tour-card-vertical h4,
body.dark-theme .tour-card-content h4 {
    color: #1a1a1a !important;
}

body.dark-theme .tour-duration,
body.dark-theme .price-text,
body.dark-theme .price-per {
    color: #333 !important;
}

body.dark-theme .tour-departure {
    color: #006666 !important;
}

body.dark-theme .price-amount {
    color: #005555 !important;
}

body.dark-theme .hajj-description {
    color: #1a1a1a !important;
}

body.dark-theme .hajj-feature-item {
    color: #005555 !important;
    background: rgba(255, 255, 255, 0.5);
}

body.dark-theme .hajj-cta-text {
    color: #005555 !important;
}

body.dark-theme .testimonial-card {
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

body.dark-theme .testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

body.dark-theme .destination-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .destination-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

body.dark-theme .contact-form,
body.dark-theme .contact-social,
body.dark-theme .contact-info {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea,
body.dark-theme .contact-form select {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--white);
}

/* Dark theme select dropdown options */
body.dark-theme .contact-form select option {
    background: #1a1a1a;
    color: var(--white);
    padding: 10px;
}

body.dark-theme .contact-form select option:checked,
body.dark-theme .contact-form select option:hover {
    background: #d4af37;
    color: #000000;
}

body.dark-theme .contact-form input::placeholder,
body.dark-theme .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-theme .contact-form input:valid:not(:placeholder-shown),
body.dark-theme .contact-form textarea:valid:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

body.dark-theme .contact-social h3 {
    color: var(--light-teal);
    text-shadow: 0 2px 8px rgba(32, 178, 170, 0.5);
}

body.dark-theme .info-item h4 {
    color: #d4af37;
}

body.dark-theme .info-item p,
body.dark-theme .info-item a {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-theme .info-icon {
    color: var(--gold);
}

/* Dark theme section titles and headings */
body.dark-theme .section-title {
    color: #d4af37;
}

body.dark-theme .tour-category-title {
    color: #d4af37;
}

body.dark-theme .contact-social h3 {
    color: #d4af37;
}

body.dark-theme .logo .tagline {
    color: #d4af37;
    text-shadow: 2px 2px 8px rgba(212, 175, 55, 0.8);
}

body.dark-theme .social-label {
    color: #000000;
}

body.dark-theme .submit-btn {
    background: #ffffff;
    color: #000000;
}

body.dark-theme .submit-btn:hover {
    background: #d4af37;
    color: var(--black);
}

/* Dark Theme Section Backgrounds */
body.dark-theme .packages-section {
    background: #000000;
}

body.dark-theme .services-banner {
    background: #000000;
}

body.dark-theme .about-section {
    background: #000000;
}

body.dark-theme .feature-item h4 {
    color: #ffffff;
}

body.dark-theme .feature-item p {
    color: #cccccc;
}

body.dark-theme .contact-section {
    background: #000000;
}

body.dark-theme .footer {
    background: #000000;
    color: #ffffff;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

/* Loading Screen Text */
body:not(.dark-theme) .loading-text {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Navigation Links */
body:not(.dark-theme) .nav-menu a {
    color: #000000;
}

body:not(.dark-theme) .popup-close {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

body:not(.dark-theme) .popup-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

body:not(.dark-theme) .popup-btn {
    color: #ffffff;
}

/* Package Cards Content */
body:not(.dark-theme) .card-content,
body:not(.dark-theme) .card-content h3,
body:not(.dark-theme) .card-content p {
    color: #000000;
}

/* Tour Booking Buttons - Keep colors as defined */
body:not(.dark-theme) .tour-book-btn,
body:not(.dark-theme) .tour-book-btn-large {
    background: #000000;
    color: #d4af37;
    border-color: #000000;
}

@media (hover: hover) {
    body:not(.dark-theme) .tour-book-btn:hover,
    body:not(.dark-theme) .tour-book-btn-large:hover {
        background: #d4af37;
        color: #000000;
        border-color: #d4af37;
    }
}

body:not(.dark-theme) .tour-book-btn:active,
body:not(.dark-theme) .tour-book-btn-large:active {
    background: #d4af37;
    color: #000000;
    border-color: #d4af37;
}

/* Package Price Section */
body:not(.dark-theme) .package-price {
    color: #ffffff;
}

/* Contact Form Select Options */
body:not(.dark-theme) .contact-form select option:checked,
body:not(.dark-theme) .contact-form select option:hover {
    color: #ffffff;
}

/* Footer */
body:not(.dark-theme) .footer {
    background: #ffffff;
    color: #000000;
}

body:not(.dark-theme) .footer h3,
body:not(.dark-theme) .footer p,
body:not(.dark-theme) .footer a {
    color: #000000;
}

.footer-link {
    color: #d4af37;
    text-decoration: none;
}

body:not(.dark-theme) .footer-link {
    color: #000000;
}

.footer-company-name {
    color: #ffffff;
}

.footer-tagline {
    color: #ffffff;
    opacity: 0.9;
}

body:not(.dark-theme) .footer-company-name {
    color: #000000;
}

body:not(.dark-theme) .footer-tagline {
    color: #000000;
    opacity: 0.9;
}

/* Status Badges - Keep white text on colored backgrounds */
body:not(.dark-theme) .sold-out-badge,
body:not(.dark-theme) .coming-soon-badge {
    color: #ffffff;
}

/* Cookie Banner */
body:not(.dark-theme) .cookie-banner {
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
}

body:not(.dark-theme) .cookie-decline {
    color: #ffffff;
    border-color: #ffffff;
}

body:not(.dark-theme) .cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* About Section - Light Theme */
body:not(.dark-theme) .about-text p {
    color: #000000;
}

body:not(.dark-theme) .section-title {
    color: #000000 !important;
}

body:not(.dark-theme) .feature-item h4 {
    color: #000000;
}

body:not(.dark-theme) .feature-item p {
    color: #000000;
}

body:not(.dark-theme) .feature-icon {
    color: #d4af37;
}

/* Contact Section - Light Theme */
body:not(.dark-theme) .contact-social h3 {
    color: #d4af37;
}

body:not(.dark-theme) .info-item h4 {
    color: #000000;
}

body:not(.dark-theme) .info-item p,
body:not(.dark-theme) .info-item a {
    color: #000000;
}

body:not(.dark-theme) .info-icon {
    color: #d4af37;
}

body:not(.dark-theme) .social-icon-box .social-icon-label {
    color: #d4af37;
}

/* Contact Form Labels - Light Theme */
body:not(.dark-theme) .contact-form label,
body:not(.dark-theme) .contact-form label[for="human_verification"] {
    color: #000000 !important;
}

/* Contact Form Select and Options - Light Theme */
body:not(.dark-theme) .contact-form select,
body:not(.dark-theme) .form-select {
    color: #000000 !important;
    background: #ffffff !important;
}

body:not(.dark-theme) .contact-form select option {
    color: #000000 !important;
    background: #ffffff !important;
}

/* Contact Form Inputs - Light Theme */
body:not(.dark-theme) .contact-form input,
body:not(.dark-theme) .contact-form textarea {
    background: #ffffff !important;
    color: #000000 !important;
}

body:not(.dark-theme) .contact-form input::placeholder,
body:not(.dark-theme) .contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.65) !important;
}

/* Hero Section Background - Light Theme */
body:not(.dark-theme) .parallax-bg {
    background: #ffffff;
    opacity: 1;
}

/* Logo Tagline - Light Theme */
body:not(.dark-theme) .logo .tagline {
    color: #004d4d;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* Tour Cards - Light Theme */
body:not(.dark-theme) .tour-card-vertical h4,
body:not(.dark-theme) .tour-card-content h4 {
    color: #1a1a1a;
    font-weight: 700;
}

body:not(.dark-theme) .hajj-description {
    color: #1a1a1a;
    font-weight: 500;
}

body:not(.dark-theme) .hajj-feature-item {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

body:not(.dark-theme) .hajj-cta-text {
    color: #1a1a1a;
    font-weight: 700;
}

body:not(.dark-theme) .tour-duration {
    color: #2c2c2c;
    font-weight: 500;
}

body:not(.dark-theme) .tour-departure {
    color: #1a1a1a;
    font-weight: 600;
}

body:not(.dark-theme) .price-text,
body:not(.dark-theme) .price-per {
    color: #2c2c2c;
    font-weight: 500;
}

body:not(.dark-theme) .price-amount {
    color: #1a1a1a;
    font-weight: 700;
}

/* Service Items - Light Theme */
body:not(.dark-theme) .service-item h3 {
    color: #1a1a1a !important;
    font-weight: 700;
}

body:not(.dark-theme) .service-item p {
    color: #2c2c2c !important;
    font-weight: 500;
}

/* Responsive Design */

/* Large Tablet / Small Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tours-wrapper {
        gap: 2rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .logo .logo-img {
        width: 300px;
    }
    
    .logo .name-img {
        width: 400px;
    }
    
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .packages-slider,
    .testimonials-grid {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Tours wrapper adjustments for tablet */
    .tours-wrapper {
        gap: 2rem;
    }
    
    .tour-card-horizontal {
        padding: 1.5rem;
    }
    
    .tour-card-vertical {
        padding: 2rem;
    }
}

/* Small Tablet */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        height: 65vh;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile */
/* Desktop layout - horizontal logo */
@media (min-width: 769px) {
    .logo {
        flex-direction: row !important;
        text-align: left !important;
        gap: 2rem !important;
    }
    
    .logo-text {
        align-items: flex-start !important;
        text-align: left !important;
    }
}

/* Medium screens - show hamburger to prevent navbar overlap */
@media (max-width: 1200px) {
    .hamburger-menu {
        display: flex !important;
        position: fixed;
        right: 60px;
        top: 20px;
        z-index: 10002;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 280px;
        max-width: 85vw;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 15px 0 0 15px;
        box-shadow: -5px 0 30px rgba(212, 175, 55, 0.2);
        border-left: 3px solid var(--gold);
        height: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    body:not(.dark-theme) .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        padding: 0.8rem 0;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Disable parallax on mobile for better performance */
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .services-banner,
    .packages-section,
    .about-section,
    .contact-section {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        min-height: auto;
    }
    
    /* Logo adjustments - prevent overlapping */
    .logo {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        top: 25vh;
        padding: 0 1rem;
    }
    
    .logo-text {
        align-items: center;
        text-align: center;
    }
    
    .logo .logo-img {
        width: 100px;
        height: 100px;
        max-width: 90vw;
        object-fit: contain;
    }
    
    .logo .name-img {
        width: 280px;
        height: auto;
        max-width: 85vw;
        object-fit: contain;
    }
    
    .logo .tagline {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        max-width: 90vw;
    }
    
    /* Popup adjustments for mobile */
    .popup-card {
        width: 90%;
        max-width: 90vw;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .popup-icon {
        font-size: 3rem;
        margin-bottom: 0.8rem;
    }
    
    .popup-card h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .popup-subtitle {
        font-size: 1rem;
    }
    
    .popup-text {
        font-size: 0.9rem;
    }
    
    .popup-features {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .popup-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
        position: fixed;
        right: 60px;
        top: 20px;
        transform: none;
        z-index: 10002;
    }
    
    /* Navigation menu - toggle on mobile */
    .nav-menu {
        flex-direction: column;
        gap: 0.8rem;
        top: 75px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.98);
        padding: 1.5rem 1rem;
        border-radius: 12px;
        display: none;
        position: fixed;
        z-index: 10001;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        min-width: 220px;
        max-width: 90vw;
        backdrop-filter: blur(10px);
    }
    
    /* Navbar container adjustments */
    .navbar {
        height: 70px;
        padding: 0 0.5rem;
    }
    
    .navbar .container {
        padding: 0.5rem;
        justify-content: center;
    }
    
    /* Theme toggle mobile positioning */
    .theme-toggle {
        position: fixed;
        right: 15px;
        top: 18px;
        width: 38px;
        height: 38px;
        z-index: 10003;
    }
    
    .theme-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    body:not(.dark-theme) .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    /* Show menu when active */
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(0, 139, 139, 0.1);
    }
    
    /* Sections padding */
    .services-banner,
    .packages-section,
    .about-section,
    .testimonials-section {
        padding: 4rem 1rem 3rem 1rem;
    }
    
    .contact-section {
        padding: 4rem 0.5rem 3rem 0.5rem;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    /* Grid adjustments */
    .about-content,
    .contact-content,
    .contact-content-3col,
    .contact-horizontal-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-icons-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .service-item {
        padding: 1.5rem 1rem;
        aspect-ratio: 1 / 1;
    }
    
    .service-icon {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-icon svg {
        margin: 0 auto;
    }
    
    .service-item h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    /* Stats section */
    .stats-section .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 2.5rem 1.5rem;
    }
    
    .stat-card h2 {
        font-size: 3rem;
    }
    
    /* Destinations */
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .destination-card {
        height: 400px;
    }
    
    /* Tours Section - Stack on Mobile */
    .tours-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .tour-category-title {
        font-size: 1.6rem;
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--teal);
    }
    
    .tour-card-horizontal {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .tour-card-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tour-card-icon svg {
        margin: 0 auto;
    }
    
    .tour-details {
        gap: 1rem;
    }
    
    .detail-item {
        font-size: 0.95rem;
    }
    
    .tour-card-vertical {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
    
    .tour-card-icon-large {
        font-size: 5rem;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tour-card-icon-large svg {
        margin: 0 auto;
    }
    
    .tour-features {
        gap: 1rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-icon svg {
        margin: 0 auto;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact form - Better mobile styling */
    .contact-form {
        padding: 1.5rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin: 0 1.5rem;
        gap: 1.2rem;
    }
    
    body.dark-theme .contact-form {
        background: rgba(26, 26, 26, 0.95);
        margin: 0 1.5rem;
    }
    
    .contact-info,
    .contact-social {
        margin: 0 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.9rem 1rem;
        border-radius: 12px;
        border: 2px solid rgba(0, 139, 139, 0.3);
        background: var(--bg-light);
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Light theme mobile inputs */
    body:not(.dark-theme) .contact-form input,
    body:not(.dark-theme) .contact-form textarea,
    body:not(.dark-theme) .contact-form select {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
        border-color: var(--teal);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(0, 139, 139, 0.1);
    }
    
    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }
    
    .contact-form select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23008B8B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1.1rem 2rem;
        font-size: 1.05rem;
        border-radius: 12px;
        background: #000000;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .submit-btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 10px rgba(0, 139, 139, 0.2);
    }
    
    /* Checkbox container styling */
    .contact-form > div:has(input[type="checkbox"]) {
        padding: 0.9rem !important;
        border-radius: 10px !important;
        background: rgba(212, 175, 55, 0.08) !important;
        border: 1.5px solid rgba(212, 175, 55, 0.25) !important;
    }
    
    .contact-form label[for="human_verification"] {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Form placeholder styling */
    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: rgba(0, 0, 0, 0.4);
        font-size: 0.95rem;
    }
    
    body.dark-theme .contact-form input::placeholder,
    body.dark-theme .contact-form textarea::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    /* Form message styling */
    #formMessage {
        border-radius: 10px !important;
        font-size: 0.95rem !important;
        text-align: center;
    }
    
    /* Contact section grid on mobile */
    .contact-content-3col {
        gap: 2rem;
    }
    
    /* About section - Hide desktop images, show mobile images */
    .about-images-left {
        display: none;
    }
    
    .about-img-mobile {
        display: block;
        margin: 1.5rem 0;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .about-img-mobile img {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
        display: block;
    }
    
    /* Checkbox styling for mobile */
    input[type="checkbox"],
    .human-check {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        cursor: pointer;
        flex-shrink: 0;
        accent-color: var(--teal);
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer .container > div {
        text-align: center !important;
    }
    
    .footer .container > div:first-child {
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
    }
    
    .footer img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .footer h3 {
        font-size: 1.1rem !important;
    }
    
    .footer p {
        font-size: 0.85rem !important;
        line-height: 1.6;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Buttons */
    .cta-button,
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly */
    }
    
    /* Packages/Cards */
    .package-card,
    .testimonial-card {
        margin: 0 auto;
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .logo {
        top: 22vh;
        padding: 0 0.5rem;
    }
    
    .logo .logo-img {
        width: 80px;
        height: 80px;
        max-width: 90vw;
        object-fit: contain;
    }
    
    .logo .name-img {
        width: 230px;
        height: auto;
        max-width: 85vw;
        object-fit: contain;
    }
    
    .logo .tagline {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .service-item {
        padding: 1.5rem 1rem;
        aspect-ratio: 1 / 1;
    }
    
    .service-icon {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-icon svg {
        margin: 0 auto;
    }
    
    .service-item h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .service-item p {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        padding: 1rem 0.8rem;
        top: 70px;
        min-width: 200px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    
    .tour-category-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .tour-card-content h4 {
        font-size: 1.4rem;
    }
    
    .tour-card-vertical h4 {
        font-size: 1.8rem;
    }
    
    .stat-card h2 {
        font-size: 2.5rem;
    }
    
    .stat-card p {
        font-size: 0.9rem;
    }
    
    /* Hero section adjustments */
    .hero {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Contact form - Extra small mobile */
    .contact-form,
    .contact-info,
    .contact-social {
        margin: 0 0.5rem !important;
        padding: 1.2rem 0.8rem !important;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.8rem 0.7rem !important;
        font-size: 15px !important;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Hamburger menu positioning */
    .hamburger-menu {
        right: 55px;
        top: 18px;
    }
    
    /* Theme toggle positioning */
    .theme-toggle {
        right: 12px;
        top: 16px;
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Sections padding */
    .services-banner,
    .packages-section,
    .about-section,
    .testimonials-section,
    .contact-section {
        padding: 3.5rem 0.8rem 2rem 0.8rem;
    }
    
    /* Tour cards */
    .tour-card-horizontal {
        padding: 1.5rem 1rem;
    }
    
    .tour-card-vertical {
        padding: 2rem 1rem;
    }
    
    .detail-item,
    .feature-item {
        font-size: 0.9rem;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-icon svg {
        margin: 0 auto;
    }
    
    /* Contact form */
    .contact-form {
        padding: 0;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem;
        font-size: 16px;
    }
    
    .contact-form button {
        padding: 0.9rem 1.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0.8rem;
    }
    
    .footer img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .footer h3 {
        font-size: 1rem !important;
    }
    
    .footer p {
        font-size: 0.8rem !important;
    }
    
    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    /* About mobile images */
    .about-img-mobile {
        margin: 1.2rem 0;
    }
    
    .about-img-mobile img {
        max-height: 220px;
    }
    
    /* Checkbox - smaller on small screens */
    input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px;
        min-height: 18px;
    }
    
    /* Buttons */
    .cta-button,
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-link {
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-link:hover {
    color: #ffd700;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--gold);
    color: #000000 !important;
    font-weight: 700;
}

.cookie-accept:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-height: 44px; /* Touch-friendly */
    }
}

/* Mobile Landscape Optimization */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }
    
    .logo {
        top: 20vh;
    }
    
    .logo .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .logo .name-img {
        width: 200px;
    }
    
    .logo .tagline {
        font-size: 0.75rem;
    }
    
    .navbar {
        height: 60px;
    }
    
    .services-banner,
    .packages-section,
    .about-section,
    .testimonials-section,
    .contact-section {
        padding: 3rem 1rem 2rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Small Mobile Landscape */
@media (max-width: 480px) and (orientation: landscape) {
    .logo {
        top: 15vh;
    }
    
    .logo .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .logo .name-img {
        width: 180px;
    }
    
    .hero {
        min-height: 350px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    a, button, input, textarea, select {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 0.8rem 1rem;
    }
    
    .hamburger-menu {
        width: 44px;
        height: 44px;
    }
    
    .theme-toggle {
        width: 44px;
        height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .service-item:hover,
    .tour-card-horizontal:hover,
    .tour-card-vertical:hover {
        transform: none;
    }
    
    /* Better tap feedback */
    .cta-button:active,
    .btn:active {
        transform: scale(0.98);
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    /* Automatically apply dark theme if user prefers dark mode */
    body:not(.light-theme) {
        --primary-color: #d4af37;
        --dark-blue: #d4af37;
        --teal: #d4af37;
        --text-dark: #ffffff;
        --text-light: #e5e7eb;
        --bg-light: #1a1a1a;
        --bg-dark: #0a0a0a;
    }
}

/* Umrah Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--bg-light);
    border: 2px solid #d4af37;
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: slideUp 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: rotate(90deg);
    color: #d4af37;
}

.popup-content h2 {
    color: #d4af37;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.popup-tour-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popup-tour-item {
    background: rgba(212, 175, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.popup-tour-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.popup-tour-item h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-tour-item p {
    color: #333;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.popup-tour-item .tour-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
    margin-top: 1rem;
}

.popup-tour-item .tour-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.popup-tour-item .status-available {
    background: #10b981;
    color: white;
}

.popup-tour-item .status-soldout {
    background: #dc2626;
    color: white;
}

.popup-tour-item .status-comingsoon {
    background: #3b82f6;
    color: white;
}

.popup-tour-item .book-btn,
.popup-tour-list .book-btn {
    margin-top: 1rem;
    background: #000;
    color: #d4af37;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .popup-tour-item .book-btn:hover,
    .popup-tour-list .book-btn:hover {
        background: #d4af37;
        color: #000;
        transform: scale(1.05);
    }
}

.popup-tour-item .book-btn:active,
.popup-tour-list .book-btn:active {
    background: #d4af37;
    color: #000;
    transform: scale(1.05);
}

.popup-tour-item .book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.dark-theme .popup-content {
    background: #000;
    border-color: #d4af37;
}

body:not(.dark-theme) .popup-content {
    background: #ffffff;
    border-color: #d4af37;
}

body:not(.dark-theme) .popup-content h2 {
    color: #d4af37;
}

body:not(.dark-theme) .popup-close {
    color: #000000;
}

body:not(.dark-theme) .popup-close:hover {
    color: #d4af37;
}

body:not(.dark-theme) .popup-tour-item {
    background: rgba(212, 175, 55, 0.95);
}

body:not(.dark-theme) .popup-tour-item h3,
body:not(.dark-theme) .popup-tour-item p,
body:not(.dark-theme) .popup-tour-item .tour-price {
    color: #000000;
}

/* Print Styles */
@media print {
    .navbar,
    .theme-toggle,
    .hamburger-menu,
    .cookie-banner,
    .loading-screen {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}
