/* ===========================================================
   GOOGLE FONTS
   =========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Unbounded:wght@600&display=swap");

/* ===========================================================
   VARIABLES
   =========================================================== */
:root {
  --first-color: hsl(265, 75%, 48%);
  --second-color: hsl(18, 88%, 58%);
  --title-color: hsl(220, 20%, 8%);
  --text-color: hsl(220, 8%, 35%);
  --white-color: #fff;

  --glass-light: rgba(255, 255, 255, 0.50);
  --glass-strong: rgba(255, 255, 255, 0.60);

  --body-color: rgba(255, 255, 255, 0.20);
  --container-color: var(--glass-light);

  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
}

/* ===========================================================
   GLOBAL
   =========================================================== */
body {
  margin: 0;
  background: var(--body-color);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--body-font);
  overflow-x: hidden;
}

/* ===========================================================
   PAGE WRAPPER
   =========================================================== */
.credits-page {
  max-width: 1100px;
  margin: 6rem auto 4rem;
  padding: 0 2rem 3rem;
}

/* ===========================================================
   HERO
   =========================================================== */
.credits-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.25);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.credits-title {
  font-family: var(--second-font);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--title-color);
  margin-bottom: .5rem;
}

.credits-subtitle {
  font-size: clamp(.85rem, 1.8vw, .95rem);
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.45;
}

/* ===========================================================
   GRID
   =========================================================== */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
  margin-bottom: 2.5rem;
}

/* ===========================================================
   GLASS CARD — MORE TRANSPARENT
   =========================================================== */
.credits-card {
  background: rgba(255, 255, 255, 0.28);    /* more transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 1rem;
  padding: 1.6rem 1.8rem;

  border: 1px solid rgba(255, 255, 255, 0.40);  /* softer border */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);

  transition: 0.35s ease;
  position: relative;
}

/* Hover effect = still glass but clearer */
.credits-card:hover {
  background: rgba(255, 255, 255, 0.38);      /* slightly less transparent on hover */
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
  border-color: var(--first-color);
}

/* Light glossy highlight */
.credits-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(76,0,153,0.15),
    transparent 60%
  );
  opacity: 0;
  transition: .25s ease;
}

.credits-card:hover::before {
  opacity: 1;
}


/* ===========================================================
   CARD CONTENT
   =========================================================== */
.credits-card-title {
  font-family: var(--second-font);
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
}

.credits-text {
  font-size: clamp(.85rem, 1.8vw, .9rem);
  color: var(--text-color);
  margin: .35rem 0;
}

/* ===========================================================
   LISTS
   =========================================================== */
.credits-list {
  list-style: none;
  padding: 0;
}

.credits-list li {
  font-size: clamp(.8rem, 1.7vw, .88rem);
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
}

/* ===========================================================
   FOOTER NOTE
   =========================================================== */
.credits-footer-note {
  text-align: center;
  font-size: clamp(.85rem, 1.7vw, .9rem);
  color: var(--text-color);
  max-width: 650px;
  margin: 0 auto;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.30);
  border-radius: 0.8rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 2rem;
}

/* ===========================================================
   SCROLL FADE
   =========================================================== */
.scroll-fade {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(10px);
  transition:
    opacity 1s cubic-bezier(0.25, 1, 0.3, 1),
    transform 1s cubic-bezier(0.25, 1, 0.3, 1),
    filter 1s cubic-bezier(0.25, 1, 0.3, 1);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .30s; }
.delay-3 { transition-delay: .45s; }
.delay-4 { transition-delay: .60s; }
.delay-5 { transition-delay: .75s; }

/* ===========================================================
   RESPONSIVE FIXES
   =========================================================== */

/* Tablets (iPad, Samsung Tab) */
@media (max-width: 900px) {
  .credits-page {
    margin-top: 5.5rem;
  }
}

/* Phones (Android + iPhone) */
@media (max-width: 600px) {
  .credits-card {
    padding: 1.4rem 1.4rem;
  }
  .credits-hero {
    padding: .8rem 1rem;
  }
}

/* Extra Small Phones (iPhone SE, Android mini) */
@media (max-width: 400px) {
  .credits-card {
    padding: 1.2rem 1.2rem;
  }
}
.credit-badges li {
  margin-bottom: 10px;
}

.credit-badges .badge {
  display: inline-block;
  margin-top: 4px;
  background: rgba(255,255,150,0.15);
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid rgba(255,230,120,0.55);
}