:root {
  --bg-primary: #05060f;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-glow: rgba(147, 51, 234, 0.35);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-magenta: #ec4899;
  --accent-gold: #f59e0b;
  --accent-orange: #f97316;
  --gradient-btn: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    url('Assets/BG4K.png');
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    -webkit-image-set(url('Assets/hero-bg.webp') 1x, url('Assets/BG4K.png') 1x);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    image-set(url('Assets/hero-bg.webp') type('image/webp'), url('Assets/BG4K.png') type('image/png'));
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Fallback for browsers that don't support webp background */
@supports not (background-image: url('Assets/hero-bg.webp')) {
  body {
    background-image: url('Assets/BG4K.png');
  }
}

/* Semi-transparent dark overlay to ensure high accessibility contrast */
.page-overlay {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    90deg, 
    rgba(5, 6, 15, 0.92) 0%, 
    rgba(5, 6, 15, 0.82) 48%, 
    rgba(5, 6, 15, 0.45) 80%, 
    rgba(5, 6, 15, 0.3) 100%
  );
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ================= HEADER / NAV ================= */
.site-header {
  padding: 1.5rem 0;
  position: relative;
  z-index: 50;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  fill: url(#brandGrad);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-name span {
  color: #a855f7;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-item a:hover {
  color: #ffffff;
}

.nav-item.active a {
  color: #ffffff;
  font-weight: 600;
}

.nav-item.active a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  border-radius: 50%;
}

.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-contact-header:hover {
  background: rgba(147, 51, 234, 0.3);
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

/* ================= MAIN CONTENT ================= */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 3.5rem;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-headline {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.highlight-fun {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.highlight-fun::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  border-radius: 2px;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.85rem;
}

.hero-philosophy {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  background: linear-gradient(90deg, #8b5cf6 0%, #d946ef 50%, #f59e0b 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ================= SECTION: OUR GAMES ================= */
.section-games {
  margin-top: 1rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.section-icon {
  width: 26px;
  height: 26px;
  color: #a855f7;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ================= GAME CARD ================= */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 640px;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.3), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.game-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.25);
}

.game-thumb-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f172a;
}

.game-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.game-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.game-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
}

.tag-badge svg {
  width: 12px;
  height: 12px;
  color: var(--accent-cyan);
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.15rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.btn-playstore:hover {
  background: rgba(30, 41, 59, 1);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.playstore-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.playstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.playstore-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.playstore-main {
  font-size: 0.95rem;
  font-weight: 700;
}

.playstore-arrow {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  margin-left: 0.35rem;
}

/* ================= FOOTER ================= */
.site-footer {
  margin-top: auto;
  padding: 1.75rem 0;
  background: rgba(7, 8, 20, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 50;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.4rem 0.8rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.footer-contact:hover {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(30, 41, 59, 0.7);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  color: #a855f7;
}

.footer-social-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
  color: #ff0000;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.4;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  body {
    background-position: 75% center;
    background-attachment: scroll;
  }
  .page-overlay {
    background: linear-gradient(
      180deg, 
      rgba(5, 6, 15, 0.82) 0%, 
      rgba(5, 6, 15, 0.72) 35%,
      rgba(5, 6, 15, 0.88) 70%,
      rgba(5, 6, 15, 0.95) 100%
    );
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .site-header {
    padding: 1rem 0;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-sub {
    font-size: 0.6rem;
  }
  .btn-contact-header {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .hero-headline {
    font-size: clamp(1.45rem, 6.2vw, 2.2rem);
    word-break: break-word;
    line-height: 1.2;
  }
  .nav-links,
  nav {
    display: none;
  }
  .game-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .game-thumb-wrap {
    width: 100%;
    height: 180px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .btn-contact-header {
    padding: 0.4rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-contact-header span {
    display: none;
  }
}
