:root {
  --bg-main: #020617;
  --bg-surface: #0b1020;
  --bg-soft: #0f172a;
  --card-bg: #f9fafb;
  --card-bg-soft: #111827;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.2);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dark: #111827;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #60a5fa 0, #1d4ed8 35%, #020617 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.9);
  font-size: 18px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.logo-text span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--accent);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.search-form input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  min-width: 150px;
}

.search-form button {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
}

/* HERO */
.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-left h1 {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  margin: 0 0 0.6rem;
}

.hero-left p {
  margin: 0;
  max-width: 530px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.hero-right {
  flex: 0 0 330px;
}

/* ADS */
.ad-slot {
  margin-top: 0.5rem;
}

.ad-placeholder {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

/* SECTIONS */
.section {
  padding: 1.8rem 0 2.4rem;
}

.section-title {
  font-size: 1.35rem;
  margin: 0;
}

.section-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-chip {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
}

/* FEATURED SLIDER */
.section-featured {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0));
}

.featured-slider {
  margin-top: 1.1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 55%, #000 100%);
  box-shadow: var(--shadow-soft);
}

.featured-track {
  position: relative;
  min-height: 220px;
}

.featured-slide {
  position: absolute;
  inset: 0;
  display: none;
  padding: 1rem;
  display: none;
}

.featured-slide.is-active {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.featured-image {
  flex: 0 0 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #020617;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  flex: 1;
}

.featured-info h3 {
  margin: 0.4rem 0 0.3rem;
}

.featured-info p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  max-width: 500px;
  font-size: 0.9rem;
}

.featured-tag {
  display: inline-block;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.featured-category {
  font-size: 0.8rem;
  color: #c4cde5;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.slider-arrow--prev {
  left: 10px;
}

.slider-arrow--next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0 0.7rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  cursor: pointer;
}

.slider-dot.is-active {
  width: 18px;
  background: #f9fafb;
}

/* GAMES GRID */
.games-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.small-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.game-card {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  color: var(--text-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.45);
  border-color: rgba(59, 130, 246, 0.9);
}

.game-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: #020617;
}

.game-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.game-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.game-meta {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.games-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CATEGORIES */
.section-categories {
  background: rgba(15, 23, 42, 0.7);
}

.category-bar {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  padding: 0.28rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--accent);
}

.category-icon {
  font-size: 1rem;
}

/* COLLECTIONS */
.section-collections {
  background: rgba(15, 23, 42, 0.5);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.collection-card {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  color: var(--text-dark);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.collection-card h3 {
  margin: 0 0 0.25rem;
}

.collection-card p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #4b5563;
}

/* TEXT SECTION */
.section-text {
  background: #0b1120;
}

.section-text h2,
.section-text h3 {
  margin-top: 0;
}

.section-text p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* GAME PAGE */
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.game-main h1 {
  margin: 0 0 0.25rem;
}

.game-meta {
  color: var(--text-muted);
}

.game-frame-wrapper {
  margin-top: 0.8rem;
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.game-frame-wrapper iframe {
  width: 100%;
  min-height: 480px;
  border-radius: var(--radius-md);
}

.game-description {
  margin-top: 1rem;
}

.game-description h2 {
  margin: 0 0 0.4rem;
}

.game-description p {
  margin: 0;
  color: var(--text-muted);
}

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-title {
  margin: 0;
}

.sidebar-games-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-card {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.sidebar-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-info h4 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.sidebar-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1rem 0 1.4rem;
  margin-top: 1rem;
  background: #020617;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0.1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.3rem 0;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* GENERIC */
.info-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-right {
    width: 100%;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-frame-wrapper iframe {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}



/*conatct form style is here*/
.contact-form {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}
.game-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

#game-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.play-btn {
  position: absolute;
  inset: 0;
  background: #ff4757;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.ad-slot {
  min-height: 90px;
  margin: 20px 0;
}

