@import './index.css';

.download-section {
    padding: 6.25rem 7.5rem;
    background-color: var(--accent-color-secondary);
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.download-section h1 {
    font-family: var(--text-primary);
    text-align: center;
    font-weight: 600;
    color: var(--text-color-light);
    font-size: 3.5rem;
    line-height: 60px;
    flex-basis: 30%;
}

.cta-container {
    display: flex;
    flex-basis: 70%;
    border-radius: 20px;
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.60);
    box-shadow: 4px 4px 25px 0px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(32px);
    padding: 2.5rem 4rem 2.5rem 0;
}

.mockup {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.mockup img {
    max-width: 560px;
    position: absolute;
    top: -100%;
    right: -50%;
}

.button-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.button-container button {
    display: flex;
    border: 2px solid var(--accent-color-primary);
    color: var(--accent-color-primary);
    font-weight: 600;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.button-container div {
    display: flex;
    gap: .5rem;
}

.button-container .arrow {
    opacity: 0;
    height: 1rem;
    width: auto;
    transition: .1s ease-in;
}

.button-container button:hover .arrow {
    opacity: 1;
}

.button-container img {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 1134.98px) {
    .download-section {
        padding: 10rem 4rem 4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .download-section h1 {
        flex-basis: 20%;
        font-size: 4rem;
    }

    .cta-container {
        flex-direction: column;
        padding: 2rem;
        max-width: 500px;
        flex-basis: 100%;
    }

    .mockup img {
        position: unset;
        margin: -40% auto 0px;
        max-width: 400px;
    }
}

@media (max-width: 1004.98px) {
    .download-section {
        padding: 4rem;
    }

    .download-section h1 {
        margin-bottom: 6rem;
        line-height: 4rem;
    }
}

@media (max-width: 768px) {
    .download-section {
        padding: 3rem 1rem;
        flex-direction: column;
        gap: 2rem;
    }

    .download-section h1 {
        width: 60%;
    }

    .cta-container {
        padding: 1.5rem;
    }

    .mockup img {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .download-section h1 {
        font-size: 3rem;
        width: 100%;
        margin-bottom: 50px;
    }

    .cta-container {
        padding: 1rem;
    }

    .mockup img {
        max-width: 275px;
    }
}