/* 
* Main Stylesheet for Fajer Al-Sama Contracting Company Website
* RTL Support for Arabic Language
*/

/* Import Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* General Styles */
body {
    font-family: 'Tajawal', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #f39c12;
    bottom: -10px;
    right: 25%;
}

.section-title p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Top Bar */
.top-bar {
    font-size: 14px;
}

.top-bar a {
    transition: all 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navigation */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    position: relative;
}

.navbar-nav .nav-link.active:after,
.navbar-nav .nav-link:hover:after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background-color: #f39c12;
    bottom: 5px;
    right: 20%;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background-color: #f39c12;
    border-color: #f39c12;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

/* About Section */
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.counter-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.counter-box i {
    font-size: 40px;
    color: #f39c12;
    margin-bottom: 15px;
}

.counter-box h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-box p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Services Section */
.service-box {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

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

.service-box i {
    font-size: 50px;
    color: #f39c12;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-box p {
    margin-bottom: 0;
}

/* Projects Section */
.project-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-box:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    background-color: #fff;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-content p {
    margin-bottom: 15px;
}

.project-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-box:hover .project-overlay {
    opacity: 1;
}

.project-overlay a {
    width: 50px;
    height: 50px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-box:hover .project-overlay a {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay a:hover {
    background-color: #fff;
    color: #f39c12;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay a {
    width: 50px;
    height: 50px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay a {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay a:hover {
    background-color: #fff;
    color: #f39c12;
}

/* Jobs Section */
.job-box {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.job-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.job-box p {
    margin-bottom: 20px;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.job-meta span {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
}

/* Offers Section */
.offer-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.offer-img {
    position: relative;
    overflow: hidden;
}

.offer-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.offer-box:hover .offer-img img {
    transform: scale(1.1);
}

.offer-content {
    padding: 20px;
    background-color: #fff;
}

.offer-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.offer-content p {
    margin-bottom: 15px;
}

.offer-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.offer-timer div {
    width: 60px;
    height: 60px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.offer-timer div span:first-child {
    font-size: 24px;
    font-weight: 700;
}

.offer-timer div span:last-child {
    font-size: 12px;
}

/* Contact Section */
.contact-info {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.contact-info-item div h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-item div p {
    margin-bottom: 0;
}

.contact-form {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: 5px;
    margin-bottom: 20px;
}

textarea.form-control {
    height: 150px;
}

/* CV Section */
.cv-box {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: center;
}

.cv-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.cv-box p {
    margin-bottom: 20px;
}

.cv-box .btn {
    margin-bottom: 20px;
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
}

footer h4 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
}

footer h4:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #f39c12;
    bottom: -10px;
    right: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #fff;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: #f39c12;
    padding-right: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #f39c12;
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-left: 10px;
    color: #f39c12;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #f39c12;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #e67e22;
    color: #fff;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #f39c12;
    top: 0;
    bottom: 0;
    right: 50%;
    margin-right: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: white;
    border: 4px solid #f39c12;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #f8f9fa;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #f8f9fa;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #f8f9fa;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f8f9fa transparent transparent;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 0;
}

/* Job Application Form */
.application-form {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.application-form h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.application-number {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.application-number h4 {
    margin-bottom: 10px;
}

.application-number p {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0;
}

.custom-file-label::after {
    content: "استعراض";
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .timeline::after {
        left: 31px;
        right: auto;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid #f8f9fa;
        border-width: 10px 10px 10px 0;
        border-color: transparent #f8f9fa transparent transparent;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .counter-box h3 {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .counter-box h3 {
        font-size: 24px;
    }
}
