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

:root {
    --dark-blue: hsl(233, 26%, 24%);
    --lime-green: hsl(136, 65%, 51%);
    --bright-cyan: hsl(192, 70%, 51%);
    --grayish-blue: hsl(233, 8%, 62%);
    --light-grayish-blue: hsl(220, 16%, 96%);
    --very-light-gray: hsl(0, 0%, 98%);
    --white: hsl(0, 0%, 100%);
}

body {
    font-family: "Segoe UI", sans-serif;
    background: var(--white);
    color: var(--dark-blue);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: var(--white);
    position: relative;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    display: block;
    height: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--grayish-blue);
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--dark-blue);
}

.btn-request {
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg,
            var(--lime-green),
            var(--bright-cyan));
}

.hamburger {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.attribution {
    display: none;
}

.hero {
    background: var(--very-light-gray);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 700px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    color: var(--grayish-blue);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 700px;
    max-width: none;
}

.hero-image {
    position: relative;
}

.hero-bg {
    position: absolute;
    top: -420px;
    right: -420px;
    width: 1200px;
    height: 1200px;
    background: url("./images/bg-intro-desktop.svg") no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.hero-image img {
    position: relative;
    z-index: 2;
    transform: translateY(-80px);
}

.features {
    background: #f4f5f7;
    padding: 100px 0;
}

.features-intro {
    max-width: 600px;
    margin-bottom: 70px;
}

.features-intro h2 {
    font-size: 2.2rem;
    color: #2d314d;
    margin-bottom: 20px;
}

.features-intro p {
    color: #9698a6;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.feature-card img {
    margin-bottom: 30px;
}

.feature-card h3 {
    color: #2d314d;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #9698a6;
    line-height: 1.8;
}

/* ARTICLES */

.articles {
    background: #f4f5f7;
    padding: 100px 0;
}

.articles h2 {
    font-size: 2.2rem;
    color: hsl(233, 26%, 24%);
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content small {
    color: hsl(233, 8%, 62%);
}

.article-content h3 {
    margin: 15px 0;
    color: hsl(233, 26%, 24%);
    cursor: pointer;
}

.article-content h3:hover {
    color: hsl(136, 65%, 51%);
}

.article-content p {
    color: hsl(233, 8%, 62%);
    line-height: 1.7;
}

/* FOOTER */

.footer {
    background: hsl(233, 26%, 24%);
    padding: 50px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    cursor: pointer;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 15px 80px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: hsl(136, 65%, 51%);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-right p {
    color: hsl(233, 8%, 62%);
}

.feature-card {
    transition: transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card img {
    transition: transform 0.25s ease;
}

.feature-card:hover img {
    transform: scale(1.05);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .nav-menu,
    .btn-request {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
    }

    .hero-text {
        width: 100%;
        padding: 40px 0 70px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        width: 100%;
        overflow: hidden;
    }

    .hero-image img {
        width: 100%;
        max-width: 420px;
        transform: none;
    }

    .hero-bg {
        top: -250px;
        right: -350px;
        width: 900px;
        height: 900px;
    }

    .features-intro,
    .features-intro p {
        text-align: center;
        max-width: 100%;
    }

    .features-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .article-card {
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        align-items: center;
    }

    .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-menu.active {
        display: block;
        position: absolute;
        top: 90px;
        left: 5%;
        width: 90%;
        background: white;
        border-radius: 8px;
        padding: 25px 0;
        box-shadow: 0 20px 50px rgba(45, 49, 77, 0.2);
        z-index: 999;
    }

    .nav-menu.active .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }
}

.nav-links a {
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: hsl(233, 26%, 24%);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -28px;
    width: 0;
    height: 4px;
    background: linear-gradient(to right,
            hsl(136, 65%, 51%),
            hsl(192, 70%, 51%));
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links a::after {
        bottom: -8px;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .nav-menu.active .nav-links a {
        color: hsl(233, 26%, 24%);
        padding-bottom: 6px;
    }

    .nav-menu.active .nav-links a:hover,
    .nav-menu.active .nav-links a:active,
    .nav-menu.active .nav-links a:focus {
        color: hsl(136, 65%, 51%);
    }

    .nav-menu.active .nav-links a::after {
        bottom: 0;
    }
}