html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
    
}

.logo {
    animation: slideIn 1s ease forwards;
    opacity: 0;
    animation-delay: 0s;
    z-index: 10;
    margin-bottom: 2rem;
}

.logo img {
    width: 256px;
    height: auto;

}

#hero {
    height: 100vh;
    padding-inline: 10vw;
    background: linear-gradient(135deg, #171717 0%, #1c232d 30%, #374162 50%, #aa6f8f 70%, #e7b2ba 90%, #fffdfe 100%);
    background-size: 150% 150%;
    animation: gradientAnimation 8s ease infinite;
    color: #fff;
    display: flex;
    gap: 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero-title {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0;
}

.hero-action {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.5s;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background: #FF6F61;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    cursor: pointer;
    max-width: fit-content;
}

.button:hover {
    background: #ff4b3a;
}

.button.disabled {
    background: #ccc;
    cursor: not-allowed;
}

#portfolio {
    padding-block: 10vh;
    padding-inline: 10vw;
    min-height: 100vh;
    box-sizing: border-box;
    --color: #232525;
    background-color: #191a1a;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, transparent 26%, transparent 74%, var(--color) 75%, transparent 76%, transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, transparent 26%, transparent 74%, var(--color) 75%, transparent 76%, transparent);
    background-size: 50px 50px;
}

.cards {
    display: flex;
    flex-direction: row;
    gap: 10vh;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
}


.card {
    position: relative;
    height: 80vh;
    aspect-ratio: 9 / 16;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.2s linear;
}

.card-content {
    position: absolute;
    bottom: 0;
    opacity: 0;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    transition: all 0.2s linear;
}

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

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

.card:hover .card-image {
    filter: brightness(0.5);
}

.card_title {
    margin: 0;
    font-size: 20px;
    color: #f1f1f1;
    font-weight: 700;
}

.card-description {
    margin: 10px 0 20px;
    font-size: 12px;
    color: #f1f1f1;
    line-height: 1.4;
}

#footer {
    font-size: 0.9em;
    color: #ccc;
    background-color: #161616;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 4rem;
    padding-inline: 4rem;
    justify-content: space-between;
}

.legal {
    font-size: 0.8em;
    text-align: left;
}

#app-landing-page {
    background: linear-gradient(135deg, #af0041 0%, #af00a4 100%);
    height: 100vh;
    width: 100vw;
}

#app-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 128px;
    height: auto;
    margin-bottom: 2rem;
} 

#app-logo img {
    width: 100%;
    height: auto;

}

#main-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    padding: 2rem;
    background-color: #ffd8f3;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    min-width: fit-content;
    max-width: calc(100vw);
    box-shadow: 0px 0px 20px #0000002f;
    overflow: auto;
}

#app-description {
    font-weight: normal;
}

#store-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.store-link {
    width: 256px;
    height: auto;
    display: block;
}

.store-link img {
    width: 100%;
    height: auto;
}

.web-link {
    width: 256px;
    height: 80px;
    border-radius: 8px;
    background-color: #000000; 
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.2em;
}

#socials {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-link img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 0px 5px #00000033);
}

.link {
    scale: 1;
    transition: all 0.2s ease;
}

.link:hover {
    scale: 1.03;
}

@media (max-width: 900px) {
    .cards {
        flex-direction: column;
    }
    
    #footer {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .legal {
        text-align: left;
    }

    #main-card {
        flex-direction: column;
        transform: translateX(-50%);
        height: min-content;
        position: relative;
        margin-top: 6rem;
    }

    #app-landing-page {
        background-size: cover;
        height: auto;
        min-height: 100vh;
        padding: 1rem;
        width: auto;
    }

    #app-description p {
        margin-top: 0;
    }

    #app-logo {
        width: 160px;
    }

    #socials {
        top: 2rem;
        bottom: unset;
    }
}
