/* ================= VARIABLES ================= */
:root {
  --main-bg: hsl(233, 47%, 7%);
  --card-bg: hsl(244, 37%, 16%);
  --accent: hsl(277, 64%, 61%);

  --white: hsl(0, 0%, 100%);
  --white-75: hsla(0, 0%, 100%, 0.75);
  --white-60: hsla(0, 0%, 100%, 0.6);
}

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

/* ================= BODY ================= */
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background-color: var(--main-bg);
  color: var(--white);

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ================= CARD ================= */
.card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  max-width: 1000px;

  display: flex;
  flex-direction: column;
}

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

/* Overlay violet */
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0.5;
}

/* ================= TEXT ================= */
.card-text {
  padding: 30px;
  text-align: center;
}

.card-text h1 {
  font-weight: 700;
  margin-bottom: 20px;
}

.card-text span {
  color: var(--accent);
}

.card-text p {
  color: var(--white-75);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ================= STATS ================= */
.stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats h2 {
  font-weight: 700;
}

.stats p {
  font-family: 'Lexend Deca', sans-serif;
  color: var(--white-60);
  font-size: 12px;
  text-transform: uppercase;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
  .card {
    flex-direction: row-reverse;
  }

  .card-image {
    background: url('images/image-header-desktop.jpg') center/cover no-repeat;
    width: 50%;
    height: auto;
  }

  .card-text {
    width: 50%;
    text-align: left;
    padding: 50px;
  }

  .stats {
    flex-direction: row;
    justify-content: space-between;
  }
}
@media (max-width: 768px) {
    .container{
        padding: 30px;
    }
  .card {
    flex-direction: column;
  }
 
}