:root {
    --main-color: #04426f;
    --green-dark: #228B22;
    --green-light: #C8E6C9;
    --text-dark: #222;
    --text-light: #fff;
    --dark-bg-1: #1f1f1f;
    --dark-bg-2: #111111;
    --dark-bg-3: #1a1a1a;

    --container-width: 80%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Lato", sans-serif; */
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    background-color: #fafafa;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body .page {
    overflow-x: hidden;

}

::selection {
    background-color: var(--green-dark);
    color: var(--text-light);
}

/* ---------------- */
/* Global Elements */

.icon {
    background-color: var(--green-light);
    width: 40px;
    height: 40px;
    display: flex;
    flex: none;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}

.icon i,
.icon svg {
    font-size: 1rem;
    color: var(--green-dark);
}

.container {
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
    margin: auto;
}

.section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.section-title {
    text-align: center;
    color: var(--green-dark);
    font-size: 2rem;
    margin: auto;
    margin-bottom: 60px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.5px;
    position: relative;
    width: fit-content;
}

.section-title::before {
    content: '';
    /* background-color: var(--main-color); */
    background: linear-gradient(135deg, var(--main-color), var(--green-light));
    position: absolute;
    top: 0;
    left: -1.5rem;
    width: .3rem;
    height: 100%;
    border-radius: 50px;
}

.section-title::after {
    content: '';
    /* background-color: var(--main-color); */
    background: linear-gradient(135deg, var(--main-color), var(--green-light));
    position: absolute;
    bottom: 0;
    left: -1rem;
    width: .3rem;
    height: 50%;
    border-radius: 50px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex {
    display: flex;
    justify-content: center;
}

.img-cover img {
    width: 100%;
    display: block;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.gap-3 {
    gap: 3rem;
}

.gap-4 {
    gap: 4rem;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

strong {
    color: var(--green-dark);
    font-weight: 700;
    letter-spacing: -.5px;
}

.ul-list {
    line-height: 1.8;
    list-style: circle;
}

.ul-list li {
    margin-bottom: 5px;
}

.bg-light {
    background-color: var(--green-light);
}

.bg-dark {
    background-color: var(--green-dark);
}

.bg-main {
    background-color: var(--main-color);
}

.p-2 {
    padding: 2rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pl-2 {
    padding-left: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/*####################*/
/* Loader */
/*####################*/
/* Fullscreen Loader */
.loader {
    position: fixed;
    inset: 0;
    /* background: linear-gradient(135deg, var(--green-dark), var(--main-color)); */
    background-color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-image img {
    width: 150px;
    height: auto;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/*####################*/
/* Scroll btn */
/*####################*/
.scroll-btn {
    position: fixed;
    bottom: 40px;
    right: -50px;
    width: 40px;
    height: 40px;
    background: var(--green-light);
    color: var(--green-dark);
    opacity: 0.5;
    border-radius: 10px;
    z-index: 80;
    cursor: pointer;
    transition: 1s;
}

.scroll-btn:hover {
    opacity: 0.8;
}

.show-scroll-btn {
    right: 30px;
}

/* Breadcrumb */
.breadcrumb-container {
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: "Segoe UI", sans-serif;
    margin: 20px 0;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    font-size: 14px;
    color: #555;
}

.breadcrumb li+li::before {
    content: "›";
    margin: 0 8px;
    color: #999;
}

.breadcrumb a {
    text-decoration: none;
    color: #166534;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .active {
    font-weight: 600;
    color: #333;
}


/* ---------------- */
/* Header Section */
.header {
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 1140px;
    margin: auto;
}

.navbar {
    background: linear-gradient(135deg, var(--green-dark), var(--main-color));
    padding: 0px 40px 0 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    height: 4.5rem;
}

.logo img {
    height: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-link.active {
    padding-bottom: 1rem;
    font-weight: bold;
    color: var(--green-light);
    border-bottom: 2px solid var(--green-light);
}

nav ul li .nav-link:hover {
    color: #C8E6C9;
}

/* ---------------- */
/* Hero Section */

.hero {
    background: linear-gradient(135deg, var(--green-dark), var(--main-color));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-image 1s ease-in-out;
    z-index: 0;
}

/* hero background container */
#hero-bg {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    /* keep whatever height you already use */
    z-index: 0;
}

/* gradient overlay on top of the background image */
#hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    transition: background 250ms ease, opacity 250ms ease;
}

/* make sure hero content sits above overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

/* dark-mode stronger overlay */
body.dark-mode #hero-bg::before {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}


.hero-content {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    text-shadow: 1px 1px 1px #333;
}

.hero h5 {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 100;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 1px 1px 1px #333;

}

.hero-buttons {
    margin-bottom: 50px;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.hero-buttons .btn {
    background: var(--green-dark);
    /*#176617*/
    color: #fff;
    border: 1px solid var(--green-light);
}

.hero-buttons .btn.secondary {
    background: #fff;
    color: var(--green-dark);
    /*#176617*/
}

.hero-buttons .btn:hover {
    opacity: 0.8;
}

.hero-dashboard {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    z-index: 2;
}

.dashboard-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    width: 120px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.dashboard-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.dashboard-item i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-item span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
}

/* ---------------- */
/* About Section */

.about-title {
    font-size: 1, 8rem;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}


.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: auto;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-radius: 15px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    margin-left: 20px;
    margin-top: 0px;
}


.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    /* padding-bottom: 3rem; */
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    min-height: 280px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

/* ---------------- */
/* Services Section */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}


.service-card {
    border-bottom: 3px solid var(--green-dark);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.services .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.services .service-card h3 {
    /* font-weight: 400; */
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;

    font-size: 1.2rem;
    color: #176617;

    /* 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}

.services .service-card h3 i {
    color: #176617;
    font-size: 1rem;
}

.services .service-card a {
    color: inherit
}

.services .service-card p {
    color: #444;
    line-height: 1.5;
    font-size: 0.95rem;
}


.service-card:hover {
    transform: translateY(-5px);
}

/* ---------------- */
/* Projects Section */

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    border-right: 3px solid var(--green-dark);
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    /* max-width: 500px; */
    position: relative;
}

/* .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0rem;
    width: 1rem;
    height: 100%;
    border-radius: 10px;
    border-right: 50px solid var(--green-light);
} */

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.project-card a {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #176617;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card p {
    font-size: 1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-card i {
    color: #228B22;
    font-size: 1rem !important;
}

/* ---------------- */
/* why-choose Section */

.why-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.why-choose .card {
    border-left: 3px solid var(--green-dark);
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.why-choose h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #176617;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-choose h3 i {
    color: #228B22;
    font-size: 1rem !important;
}

.why-choose p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}


/* ---------------- */
/* Form Section */
#contact {
    background: linear-gradient(#00000017, #00000017), url(../images/hero4.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    transition: background-image 1s ease-in-out;
}


#contact .section-title {
    margin: 0px auto !important;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

input,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

input:focus,
textarea:focus {
    outline: 3px solid var(--green-dark);

}


button {
    background: linear-gradient(135deg, var(--green-dark), var(--main-color));
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: linear-gradient(135deg, var(--main-color), var(--green-dark));
}

/* ---------------- */
/* Service Page */
.num {
    font-size: 2rem;
    font-weight: 700;
    background-color: var(--green-light);
    border-bottom: 3px solid var(--green-dark);
    color: var(--green-dark);
    width: 50px;
    height: 50px;
    margin: 1rem 0;
    display: flex;
    flex: none;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}

.service-details .services {
    margin-bottom: 60px;
}

.service-details .img-cover {
    max-width: 445px;
}

.service-details article p {
    margin-bottom: 20px;
    /* max-width: 600px; */
}

.service-details p,
ul li {
    max-width: 800px;
}

/* ---------------- */
/* contact Page */
.contact-us {
    /* background: #f8fafc; */
    /* padding: 50px 20px; */
    border: 3px solid var(--green-dark);
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}

.contact-logo img {
    max-width: 180px;
    /* margin-bottom: 20px; */
}

.contact-details {
    max-width: 650px;
    margin: 0 auto;
}

.flex-warp {
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    /* flex-wrap: wrap; */
    /* justify-content: center; */
    /* margin: 15px 0; */
    font-size: 16px;
    color: #333;
}



.contact-item i {
    font-size: 22px;
    /* color: #166534; */
    margin-right: 12px;
}

.contact-item a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}



/* ---------------- */
/* Footer Section */
footer {
    background: linear-gradient(135deg, var(--green-dark), var(--main-color));
    color: white;
    text-align: center;
    /* padding: 30px 20px 10px 30px; */
    max-width: 1100px;
    margin-top: 40px;
    padding: 20px 20px;
    margin: auto;
}

footer .logo {}

footer a {
    color: var(--green-light);
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .copy-right {
    font-size: .8rem;
}

@media (max-width:600px) {

    .navbar {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        padding: 0px;
    }

    nav ul {
        padding-bottom: 1rem;
    }

    nav ul .nav-link {
        font-size: 14px;
        padding-bottom: .5rem !important;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-bg {
        transition: background-image 1.5s ease-in-out;
    }

    .hero-buttons {
        font-size: .8rem;
    }

    .dashboard-item {
        width: 65px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .services,
    .projects,
    .why-choose {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section.about {
        padding-bottom: 0px !important;
    }

    .about-container {
        gap: 10px;
    }

    .about-text {
        padding-top: 0;
        margin-top: 0;
    }

    .about-text p {
        padding-bottom: 0px !important;
    }

    .about-title {
        margin-top: 0px;
        font-size: 1.5rem;
    }

    .sm-column {
        flex-direction: column;
    }


    .sm-reverse {
        display: flex;
        flex-direction: column-reverse;
        /* text first, image second */
    }

    .sm-gap-0 {
        gap: 0;
    }

    .pt-2 {
        padding-top: 1rem;

    }

    .pl-2 {
        padding-left: 1rem;
    }
}

/* ---------- Dark Mode ---------- */
body.dark-mode {
    background-color: var(--dark-bg-1);
    color: #f0f0f0;
}

body.dark-mode .loader {
    background-color: var(--dark-bg-1);
}

body.dark-mode p {
    color: #ccc;
}

body.dark-mode #contact p {
    color: var(--text-dark);
}

body.dark-mode .header,
body.dark-mode .footer {
    background-color: var(--dark-bg-1);
}

body.dark-mode a {
    /* color: #80d4ff; */
}

body.dark-mode .section {
    background-color: var(--dark-bg-1);
}

body.dark-mode .service-card,
body.dark-mode .project-card,
body.dark-mode .why-choose .card {
    background-color: var(--dark-bg-2);
    color: var(--text-light);
    /* box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1); */
}

body.dark-mode .service-card h3,
body.dark-mode .project-card h3,
body.dark-mode .why-choose .card h3 {
    color: var(--green-dark);
}

body.dark-mode .service-card p,
body.dark-mode .project-card p,
body.dark-mode .why-choose .card p {
    /* background-color: var(--dark-bg-2); */
    color: #eee;
}

body.dark-mode .breadcrumb-container {
    background: var(--dark-bg-1);
}

body.dark-mode .service-details .service-intro {
    background-color: var(--dark-bg-2);
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: var(--dark-bg-1);
    color: #eee;
    border: 1px solid #555;
}

body.dark-mode .hero .btn.secondary {
    background: var(--dark-bg-1);
    border-color: var(--dark-bg-2);
}

body.dark-mode .hero-dashboard .dashboard-item {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid;
    transition: color 0.3s;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.dark-mode .theme-toggle {
    color: #f0f0f0;
}