:root{
  --cyan:#00D4FF;
  --pink:#FF006E;
  --orange:#FB5607;
  --bg1:#030712;
  --bg2:#020617;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,system-ui;
  background:radial-gradient(circle at top,var(--bg1),var(--bg2));
  color:#fff;
}

h1,h2,h3{
  font-family:"Space Grotesk",sans-serif;
}

a{text-decoration:none;color:inherit}

.gradient{
  background:linear-gradient(90deg,var(--cyan),var(--pink),var(--orange));
  -webkit-background-clip:text;
  color:transparent;
}

.glass{
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
}

nav{
  position:sticky;
  top:0;
  z-index:50;
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 24px;
}

.nav-links{
  display:flex;
  gap:24px;
}

.nav-links a.active{color:var(--cyan)}

.menu-btn{
  display:none;
  font-size:26px;
  cursor:pointer;
}

@media(max-width:768px){
  .menu-btn{display:block}
  .nav-links{
    display:none;
    flex-direction:column;
    width:100%;
    margin-top:16px;
  }
  .nav-links.show{display:flex}
}

.section{
  max-width:1100px;
  margin:auto;
  padding:80px 24px;
}

.btn{
  display:inline-block;
  padding:14px 32px;
  border-radius:14px;
  background:rgba(0,212,255,.18);
  transition:.3s;
}

.btn:hover{
  background:rgba(0,212,255,.4);
  transform:translateY(-2px);
}

.grid{
  display:grid;
  gap:24px;
}

.card{
  padding:20px;
  transition:.35s;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 25px 60px rgba(0,212,255,.2);
}

.filter-bar button{
  margin-right:10px;
  margin-bottom:10px;
}
/* CONTACT PAGE FIX */
.center {
  text-align: center;
}

.contact-card {
  max-width: 520px;
  margin: 40px auto 0;
  padding: 28px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-family: Inter, sans-serif;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.contact-card textarea {
  min-height: 120px;
  resize: none;
}

.btn.full {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-size: 16px;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 26px 0;
}

.discord-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.discord-tag {
  font-size: 18px;
  color: #5ddcff;
}
.hero {
  min-height: 90vh;
  padding: 100px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(90deg,#00d4ff,#ff006e,#fb5607);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 600px;
  margin: 20px 0 30px;
  color: #ccc;
}

.hero-stats {
  padding: 14px 22px;
  margin-bottom: 30px;
  border-radius: 18px;
}

.games-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
}

.game-card h3 {
  margin-bottom: 6px;
}

.game-card a {
  margin-top: 10px;
  display: inline-block;
  color: #5ddcff;
}

.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  font-size: 13px;
}
.game-card.visual {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
}

.game-card.visual img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.game-info {
  padding: 14px;
}

.game-info h3 {
  margin-bottom: 6px;
  color: #fff;
}

.game-card.visual:hover img {
  transform: scale(1.05);
  transition: 0.3s;
}
/* ============================= */
/* SHOWCASE IMAGE FIX */
/* ============================= */

.card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

/* Image wrapper height */
.card img {
  width: 100%;
  height: 200px;            /* FIXED height */
  object-fit: cover;        /* THIS IS THE KEY */
  display: block;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Title inside card */
.card h3 {
  padding: 14px 16px;
  margin: 0;
  font-size: 1rem;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

/* Glass hover polish */
.card:hover {
  transform: translateY(-6px);
  transition: 0.3s ease;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .card img {
    height: 180px;
  }
}
/* ============================= */
/* FADE-IN ON SCROLL ANIMATIONS */
/* ============================= */

.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect for grids */
.grid .fade {
  transition-delay: 0.1s;
}

/* Slight scale for cards */
.card.fade.show {
  animation: cardPop 0.6s ease forwards;
}

@keyframes cardPop {
  from {
    transform: translateY(30px) scale(0.96);
  }
  to {
    transform: translateY(0) scale(1);
  }
}
/* ============================= */
/* AI CHAT WIDGET */
/* ============================= */

.ai-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #00f2ff, #7c7cff);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 9999;
}

.ai-chat {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 420px;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.ai-chat.show {
  display: flex;
}

.ai-header {
  padding: 14px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-messages {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
}

.ai-msg {
  margin-bottom: 10px;
}

.ai-msg.ai {
  opacity: 0.8;
}

.ai-input {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.ai-input input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  color: white;
}

.ai-input button {
  background: none;
  border: none;
  color: #00f2ff;
  padding: 12px;
  cursor: pointer;
}
/* ============================= */
/* SUCCESS POPUP */
/* ============================= */

.form-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

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

.popup-box {
  max-width: 420px;
  padding: 36px;
  text-align: center;
  animation: successPop 0.45s ease;
}

@keyframes successPop {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.checkmark {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6cf,#9f6);
  color: #000;
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popCheck 0.5s ease;
}

@keyframes popCheck {
  0% { transform: scale(0); }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.discord-copy-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

#copy-discord {
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
}

.copy-msg {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #6cf;
  color: #000;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-msg.show {
  opacity: 1;
}
/* ============================= */
/* ABOUT PAGE – FINAL FIX */
/* ============================= */

/* Grid fix */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: stretch;
}

/* Card fix */
.about-grid .card {
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Headings */
.about-grid h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* Paragraph spacing */
.about-grid p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: #cfcfcf;
}

/* LIST RESET (THIS IS A BIG ISSUE) */
.about-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* List items clean alignment */
.about-grid li {
  padding-left: 18px;
  margin-bottom: 10px;
  position: relative;
  color: #cfcfcf;
  line-height: 1.6;
}

/* Custom bullet (professional look) */
.about-grid li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6aa9ff;
  font-size: 18px;
}

/* Center CTA section */
.section.center {
  text-align: center;
  max-width: 700px;
  margin: auto;
}

/* Mobile spacing fix */
@media (max-width: 600px) {
  .about-grid .card {
    padding: 24px;
  }
}
/* ============================= */
/* SHOWCASE IMAGE FIX (GLOBAL) */
/* ============================= */

/* Ensure cards behave correctly */
.card.item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
}

/* Target ONLY image cards (buildings + models) */
.card.item img {
  width: 100%;
  height: 200px;
  object-fit: contain;   /* 🔥 THIS STOPS CROPPING */
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: block;
}

/* Titles stay clean */
.card.item h3 {
  margin: 0;
  font-size: 14px;
  text-align: center;
  opacity: 0.9;
}

/* Do NOT affect animations or scripts */
.card.item iframe {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  border: none;
}

/* ============================= */
/* RESPONSIVE FIX */
/* ============================= */

@media (max-width: 768px) {
  .card.item img,
  .card.item iframe {
    height: 160px;
  }
}
.form-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
  z-index: 999;
}

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

.popup-content {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}
/* ============================= */
/* SUCCESS POPUP OVERLAY */
/* ============================= */
.form-popup {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

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

/* ============================= */
/* POPUP CARD */
/* ============================= */
.popup-content {
  background: linear-gradient(
    145deg,
    rgba(20, 25, 40, 0.95),
    rgba(10, 12, 22, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  padding: 42px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;

  transform: scale(0.9) translateY(20px);
  animation: popupIn 0.55s cubic-bezier(.2,.8,.2,1) forwards;
}

/* ============================= */
/* TITLE */
/* ============================= */
.popup-content h3 {
  font-size: 26px;
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================= */
/* MESSAGE */
/* ============================= */
.popup-content p {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================= */
/* SUCCESS ICON */
/* ============================= */
.popup-content::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #4ade80, #16a34a);
  color: #052e16;
  font-size: 34px;
  font-weight: bold;

  box-shadow:
    0 0 0 0 rgba(74, 222, 128, 0.6),
    0 0 40px rgba(34, 197, 94, 0.45);

  animation: successPulse 1.2s ease-out infinite;
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */
@keyframes popupIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes successPulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(74, 222, 128, 0.5),
      0 0 30px rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow:
      0 0 0 18px rgba(74, 222, 128, 0),
      0 0 55px rgba(34, 197, 94, 0.6);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(74, 222, 128, 0),
      0 0 35px rgba(34, 197, 94, 0.4);
  }
}
/* ============================= */
/* CONFETTI EMOJI EFFECT */
/* ============================= */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti span {
  position: absolute;
  font-size: 22px;
  animation: confetti-fall 2.8s ease-out forwards;
  opacity: 0;
}

/* ============================= */
/* CONFETTI ANIMATION */
/* ============================= */
@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform:
      translate(var(--x), var(--y))
      rotate(var(--r))
      scale(1);
    opacity: 0;
  }
}