/* 1. الأساسيات */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; scroll-behavior: smooth; }

:root {
    --bg-dark: #030306;
    --primary-color: #8b5cf6;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background: radial-gradient(circle at 50% -20%, #1a0b3d 0%, #030306 45%);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* 2. الهيدر */
header { padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(3, 3, 6, 0.85); backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); }
.navbar { display: flex; justify-content: space-between; align-items: center; direction: ltr; }
.site-logo { height: 42px; display: block; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5)); }
.nav-links { list-style: none; display: flex; align-items: center; direction: rtl; }
.nav-links li { margin-right: 25px; }
.nav-links a { text-decoration: none; color: var(--text-white); transition: 0.3s; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary-color); }
.btn-cta { background: var(--primary-color); padding: 9px 20px; border-radius: 8px; color: white !important; font-weight: 700; }

/* 3. العناوين والمساحات بين الأقسام */
.section-title { font-size: 3rem; margin-bottom: 40px; position: relative; text-align: center; font-weight: 800; }
.section-title::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary-color); box-shadow: 0 0 15px var(--primary-color); }

.our-services, .portfolio, .about, .services, .contact { padding: 60px 0; }

/* 4. البطولة (Hero) */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.badge { background: rgba(139, 92, 246, 0.1); color: var(--primary-color); padding: 6px 15px; border-radius: 50px; font-size: 0.75rem; border: 1px solid var(--glass-border); margin-bottom: 20px; display: inline-block; font-weight: 700; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 25px; line-height: 1.4; font-weight: 800; }
.highlight { color: var(--primary-color); text-shadow: 0 0 30px rgba(139, 92, 246, 0.3); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 40px; text-align: center; }
.hero-btns-wrapper { display: flex; justify-content: center; gap: 20px; }
.btn-main, .btn-outline { padding: 14px 30px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: 0.3s; display: inline-block; }
.btn-main { background: var(--primary-color); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: white; }

/* 5. نماذج الأعمال (Zoom In + No Cut) */
.portfolio-single-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.work-card { position: relative; border-radius: 25px; overflow: hidden; height: 400px; border: 1px solid var(--glass-border); background: #000; transition: 0.4s ease; }
.img-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.full-fit-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.5s ease; }

.work-card:hover .full-fit-img { transform: scale(1.1); } 
.vimeo-wrapper { width: 100%; height: 100%; position: relative; }
.vimeo-wrapper iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.work-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); opacity: 0; transition: 0.3s; text-align: right; pointer-events: none; }
.work-card:hover .work-info { opacity: 1; }
.work-tag { background: var(--primary-color); padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 800; }
.work-card:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2); }

/* 6. الخدمات ولماذا نحن (أيقونات مضبوطة) */
.our-services-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.our-service-card, .service-card { background: var(--glass); border-radius: 30px; padding: 40px 30px; border: 1px solid var(--glass-border); transition: 0.3s; text-align: center; }
.os-icon, .icon-wrapper { font-size: 40px; color: var(--primary-color); margin: 0 auto 20px; display: block; width: 40px; height: 40px; }
.icon-wrapper svg { width: 100%; height: 100%; }

/* 7. حول */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; margin-top: 30px; }
.about-visual-display { position: relative; height: 350px; background: var(--glass); border-radius: 30px; border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; }
.about-logo-img { height: 90px; filter: drop-shadow(0 0 15px var(--primary-color)); }
.lang-section { margin-bottom: 25px; border-right: 3px solid var(--glass-border); padding-right: 20px; direction: rtl; text-align: right; }
.en-text { direction: ltr; border-right: none; border-left: 3px solid var(--glass-border); text-align: left; padding-left: 20px; }

/* 8. التواصل المطور */
.contact-card-premium { position: relative; max-width: 900px; margin: 30px auto 0; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); border-radius: 50px; padding: 60px 40px; overflow: hidden; text-align: center; backdrop-filter: blur(20px); }
.contact-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%); pointer-events: none; }
.wa-btn-premium { background: #25d366; color: white; padding: 20px 50px; border-radius: 100px; text-decoration: none; font-weight: 800; display: inline-flex; align-items: center; gap: 15px; box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3); transition: 0.4s; animation: pulse-wa 2s infinite; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* 9. الفوتر وتنسيق اللوجو الجديد */
footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.85rem; }
.footer-logo {
    height: 50px; /* حجم اللوجو في الفوتر */
    margin-bottom: 15px; /* مسافة بين اللوجو والنص */
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3)); /* توهج خفيف يتناسب مع الفوتر */
}

@media (max-width: 900px) { 
    .portfolio-single-row { grid-template-columns: 1fr; } 
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-links { display: none; }
    .hero { height: auto; padding: 120px 0 60px; }
}
