:root {
    --primary-color: #e8e8e8;
    --secondary-color: #0a1d32;
    --accent-color: #368680;
    --light-color: #8d9cb8;
    --text-color: black;
    --btn-shadow: 2px 2px 2px rgba(0, 0, 0, 0.281);
    --img-shadow: 5px 5px 5px rgba(0, 0, 0, 0.089);
    --dark-theme: #212121;
}

html,
body {
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    padding: 0;
    margin: 0;
    background-color: var(--primary-color);
    text-rendering: auto;
    scroll-behavior: smooth;
}

main {
    padding-left: 80px;
    padding-right: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


h2 span,
h3 span {
    border-bottom: 5px solid var(--accent-color);
}


/*=================HEADER================*/

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 75px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    padding-left: 50px;
    transition: .2s;
}

.header-img-link {
    height: 100%;
    width: auto;
}

header img {
    width: auto;
    height: 100%;
}

header nav {
    width: max-content;
    margin-right: 100px;
    height: 100%;
}

header nav ul {
    display: flex;
    align-items: center;
    height: max-content;
    margin-top: 16px;
    transition: .2s;
}

header nav ul li {
    list-style: none;
    padding: 2px;
    margin: 10px;
    position: relative;
    transition: .2s;
}

header nav ul .header-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

header nav ul .header-link:hover::before {
    width: 100%;
    left: 0;
}

header nav ul li a {
    white-space: nowrap;
}

header nav ul .header-contact-btn a {
    background-color: var(--accent-color);
    padding: 5px;
    border-radius: 5px;
    box-shadow: var(--btn-shadow);
    transition: .2s;
}

header nav ul .header-contact-btn:hover {
    opacity: .8;
}

header nav ul li a {
    text-decoration: none;
    color: white;
}

.toggle-btn {
    position: absolute;
    top: 30px;
    right: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    transition: .2s;
}

.toggle-btn .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: .2s;
    transform: rotate(0deg);
}

.rights {
    display: none;
}


@media (max-width: 800px) {

    header {
        flex-direction: column;
        align-items: flex-start;
        height: 80px;
        padding-left: 0;
    }

    .header-img-link {
        height: 80%;
        margin-left: 10px;
        margin-top: 10px;
    }

    .toggle-btn {
        display: flex;
    }

    .toggle-btn.active {
        margin-top: 10px;
    }

    .toggle-btn .bar1.active {
        transform: rotate(45deg);
    }

    .toggle-btn .bar2.active {
        background-color: transparent;
    }

    .toggle-btn .bar3.active {
        transform: rotate(-45deg);
        position: absolute;
    }

    header nav {
        height: 0px;
    }

    .navbar-links {
        transform: translateX(100vw);
        width: 100vw;
        height: 100vh;
        position: absolute;
        right: 0;
        background-color: var(--secondary-color);
        transition: .4s;
        padding-top: 80px;
        font-size: 1.25rem;
        align-items: flex-start;
        justify-content: center;
    }

    .navbar-links.active {
        transform: translateX(0px);
    }

    html.active {
        overflow-y: hidden;
    }

    header ul {
        flex-direction: column;
        justify-content: center;
        width: 100%;
        padding: 0;
        left: 0;
    }

    .navbar-links li {
        width: 150px;
        text-align: center;
    }

    header nav ul .header-link:hover::before {
        width: 0%;
        left: 0;
    }

    header nav ul .header-contact-btn {
        background-color: transparent;
        padding: 0px;
        border-radius: 0px;
        box-shadow: 0px 0px 0px black;
    }

    header nav ul .header-link:hover {
        border-top: none;
        opacity: .6;
    }

    .rights {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 200px;
    }

    .rights a {
        color: white;
        text-decoration: none;
        margin-left: 10px;
        margin-right: 10px;
    }

    .rights a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

    .rights p {
        color: white;
        margin: 0;
    }
}


/*=================FIRST-SECTION================*/

.first-section {
    min-height: 80vh;
    padding-top: 120px;
    padding-bottom: 70px;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--background-light);
}

.first-section h1 {
    border-bottom: 4px solid var(--accent-color);
    width: max-content;
    margin-bottom: 70px;
    font-size: 42px;
}

.card {
    background-color: #f4f5f2;
    margin: 20px;
    margin-top: 15px;
    padding: 20px;
    box-shadow: var(--img-shadow);
    border-radius: 10px;
    width: 600px;
    height: fit-content;
    color: var(--background-dark);
    transition: .2s;
    overflow: hidden;
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    font-size: 24px;
    margin-top: 0;
}

.headline {
    width: max-content;
    position: relative;
}

.arrow {
    width: 5px;
    height: 120px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.call-to-action {
    background-color: var(--accent-color);
    width: max-content;
    padding: 10px;
    font-size: 1.2rem;
    border-radius: 4px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 50px;
    color: white;
    text-decoration: none;
    border: none;
    box-shadow: var(--btn-shadow);
    transition: .2s;
}

.call-to-action:hover {
    transform: scale(1.02);
}

@media (max-width: 720px) {
    .card {
        width: auto;
        max-width: 600px;
    }
}

/*=================FOOTER================*/

footer {
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 20px;
    margin-top: 100px;
    position: relative;
}

.navigation-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 400px;
}

.navigation-container label {
    list-style: none;
    font-weight: bold;
    padding-right: 0px;
}

.navigation-container ul {
    padding: 15px;
    margin-top: 0;
}

.navigation-container a {
    color: white;
    text-decoration: none;
}

.navigation-container a:hover {
    opacity: .8;
}

footer p {
    position: absolute;
    right: 80px;
    bottom: 10px;
}

footer li a,
footer p a {
    color: white;
    text-decoration: none;
}

footer li a:hover,
footer p a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}



@media (max-width: 880px) {
    footer {
        flex-direction: column;
        flex-wrap: wrap;
        height: fit-content;
        justify-content: center;
        padding-bottom: 170px;
    }

    .navigation-container {
        flex-direction: column;
        flex-wrap: wrap;
        height: fit-content;
        justify-content: flex-start;
        align-items: flex-start;
    }

    footer p {
        right: 40px;
    }
}