html {
    scroll-behavior: smooth;
}

.home-jumbotron{
    background-image: url(./images/home-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* color: white; */
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); */
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* header {
    color: white;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100vh; 
} */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* background: rgba(0, 0, 0, 0.7); */
}

.nav-logo {
    width: 130px;
}

.menu-toggle span {
    height: 2px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: transform 0.3s ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
    /* color: red; */
}

nav ul li a {
    color: rgb(255, 0, 0);
    padding-left: 10px;
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 5px; 
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; 
    left: 0;
    bottom: 0;
    background-color: #FF6B6B; 
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        /* background-color: #A8DADC; */
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        padding: 10px 20px;
        display: block;
    }
}

.home-page {
    background: url('./images/home-bg.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 20px;
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 2em; /* Adjusted for better adaptability */
}

.home-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
    /* z-index: -1; */
}

.home-page h1 {
    margin: 0;
    color: #FF6B6B;
}

section {
    padding: 50px 20px;
    text-align: center;
    background-color: #F1FAEE;
}

section h2 {
    font-size: 2em;
    color: #457B9D;
}

section p {
    font-size: 1.2em;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 3s ease, transform 3s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service-item {
    text-align: center;
    width: 30%;
    margin-bottom: 30px;
}

.service-item {
    text-align: center;
    width: 30%;
    margin-bottom: 30px;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-image {
    width: 100%;
    height: 250px;
    border-radius: 8px;
}

.clients {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    animation: scroll 10s linear infinite;
    gap: 20px; /* Adjust gap as needed */
}

.slide {
    min-width: 150px; /* Adjust width as needed */
    height: auto;
}

.slide img {
    width: 130px;
    height: 100px;
}

@keyframes scroll {
0% {
    transform: translateX(0);
}
100% {
    transform: translateX(-50%);
}
}

.logo-slider:hover .slide-track {
    animation-play-state: paused;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background: #f1f1f1;
    padding: 20px;
    margin: 20px;
    width: 30%;
    font-size: 1.2em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: left;
    transition: transform 0.3s ease-in-out;
}

.testimonial:hover {
    transform: scale(1.05);
}

.client-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
    float: left;
}

#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .testimonial {
        width: 80%;
    }
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

.contact-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 50px;
    padding: 20px;
}

form {
    width: 45%;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

form button {
    background-color: #FF6B6B;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #E63946;
}

.contact-info {
    width: 45%;
    font-size: 1.2em;
}

.contact-info p {
    margin: 10px 0;
    cursor: pointer;
}

.contact-info p a {
    color: inherit;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    form {
        width: 80%;
    }

    .contact-info {
        width: 100%;
    }
}

footer {
    background: #457B9D;
    color: white;
    text-align: center;
    padding: 20px 0;
}

@media screen and (max-width: 768px) {
    .service-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 80%;
    }
}

/* Our Projects Section */
#projects {
    padding: 2rem 1rem;
    background-color: #F1FAEE;
    text-align: center;
}

#projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #457B9D;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.project-item {
    flex: 1 1 calc(33.333% - 1rem);
    margin: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.project-item svg {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
    color: #FF6B6B;
}

.project-item p {
    font-size: 1.2rem;
    color: #666;
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
    }

    .project-item {
        flex: 1 1 100%;
        margin: 1rem auto;
    }
}

.home-page button{
    background-color: #FF6B6B;
    border: none;
    font-size: medium;
    border-radius: 5px;
    cursor: pointer;
}

/* header bar */
.custom-navbar a {
    font-size: 1.1em; /* Adjust font size */
    color: red;
    cursor: pointer; /* Change cursor to pointer */
    position: relative; /* Needed for the pseudo-element */
}

.custom-navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Adjust to align with text */
    width: 0;
    height: 2px; /* Thickness of the border */
    background-color: red; /* Border color */
    transition: width 0.3s ease-in-out; /* Transition effect */
}

.custom-navbar a:hover::after {
    width: 100%; /* Full width on hover */
    color: red;
}