/* style.css */
/********    BODY, HTML    ********/
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/********    HEADER    ********/
header {
    display: flex;
    justify-content: space-between;
    background-color: #333333;
    color: white;
    align-items: center;
    padding: 10px 5%;
}

.logo img {
    height: 100px; 
}

.title-area {
    text-align: center;
}

.title-area h1 {
    margin: 0;
    padding: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

@media (min-width: 600px) {
    nav ul li {
        margin: 0 25px;
    }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    background-color: #949393;
    border: none;
    cursor: pointer;
    color: #fff
}

/* Media Query */
@media (max-width: 400px) {
    .hamburger {
        display: block;        
    }
    .nav-links {
        display: none;
        width: 100%;
        text-align: center;
        background-color: #949393;
    }
    .nav-links a {
        display: block;
        padding: 10px;
    }
    /* adjust the logo and title */
    .logo img {
        display: none;
    }
    .title-area {
        text-align: left;
    }
}

/********    All Sections    ********/
#home, #about, #services, #contact {
    min-height: 100vh; /* Needed to keep each section with whole screen */
}

.back-to-top {
    text-align: right;
    padding: 20px;
}

.back-to-top a {
    display: inline-block;
    background-color: #333333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-to-top a:hover {
    background-color: #555555;
}

/********    HOME    ********/
#home, #about, #services, #contact {
    position: relative; /* Needed to position the pseudo-element correctly */
    z-index: 1;
    padding: 0 10vw;
}

#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/welcome.png');
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the background image */
    opacity: 0.25; /* Reduced opacity for the background image */
    z-index: -1; /* Ensure the pseudo-element is behind the content */
}

/********    SERVICES    ********/
#services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/services.png');
    background-size: cover; /* Cover the entire section */
    background-position: center; /* Center the background image */
    opacity: 0.25; /* Reduced opacity for the background image */
    z-index: -1; /* Ensure the pseudo-element is behind the content */
}

/********    CONTACT    ********/
#contact form {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: #f3f3f3;
    border-radius: 8px;
}

#contact label {
    margin-top: 10px;
    display: block;
    font-weight: bold;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 95%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#contact input[type="submit"]:hover {
    background-color: #45a049;
}

/********    FOOTER    ********/
footer {
    background-color: #949393;
    color: white;
    text-align: center;
    padding: 1em;
}