:root {
    --main-blue: #1A3E6F;
    --gold: #D4AF37;
    --dark-gray: #333;
    --light-gray: #F5F5F5;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
    text-align: right;
}

/* --- العناوين --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--gold);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--gold);
    bottom: -10px;
    right: 0;
}

.section-subtitle {
    color: #777;
    font-size: 1.1rem;
}

/* --- النافبار --- */
.navbar {
    background-color: rgba(26, 62, 111, 0.9);
    transition: all 0.3s;
    padding: 15px 0;
}

.navbar.scrolled {
    background-color: var(--main-blue);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.nav-link {
    font-weight: 600;
    margin-left: 15px;
    position: relative;
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: 0;
    right: 0;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- أزرار --- */
.btn-gold {
    background-color: var(--gold) !important;
    color: #000 !important;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 30px;
    transition: all 0.3s;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    background-color: var(--gold);
    color: #000;
}

.btn-outline-light {
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--main-blue);
}

/* --- قسم الهيرو --- */
.hero-section {
    background: linear-gradient(rgba(26, 62, 111, 0.9), rgba(26, 62, 111, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #FFF;
    padding: 180px 0 100px;
    text-align: right;
    position: relative;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-section h1 span {
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 5px;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- قسم من نحن --- */
.about-img {
    position: relative;
}

.experience-box {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: var(--gold);
    color: #000;
    padding: 20px;
    border-radius: 5px;
    width: 150px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.experience-box p {
    margin: 0;
    font-weight: 600;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--main-blue);
}

.about-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-item i {
    color: var(--gold);
    margin-left: 10px;
    font-size: 1.2rem;
}

/* --- قسم الخدمات --- */
.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    color: var(--gold);
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--main-blue);
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-right: 5px;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--main-blue);
}

.read-more:hover i {
    transform: translateX(-5px);
}

/* --- قسم المشاريع --- */
.filter-buttons .btn {
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-weight: 600;
    padding: 5px 20px;
}

.filter-buttons .btn.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.project-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-item img {
    transition: all 0.5s;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    bottom: -100%;
    right: 0;
    width: 100%;
    background: rgba(26, 62, 111, 0.9);
    color: #fff;
    padding: 20px;
    transition: all 0.5s;
}

.project-item:hover .project-overlay {
    bottom: 0;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-overlay p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

/* --- قسم الإحصائيات --- */
.stats-section {
    background: linear-gradient(rgba(26, 62, 111, 0.9), rgba(26, 62, 111, 0.9)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* --- قسم اتصل بنا --- */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-left: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--main-blue);
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--gold);
}

.social-media h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--main-blue);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--main-blue);
    color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--gold);
    transform: translateY(-5px);
}

/* --- الفوتر --- */
.footer {
    background: var(--main-blue);
    color: #fff;
}

.footer h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--gold);
    bottom: 0;
    right: 0;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer ul li a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.newsletter-form .form-control {
    border-radius: 30px 0 0 30px;
    border: none;
    height: 50px;
}

.newsletter-form .btn {
    border-radius: 0 30px 30px 0;
    height: 50px;
}

/* --- شعار العملاء --- */
.client-logo-card img {
    filter: grayscale(60%);
    transition: filter 0.3s, transform 0.3s;
}
.client-logo-card img:hover {
    filter: grayscale(0%);
    transform: scale(1.07);
}

/* --- تبويبات الرؤية والرسالة والأهداف --- */
.nav-tabs .nav-link,
.nav-tabs .nav-link span,
.nav-tabs .nav-link i {
    color: #1A3E6F !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    background: transparent !important;
    text-shadow: none !important;
    border: none;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active span,
.nav-tabs .nav-link.active i {
    color: #222 !important;
    background: #D4AF37 !important;
    border-radius: 0 0 0 0 !important;
}
.nav-tabs .nav-link *,
.nav-tabs .nav-link {
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-tabs .nav-link i {
    font-size: 1.2rem !important;
    margin-left: 6px;
}

.nav-tabs {
    border-bottom: 2px solid #D4AF37;
    justify-content: center;
}

/* --- تأثيرات الحركة --- */
[data-aos] {
    transition: all 0.5s;
}

/* --- متجاوبية --- */
@media (max-width: 992px) {
    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .about-img {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .service-card {
        padding: 20px;
    }
    .project-overlay {
        padding: 15px;
    }
    .project-overlay h3 {
        font-size: 1.2rem;
    }
}

.text-gold {
    color: #D4AF37 !important;
}
/* تحسين النافبار للجوال */
@media (max-width: 991.98px) {
  .navbar .container {
    flex-direction: row;
  }
  .navbar-collapse {
    background: var(--main-blue);
    padding: 12px 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }
  .navbar-nav {
    text-align: center;
  }
  .nav-link {
    margin-left: 0;
    margin-bottom: 12px;
    font-size: 1.1rem;
    padding: 12px 0;
  }
  .btn-gold {
    width: 90%;
    margin: 10px auto 0 auto;
    display: block;
    font-size: 1.1rem;
  }
}

/* الهيدر والسلايدر للجوال */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 50px 0;
    text-align: center;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section .lead {
    font-size: 1rem;
  }
  .hero-section .d-flex.gap-3 {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .btn-gold,
  .btn-outline-light {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
  }
}

/* تصغير الكروت والأقسام */
@media (max-width: 768px) {
  .service-card, .card, .client-logo-card {
    padding: 15px !important;
    margin-bottom: 16px !important;
  }
  .project-item img {
    height: 160px !important;
  }
  .about-img img, .project-item img, .client-logo-card img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* تبويبات الرؤية والرسالة والأهداف للجوال */
@media (max-width: 768px) {
  .nav-tabs .nav-link {
    font-size: 1rem !important;
    padding: 8px 8px !important;
    min-width: 80px !important;
  }
  .nav-tabs {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
}
.accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1A3E6F;
    background: #f9f9f9;
}
.accordion-button:not(.collapsed) {
    color: #222;
    background: #D4AF37;
    box-shadow: none;
}
.accordion-button i {
    font-size: 1.2rem;
}
.accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}
.accordion-body {
    background: #fff;
}
