* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --soft-pink: hsl(333, 80%, 67%);
    --very-dark-magenta: hsl(300, 43%, 22%);
    /* Neutral Colors */
    --my-white: hsl(0, 0%, 100%);
    --dark-grayish-magenta: hsl(303, 10%, 53%);
    --light-grayish-magenta: hsl(300, 24%, 96%);
}

::selection {
    color: var(--light-grayish-magenta);
    background-color: var(--dark-grayish-magenta);
}

body {
    min-height: 100vh;
    display: flex;
    font-size: 15px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    font-family: "League Spartan", sans-serif;
    background-color: var(--my-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    padding: 80px 20px;
    background: url(images/bg-pattern-top-desktop.svg);
}

.top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.left {
    display: flex;
    flex-direction: column;
    width: 40%;
    gap: 30px;
}

h1 {
    font-size: 50px;
    line-height: 1.1;
    color: var(--very-dark-magenta);
}

.left p {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--dark-grayish-magenta);
}

.right {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar {
    font-size: 16px;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    padding: 15px 25px;
    font-weight: 700;
    color: var(--very-dark-magenta);
    border-radius: 7px;
    background-color: var(--light-grayish-magenta);
}
.bar:first-child,
.bar:last-child {
    justify-content: flex-start;
}
.one {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.two {
    display: flex;
    width: 100%;
    justify-content: center;
}

.three {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.bottom {
    height: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background: url(images/bg-pattern-bottom-desktop.svg);
}

.first,
.second,
.third {
    width: 100%;
    display: flex;
}

.first {
    align-items: flex-start;
}

.second {
    align-items: center;
}

.third {
    align-items: flex-end;
}

.card {
    display: flex;
    height: auto;
    min-height: 270px;
    max-width: 100%;
    flex-direction: column;
    gap: 30px;
    padding: 40px 25px;
    border-radius: 7px;
    background-color: var(--very-dark-magenta);
}

.card .info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.card .text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card .text p:first-of-type {
    font-weight: 700;
    color: var(--my-white);
}

.card .text p:last-of-type {
    font-weight: 400;
    color: var(--soft-pink);
}

.card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.card .para {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--my-white);
}

footer {
    padding: 10px;
    font-size: 16px;
    text-align: center;
    pointer-events: none;
    background-color: transparent;
    color: var(--dark-grayish-magenta);
}
footer span {
    font-weight: 700;
    color: var(--very-dark-magenta);
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 60px 20px;
    }
    h1 {
        font-size: 42px;
    }
    .left p {
        font-size: 16px;
    }
    .bar {
        font-size: 14px;
        padding: 12px 20px;
    }
    .card .para {
        font-size: 15px;
    }
    .bottom {
        gap: 20px;
    }
}

/* Small tablet/large mobile */
@media (max-width: 768px) {
    body {
        min-height: auto;
    }
    
    .container {
        padding: 40px 20px;
        gap: 30px;
        background: url(images/bg-pattern-top-mobile.svg);
    }
    .top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .left {
        width: 100%;
        align-items: center;
    }

    h1 {
        font-size: 36px;
        text-align: center;
    }
    .left p {
        font-size: 16px;
        text-align: center;
        max-width: 500px;
    }
    .right {
        width: 100%;
    }
    .one,
    .two,
    .three {
        justify-content: center;
    }
    .bar {
        width: 100%;
        max-width: 400px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .bottom {
        flex-direction: column;
        height: auto;
        gap: 20px;
        background: url(images/bg-pattern-bottom-mobile.svg);
    }
    .first,
    .second,
    .third {
        align-items: center;
    }
    .card {
        -moz-min-height: auto;
        min-height: auto;
        padding: 30px 20px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 30px 15px;
        background: url(images/bg-pattern-top-mobile.svg);
    }
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .left p {
        font-size: 15px;
    }
    .bar {
        font-size: 13px;
        padding: 15px;
        gap: 10px;
    }
    .card {
        padding: 25px 15px;
        gap: 20px;
    }
    .card .info {
        gap: 15px;
    }
    .card img {
        width: 35px;
        height: 35px;
    }
    .card .para {
        font-size: 14px;
        line-height: 1.5;
    }
    .bottom {
        gap: 15px;
        background: url(images/bg-pattern-bottom-mobile.svg);
    }
}

/* Very small mobile */
@media (max-width: 320px) {
    .container {
        padding: 20px 10px;
    }
    h1 {
        font-size: 24px;
    }
    .left p {
        font-size: 14px;
    }
    .bar {
        font-size: 12px;
        padding: 12px;
    }
    .card {
        padding: 20px 12px;
    }
    .card .para {
        font-size: 13px;
    }
}
