* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 auto;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
    display: flex;

    /* background: var(--white); */
    padding: 9px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.lang-btn {

    padding: 5px 15px;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* خط خفيف */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    z-index: 999;
}

.nav-container {
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: relative;
    ;
    height: 70px;
}

.logo h2 {

    position: absolute;
    left: 50%;
    transform: translateX(-50%);


    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    padding: 5px 0;
    transition: all 0.3s ease;
}

/* Hover Effect */
.nav-link:hover {
    color: var(--primary);
}

/* خط أنيميشن تحت اللينك */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* يظهر الخط عند الهوفر */
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002 !important;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    display: block;
}

.hero {
    height: 100vh;
    /* يخلي السكشن ملء الشاشة */
    background-image: url('new.webp');
    background-size: cover;
    /* يخلي الصورة تغطي السكشن كله */
    background-position: center;
    /* يوسّط الصورة */
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    /* طبقة غامقة */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}



.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 80px;

}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    padding-top: 80px;
}

.hero-description {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}



/* Booking Section */
.booking {
    padding: 100px 0;
    background: var(--white);
}

.section-title {

    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    width: 100%;
}

.loading {
    display: none;
}

.loading.active {
    display: inline-block;
}

.success-message {
    background: #10b981;
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    animation: slideIn 0.5s ease;
}

.hidden {
    display: none;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Contact */
.contact {
    padding: 100px 50px;
    background: var(--secondary);
    margin-top: -80px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
}


.contact-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.contact-item a,
.contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
}

/* Footer */

.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Floating Buttons */
.whatsapp-float,
.call-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.call-float {
    bottom: 110px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.call-float:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
    text-align: center;
}

.hidden {
    display: none !important;
}

.loading {
    display: none;
}


/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL/LTR Support */
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .nav-container {
    flex-direction: row-reverse;

}

[dir="ltr"] .hero-content {
    padding-right: 0;
    padding-left: 40px;
    order: 2;
}

[dir="ltr"] .hero-image {
    order: 1;
}

[dir="ltr"] .contact-item {
    flex-direction: row-reverse;
}

.hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-content {
    padding: 0 20px;
    order: 1;
    margin-bottom: 40px;
}

.hero-image {
    order: 2;
    width: 80%;
}

.hero-image img {
    max-width: 80%;
    max-height: 300px;
}

.form-row {
    grid-template-columns: 1fr;
    gap: 15px;
}


.contact-info {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lang-toggle {
    top: 15px;
    right: 10px;
    flex-direction: row-reverse;

    padding: 6px;
}

.whatsapp-float,
.call-float {
    bottom: 15px;
    right: 15px;
}

.call-float {
    bottom: 90px;
}


.dev-link {
    margin-top: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    color: inherit;

}

.footer-moataz {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Container */
.testimonials {
    padding: 0 0;
    overflow: hidden;
    direction: ltr;
    /* لضمان حسابات الأنميشن من اليسار */
}

.testimonial-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    margin-bottom: 25px;
}

.testimonial-track {
    display: flex;
    gap: 15px;
    width: max-content;
    /* مهم جداً عشان التراك يمتد بكامل طول الكروت */
    flex-wrap: nowrap;
    /* بيمنع الكروت إنها تنزل سطر جديد */
}

/* الصف الأول: بيتحرك يسار */
.row1 .testimonial-track {
    animation: scroll-left 40s linear infinite;
}

/* الصف الثاني: بيتحرك يمين */
.row2 .testimonial-track {
    animation: scroll-right 40s linear infinite;
}

/* الكروت */
.testimonial-card {
    flex-shrink: 0;
    /* بيمنع المتصفح إنه يضغط الكارت */
    min-width: 280px;
    padding: 20px 30px;
    background: #f1f3f5;
    border-radius: 100px;
    text-align: center;
    white-space: nowrap;
    /* بيخلي الكلام في سطر واحد */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

/* الأنميشن السحري */
/* بما إن عندك 3 نسخ، الأنميشن هيمشي مسافة نسخة واحدة (33.33%) */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-33.333% - 5px));
    }

    /* الـ 5 بكسل لضبط الـ Gap */
}

@keyframes scroll-right {
    0% {
        transform: translateX(calc(-33.333% - 5px));
    }

    100% {
        transform: translateX(0);
    }
}

/* توقف عند اللمس */
.testimonial-row:hover .testimonial-track {
    animation-play-state: paused;
}


@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-content {
        padding-right: 20px;
        max-width: 500px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .hero {
        padding-top: 130px;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .logo {
        position: static;
        transform: none;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-menu {
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}


@media (max-width: 768px) {

    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: 5%;
        left: 5%;
        background: rgba(255, 255, 255, 0.096);
        /* خليها Glass */
        backdrop-filter: blur(200px);

        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0 0 16px 16px;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 300px;
    }


    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .lang-btn {
        padding: 10px 8px;
        font-size: 0.6rem;
    }

    .contact-info {
        grid-template-columns: 1fr
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer p {
        font-size: 0.8rem;
    }
}


/* Mobile Medium */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .booking-form {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .offer-content {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .section-title {
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .booking,
    .services,
    .contact {
        grid-template-columns: 1fr;
        padding: 60px 0;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-buttons {
        flex-direction: column;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        padding: 6px;
    }

    .nav-menu {

        gap: 15px;
    }

    .lang-btn {
        padding: 8px 8px;
        font-size: 0.6rem;
    }

    .footer p {
        font-size: 0.7rem;
    }
}
