/* Reset some default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px;
    position: absolute;
    width: 100%;
    z-index: 10;
}

nav .logo img {
    width: 150px;
}

nav .nav-links {
    list-style: none;
    display: flex;
}

nav .nav-links li {
    margin-left: 20px;
    position: relative;
    /* For the underline animation */
}

nav .nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 5px 0;
    display: block;
}

nav .nav-links li a:hover {
    color: #ffbd59;
}

/* Hover effect for navbar links */
nav .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #ffbd59;
    transition: width 0.3s ease;
    /* Smooth transition for the underline */
}

nav .nav-links li a:hover::after {
    width: 100%;
    color: #ffbd59;
    /* The underline will expand to full width on hover */
}

/* Hero Section */
.hero {
    background-image: url('images/banner1.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay to improve text visibility */
}

.hero-content {
    position: relative;
    color: white;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.5s ease-out forwards;
    /* Animation applied */
}

/* Animation for fading and sliding the hero text up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-btn {
    border: 2px solid #ffbd59;
    color: #ffbd59;
    padding: 10px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
    color: white;
    background-color: #ffbd59;
}

.about,
.services,
.projects,
.testimonials,
.contact {
    padding: 80px 20px;
    text-align: center;
}

/* About Us Section */
.about {
    background-color: #f4f4f4;
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    /* Ensure it adapts well to mobile screens */
}

.about-img {
    width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Hardware acceleration for better performance */
    will-change: transform;
    transition: transform 0.3s ease-in-out;
}


.about-text {
    max-width: 500px;
    text-align: left;
    padding: 20px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background-color: #ffbd59;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease-in-out;
}


.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #ffbd59;
    color: #ffbd59;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: #ffbd59;
    color: white;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        /* Stack image and text vertically on smaller screens */
        text-align: center;
    }

    .about-img {
        width: 80%;
        margin-bottom: 20px;
    }
}


/* Services Section */
.services {
    background-color: #333;
    padding: 60px 0;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 40px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffbd59;
    width: 20%;
}
/* Services Carousel */
.services-carousel {
    display: flex;
    justify-content: space-between;
    /* Evenly space out items */
    gap: 20px;
    /* Reduce gap size slightly */
    margin-top: 40px;
    margin-left: 50px;
    margin-right: 50px;
    overflow: hidden;
}


.service-item {
    width: 18%;
    min-width: 250px;
    /* Adjust based on content */
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}


.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    font-size: 1.5rem;
    color: #ffbd59;
    margin: 15px 0;
}

.service-item p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    font-size: 1.1rem;
    color: #ffbd59;
    text-decoration: none;
    border: 2px solid #ffbd59;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition */
}

.service-link:hover {
    background-color: #ffbd59;
    color: white;
}

/* Adjust layout for smaller screens */
@media (max-width: 768px) {
    .services-carousel {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Projects Section */
.projects {
    background-color: #f4f4f4;
    padding: 60px 0;
    text-align: center;
}

.projects h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffbd59;
    width: 20%;
}

/* Projects Gallery */
.projects-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 50px;
    flex-wrap: wrap;
    /* Ensures responsive layout */
}

/* Project Item */
.project-item {
    position: relative;
    width: 32%;
    /* 3 items in one row */
    min-width: 300px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Light shadow */
    transition: transform 0.3s ease;
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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


.overlay h3 {
    color: #ffbd59;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.overlay .btn {
    color: #ffbd59;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ffbd59;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.overlay .btn:hover {
    background-color: #ffbd59;
    color: white;
}

/* Project Item Hover Effect */
.project-item:hover {
    transform: scale(1.05);
    /* Slight scale effect */
}

@media (max-width: 768px) {
    .projects-gallery {
        display: flex;
        flex-direction: column;
        /* Stack items vertically */
        align-items: center;
        /* Center items horizontally */
        gap: 20px;
    }

    .project-item {
        width: 100%;
        max-width: 300px;
        /* Optional: Limit the width of each project item */
    }

    .project-item img {
        width: 100%;
        /* Make sure the images take up the full width of the container */
        height: auto;
        /* Maintain aspect ratio */
    }
}
/* Contact Section */
.contact {
    background-color: white;
    padding: 60px 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffbd59;
    width: 20%;
}

/* Form Container */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #ffbd59;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Submit Button */
.submit-btn {
    background-color: #ffbd59;
    color: white;
    font-size: 1.2rem;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #ff9e33;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px;
    }

    .contact h2 {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    /* Allows wrapping on smaller screens */
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    margin-right: 20px;
}

.footer-left p {
    font-size: 1rem;
}

.footer-center ul,
.footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li,
.footer-right ul li {
    margin-bottom: 10px;
}

.footer-center a,
.footer-right a {
    color: #ffbd59;
    text-decoration: none;
}

.footer-center a:hover,
.footer-right a:hover {
    text-decoration: underline;
}

.footer-right p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.social-links li {
    display: inline-block;
    margin-right: 10px;
}

.social-links a {
    font-size: 1.1rem;
    color: #ffbd59;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

/* Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: center;
    }
}

/*Update 05/12/2024*/ 

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

nav {
    padding: 0 20px;
    width: calc(100% - 40px);
}

section {
    width: 100%;
}

.hero {
    width: 100vw;
    height: 100vh;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.services-carousel,
.projects-gallery {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}
@media (max-width: 768px) {
    nav .logo img{
        display: none;
    }
    .hero{
        background-attachment: scroll;
    }
}
