/* PAGE BACKGROUND + PALETTE */
body {
  background: #05060f;
  font-family: "Poppins", sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 0 0 0;
  opacity: 0;
  animation: fadeInPage 1.2s ease forwards;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Remove negative padding (invalid) */
.title-main,
.title,
.title-wrapper {
  margin-top: -10px !important;
  padding-top: 0 !important;
}

/* MAIN CONTAINER */
.simple-page {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes fadeInPage {
  to { opacity: 1; }
}

/* TITLE */
.title-main {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #b39a84;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* CARDS */
.cards-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.card {
  background: #0c0d18;
  border: 1px solid #a85a45;
  border-radius: 14px;
  width: 260px;
  max-width: 90vw; /* prevents breaking layout */
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.4);
}

/* IMAGE */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #b39a84;
}

/* TEXT */
.card-text {
  margin-top: 12px;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* STARS (unchanged) */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-repeat: repeat;
  z-index: -1;
  pointer-events: none;
}

/* RESPONSIVE FIXES */
@media (max-width: 1024px) {
  .cards-container { gap: 30px; }
  .card { width: 240px; }
}

@media (max-width: 600px) {
  .cards-container {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 25px !important;
  }
    .card {
    width: 100% !important;
    max-width: 350px !important;
  }
}

@media (max-width: 600px) {
  .simple-page { width: 95%; }
  .cards-container { gap: 20px; }
  .card { width: 90%; }
}

@media (max-width: 400px) {
  body { padding-top: 30px; }
  .title-main { font-size: 1.7rem; }
  .card { width: 95%; }
}

/* FORCE PAGE TO FIT WITHOUT SCROLLBAR */
html, body {
  height: 100%;
  overflow-y: hidden;   /* no global scrolling */
  margin: 0;
  padding: 0;
}

/* Cards scroll internally ONLY if needed */
.cards-container {
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-bottom: 40px;
}

.cards-container::-webkit-scrollbar {
  display: none;
}
/* ===================== */
/*   MOBILE OPTIMIZATION */
/* ===================== */

/* Tablet */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .parent {
    width: 350px;
    height: auto;
  }

  .content {
    padding: 80px 40px 20px 20px;
  }
}

/* Phone */
@media (max-width: 480px) {
  /* Prevent sideways scrolling */
  html, body {
    overflow-x: hidden;
  }

  /* Card resizing */
  .parent {
    width: 92%;
    height: auto; /* card grows with text */
  }

  /* Reduce 3D animation on phones (smooth & faster) */
  .parent:hover .card {
    transform: none;
  }

  /* Content spacing */
  .content {
    padding: 60px 20px 20px 20px;
  }

  .content .title {
    font-size: 18px;
  }

  .content .text {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
  }

  /* Smaller circles for the logo */
  .logo .circle1 { width: 120px; }
  .logo .circle2 { width: 100px; }
  .logo .circle3 { width: 80px; }
  .logo .circle4 { width: 60px; }
  .logo .circle5 { width: 40px; }

  /* Reduce star animation for performance */
  .stars, .stars2, .stars3 {
    opacity: 0.3;
    animation-duration: 200s;
  }
}
/* STAR BACKGROUND (same as working page) */
.stars, .stars2, .stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  pointer-events: none;
  z-index: -1;
}

.stars {
  opacity: 0.7;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  animation: moveStars 150s linear infinite;
}

.stars2 {
  opacity: 0.45;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  animation: moveStars 210s linear infinite;
}

.stars3 {
  opacity: 0.2;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  animation: moveStars 270s linear infinite;
}

@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: 2000px 2000px; }
}
