/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    height: 100%;
}

body {
    height: 100%;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Container to centre content */
.container {
    width: 80%;
    margin: 0 auto;
}

.container-header {
    width: 96%;
    margin: 0 auto;
}

.container-confirmation {
    padding: 50px;
    text-align: center;
}

/* Header */
header {
    background-color: #333;
    padding: 20px 0;
    color: white;
}

    header .logo h1 {
        font-size: 2.5rem;
        margin-left: 0px;
    }

    header nav ul {
        list-style: none;
        display: flex;
        justify-content: flex-end;
    }

        header nav ul li {
            margin: 0 20px;
        }

            header nav ul li a {
                text-decoration: none;
                color: white;
                font-weight: bold;
            }

.cta-btn {
    background-color: #f39c12;
    padding: 10px 20px;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('images/hero-image.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    /* Overlay */
    .hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3); /* Black with 50% opacity */
        z-index: 1; /* Makes sure the overlay is on top of the image but below the text */
    }

/* Hero Content (Text) */
.hero-content {
    position: relative;
    z-index: 2; /* Makes sure the text is above the overlay */
    color: white;
}

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin: 20px 0;
    }


/* About Us Section */
.about-us {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

    .about-us ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 40px;
    }

        .about-us ul li {
            font-size: 1.2rem;
        }

/* Services Section */
.services {
    padding: 60px 0;
    background-color: #f8f8f8;
}

    .services .service-cards {
        display: flex;
        justify-content: space-around;
    }

.service-cards {
    border-radius: 8px;
    text-align: center;
}

.card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    padding: 30px;
    width: 26%;
}

/* Portfolio Section */
.portfolio {
    padding: 60px 0;
}

.portfolio-grid {
    display: flex;
    justify-content: space-around;
}

.portfolio-item {
    width: 30%;
    text-align: center;
}

    .portfolio-item img {
        width: 100%;
        border-radius: 8px;
    }

/* Media query for narrow screens */
@media (max-width: 768px) {
    .service-cards {
        flex-direction: column; /* Stack the divs vertically */
        align-items: center; /* Center the divs */
    }

    .portfolio-grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%; /* Allow the boxes to be wider on small screens */
        margin-bottom: 20px; /* Space between stacked divs */
    }

    .portfolio-item {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* Testimonials Section */
.testimonials {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.testimonial {
    font-style: italic;
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: #f8f8f8;
}

    .contact form {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .contact form input, .contact form {
            padding: 10px;
            font-size: 1rem;
            border-radius: 5px;
            border: 1px solid #ddd;
        }

            .contact form label {
                margin-top: 8px; /* Decrease space between label and textbox */
            }

            /* Contact Section */
            .contact form textarea {
                padding: 10px;
                font-size: 1rem;
                border-radius: 5px;
                border: 1px solid #ddd;
                height: 140px; /* Increased height */
                margin-bottom: 10px;
            }

            .contact form button {
                background-color: #f39c12;
                padding: 15px 30px;
                border: none;
                font-size: 1.2rem;
                cursor: pointer;
                color: white;
            }

/* Footer Section */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

    footer .footer-links a {
        text-decoration: none;
        color: white;
        margin: 0 20px;
    }

    footer .social-icons a {
        text-decoration: none;
        color: white;
        margin: 0 10px;
    }

.footer-confirmation {
    position: absolute;
    bottom: 0;
    width: 100%;
}