/* Color Palette */
:root {
    --deep-blue: #0047AB;  /* Cobalt Blue */
    --deep-red: #B22222;   /* Firebrick Red */
    --white: #FFFFFF;
    --text-color: #333333;
}

body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    direction: rtl;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

.hero {
    background-color: var(--deep-blue);
    color: var(--white);
    height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    text-align: right;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: bold;
}

.hero .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-features .feature i {
    margin-left: 10px;
    font-size: 1.5rem;
    color: var(--white);
}

.hero-cta .btn {
    margin-left: 15px;
}

.hero-image-gallery {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image-gallery img.active {
    opacity: 1;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    object-fit: cover;
}

.services .card {
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.services .card:hover {
    transform: scale(1.05);
}

.services .service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.services .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.services .service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--deep-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    font-size: 36px;
}

.services .service-content {
    flex-grow: 1;
}

.services .service-content h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.services .service-content ul {
    padding-right: 20px;
}

#services {
    background-color: var(--white);
}

#services .service-section {
    padding: 100px 0;
    position: relative;
    border-bottom: 2px solid var(--deep-red);
}

#services .service-section:last-child {
    border-bottom: none;
}

#service-construction, 
.service-section.construction-section {
    background-image: url('images/construction/background.png');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

#service-construction::before, 
.service-section.construction-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 71, 171, 0.7);
    z-index: 1;
}

#service-construction .container,
.service-section.construction-section .container {
    position: relative;
    z-index: 2;
}

#service-workforce,
.service-section.workforce-section {
    background-image: url('images/workforce/3.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

#service-workforce::before,
.service-section.workforce-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#service-workforce .container,
.service-section.workforce-section .container {
    position: relative;
    z-index: 2;
}

#service-subcontracting,
.service-section.subcontract-section {
    background-image: url('images/subcontracting/4.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

#service-subcontracting::before,
.service-section.subcontract-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#service-subcontracting .container,
.service-section.subcontract-section .container {
    position: relative;
    z-index: 2;
}

#service-project-completion,
.service-section.project-completion-section {
    background-image: url('images/project-completion/1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
}

#service-project-completion::before,
.service-section.project-completion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#service-project-completion .container,
.service-section.project-completion-section .container {
    position: relative;
    z-index: 2;
}

#service-construction .service-content {
    color: var(--white);
}

#service-construction .service-content h2 {
    color: var(--white);
}

#service-construction .service-content ul {
    color: var(--white);
}

#service-construction .service-content .feature {
    color: var(--white);
}

#service-construction .service-image {
    background-color: var(--deep-blue);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-construction .service-content ul {
    list-style-type: none;
    padding: 0;
}

#service-construction .service-content ul li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 10px;
}

#service-construction .service-content ul li::before {
    content: '•';
    color: var(--white);
    position: absolute;
    right: 0;
    top: 0;
}

#service-workforce .service-content {
    color: var(--white);
}

#service-workforce .service-image {
    background-color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-workforce .service-content ul {
    list-style-type: none;
    padding: 0;
}

#service-workforce .service-content ul li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 10px;
}

#service-workforce .service-content ul li::before {
    content: '•';
    color: var(--deep-blue);
    position: absolute;
    right: 0;
    top: 0;
}

#service-subcontracting .service-content {
    color: var(--text-color);
}

#service-subcontracting .service-image {
    background-color: var(--deep-blue);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-subcontracting .service-content ul {
    list-style-type: none;
    padding: 0;
}

#service-subcontracting .service-content ul li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 10px;
}

#service-subcontracting .service-content ul li::before {
    content: '•';
    color: var(--white);
    position: absolute;
    right: 0;
    top: 0;
}

#service-project-completion .service-content {
    color: var(--white);
}

#service-project-completion .service-image {
    background-color: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-project-completion .service-content ul {
    list-style-type: none;
    padding: 0;
}

#service-project-completion .service-content ul li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 10px;
}

#service-project-completion .service-content ul li::before {
    content: '•';
    color: var(--deep-blue);
    position: absolute;
    right: 0;
    top: 0;
}

#services .service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact {
    background-color: var(--white);
    padding: 80px 0;
}

.contact .section-title {
    color: var(--deep-blue);
    font-weight: bold;
    margin-bottom: 30px;
}

.contact-info {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    height: 100%;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 2rem;
    margin-left: 20px;
    color: var(--deep-red);
    width: 50px;
    text-align: center;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item h5 {
    margin-bottom: 5px;
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--deep-red);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-label {
    color: var(--deep-blue);
    font-weight: bold;
}

.contact-form .form-control {
    border: 1px solid var(--deep-blue);
    border-radius: 5px;
    padding: 12px;
}

.contact-form .btn-primary {
    background-color: var(--deep-blue);
    border: none;
    transition: background-color 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: var(--deep-red);
}

.image-gallery {
    position: relative;
    max-width: 100%;
    text-align: center;
}

.image-gallery img.img-fluid {
    display: none;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.image-gallery img.active-image {
    display: block;
}

.image-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.image-thumbnails .img-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.image-thumbnails .img-thumbnail:hover,
.image-thumbnails .img-thumbnail.active {
    opacity: 1;
}

.navbar {
    background-color: var(--white) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    border-radius: 10px;
    margin-left: 15px;
}

.navbar-company-name {
    color: var(--deep-blue);
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: var(--deep-blue);
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--deep-red);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* زر الطباعة تمت إزالته */

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 60px;
    }

    body {
        padding-top: 60px;
    }

    .hero {
        height: auto;
        padding: 0;
        margin-top: 0;
    }

    .hero .row {
        margin-top: 0;
    }

    .hero-content {
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero .lead {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-features {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    .hero-features .feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 8px;
    }

    .hero-features .feature i {
        font-size: 1.5rem;
        margin-bottom: 3px;
    }

    .hero-features .feature span {
        font-size: 0.7rem;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .hero-cta .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .hero-image {
        margin-bottom: 15px;
    }

    .hero-image-gallery {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
        height: 250px; /* ارتفاع ثابت للمعرض */
        overflow: hidden;
    }

    .hero-image-gallery img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.5s ease-in-out;
    }

    .hero-image-gallery img:not(:first-child) {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #services .service-section {
        padding: 50px 0;
    }
    
    #services .service-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    #services .service-content ul li {
        padding-right: 0;
    }
    
    #services .service-content ul li::before {
        display: none;
    }
}

@media print {
    body {
        font-size: 12pt;
    }
}

/* استجابة الموقع للهواتف */
@media (max-width: 768px) {
    /* تعديلات للهيدر والنافIGATION */
    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-toggler {
        padding: 6px 10px;
    }

    /* تعديلات الأقسام الرئيسية */
    .service-section {
        padding: 30px 0;
    }

    .service-content {
        text-align: center;
        margin-bottom: 20px;
    }

    .service-content h2 {
        font-size: 1.8rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }

    /* تعديلات نموذج الاتصال */
    .contact-form {
        padding: 15px;
    }

    .contact-form .form-control {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .contact-form .btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* تعديلات معلومات الاتصال */
    .contact-details .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }

    .contact-details .contact-item i {
        margin-bottom: 10px;
        margin-left: 0;
    }

    /* تعديلات الصور والخلفيات */
    .hero-section {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* تحسين القائمة المنسدلة */
    .dropdown-menu {
        text-align: center;
    }
}

/* تحسينات إضافية للتجاوب */
* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input, textarea, button {
    min-height: 44px;  /* حجم مريح للضغط على الهواتف */
}

/* تكبير النص للقراءة بسهولة */
body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* تحسين التمرير على الشاشات الصغيرة */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
}
