/* Custom Properties (Variables) */
:root {
    --primary-color: #004D40; /* Dark Green */
    --accent-color: #DAA520; /* Soft Gold */
    --light-beige: #F8F4E3; /* Light Sand Beige */
    --white-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FDFDFD;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl; /* Right-to-Left */
    text-align: right; /* Default text alignment */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-beige);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 10px;
    opacity: 0; /* Hidden by default for animation */
    transform: translateY(20px); /* Slightly down for animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 50%; /* Center for RTL */
    transform: translateX(50%); /* Adjust for centering in RTL */
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.5s; /* Delay for hero text */
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.whatsapp-button {
    background-color: #25D366; /* WhatsApp Green */
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.whatsapp-button:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background-color: var(--white-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex; /* لتمكين الصورة والنص من التوضع بجانب بعضهما */
    align-items: center; /* لمحاذاة الصورة والنص عموديًا */
    gap: 10px; /* مسافة بين الصورة والنص */
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0; /* إزالة الهامش الافتراضي للعنوان */
}

.company-logo {
    height: 40px; /* حجم الصورة، يمكنك تعديله */
    width: auto; /* للحفاظ على نسبة العرض إلى الارتفاع */
    vertical-align: middle; /* لمحاذاة الصورة مع النص */
}


.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1.05rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    /* صورة خلفية من Unsplash ذات طابع ديني ومناسبة للعمرة */
    background-image: url('https://blog.bayut.sa/uploads/2025/05/%D9%82%D8%A7%D8%B5%D8%AF-%D8%A7%D9%84%D8%AD%D8%B1%D9%85%D9%8A%D9%86-%D8%A7%D9%84%D8%B4%D8%B1%D9%8A%D9%81%D9%8A%D9%86%E2%80%AC_AR22052025.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color); /* لون النص الافتراضي */
    text-align: center;
    overflow: hidden; /* Ensures image does not bleed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* تراكب لتعتيم الصورة وتحسين قراءة النص */
    background-color: rgba(0, 0, 0, 0.4); /* يمكن تعديل العتامة هنا */
    z-index: 0; /* تأكد من أن التراكب خلف النص */
}

.hero-content {
    position: relative;
    z-index: 1; /* تأكد من أن المحتوى فوق التراكب */
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    /* ظل نص قوي لتحسين الوضوح على الخلفية */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    color: var(--white-color); /* لون النص أبيض ليتناسب مع الصورة المظلمة */
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-item .icon-placeholder {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto; /* Center the icon for RTL */
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 28px; /* حجم أيقونات Font Awesome */
}

.service-item .icon-placeholder i {
    color: var(--white-color); /* لون الأيقونة */
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Upcoming Trip Section */
.upcoming-trip-section {
    background-color: var(--white-color);
}

.trip-details {
    background-color: var(--light-beige);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.trip-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.trip-details ul {
    list-style: none; /* Remove default bullet */
    margin-bottom: 30px;
    padding: 0;
    display: inline-block; /* To contain width for list items */
    text-align: right; /* Ensure list items are right-aligned */
}

.trip-details ul li {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    padding-right: 25px; /* Space for custom bullet */
}

.trip-details ul li i {
    color: var(--accent-color); /* لون أيقونات Font Awesome داخل القائمة */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.trip-details ul li::before {
    /* تم استبدال النقطة بأيقونة Font Awesome */
    content: none;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.testimonial-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Contact Section */
.contact-info {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center; /* Center contact info block */
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info strong {
    color: var(--primary-color);
}

.contact-info p i {
    color: var(--primary-color); /* لون أيقونات Font Awesome في قسم التواصل */
    margin-left: 8px; /* مسافة بين الأيقونة والنص */
}


.contact-whatsapp-button {
    margin-top: 20px;
    background-color: #25D366;
    display: block; /* Make it a block element to center */
    width: fit-content; /* Fit content width */
    margin-left: auto; /* Center for RTL */
    margin-right: auto; /* Center for RTL */
}

.contact-whatsapp-button:hover {
    background-color: #1DA851;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.95rem;
}

.main-footer p {
    margin-bottom: 15px;
}

.hashtags span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        justify-content: center; /* لمركزة الصورة والنص في وضع الجوال */
    }

    .main-nav {
        order: 3; /* Move nav below logo and button */
        width: 100%;
        margin-top: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        display: none; /* Hidden by default, show with JS toggle */
    }

    .main-nav.active ul {
        display: flex;
    }

    .whatsapp-button {
        order: 2; /* Position next to logo or below */
        margin-bottom: 15px;
    }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
        position: absolute;
        left: 20px; /* Position on the left for RTL */
        top: 30px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-section {
        height: 450px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .services-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Stack columns on very small screens */
    }

    .main-nav ul {
        padding-top: 20px; /* Space from toggle */
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .company-logo {
        height: 30px; /* تصغير حجم اللوجو على الموبايل */
    }

    .whatsapp-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .trip-details {
        padding: 30px 20px;
    }

    .trip-details h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .main-footer {
        padding: 30px 0;
    }

    .hashtags span {
        margin: 3px;
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}