.about-bg-box {
  margin: 0;
  width: 100%;
  height: 100svh;
  background-color: #141E46;
  padding: 0.1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.first-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: bottom;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
}

.about-header {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-top: 6rem;
  gap: 0;
}

.about-header h2 {
  font-size: 4rem; 
  font-weight: 500;
  color: #ffffffcc;
  margin: 10px;
  font-family: 'Montserrat Alternates';
  font-weight: 600;
}

.about-header h1 {
  font-size: 6rem;
  font-weight: 700;
  color: #ffffffcc;
  margin: 0 0 10px 0;
  font-family: 'Montserrat Alternates';
}

.white-line {
  height: 1px;
  width: 450px;
  background-color: white;
  border: none;
  margin-top: 5rem;
  align-items: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
  margin: 5px 0 0 0;
}

.description {
  flex: 1;
  min-width: 260px;
  max-width: 550px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #f0f0f0;
  padding: 0.5rem;
  margin: 0;
}

.what-we-do {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0f0f0;
  font-family: 'Montserrat Alternates';
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  font-family: 'Afacad';
  color: #f0f0f0;
  width: 100%;
  max-width: 1100px;
}

.card {
  font-size: 22px;
  background-color: #141E46;
  padding: 1.5rem;
  border-radius: 12px;
  width: 310px;
  min-height: 220px;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.card p {
  font-size: 16px;
}

.card:hover {
  transform: translateY(-5px);
  background-color: rgba(20, 30, 70, 0.4);
  backdrop-filter: blur(6px);
}


/* 💎 4K & ULTRA-WIDE (≥1920px) */
@media (min-width: 1920px) {
  .about-bg-box {
    padding: 4rem 6rem;
  }

  .about-header h2 {
    font-size: 5rem;
  }

  .about-header h1 {
    font-size: 8rem;
  }

  .description {
    font-size: 1.3rem;
    max-width: 700px;
  }

  .card {
    width: 350px;
    min-height: 250px;
    font-size: 24px;
  }

  .card p {
    font-size: 18px;
  }
}

/* 💻 DESKTOP / LARGE LAPTOP (≥1200px and ≤1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
  .about-header h2 {
    font-size: 4.5rem;
  }

  .about-header h1 {
    font-size: 6.5rem;
  }

  .description {
    font-size: 1.15rem;
  }

  .card {
    width: 320px;
    min-height: 230px;
  }
}

/* 📱 TABLET (≤992px) */
@media (max-width: 992px) {
  .about-bg-box {
    height: auto; 
    padding: 3rem 2rem;
  }

  .first-line {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-header {
    padding-top: 3rem;
    align-items: center;
  }

  .about-header h2 {
    font-size: 3.5rem;
  }

  .about-header h1 {
    font-size: 5rem;
  }

  .white-line {
    width: 60%;
  }

  .description {
    font-size: 1rem;
    max-width: 600px;
    text-align: center;
    margin-top: 1rem;
  }

  .card-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .card {
    width: 45%;
    min-width: 260px;
    font-size: 20px;
  }

  .card p {
    font-size: 15px;
  }
}

/* 📱 MOBILE (≤600px) */
@media (max-width: 600px) {
  .about-bg-box {
    padding: 2.5rem 1rem;
    height: auto;
  }

  .about-header {
    padding-top: 2rem;
  }

  .about-header h2 {
    font-size: 2.5rem;
  }

  .about-header h1 {
    font-size: 3.8rem;
  }

  .white-line {
    width: 70%;
  }

  .what-we-do {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .description {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    padding: 0.5rem;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card {
    width: 90%;
    min-width: 260px;
    font-size: 18px;
    padding: 1.2rem;
  }

  .card p {
    font-size: 14px;
  }
}

/* 📱 SMALLEST DEVICES (≤400px) */
@media (max-width: 400px) {
  .about-bg-box {
    padding: 2rem 0.8rem;
  }

  .about-header h2 {
    font-size: 2rem;
  }

  .about-header h1 {
    font-size: 3rem;
  }

  .description {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .card {
    width: 95%;
    min-height: 200px;
    font-size: 16px;
  }

  .card p {
    font-size: 13px;
  }

  .what-we-do {
    font-size: 0.9rem;
  }
}

/* ============================================
   📱 SMALLEST SCREENS 
============================================ */

@media (max-width: 480px) {
  .about-bg-box {
    padding: 1.8rem 1rem;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
  }

  .first-line {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    width: 100%;
  }

  .about-header {
    padding-top: 2rem;
  }

  .about-header h2 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
  }

  .about-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }

  .white-line {
    width: 60%;
    margin: 0.5rem auto;
  }

  .what-we-do {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .description {
    order: 3;
    max-width: 95%;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
    margin: 1rem auto;
    color: #f0f0f0;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    width: 100%;
  }

  .card {
    width: 90%;
    max-width: 360px;
    min-height: 200px;
    font-size: 17px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* 📱 MICRO-SCREENS (≤380px) */
@media (max-width: 380px) {
  .about-header h2 {
    font-size: 1.8rem;
  }

  .about-header h1 {
    font-size: 2.6rem;
  }

  .description {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .card {
    width: 95%;
    min-height: 180px;
    font-size: 16px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.85rem;
  }
}
