.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 14rem 2% 4rem;
    box-sizing: border-box;

    background-image: url("../img/homePage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 26, 47, 0.0) 10%,
        rgba(10, 26, 47, 0.60) 40%,
        rgba(10, 26, 47) 98%
    );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
    margin-left: 0;
    max-width: 2600px;
    width: 120%;
}

.headline {
    font-size: 8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--navy-blue);
    max-width: 80%;
}

.sub {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    color: #E5E7EB;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
}

/* Hero main button */
.mainPage-button {
    margin-top: 2em;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

.mainPage-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 60%;
    background: linear-gradient(
        120deg,
        rgba(249, 239, 177, 0.8),
        rgba(102, 68, 40, 0.8)
    );
    transform: skewX(-25deg);
    transition: 0.8s;
}

.mainPage-button:hover::after {
    left: 120%;
}

.mainPage-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Responsive Design */

/* ≤ 2560px: ultra-wide monitors */
@media (max-width: 2560px) {
    .hero {
        padding: 15rem 6% 5rem;
        background-position: center;
    }

    .headline {
        font-size: 6rem;
        
    }

    .hero-content {
        max-width: 1800px;
    }
    /* NOTE: we do NOT shrink font here */
}

/* ≤ 1920px: standard desktops */
@media (max-width: 1920px) {
    .hero {
        padding: 14rem 4% 4rem;
    }

    .headline {
        font-size: 4.5rem;
    }

    .sub {
        font-size: 2rem;
    }

    .hero-content {
        max-width: 1400px;
        width: 100%;
        padding-left: 0;
    }
    /* still no font shrink */
}

/* ≤ 1200px: laptops */
@media (max-width: 1200px) {
    .hero {
        padding: 12rem 4% 3rem;
    }

    .headline {
        font-size: 3.5rem;
        line-height: 1;
        margin-bottom: 2.5rem;
    }

    .sub {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }

    .mainPage-button {
        margin-top: 1em;
    }
}

/* ≤ 992px: large tablets */
@media (max-width: 992px) {
    .hero {
        padding: 14rem 4% 3rem;
    }

    .headline {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        max-width: 90%;
    }

    .sub {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .mainPage-button {
        margin-top: 0.5em;
    }
}

/* ≤ 768px: tablets */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 14rem 2rem 2.5rem;
    }

    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0) 20%,
            rgba(10, 26, 47, 0.60) 60%,
            rgba(10, 26, 47) 98%
        );
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .headline {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .sub {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .mainPage-button {
        font-size: 0.8rem;
        margin-top: 0.5em;
        padding: 0.55rem 1.2rem;
    }
}

/* ≤ 480px: small mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding: 16rem 1.25rem 2rem;
    }

    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(10, 26, 47, 0.60) 60%,
            rgba(10, 26, 47) 100%
        );
    }

    .hero-content {
        text-align: center;
        padding-left: 0;
        margin: 0 auto;
        width: 100%;
    }

    .hero-actions {
        margin-top: 1.25rem;
        display: flex; 
        justify-content: center; 
        width: 100%;
    }

    .headline {
        font-size: 1.5rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .sub {
        font-size: 1rem;
        margin-bottom:2rem;
    }

    .mainPage-button {
        font-size: 0.8rem;
        padding: 0.55rem 1.2rem;
        text-align: center;
        color: var(--off-white);
        background-color: var(--gold-color);
    }

    .mainPage-button::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        height: 100%;
        width: 60%;
        transform: skewX(-25deg);
        transition: 0.8s;
    }

    .mainPage-button:hover {
        transform: translateY(-2px);
    }

}


@media (max-width: 414px) {

}

@media (max-width: 390px) {

}


@media (max-width: 375px) {

}


