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

body {
    font-family: 'Inter', sans-serif;
    background-color: hsl(233, 47%, 7%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background-color: hsl(244, 38%, 16%);
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    overflow: hidden;
    max-width: 1100px;
}

.card-text {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-text h1 span {
    color: hsl(277, 64%, 61%);
}

.card-text p {
    color: hsla(0, 0%, 100%, 0.75);
    margin-bottom: 40px;
    line-height: 1.6;
}

.stats {
    display: flex;
    gap: 50px;
}

.stats div h2 {
    font-size: 1.5rem;
}

.stats div p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: hsla(0, 0%, 100%, 0.6);
}

.card-image {
    flex: 1;
    background: url('./images/image-header-desktop.jpg') center/cover no-repeat;
    position: relative;
}

.card-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsla(277, 64%, 61%, 0.6);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .card {
        flex-direction: column-reverse;
        text-align: center;
    }

    .card-text {
        padding: 30px 20px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .card-image {
        height: 250px;
        background: url('./images/image-header-mobile.jpg') center/cover no-repeat;
    }

    .card-image::after {
        background-color: hsla(277, 64%, 61%, 0.6);
    }
}