:root {
    --green-dark: #1B5E20;
    --green: #4CAF50;
    --green-light: #81C784;
    --green-lighter: #C8E6C9;
    --text-color: #2E2E2E;
    --bg-color: #F1F8F3;
    --btn-color: var(--green);
    --btn-hover: var(--green-dark);
    --section-bg: var(--green-lighter)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    overflow-x: hidden
}

.header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.25);
    z-index: -1
}

.top-header {
    top: 0;
    left: 0;
    padding: 10px 50px;
    background-color: var(--green-dark);
    color: #fff;
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10
}

.top-header .social-links {
    display: flex;
    gap: 30px
}

.top-header .social-links a {
    color: #fff;
    font-size: 1rem;
    transition: color .3s
}

.top-header .social-links a:hover {
    color: var(--green-light)
}

.navbar {
    top: 43px;
    padding: 10px 60px;
    background-color: rgba(255, 255, 255, .2);
    z-index: 10;
    transition: background-color .3s
}

.navbar:hover {
    background-color: rgba(255, 255, 255, .35)
}

.navbar .navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px
}

.navbar .navbar-brand img {
    height: 80px;
    object-fit: contain;
    margin: 0 15px
}

.navbar .navbar-nav {
    display: flex;
    gap: 50px
}

.navbar .navbar-nav .nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: color .3s
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--green-light)
}

.navbar-toggler {
    border: none;
    outline: none;
    margin-right: 15px
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")
}

@media(max-width:991px) {
    .navbar-collapse {
        position: absolute;
        top: 69%;
        right: 12px;
        width: auto;
        min-width: 120px;
        background-color: var(--green);
        padding: 8px 15px;
        border-radius: 15px;
        overflow: hidden;
        transition: max-height .3s ease, opacity .3s;
        opacity: 0;
        z-index: 20
    }

    .navbar-collapse.show {
        max-height: 190px;
        opacity: 1
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0
    }

    .navbar .navbar-nav {
        display: flex;
        gap: 5px
    }

    .navbar-nav .nav-link {
        color: #fff;
        font-size: 1rem;
        margin: 0;
        padding: 8px 10px;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, .3);
        transition: background .3s
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, .1)
    }

    .navbar {
        padding: 5px 30px
    }

    .navbar .navbar-container {
        width: 70%;
        justify-content: space-around
    }
}

.company-info {
    margin-top: 300px;
    width: 100%;
    text-align: center;
    color: #fff;
    z-index: 10
}

.company-info h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, .6)
}

.company-info p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, .6)
}

.company-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.company-buttons .phones-row {
    display: flex;
    gap: 15px
}

.company-buttons a.btn {
    background-color: var(--btn-color);
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color .3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.company-buttons a.btn:hover {
    background-color: var(--btn-hover)
}

@media(max-width:768px) {
    .company-info h1 {
        font-size: 2.2rem
    }

    .company-info p {
        font-size: 1.2rem
    }

    .company-buttons .phones-row {
        flex-direction: column;
        gap: 10px
    }
}

.about-company {
    width: 100%;
    padding: 80px 50px;
    background-color: var(--bg-color)
}

.about-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start
}

.about-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.about-images img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer
}

.about-images img:nth-child(2) {
    max-height: 180px
}

.about-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .35)
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--green-dark);
    font-weight: bold;
    margin-bottom: 15px
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8
}

@media(max-width:991px) {
    .about-row {
        flex-direction: column;
        gap: 30px
    }

    .about-text h2 {
        font-size: 2rem
    }

    .about-text p {
        font-size: 1rem
    }

    .about-images img {
        max-height: 180px
    }

    .about-images img:nth-child(2) {
        max-height: 160px
    }
}

.services {
    padding: 0 50px;
    background-color: var(--bg-color);
    color: var(--text-color)
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--green-dark);
    margin-bottom: 50px
}

.services-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 30px;
    justify-items: center
}

.service-card {
    background-color: var(--green-lighter);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    transition: transform .3s, box-shadow .3s, background-color .3s, color .3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px
}

.service-card i {
    font-size: 2.2rem;
    color: var(--green);
    margin-bottom: 12px;
    transition: color .3s
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--green-dark);
    transition: color .3s
}

.service-card p {
    font-size: .95rem;
    line-height: 1.4;
    color: var(--text-color);
    transition: color .3s
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    background-color: var(--green)
}

.service-card:hover i,
.service-card:hover h3,
.service-card:hover p {
    color: #fff
}

@media(max-width:1200px) {
    .services-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px
    }
}

@media(max-width:768px) {
    .services {
        padding: 60px 30px
    }

    .services-row {
        grid-template-columns: 1fr;
        gap: 20px
    }
}

.certificates {
    padding: 80px 50px;
    background-color: var(--bg-color);
    color: #fff
}

.certificates h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: green;
}

.certificate-card {
    background-color: var(--green);
    border-radius: 12px;
    padding: 25px 15px;
    margin-bottom: 30px;
    transition: transform .3s, box-shadow .3s, background-color .3s;
    text-align: center
}

.certificate-card .card-body i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    transition: color .3s
}

.certificate-card .card-body h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    transition: color .3s
}

.certificate-card .card-body p {
    font-size: 1rem;
    line-height: 1.5;
    transition: color .3s
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
    background-color: var(--green-dark)
}

.certificate-card:hover .card-body i,
.certificate-card:hover .card-body h3,
.certificate-card:hover .card-body p {
    color: #fff
}

@media(max-width:991px) {
    .certificates .row {
        flex-direction: column;
        gap: 20px
    }
}

.portfolio {
    padding: 0 50px;
    background-color: var(--bg-color)
}

.portfolio h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 50px
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform .4s, box-shadow .4s
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .4s, filter .4s;
    display: block
}

.portfolio-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(27, 94, 32, .85);
    color: #fff;
    font-weight: bold;
    text-align: center;
    transform: translateY(100%);
    transition: transform .4s;
    font-size: 1rem
}

.portfolio-item:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(.75)
}

.portfolio-item:hover span {
    transform: translateY(0)
}

.portfolio-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, .35);
    transform: translateY(-5px)
}

@media(max-width:991px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        grid-auto-rows: 180px
    }
}

@media(max-width:576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px
    }
}

.partners {
    padding: 50px;
    background-color: var(--bg-color);
    color: var(--text-color)
}

.partners h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--green-dark);
    margin-bottom: 50px
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px
}

.partners-logos img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .4s, filter .4s;
    cursor: pointer
}

.partners-logos img:hover {
    transform: scale(1.4);
    filter: brightness(1.3)
}

.partners-logos img:nth-child(-n+5) {
    order: 1
}

.partners-logos img:nth-child(n+6):nth-child(-n+9) {
    order: 2
}

.partners-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: center
}

.partners-info .info-card {
    background-color: var(--green-lighter);
    border-radius: 12px;
    padding: 25px 15px;
    flex: 1 1 22%;
    max-width: 250px;
    transition: transform .3s, box-shadow .3s
}

.partners-info .info-card i {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 15px;
    transition: color .3s
}

.partners-info .info-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--green-dark)
}

.partners-info .info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color)
}

.partners-info .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2)
}

.partners-info .info-card:hover i {
    color: var(--green-dark)
}

@media(max-width:991px) {
    .partners-logos img {
        width: 100px;
        height: 70px
    }

    .partners-info .info-card {
        flex: 1 1 45%
    }
}

@media(max-width:576px) {
    .partners-logos img {
        width: 80px;
        height: 60px
    }

    .partners-info .info-card {
        flex: 1 1 100%
    }
}

.contact-form {
    padding: 80px 50px;
    background-color: var(--green-lighter);
    color: var(--text-color)
}

.contact-form h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--green-dark);
    margin-bottom: 50px
}

.contact-form form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--green-dark)
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--green);
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 15px;
    background-color: #fff;
    color: #333;
    transition: border-color .3s, box-shadow .3s
}

.contact-form form input:focus,
.contact-form form textarea:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 5px rgba(27, 94, 32, .5);
    outline: none
}

.contact-form form button {
    background-color: var(--green);
    color: #fff;
    padding: 12px 30px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color .3s, transform .3s
}

.contact-form form button:hover {
    background-color: var(--green-dark);
    transform: translateY(-3px)
}

@media(max-width:768px) {
    .contact-form {
        padding: 60px 20px
    }

    .contact-form h2 {
        font-size: 2rem;
        margin-bottom: 30px
    }

    .contact-form form input,
    .contact-form form textarea {
        font-size: .95rem
    }

    .contact-form form button {
        font-size: 1rem;
        padding: 10px 20px
    }
}

a.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
    transition: transform .3s
}

a.whatsapp-btn:hover {
    transform: scale(1.15)
}

a.whatsapp-btn i {
    font-size: 28px;
    color: #fff;
    transform: rotate(0deg);
    text-decoration: none
}

footer {
    background-color: var(--green-dark);
    color: #fff;
    padding: 25px 40px;
    font-family: 'Cairo', 'Tajawal', 'Noto Kufi Arabic', sans-serif;
    font-size: .95rem;
    position: relative
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start
}

.footer-col {
    flex: 1 1 250px
}

.footer-col.text-center {
    text-align: right
}

footer img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .9));
    transition: transform .3s
}

footer img:hover {
    transform: scale(1.05)
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color .3s
}

footer a:hover {
    color: var(--green-light)
}

footer i {
    margin-right: 8px;
    color: var(--green-light)
}

footer hr {
    border: .5px solid rgba(255, 255, 255, .3);
    margin: 20px 0
}

.footer-bottom p {
    text-align: center;
    font-size: .9rem
}

.footer-bottom a {
    font-weight: bold;
    color: var(--green-light)
}

.footer-bottom a:hover {
    color: #fff
}

@media(max-width:991px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px
    }

    .footer-col {
        flex: 0
    }

    footer img {
        max-width: 100px
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--green-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center
}

.columns {
    display: flex;
    gap: 10px;
    margin-bottom: 40px
}

.column {
    width: 15px;
    height: 50px;
    background-color: var(--green-light);
    animation: bounce 1s infinite alternate
}

.column:nth-child(2) {
    animation-delay: .1s
}

.column:nth-child(3) {
    animation-delay: .2s
}

.column:nth-child(4) {
    animation-delay: .3s
}

.column:nth-child(5) {
    animation-delay: .4s
}

@keyframes bounce {
    0% {
        transform: scaleY(.3)
    }

    100% {
        transform: scaleY(1)
    }
}

.crane {
    position: absolute;
    top: -60px;
    width: 80px;
    height: 60px
}

.crane .arm {
    width: 80px;
    height: 4px;
    background: var(--green-light);
    position: absolute;
    top: 0;
    left: 0
}

.crane .hook {
    width: 10px;
    height: 20px;
    background: var(--green);
    position: absolute;
    top: 4px;
    left: 35px;
    animation: hookMove 1s infinite alternate
}

@keyframes hookMove {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(20px)
    }
}

.icons {
    position: absolute;
    bottom: -60px;
    display: flex;
    gap: 20px;
    animation: rotateIcons 2s linear infinite
}

.icons i {
    color: var(--green-light);
    font-size: 20px
}

@keyframes rotateIcons {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}