/* إعدادات عامة */
:root {
    --gold-primary: #8E794A;
    --gold-primary-rgb: 142, 121, 74;
    --gold-dark: #786437;
    --gold-dark-rgb: 120, 100, 55;
    --gold-light: #B8A57C;
    --gold-lighter: #E6D9B8;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F7F2;
    --bg-white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

body:lang(en) {
    font-family: 'Roboto', sans-serif;
    direction: ltr;
}

/* شريط التحميل */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تبديل اللغة */
.lang-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

body:lang(ar) .lang-switcher {
    right: 20px;
    left: auto;
}

.lang-btn {
    background-color: var(--gold-primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.lang-btn:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
}

/* التصميم العام */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold-primary);
}

body:lang(en) .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.divider-line {
    width: 50px;
    height: 2px;
    background-color: var(--gold-primary);
}

.divider-icon {
    margin: 0 15px;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--gold-primary-rgb), 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: white;
    transform: translateY(-3px);
}

/* شريط التنقل */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    color: white;
    font-size: 1.5rem;
}

body:lang(en) .logo-icon {
    margin-left: 0;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name-ar {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.company-name-en {
    font-size: 0.9rem;
    color: var(--text-light);
}

body:lang(en) .company-name-ar {
    display: none;
}

body:lang(ar) .company-name-en {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-link i {
    margin-left: 8px;
}

body:lang(en) .nav-link i {
    margin-left: 0;
    margin-right: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    background-color: rgba(var(--gold-primary-rgb), 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gold-dark);
    cursor: pointer;
}

/* الهيرو */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--gold-primary-rgb), 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    line-height: 40px;
    font-size: 1.2rem;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    background-color: var(--gold-primary);
    transform: translateY(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* نبذة عن الشركة */
.about-section {
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 2px solid var(--gold-light);
    border-radius: 5px;
    z-index: 1;
    pointer-events: none;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.about-text {
    text-align: right;
}

body:lang(en) .about-text {
    text-align: left;
}

.about-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--gold-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    color: var(--gold-primary);
    font-size: 1.5rem;
}

body:lang(en) .feature-icon {
    margin-left: 0;
    margin-right: 20px;
}

.feature-text h3 {
    color: var(--gold-dark);
    margin-bottom: 5px;
}

/* الرؤية والرسالة */
.vision-section {
    background-color: var(--bg-light);
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--gold-primary);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vision-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--gold-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--gold-primary);
    font-size: 2rem;
}

.vision-title {
    color: var(--gold-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vision-desc {
    color: var(--text-light);
    line-height: 1.8;
}

/* خدماتنا */
.services-section {
    background-color: var(--bg-white);
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-dark));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--gold-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--gold-primary);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--gold-primary);
    color: white;
}

.service-title {
    color: var(--gold-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.service-badge span {
    background-color: var(--gold-light);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* التواصل */
.contact-section {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--gold-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: var(--gold-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

body:lang(en) .contact-icon {
    margin-left: 0;
    margin-right: 15px;
}

.contact-details h3 {
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--gold-primary);
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-title {
    color: var(--gold-dark);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background-color: white;
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background-color: white;
    padding: 0 5px;
}

body:lang(en) .form-group label {
    right: auto;
    left: 15px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 0.9rem;
    color: var(--gold-primary);
}

.form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* الفوتر */
.footer {
    background-color: var(--gold-dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo .logo-link {
    color: white;
}

.footer-logo .company-name-ar,
.footer-logo .company-name-en {
    color: white;
}

.footer-logo .company-name-en {
    opacity: 0.8;
}

.footer-desc {
    margin: 20px 0;
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--gold-primary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--gold-primary);
}

body:lang(en) .footer-title::after {
    right: auto;
    left: 0;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-menu a:hover {
    color: white;
    padding-right: 10px;
}

body:lang(en) .footer-menu a:hover {
    padding-right: 0;
    padding-left: 10px;
}

.footer-menu a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 10px;
    opacity: 0;
    transition: var(--transition);
}

body:lang(en) .footer-menu a::before {
    content: '\f104';
    margin-left: 0;
    margin-right: 10px;
}

.footer-menu a:hover::before {
    opacity: 1;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-list i {
    width: 30px;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    opacity: 0.7;
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

body:lang(ar) .back-to-top {
    right: 30px;
    left: auto;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-5px);
}

/* التجاوب مع الأجهزة */
@media (max-width: 992px) {
    .vision-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vision-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
    }
    
    .vision-card:last-child {
        max-width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    body:lang(en) .nav-menu {
        right: auto;
        left: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body:lang(en) .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 80%;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    body:lang(en) .footer-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .footer-menu a:hover {
        padding-right: 0;
    }
    
    body:lang(en) .footer-menu a:hover {
        padding-left: 0;
    }
    
    .footer-menu a::before {
        display: none;
    }
    
    .contact-info-list li {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero-section {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .success-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .close-success {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-end;
    }
}
/* أنماط الصورة الغلاف */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}