/* ── YumoLabs Games Portal Stylesheet ────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #f5f7fb;
  --bg-card: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.45);
  --border-glass-hover: rgba(255, 255, 255, 0.75);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  
  /* Brand Gradients */
  --c-blue: #2f69fc;
  --c-purple: #7d26fa;
  --c-pink: #f02bc2;
  --grad-primary: linear-gradient(135deg, var(--c-blue) 0%, var(--c-purple) 50%, var(--c-pink) 100%);
  --grad-dark: radial-gradient(circle at 50% 0%, #e2e8f0 0%, var(--bg-dark) 70%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: var(--grad-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Decorative Background Glows ────────────────────────────────────────── */
.glow-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}
.blob-blue {
  background: var(--c-blue);
  top: 10%;
  left: -100px;
}
.blob-pink {
  background: var(--c-pink);
  bottom: 20%;
  right: -100px;
}
.blob-purple {
  background: var(--c-purple);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

/* ── Header / Navigation ────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 251, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(47, 105, 252, 0.15);
}

.header-cta {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(125, 38, 250, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 38, 250, 0.6);
}

.header-cta:active {
  transform: translateY(1px);
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(125, 38, 250, 0.15);
  border: 1px solid rgba(125, 38, 250, 0.3);
  color: #c99cff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(125, 38, 250, 0.1);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 38px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(125, 38, 250, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(125, 38, 250, 0.6);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: 30px;
  padding: 14px 38px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* ── Games Section ───────────────────────────────────────────────────────── */
.games-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 16px;
}

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

/* ── Game Card ── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(47, 105, 252, 0.3), rgba(240, 43, 194, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(125, 38, 250, 0.25);
}

.game-card:hover::after {
  opacity: 1;
}

.card-img-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #0f1015;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .card-img-container img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-live {
  border-color: rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}

.badge-live::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 1.5s infinite;
}

.badge-upcoming {
  border-color: rgba(241, 196, 15, 0.4);
  color: #f1c40f;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.card-tags {
  display: flex;
  gap: 8px;
}

.card-tag {
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-action {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.game-card:hover .card-action {
  color: var(--c-pink);
  transform: translateX(4px);
}

/* ── About Section ───────────────────────────────────────────────────────── */
.about-section {
  background: rgba(255, 255, 255, 0.2);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  padding: 90px 24px;
  position: relative;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-icon {
  font-size: 24px;
}

.tech-item h4 {
  font-weight: 600;
  font-size: 16px;
}

.tech-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.4;
}

.about-graphics {
  display: flex;
  justify-content: center;
  position: relative;
}

.logo-3d-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-3d-wrapper img {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.about-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--grad-primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: -1;
  animation: float 6s ease-in-out infinite;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  padding: 60px 24px 40px;
  background: #040508;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  width: 100%;
  color: #555c66;
}

/* ── Responsive breakpoints ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero {
    padding: 60px 24px 40px;
  }
}
