:root {
    /* Color Palette */
    --primary-color: #b69a6f;
    --primary-light: #d4c2a8;
    --primary-dark: #8c7654;
    --secondary-color: #2c2c2c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #fcfaf7;
    --white: #ffffff;
    --black: #000000;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--secondary-color);
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

/* Removed duplicate btn-primary definitions */

/* Navbar */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 45px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(182, 154, 111, 0.3);
}

.btn-outline {
    background: white;
    color: #2c3e50;
    padding: 15px 45px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid #eee;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
}

.hero .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--white);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 500px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #25d366;
}

.phone-btn {
    background-color: var(--primary-color);
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--bg-alt);
}

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

.service-card {
    background: var(--white);
    padding: 50px 30px 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f0f0f0;
}

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

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(182, 154, 111, 0.3);
}

.service-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: #fdf6f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c2c2c;
    font-weight: 800;
}

.service-card p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.8;
}

.book-link {
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.book-link i {
    font-size: 0.8rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .hero .content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--secondary-color);
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn-primary,
    .btn-outline {
        padding: 15px 35px !important;
        font-size: 1rem !important;
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        margin-bottom: 20px;
    }

    .modal-content {
        padding: 25px 15px;
        border-radius: 20px;
        width: 95%;
    }

    .contact-form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* RTL/LTR Logic Fixes */
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .hero-btns i {
    display: inline-block;
}

[dir="ltr"] .hero-btns .fa-arrow-left {
    transform: rotate(180deg);
}

[dir="ltr"] .book-link i {
    transform: rotate(180deg);
}

[dir="ltr"] .service-badge {
    right: auto;
    left: 20px;
}

[dir="ltr"] .close-modal {
    right: auto;
    left: 20px;
}

[dir="ltr"] .modal-form-group {
    text-align: left;
}

.menu-toggle {
    display: none;
}

/* Swiper Slider Customization */
.beforeAfterSwiper {
    padding: 50px 0;
    max-width: 900px;
    margin: 0 auto;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.case-card-wrapper {
    width: 100%;
    height: 500px;
    /* Fixed height for all slides */
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Centers and maintains ratio without cropping */
}

@media (max-width: 768px) {
    .case-card-wrapper {
        height: 350px;
    }
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Booking Modal Professional Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 550px;
    padding: 50px 40px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-form-group {
    margin-bottom: 20px;
    text-align: right;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #444;
    font-size: 0.95rem;
}

.modal-form-group input,
.modal-form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fcfcfc;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(182, 154, 111, 0.1);
}

/* Contact Form Styling */
.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(182, 154, 111, 0.1);
}

.contact-card textarea {
    height: 150px;
    margin-bottom: 20px;
}