/* Home messages */

#home-messages {
    padding-bottom: 25px;
    padding-top: 25px;
}

/* Main */

#main-container {
    position: relative;
    overflow: hidden;
}

#main-container::before {
    content: '';
    position: fixed;
    left: 0;
    bottom: 16rem;
    width: 100vw;
    height: 100vh;
    aspect-ratio: 13/5;
    background-image: url('/img/art/bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    opacity: 0.25;
    z-index: -1;
}

.home-title,
.cards-container {
    margin: 7rem 8rem;
}

.home-title {
    width: 75%;
    font-size: 48px;
    color: var(--darkgreen);
    line-height: 1.2;
}

/* Cards */

.cards-container {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    min-height: 250px;
}

.card-landing {
    cursor: pointer;
    width: 350px;
    height: 200px;
    background-color: var(--newgreen);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-out;
}

.card-icon {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-text {
    color: white;
    font-size: 14px;
    line-height: 1.5;
}

/* Cards hover */

.hover-content {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.hover-content span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}

.hover-content a:hover {
    color: var(--lightgreen);
}

.arrow-icon {
    height: 24px;
    width: auto;
}

.card-landing:hover {
    background-color: var(--darkgreen);
    height: 250px;
}

.card-landing:hover .hover-content {
    opacity: 1;
}

section:not(.cards-container) {
    position: relative;
    z-index: 1;
}

/*
==========
MEDIA QUERIES
==========
*/

/* MEDIA QUERIES - HORIZONTAL */

@media (max-width: 1400px) {
    .card-title {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .home-title,
    .cards-container {
        margin: 80px 120px;
    }

    .home-title {
        font-size: 40px;
    }

    .card-icon {
        height: 40px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    #main-container::before {
        background-image: none;
    }

    #bg-mobile {
        position: relative;
        min-height: 250px;
        width: 100vw;
    }

    #bg-mobile::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: -32px;
        width: 100vw;
        height: 100vh;
        background-image: url('/img/art/bg-mobile.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom center;
        opacity: 1;
        pointer-events: none;
    }

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

    .home-title,
    .cards-container {
        margin: 64px 16px;
    }

    .home-title {
        width: 90%;
    }

    .cards-container {
        position: relative;
        flex-direction: column;
        align-items: center;
    }

    .card-landing {
        width: calc(100% - 32px);
        max-width: 80%;
    }

    .card-icon {
        width: 64px;
        height: auto;
    }

    .card-title {
        font-size: 20px;
    }

    .card-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {}

@media (max-width: 576px) {
    .home-title {
        font-size: 24px;
    }

    .card-icon {
        width: 40px;
    }

    .card-title {
        font-size: 22px;
    }

    .card-text {
        text-align: left;
        font-size: 12px;
    }

    .card-landing:hover {
        height: 230px;
    }
}

/* MEDIA QUERIES - VERTICAL */

@media (max-height: 950px) {
    .home-title {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .cards-container {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .home-title {
        font-size: 40px;
    }
}

@media (max-height: 800px) {
    .home-title {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .cards-container {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .home-title {
        font-size: 32px;
    }
}

@media (max-height: 750px) {
    .home-title {
        margin-top: 8px;
        margin-bottom: 32px;
    }

    .cards-container {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-text {
        font-size: 12px;
    }

    .home-title {
        font-size: 24px;
    }
}

@media (max-height: 700px) {
    .home-title {
        margin-bottom: 32px;
        font-size: 24px;
    }

    .card-icon {
        width: 32px;
        height: auto;
    }

    .card-title {
        font-size: 14px;
    }

    .card-text {
        font-size: 12px;
    }
}
