html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
}

#h-primary {
    text-align: center;
    font: 3rem;
}

#h-secondary {
    text-align: center;
    font-size: 2rem;
}

:root {
    --navbar-height: 59px;
}

/* Navigation Bar */
#navbar {
    display: flex;
    align-items: center;
    position: relative;
    /* position: related decreased the height of a section and made it into a header. Why? */
}

#navbar::before {
    content: "";
    background-color: rgb(0, 31, 103);
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.4;
}

#navbar #logo {
    margin: 10px 25px;
}

#navbar ul {
    display: flex;
}

#navbar ul li {
    list-style: none;
    font-size: 1.3rem;
}

#navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 3px 22px;
    border-radius: 22px;
}

#navbar ul li a:hover {
    color: rgb(0, 0, 0);
    background-color: white;
}

/* Home Page */
#home {
    display: flex;
    flex-direction: column;
    padding: 5px 200px;
    height: 333px;
    justify-content: center;
    align-items: center;
}

#home::before {
    content: "";
    background: url('../img1.jpg') no-repeat center center/cover;
    position: absolute;
    top: 0px;
    left: 0px;
    height: 70%;
    width: 100%;
    z-index: -1;
    opacity: 0.5;
}

#home p {
    font-size: 1rem;
    color: rgb(17, 70, 1);
}

#h-primary {
    color: rgb(255, 0, 0);
    font-size: 2.5rem;
    padding: 12px;
}

.btn {
    padding: 6px 20px;
    border: 2px solid white;
    background-color: rgba(47, 255, 0, 0.354);
    color: white;
    margin: 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
}

/* Services */

#services {
    margin: 0px 34px 33px 34px;
    display: flex;
}

#services .box {
    border: 2px solid black;
    padding: 16px 32px 33px 32px;
    margin: 1px 10px;
    border-radius: 25px;
    background-color: rgb(252, 235, 235);
}

#services .box p {
    text-align: center;
}

#services .box img {
    height: 150px;
    display: block;
    margin: auto;
}

/* Clients */

#client-section {
    height: 300px;
    position: relative;
}

#client-section::before {
    content: "";
    position: absolute;
    background: url('../img3.jpg') no-repeat center center/cover;
    width: 100%;
    height: 300px;
    z-index: -1;
    opacity: 0.6;
}

#client-section h1 {
    margin-top: 13px;
}

.clients {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
}

.client-item {
    padding: 33px;
}

.clients img {
    height: 125px;
}

/* Contact */

#contact-section {
    position: relative;
}

#contact-section::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    background: url('../img4.jpg') no-repeat center center/cover;
}

#contact-section .la {
    font-family: sans-serif
}

#contact-section form {
    width: 33%;
}

#contact-sectiom label {
    font-size: 1.3rem;
}

.contact-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 33px;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 12px;
    border: 2px solid black;
}

/* Footer */

footer {
    color: white;
    background-color: black;
    padding: 15px 0px;
}

.clas {
    text-align: center;
}