/* --- إعدادات عامة ومتغيرات الألوان الفاخرة --- */
:root {
    --primary-color: #0a2342; /* أزرق ليلي عميق - للقوة والسلطة */
    --primary-light: #1c3d6e;
    --accent-color: #d4af37; /* ذهبي معدني - للفخامة والتميز */
    --accent-dark: #b39024;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-offwhite: #f4f7f6;
    --bg-dark: #061528;
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* لضبط التمرير مع الهيدر الثابت */
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-gray);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* --- أدوات مساعدة --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.mt-30 { margin-top: 30px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }

/* --- العناوين والأزرار المحسنة --- */
.section-title {
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h3 {
    font-size: 2.8rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    color: var(--primary-color);
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to left, var(--accent-color), transparent);
}

.center-title {
    text-align: center;
}

.center-title h3::after {
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(to right, var(--accent-color), var(--accent-color));
}

.align-right { text-align: right; }

.btn-main {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition-medium);
    z-index: -1;
}

.btn-main:hover::before {
    width: 100%;
}

.btn-main:hover {
    color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(10, 35, 66, 0.4);
    transform: translateY(-3px);
}

/* --- الهيدر المتطور (Sticky Header) --- */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

header.scrolled {
    background-color: rgba(10, 35, 66, 0.95); /* لون داكن شبه شفاف عند التمرير */
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 800;
    line-height: 1;
}

.logo span {
    color: var(--accent-color);
    font-size: 0.9rem;
    display: block;
    font-weight: 400;
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 25px;
    font-size: 1rem;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

/* --- قسم الهيرو الفخم --- */
.hero {
    /* ... باقي الخصائص ... */
    /* استبدل الرابط القديم بهذا السطر */
    background-image: url('https://alabda.ly/image/main-hero.jpg'); 
    /* ... */
}
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(rgba(6, 21, 40, 0.8), rgba(10, 35, 66, 0.6)); /* تدرج لوني داكن */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: right;
    color: var(--text-light);
    max-width: 800px;
}

.hero-content h5 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero h2 {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-hero {
    padding: 15px 35px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-medium);
    border: 2px solid var(--accent-color);
}

.btn-hero:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

/* --- قسم من نحن (تصميم حديث) --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-strong);
    object-fit: cover;
    height: 500px;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.experience-badge .years {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge span:last-child {
    font-weight: 700;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.features-list-grid li {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.features-list-grid i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-left: 15px;
    background: rgba(212, 175, 55, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* --- خدماتنا (بطاقات تفاعلية) --- */
.bg-dark-pattern {
    background-color: var(--bg-dark);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-dark-pattern .section-title h3,
.bg-dark-pattern .section-title p {
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    /* ... خصائص أخرى ... */
    transition: var(--transition-medium);
} /* <--- هذا القوس كان مفقوداً ويجب إضافته */
    group;
}

.service-card:hover {
    transform: translateY(-15px);
    background: var(--bg-light);
    box-shadow: var(--shadow-strong);
}

.icon-box {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    transition: var(--transition-medium);
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.service-card:hover h4 {
    color: var(--primary-color);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.service-card:hover p {
    color: var(--text-gray);
}

.service-link {
    color: var(--accent-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* --- الإحصائيات (بارالكس) --- */
.parallax-section {
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); /* صورة رافعة أو موقع بناء */
    background-attachment: fixed; /* التثبيت لعمل تأثير البارالكس */
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
}

.stats-overlay {
    background: rgba(10, 35, 66, 0.85);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.stat-item i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stat-item .number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- مشاريعنا (عنصر نائب) --- */
.projects-placeholder {
    background: var(--bg-offwhite);
    padding: 100px;
    text-align: center;
    border-radius: 10px;
    border: 2px dashed var(--accent-color);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- تواصل معنا (نموذج حديث) --- */
.bg-light {
    background-color: var(--bg-offwhite);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.contact-info-box {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

/* إضافة نقش خفيف للخلفية */
.contact-info-box::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid rgba(212, 175, 55, 0.1);
}

.contact-info-box h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info-box p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.info-item-new {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item-new .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-left: 20px;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item-new h5 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form-box {
    padding: 50px;
}

/* تنسيق حقول الإدخال الحديثة (Floating Labels) */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif;
}

.form-group label {
    position: absolute;
    top: 15px;
    right: 0;
    color: #999;
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-bottom-color: var(--accent-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
}

/* --- الفوتر المطور --- */
.main-footer {
    background-color: #05101c; /* أغمق درجة */
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--text-light);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-social h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-right: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- تأثيرات الحركة (Animations) --- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* --- التجاوب (Mobile Responsive) --- */
@media (max-width: 991px) {
    .hero h2 { font-size: 3rem; }
    .about-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .about-image { order: -1; }
    .about-image img { height: 400px; }
    .features-list-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin-bottom: 30px; }
    .social-icons { justify-content: center; }
}

@media (max-width: 1024px) {
    header { background-color: var(--primary-color); padding: 15px 0; }
    header.scrolled { background-color: var(--primary-color); }
    .menu-icon { display: block; }
    
    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    nav ul.active { right: 0; }
    nav ul li { width: 100%; margin-bottom: 20px; }
    .nav-link { font-size: 1.3rem; display: block; }
    .nav-btn { width: 100%; text-align: center; margin-top: 20px; }

    .hero h2 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .btn-hero { width: 100%; text-align: center; }
    
    .section-title h3 { font-size: 2rem; }
    .experience-badge { padding: 15px; right: -10px; bottom: -20px; }
    .experience-badge .years { font-size: 2rem; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .stat-item .number { font-size: 3rem; }
    
    .contact-info-box, .contact-form-box { padding: 30px 20px; }
}