:root {
    --primary-dark: #0a3d23;
    --primary-mid: #116a3a;
    --accent-gold: #d4af37;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Cairo', sans-serif; background: #f8faf9; color: #2c3e50; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Header --- */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    padding: 1rem 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.logo img { height: 55px; width: auto; display: block; }
nav { flex: 1; display: flex; justify-content: center; }
nav ul { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
nav a { color: rgba(255,255,255,0.85); font-weight: 600; transition: var(--transition); position: relative; }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-gold); transition: var(--transition); }
nav a:hover::after { width: 100%; }
nav a:hover { color: var(--accent-gold); }
.mobile-menu-btn { display: none; color: white; font-size: 1.8rem; cursor: pointer; }

/* --- Language Dropdown --- */
.lang-dropdown { position: relative; display: inline-block; }
.lang-btn { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 30px; cursor: pointer; font-weight: 700; backdrop-filter: blur(5px); }
.lang-options { display: none; position: absolute; right: 0; background: white; min-width: 120px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); border-radius: 10px; z-index: 1000; overflow: hidden; }
.lang-options a { color: #333; padding: 10px 16px; display: block; text-align: center; transition: var(--transition); }
.lang-options a:hover { background: #f1f1f1; }
.lang-dropdown:hover .lang-options { display: block; }

/* --- Hero Section --- */
.hero {
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* علامة مائية شفافة فوق الصورة */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 61, 35, 0.8), rgba(10, 61, 35, 0.4));
    z-index: 0;
}

/* طبقة إضافية لتحسين وضوح النصوص */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}
.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent-gold);
    margin: 1rem 0;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.8;
}
.cta-btn {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--accent-gold);
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.4);
    background: transparent;
    color: var(--accent-gold);
}

/* --- Sections --- */
section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; color: var(--primary-dark); text-align: center; position: relative; margin-bottom: 3rem; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--accent-gold); margin: 15px auto 0; border-radius: 2px; }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img {
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-img img {
    max-width: 60%;
    height: auto;
    transition: transform 0.3s ease;
}
.about-img img:hover {
    transform: scale(1.05);
}

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: white; padding: 2.5rem; border-radius: 20px; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.05); transition: var(--transition); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 45px rgba(0,0,0,0.08); border-bottom: 4px solid var(--accent-gold); }
.service-icon { font-size: 3.5rem; background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
    color: white;
    padding: 3.5rem;
    border-radius: 30px;
}
.contact-item { text-align: center; }
.contact-item i { font-size: 2.5rem; color: var(--accent-gold); }
.contact-item a { unicode-bidi: plaintext; direction: ltr; display: inline-block; }

/* --- Footer --- */
footer { background: #052414; color: rgba(255,255,255,0.7); text-align: center; padding: 2.5rem; }

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 1.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-img { height: 300px; }
    .about-img img { max-width: 50%; }
}

@media (max-width: 768px) {
    header { flex-wrap: wrap; padding: 1rem 5%; }
    .mobile-menu-btn { display: block; }
    nav { order: 3; width: 100%; }
    nav ul { display: none; flex-direction: column; width: 100%; background: var(--primary-dark); padding: 1.5rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; }
    nav ul.open { display: flex; }
    .hero { height: 80vh; min-height: 500px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.3rem; }
    .about-img { height: 250px; }
    .about-img img { max-width: 50%; }
    .contact-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content h2 { font-size: 1rem; }
    .logo img { height: 40px; }
    .about-img { height: 200px; }
    .about-img img { max-width: 40%; }
}