:root {
    /* Colors */
    --primary-color: #1e3a8a;
    /* Royal Blue */
    --primary-dark: #172554;
    --secondary-color: #b45309;
    /* Golden Amber */
    --secondary-light: #d97706;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;

    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    /* Direction handled by html[dir] attribute set by JS */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header & Nav */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo i {
    color: var(--secondary-color);
    font-size: 2.4rem;
    transform: rotate(-10deg);
    /* Slight tilt for dynamic feel */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width var(--transition-fast);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile/Tablet Menu & Responsive */
@media (max-width: 1024px) {

    /* Header Layout */
    header .container {
        position: relative;
    }

    /* Adjust Logo for smaller screens */
    .logo {
        font-size: 1.8rem;
        gap: 0.5rem;
    }

    .logo i {
        font-size: 2rem;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    /* Navigation Links (Mobile/Tablet View) */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        /* Ensure it covers everything */
        height: 100vh;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-dark);
    }

    .nav-link::after {
        display: none;
        /* Remove underline effect on mobile */
    }

    /* Hidden Desktop Elements */
    .hidden-mobile {
        display: none;
    }

    /* Language Switcher Position Adjustment */
    .lang-switcher {
        margin-inline-start: auto;
        margin-inline-end: 1rem;
    }

    /* Language Switcher Mobile Modal */
    .lang-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 300px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    background: url('../images/hero-bg.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(30, 58, 138, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-normal);
}

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

/* Hero Stats Bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   Services Section
   ========================================= */
.section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--bg-light);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    transition: var(--transition-normal);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================
   Destinations Section
   ========================================= */
.bg-light {
    background-color: var(--bg-light);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.destination-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dest-img {
    height: 250px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.dest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .dest-img img {
    transform: scale(1.1);
}

.dest-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.dest-content {
    padding: 1.5rem;
}

.dest-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.dest-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    /* Fix to key clickability */
}

.btn-text {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
    cursor: pointer;
}

.btn-text:hover {
    gap: 0.75rem;
    color: var(--secondary-light);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col p {
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
    padding-right: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
}

.contact-list i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack on tablet */
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        display: none;
        /* Hide on small screens for cleaner view */
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-inline-start: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    /* Default white for hero */
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Adjust color when header is white (scrolled) - simplified for now */
header .lang-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 160px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.lang-dropdown.active {
    display: flex;
}

.lang-dropdown a {
    color: var(--text-main);
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: center;
    font-size: 0.9rem;
}

.lang-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}