@font-face {
    font-family: 'Open Sans';
    src: url("fonts/OpenSans/OpenSans-Regular.woff2") format("woff2"),
    url("fonts/OpenSans/OpenSans-Regular.woff") format("woff"),
    url("fonts/OpenSans/OpenSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url("fonts/Poppins/Poppins-SemiBold.woff2") format("woff2"),
    url("fonts/Poppins/Poppins-SemiBold.woff") format("woff"),
    url("fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

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

:root {
    --primary-violet: hsl(257, 40%, 49%);
    --primary-magenta: hsl(300, 69%, 71%);
}

html {
    font-size: 62.5%;
}

body {
    min-height: 100vh;
    background: url("images/bg-mobile.svg") var(--primary-violet) no-repeat;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
}

.link {
    text-decoration: none;
}

.page {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.header__logo {
    width: 14rem;
}

.hero__photo {
    width: 100%;
    height: auto;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 6rem;
    text-align: center;
}

.hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: capitalize;
}

.hero__description {
    line-height: 1.5;
}

.hero__cta {
    width: 80%;
    align-self: center;
    background-color: #ffffff;
    color: var(--primary-violet);
    padding: 1.25rem;
    border-radius: 50px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.hero__cta:active {
    background-color: var(--primary-magenta);
    color: #ffffff;
}

.socials {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.socials__item svg {
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    padding: 0.5rem;
    transition: all 0.3s;
}

.socials__item svg:active {
    color: var(--primary-magenta);
    border-color: var(--primary-magenta);
}

@media only screen and (min-width: 37.5em) {
    body {
        background: url("images/bg-desktop.svg") var(--primary-violet) no-repeat;
        background-size: cover;
    }

    .page {
        max-width: 60rem;
        margin: 0 auto;
    }
}

@media only screen and (min-width: 62em) {
    .page {
        max-width: 140rem;
        padding: 4rem 6rem;
        gap: 4rem;
    }

    .hero {
        display: flex;
        align-items: center;
        gap: 4rem;
    }

    .hero__photo {
        width: 50%;
        flex: 1 1 0;
    }

    .hero__text {
        margin-top: 0;
        flex: 1 1 0;
        text-align: left;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__cta {
        align-self: flex-start;
        width: auto;
        padding: 1.25rem 5rem;
    }

    .socials {
        justify-content: flex-end;
    }

    .socials__item svg {
        width: 4rem;
        height: 4rem;
        padding: 0.75rem;
    }

}

@media (hover:hover) and (pointer:fine) {
       .hero__cta:hover {
        background-color: var(--primary-magenta);
        color: #ffffff;
    }
    
    .socials__item svg:hover {
        color: var(--primary-magenta);
        border-color: var(--primary-magenta);
    }
}
