/* ============================= */
/* DR1057 ACHIEVEMENTS SECTION   */
/* ============================= */

.dr1057achievements {
  position: relative;
  padding: 60px 20px;
  background: radial-gradient(circle at top, #0a0f1f, #05070f);
  color: #fff;
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
}

/* container */
.dr1057-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* title */
.dr1057-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, gold, #fff, gold);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dr1057-subtitle {
  color: #aaa;
  margin-bottom: 40px;
}

/* ============================= */
/* GRID LAYOUT (FIXED CENTERING) */
/* ============================= */

.dr1057-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 25px;
  justify-content: center;   /* ✅ centers grid */
  align-items: start;
}

/* cards */
.dr1057-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  margin: 0 auto; /* ✅ ensures centering */
  width: 100%;
  max-width: 320px;
}

/* glossy highlight */
.dr1057-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

/* hover 3D effect */
.dr1057-card:hover {
  transform: rotateX(6deg) rotateY(-6deg) scale(1.03);
  box-shadow: 0 20px 50px rgba(255,215,0,0.2);
}

.dr1057-card:hover::before {
  opacity: 1;
}

/* headings */
.dr1057-card h3 {
  color: gold;
  margin-bottom: 15px;
}

/* list */
.dr1057-card ul {
  text-align: left;
  padding-left: 18px;
}

.dr1057-card li {
  margin-bottom: 8px;
  color: #ddd;
  font-size: 0.95rem;
}

/* ============================= */
/* SCROLL ANIMATION              */
/* ============================= */

.dr1057-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.dr1057-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================= */
/* PARTICLES BACKGROUND         */
/* ============================= */

.dr1057-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dr1057-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: gold;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0.6;
}

@keyframes floatUp {
  from {
    transform: translateY(100vh);
    opacity: 0;
  }
  to {
    transform: translateY(-10vh);
    opacity: 1;
  }
}

/* ============================= */
/* RESPONSIVE                   */
/* ============================= */

@media (max-width: 1024px) {
  .dr1057-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 600px) {
  .dr1057-title {
    font-size: 1.8rem;
  }

  .dr1057-grid {
    grid-template-columns: 1fr;
    justify-items: center; /* ✅ key fix for mobile centering */
  }

  .dr1057-card {
    width: 90%;
    max-width: 350px;
  }
}