/* ====== 1. Global Styles & Variables ====== */
:root {
    --primary-color: #007bff; /* لون أزرق أساسي */
    --secondary-color: #6c757d; /* لون ثانوي رمادي */
    --accent-color: #ffc107; /* لون مميز (أصفر) */
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --dark-color: #222;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-josefin: 'Josefin Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-josefin);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي غير المرغوب فيه */
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

section {
    padding: 60px 5%; /* مسافة داخلية لجميع الأقسام */
}

.heading {
    text-align: center;
    margin-bottom: 40px;
}

.heading h3 {
    font-size: 3em;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.heading h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: darken(var(--primary-color), 10%); /* تتطلب sass لتغميق اللون */
    filter: brightness(0.9); /* بديل CSS لتغميق اللون */
}

/* ====== 2. Header & Navigation Bar ====== */
.header {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo img {
    height: 40px; /* حجم شعار أصغر */
}

nav .links {
    display: flex;
    gap: 25px;
}

nav .links li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

nav .links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav .links li a:hover::after {
    width: 100%;
}

nav .links li a:hover {
    color: var(--primary-color);
}

/* Hide checkboxes and icons by default for desktop */
nav input[type="checkbox"] {
    display: none;
}

nav .menu-icon,
nav .search-icon {
    display: none; /* Hidden on desktop */
    font-size: 1.5em;
    color: var(--dark-color);
    cursor: pointer;
    margin-left: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 200px;
}

.search-box button {
    background-color: var(--primary-color);
    border: none;
    color: var(--white-color);
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    filter: brightness(0.9);
}


/* ====== 3. Home Section ====== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('./images/OIP.webp') no-repeat center center/cover; /* تأكد من وجود هذه الصورة */
    color: var(--white-color);
    padding-top: 80px; /* مسافة من الهيدر الثابت */
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* طبقة شفافة لتوضيح النص */
}

.home .main-text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.home .main-text h3 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.home .main-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.home .main-text a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: var(--white-color);
}

#home-btn {
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#home-btn i {
    font-size: 1.2em;
}

#home-btn:hover {
    filter: brightness(0.9);
}

#home-btn2 {
    background: none;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    margin-left: 15px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#home-btn2 i {
    font-size: 1.3em;
}

#home-btn2:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}


/* ====== 4. Services Section ====== */
.services .card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.services .row {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    display: flex; /* لترتيب الأيقونة والنص */
    flex-direction: column; /* لترتيب الأيقونة فوق النص */
    align-items: center;
}

.services .row:hover {
    transform: translateY(-10px);
}

.services .row i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.services .card-body h3 {
    font-size: 1.8em;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.services .card-body p {
    color: var(--light-text-color);
    font-size: 0.95em;
}


/* ====== 5. About Section ====== */
.about {
    display: flex;
    flex-wrap: wrap; /* للسماح بالعناصر بالانتقال لأسفل في الشاشات الصغيرة */
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: var(--white-color);
}

.about .about-img {
    flex: 1 1 450px; /* مرونة في الحجم */
}

.about .about-img img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about .about-info {
    flex: 1 1 450px; /* مرونة في الحجم */
    max-width: 600px;
}

.about .about-info h6 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about .about-info h3 {
    font-size: 2.5em;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about .about-info p {
    color: var(--light-text-color);
    margin-bottom: 25px;
    font-size: 1.05em;
}

.about .about-btn {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.about .about-btn:hover {
    filter: brightness(1.2);
}


/* ====== 6. Gallery Section ====== */
.gallary {
    background-color: var(--bg-light);
}

.gallary .heading h3 {
    font-size: 3em;
}

.gallary .heading h3 i {
    font-size: 0.8em; /* تصغير حجم الأيقونة بجانب العنوان */
    vertical-align: middle;
    margin-left: 10px;
    color: var(--primary-color);
}

.gallary .gallary-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallary .row {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.gallary .row img {
    width: 100%;
    height: 250px; /* ارتفاع ثابت للصور */
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشوه */
    transition: var(--transition);
}

.gallary .row:hover img {
    transform: scale(1.1);
}


/* ====== 7. Packages Section ====== */
.packages {
    background-color: var(--white-color);
}

.packages .main-txt h3 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}
.packages .main-txt h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.packages .card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.packages .row {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.packages .row:hover {
    transform: translateY(-10px);
}

.packages .row img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.packages .card-body {
    padding: 20px;
}

.packages .card-body h3 {
    font-size: 1.8em;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.packages .card-body p {
    color: var(--light-text-color);
    margin-bottom: 15px;
    font-size: 0.95em;
}

.packages .rating {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.packages .rating .checked {
    color: var(--accent-color);
}

.packages .card-body h5 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.packages .card-body button {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.packages .card-body button:hover {
    filter: brightness(1.2);
}


/* ====== 8. Book Section ====== */
.book {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: var(--bg-dark);
    color: var(--white-color);
}

.book .book-img {
    flex: 1 1 450px;
    text-align: center;
}

.book .book-img img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.book .book-form {
    flex: 1 1 450px;
    max-width: 500px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--text-color);
}

.book .book-form h5 {
    font-size: 1.8em;
    color: var(--dark-color);
    margin-bottom: 25px;
    text-align: center;
}

.book .book-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book .book-form input[type="text"],
.book .book-form input[type="date"],
.book .book-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    outline: none;
    font-size: 1em;
}

.book .book-form textarea {
    resize: vertical; /* السماح بتغيير حجم النص عموديا */
    min-height: 100px;
}

.book .book-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: var(--transition);
}

.book .book-form input[type="submit"]:hover {
    filter: brightness(0.9);
}


/* ====== 9. Reviews Section ====== */
.reviews .main-txt h3 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}
.reviews .main-txt h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.reviews .card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reviews .row {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.reviews .row:hover {
    transform: translateY(-10px);
}

.reviews .row h5 {
    font-size: 1.5em;
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reviews .row h5 img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.reviews .rating {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.reviews .rating i {
    font-size: 1.1em;
}

.reviews .row p {
    color: var(--light-text-color);
    font-size: 0.95em;
}


/* ====== 10. Contact Section ====== */
.contact {
    background-color: var(--bg-dark);
    color: var(--white-color);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* محاذاة العناصر للأعلى */
    justify-content: center;
    gap: 50px;
}

.contact .contact-text {
    flex: 1 1 400px;
    max-width: 500px;
}

.contact .contact-text h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.contact .contact-text h2 span {
    color: var(--primary-color);
}

.contact .contact-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact .contact-text .list li {
    margin-bottom: 10px;
}

.contact .contact-text .list li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.contact .contact-text .list li a:hover {
    color: var(--primary-color);
}

.contact .contact-form {
    flex: 1 1 400px;
    max-width: 500px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact .contact-form input[type="text"],
.contact .contact-form input[type="number"],
.contact .contact-form input[type="email"],
.contact .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    outline: none;
    font-size: 1em;
    color: var(--dark-color);
}

.contact .contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact .contact-form .submit {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: var(--transition);
}

.contact .contact-form .submit:hover {
    filter: brightness(0.9);
}


/* ====== 11. Footer Section ====== */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 50px 5%;
    text-align: center;
}

footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

footer .row {
    margin-bottom: 30px; /* مسافة بين الصفوف في الشاشات الصغيرة */
}

#footer-logo {
    font-size: 2em;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

footer .row p {
    font-size: 0.9em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

footer .socail-links i {
    font-size: 1.5em;
    color: var(--white-color);
    margin-right: 15px;
    transition: var(--transition);
}

footer .socail-links i:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

footer .row h3 {
    font-size: 1.5em;
    color: var(--white-color);
    margin-bottom: 20px;
}

footer .row ul li {
    margin-bottom: 10px;
}

footer .row ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    transition: var(--transition);
}

footer .row ul li a:hover {
    color: var(--primary-color);
    margin-left: 5px; /* تأثير بسيط عند التحويم */
}

footer .row img {
    max-width: 150px; /* حجم معقول لصور التطبيق */
    height: auto;
    border-radius: var(--border-radius);
}


/* ====== 12. Responsive Design (Media Queries) ====== */
@media (max-width: 992px) {
    .home .main-text h3 {
        font-size: 3.5em;
    }
    .about .about-info h3 {
        font-size: 2.2em;
    }
    .contact .contact-text h2 {
        font-size: 2.5em;
    }
    section {
        padding: 50px 4%;
    }
    .heading h3 {
        font-size: 2.5em;
    }
    .packages .card-content,
    .reviews .card-content,
    .services .card-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    footer .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Header adjustments for mobile */
    nav .content {
        position: fixed;
        top: 0;
        right: -70%; /* Hidden off-screen */
        width: 70%;
        height: 100vh;
        background-color: var(--bg-dark); /* خلفية داكنة للقائمة */
        padding-top: 70px; /* مسافة من أعلى */
        text-align: center;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    nav #show-menu:checked ~ .content {
        right: 0; /* Show menu */
    }

    nav .links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 30px;
    }

    nav .links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav .links li:last-child {
        border-bottom: none;
    }

    nav .links li a {
        color: var(--white-color);
        display: block;
        padding: 15px 0;
        font-size: 1.2em;
        width: 100%;
    }
    nav .links li a::after {
        background-color: var(--accent-color); /* لون مميز لخط تحت الروابط */
    }

    nav .menu-icon,
    nav .search-icon {
        display: block; /* Show icons on mobile */
        order: 2; /* Search icon before menu icon */
    }
    nav .search-icon {
        order: 1; /* Make search icon appear first */
    }

    nav .logo {
        order: 0; /* Keep logo first */
    }

    /* Hide search box by default on mobile, show when #show-search is checked */
    .search-box {
        position: fixed;
        top: 60px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: var(--box-shadow);
        padding: 10px 5%;
        border-radius: 0;
        z-index: 999;
        transform: translateY(-100%); /* Hidden initially */
        transition: transform 0.3s ease;
    }

    nav #show-search:checked ~ .search-box {
        transform: translateY(0%); /* Show search box */
    }
    nav #show-search:checked ~ label.menu-icon {
        display: none; /* Hide menu icon when search is open */
    }


    .home .main-text h3 {
        font-size: 2.8em;
    }
    .home .main-text p {
        font-size: 1em;
    }
    #home-btn, #home-btn2 {
        padding: 10px 20px;
        font-size: 1em;
    }
    .about, .book, .contact {
        flex-direction: column;
        text-align: center;
    }
    .about .about-info, .book .book-form, .contact .contact-text, .contact .contact-form {
        max-width: 100%;
        padding: 30px;
    }
    .contact .contact-text .list {
        text-align: center;
    }
    .contact .contact-text .list li {
        margin: 0 auto 10px auto;
    }
}

@media (max-width: 480px) {
    .home .main-text h3 {
        font-size: 2.2em;
    }
    .heading h3 {
        font-size: 2em;
    }
    .about .about-info h3 {
        font-size: 1.8em;
    }
    .contact .contact-text h2 {
        font-size: 2em;
    }
    #home-btn, #home-btn2 {
        display: block;
        width: 80%;
        margin: 15px auto;
    }
    #home-btn2 {
        margin-top: 10px;
    }
    footer .footer-content {
        grid-template-columns: 1fr; /* عمود واحد في الشاشات الصغيرة جدا */
    }
    footer .row {
        text-align: center;
    }
}