:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gold: #FFD700;
    --dark-gray: #1a1a1a;
    --light-gray: #f8f8f8;
    --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.8;
}

/* شريط التنقل الفاخر */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.navbar.scrolled {
    padding: 15px 5%;
    background-color: rgba(10, 10, 10, 0.98);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-left: 15px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.logo-text span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

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

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

.language-switcher {
    margin-left: 30px;
}

.btn-lang {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-lang:hover {
    background: var(--white);
    color: var(--black);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--white);
    font-size: 1.5rem;
}

/* الهيرو البانورامي */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 10%;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--gold);
    position: relative;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

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

.btn i {
    margin-left: 8px;
}

/* قسم عن الموقع */
.about-section {
    padding: 100px 10%;
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 0 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--black);
    position: relative;
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.about-content p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-icon {
    color: var(--gold);
    font-size: 1.2rem;
    margin-left: 15px;
    margin-top: 5px;
}

.feature-text {
    flex: 1;
}

/* قسم العلامة التجارية */
.brand-section {
    padding: 100px 10%;
    background: var(--light-gray);
    text-align: center;
}

.brand-title {
    margin-bottom: 60px;
}

.brand-title h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.brand-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.brand-title p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.brand-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.brand-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.brand-name {
    font-weight: 600;
    color: var(--black);
}

/* قسم الخدمات الفاخرة */
.services {
    padding: 100px 10%;
    background: var(--white);
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--black);
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-details {
    padding: 30px;
    text-align: center;
}

.service-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.service-details p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 300;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 25px;
}

/* معرض الأعمال */
.gallery {
    padding: 100px 10%;
    background: var(--light-gray);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    color: var(--white);
    font-size: 2.5rem;
    background: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* فريق العمل */
.team {
    padding: 100px 10%;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 3px solid var(--gold);
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-image:hover img {
    transform: scale(1.1);
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--black);
}

.member-info p {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 15px;
}

.member-bio {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* قسم الفروع */
.branches-section {
    padding: 100px 10%;
    background: var(--black);
    color: var(--white);
}

.branches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.branch {
    background: var(--dark-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.branch:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.branch h3 {
    padding: 20px;
    background: var(--black);
    color: var(--gold);
    text-align: center;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.branch-map {
    height: 250px;
}

.branch-info {
    padding: 20px;
}

.branch-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
}

.branch-info i {
    color: var(--gold);
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* تذييل الصفحة */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 80px 10% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-left: 15px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo-text span {
    color: var(--gold);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

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

.footer-social a:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--gold);
    margin-left: 10px;
    margin-top: 5px;
}

.contact-text {
    color: rgba(255,255,255,0.7);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* زر الواتساب العائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

/* التجاوب مع الأجهزة المختلفة */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--black);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero {
        min-height: 700px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .branches-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2,
    .brand-title h2,
    .about-content h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* اتجاه النص عند التبديل إلى الإنجليزية */
[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .logo img {
    margin-left: 0;
    margin-right: 15px;
}

[dir="ltr"] .nav-links li {
    margin-left: 0;
    margin-right: 30px;
}

[dir="ltr"] .nav-links a:after {
    left: auto;
    right: 0;
}

[dir="ltr"] .feature-icon {
    margin-left: 0;
    margin-right: 15px;
}

[dir="ltr"] .btn i {
    margin-left: 0;
    margin-right: 8px;
}

[dir="ltr"] .footer-logo img {
    margin-left: 0;
    margin-right: 15px;
}

[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

[dir="ltr"] .contact-item i {
    margin-left: 0;
    margin-right: 10px;
}

[dir="ltr"] .footer-links h3:after,
[dir="ltr"] .footer-contact h3:after,
[dir="ltr"] .about-content h2:after {
    left: auto;
    right: 0;
}

/* تخصيص لون نص الفروع */
[data-translate="branches_text"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* قسم صور المكان - متوازن للكمبيوتر */
.place-photos {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة للكمبيوتر */
    gap: 25px;
    margin: 40px auto 0;
    max-width: 1200px;
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; /* يجعل الصور مربعة */
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.zoom-icon {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.photo-item:hover .zoom-icon {
    transform: scale(1);
}

/* للشاشات المتوسطة */
@media (max-width: 992px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين للتابلت */
    }
}

/* للجوالات */
@media (max-width: 576px) {
    .photos-grid {
        grid-template-columns: 1fr; /* عمود واحد للجوال */
        gap: 20px;
    }
    
    .place-photos {
        padding: 60px 20px;
    }
}