:root {
    /* Light Theme Vars */
    --primary: #c5a059;
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-mode {
    /* Dark Theme Vars */
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-sub: #bbb;
    --nav-bg: rgba(18, 18, 18, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

body.en { font-family: 'Poppins', sans-serif; }

/* Header & Controls */
header {
    padding: 15px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
}

.navbar { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 24px; font-weight: 900; }
.gold { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 600; }

.header-controls { display: flex; align-items: center; gap: 20px; }

/* Creative Button */
.creative-btn {
    padding: 10px 25px;
    background: var(--text-main);
    color: var(--bg-body);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 700;
}
.creative-btn .dot {
    position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
    background: var(--primary); border-radius: 50%; transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease; z-index: 1;
}
.creative-btn:hover .dot { transform: translate(-50%, -50%) scale(20); }
.creative-btn span { position: relative; z-index: 2; }
.creative-btn:hover { color: #fff; }

/* Dark Mode & Lang Switch Styling */
.control-btn {
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-main);
}

.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: bold; }

.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Hero Section */
.hero { height: 100vh; display: flex; align-items: center; padding: 0 8%; gap: 50px; }
#typing-text { font-size: 3.5rem; min-height: 120px; color: var(--primary); }

.hero-image-container { flex: 1; position: relative; }
.floating-img {
    width: 350px; height: 450px; object-fit: cover;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Service Cards */
.services { padding: 100px 8%; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 50px; }
.service-card {
    background: var(--bg-card); padding: 40px; border-radius: 20px; position: relative;
    overflow: hidden; transition: var(--transition); z-index: 1; border: 1px solid rgba(128,128,128,0.1);
}
.card-hover-bg {
    position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    background: var(--primary); transition: var(--transition); z-index: -1;
}
.service-card:hover .card-hover-bg { top: 0; }
.service-card:hover * { color: #fff !important; }
.service-card:hover { transform: translateY(-10px); }

/* Footer */
footer { background: var(--bg-card); padding: 60px 8%; text-align: center; border-top: 2px solid var(--primary); }
.social-container { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.social-card { width: 50px; height: 50px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.social-card:hover { background: var(--primary); color: white; transform: scale(1.1); }
/* ... الأكواد السابقة نفسها مع الإضافات التالية ... */

/* Contact Section Styles */
.contact {
    padding: 100px 8%;
    background: var(--bg-body);
}

.contact-desc {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    border: 1px solid rgba(128, 128, 128, 0.1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-inline-end: 20px;
    transition: var(--transition);
}

.whatsapp-card .contact-icon-wrap {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.email-card .contact-icon-wrap {
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary);
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-info p {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.contact-arrow {
    margin-inline-start: auto;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

/* Hover Effects */
.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

.contact-card:hover .contact-icon-wrap {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-card:hover .contact-icon-wrap {
    background: #25D366;
    color: #fff;
}

.email-card:hover .contact-icon-wrap {
    background: var(--primary);
    color: #fff;
}

.contact-card:hover .contact-arrow {
    transform: translateX(-10px); /* للعربي */
}

body.en .contact-card:hover .contact-arrow {
    transform: translateX(10px); /* للإنجليزي */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact { padding: 60px 5%; }
    .contact-card { padding: 20px; }
}

:root {
    --primary: #c5a059;
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

.dark-mode {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-sub: #bbb;
    --nav-bg: rgba(18, 18, 18, 0.95);
}

/* تنسيقات عامة */
body { transition: background 0.3s ease; }
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 100vh; padding: 100px 8% 50px; }
.hero-content { flex: 1; }
.hero-image-container { flex: 1; display: flex; justify-content: center; }

/* القائمة الجانبية للهاتف */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* التجاوب (Responsive Design) */

/* للشاشات المتوسطة (Tablets) */
@media (max-width: 1024px) {
    #typing-text { font-size: 2.5rem; }
    .hero { gap: 30px; }
    .floating-img { width: 300px; height: 380px; }
}

/* للشاشات الصغيرة (Phones) */
@media (max-width: 768px) {
    header { padding: 15px 5%; }
    
    .menu-toggle { display: block; order: 1; }
    .logo { order: 2; }
    .header-controls { order: 3; gap: 10px; }
    
    .hide-on-mobile { display: none; }

    /* تحويل القائمة لدرج جانبي */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%; /* مخفية لليسار */
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.5s;
        padding-top: 50px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    body.en .nav-links { left: auto; right: -100%; } /* للإنجليزي تخرج من اليمين */

    .nav-links.active { left: 0; }
    body.en .nav-links.active { right: 0; }

    .nav-links li { margin: 20px 0; }

    /* الهيرو سكشن */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    #typing-text { font-size: 2rem; min-height: 80px; }
    .hero-subtext { font-size: 1rem; }

    .floating-img { width: 250px; height: 300px; }

    /* الخدمات */
    .services-grid {
        grid-template-columns: 1fr; /* عمود واحد في الجوال */
        padding: 0 10px;
    }

    .footer-logo { font-size: 2rem; }
}

/* تعديل الاتجاهات بناء على اللغة في الجوال */
body[dir="rtl"] .nav-links { left: -100%; }
body[dir="rtl"] .nav-links.active { left: 0; }

body[dir="ltr"] .nav-links { right: -100%; left: auto; }
body[dir="ltr"] .nav-links.active { right: 0; left: auto; }