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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0e0f12;
  color: #e5e7eb;
  line-height: 1.6;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2933;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- LOGO ---------- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: #e5e7eb;
}

.nav-logo-img {
  width: 26px;
  height: 26px;
}

/* ---------- NAV LINKS ---------- */
.nav-links a {
  margin-left: 24px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #5eead4;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-subtext {
  margin-top: 18px;
  color: #9ca3af;
  max-width: 650px;
}

.hero-actions {
  margin-top: 30px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  margin-right: 10px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn.primary {
  background: #5eead4;
  color: #0e0f12;
}

.btn.primary:hover {
  opacity: 0.9;
}

.btn.secondary {
  border: 1px solid #1f2933;
  color: #e5e7eb;
}

.btn.secondary:hover {
  color: #5eead4;
  border-color: #5eead4;
}

/* ---------- PLATFORM BRAND COLORS (DO NOT TOUCH) ---------- */
.btn.modrinth:hover,
.footer a.modrinth:hover {
  color: #1bca64;
  border-color: #1bca64;
  box-shadow: 0 0 0 2px rgba(27, 202, 100, 0.15);
}

.btn.curseforge:hover,
.footer a.curseforge:hover {
  color: #f16436;
  border-color: #f16436;
  box-shadow: 0 0 0 2px rgba(241, 100, 54, 0.15);
}

.btn.github:hover,
.footer a.github:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.btn.youtube:hover,
.footer a.youtube:hover {
  color: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.15);
}

/* ---------- CREATIONS ---------- */
.creations {
  padding: 80px 20px;
}

.creations-inner {
  max-width: 1100px;
  margin: auto;
}

.creations h2 {
  font-size: 1.6rem;
  margin-bottom: 36px;
}

/* HARD LINK RESET */
.creations a,
.creations a:visited,
.creations a:hover,
.creations a:active,
.creations a:focus {
  color: inherit !important;
  text-decoration: none !important;
  outline: none;
}

.creations a::before,
.creations a::after {
  content: none !important;
}

/* GRID */
.creation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARD */
.creation-card {
  background: #15171c;
  border: 1px solid #1f2933;
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.creation-card:hover {
  transform: translateY(-6px);
  border-color: #5eead4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ICON */
.creation-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1f2933;
  margin-bottom: 16px;
}

.creation-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.creation-card p {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ---------- MODAL (ABOUT) ---------- */
.modal {
  display: flex; /* FIXED for animation */
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 300;

  opacity: 0;
  pointer-events: none; /* IMPORTANT */
  transition: opacity 0.45s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #15171c;
  border-radius: 18px;
  padding: 36px 40px;
  max-width: 540px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);

  transform: translateY(24px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(.2,.7,.3,1),
    opacity 0.45s ease;
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* MODAL TEXT */
.modal-content h2 {
  margin-bottom: 16px;
}

.modal-content p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;

  /* 🔥 FIXED SPACING ABOVE DISCORD BUTTON */
  margin-bottom: 34px;
}

/* DISCORD BUTTON */
.discord-btn {
  background: #5865F2;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;

  /* 🔥 EXTRA SAFETY GAP */
  margin-top: 6px;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid #1f2933;
  padding: 24px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  color: #6b7280;
}

.footer a {
  margin-left: 16px;
  color: #9ca3af;
  text-decoration: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .creation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .creation-grid {
    grid-template-columns: 1fr;
  }
}
