/*
    Project: Agile Internet Website
    Date: September 7, 2024
    Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    z-index: 10; /* Ensures header stays above other elements */
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 2rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

/* Hero section with background image */
#hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f4f4f4;
    margin-top: 1rem; /* Creates space between the header and the banner */
}

#hero .header-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 2rem; /* Adds extra padding to ensure text doesn’t overlap */
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#hero .btn {
    background: #ff6600;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
}

#about, #services, #testimonials, #contact {
    padding: 2rem 0;
}

.container {
    width: 80%;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.services-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.service-item {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.testimonial-item {
    background-color: #eee;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

footer {
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

footer .social-media a {
    margin: 0 1rem;
    color: white;
    text-decoration: none;
}

footer .social-media a:hover {
    color: #ff6600;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f4f4f4;
    padding: 2rem;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background: #ff6600;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #e55b00;
}
