/* ═══════════════════════════════════════════════
   GrowSport — Main Stylesheet
   GrowwSport.com · London, GB
═══════════════════════════════════════════════ */

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

:root {
  --bg:        #080b0f;
  --bg2:       #0d1218;
  --bg3:       #111820;
  --green:     #3d7a32;
  --green-l:   #4e9a42;
  --gold:      #c9a84c;
  --gold-l:    #e0c068;
  --text:      #e8ecf0;
  --muted:     #7a8899;
  --border:    rgba(78,154,66,.18);
  --card-bg:   #0e151c;
  --radius:    12px;
  --trans:     .35s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* block horizontal scroll at root level */
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  max-width: 100%;
}

/* ═══════════ ACCESSIBILITY ═══════════ */

/* Skip navigation link */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green);
  color: #fff;
  padding: .6rem 1.2rem;
  font-size: .9rem;
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top .2s;
}
.skip-nav:focus { top: 0; }

/* Focus visible outlines */
:focus-visible {
  outline: 2px solid var(--green-l);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }

/* ═══════════ HEADER ═══════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  width: 100%;                    /* explicit width — prevents fixed overflow */
  padding: 0 5%;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,11,15,.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans), box-shadow var(--trans);
  box-sizing: border-box;
}
header.scrolled {
  background: rgba(8,11,15,.97);
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green), var(--green-l));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute; inset: 0;
  background: url("favicon.svg") center/60% no-repeat;
}
.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: .04em;
}
.logo-text span { color: var(--gold); }

nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase;
  position: relative; padding-bottom: 2px;
  transition: color var(--trans);
}
nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--trans);
}
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

/* ── BURGER ── */
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.burger span {
  display: block; width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(8,11,15,.98);
  backdrop-filter: blur(20px);
  padding: 2rem 5%;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column; gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text); text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}
.mobile-nav a:hover { color: var(--gold); }

/* ═══════════ HERO ═══════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,11,15,.55) 0%, rgba(8,11,15,.78) 60%, rgba(8,11,15,.96) 100%),
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(61,122,50,.18) 0%, transparent 70%),
    url('images/hero.webp') center/cover no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(78,154,66,.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(78,154,66,.04) 40px);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(61,122,50,.02) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scanlines 8s linear infinite;
  opacity: .4;
}
@keyframes scanlines { 0%{background-position:0 0} 100%{background-position:0 400px} }

.hero-inner {
  position: relative; z-index: 2;
  padding: 120px 5% 80px;
  max-width: 1300px; margin: 0 auto; width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(61,122,50,.2);
  border: 1px solid rgba(78,154,66,.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-l);
  margin-bottom: 1.5rem;
  animation: fadeUp .7s ease both;
}
.hero-tag::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green-l);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-l);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s .1s ease both;
}
.hero-title .accent { color: var(--gold); }
.hero-title .green  { color: var(--green-l); }

.hero-sub {
  max-width: 560px;
  font-size: 1.1rem; color: var(--muted);
  margin-bottom: 2.5rem;
  animation: fadeUp .8s .2s ease both;
}

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fadeUp .8s .3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--green), var(--green-l));
  color: #fff; text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 24px rgba(61,122,50,.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(61,122,50,.55);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: transparent;
  border: 1.5px solid rgba(201,168,76,.5);
  color: var(--gold); text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--trans);
}
.btn-outline:hover {
  background: rgba(201,168,76,.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeUp .8s .4s ease both;
}
.stat-item { text-align: left; }
.stat-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--gold);
}
.stat-lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════ SECTIONS ═══════════ */
section { padding: 100px 5%; }
.section-inner { max-width: 1300px; margin: 0 auto; }

.section-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-l);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 1.2rem;
}
.section-title .gold { color: var(--gold); }
.title-line {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l.visible { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r.visible { opacity: 1; transform: translateX(0); }

/* ═══════════ GAMES SHOWCASE (HERO TOP) ═══ */
#games {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 85px 2.5% 25px;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#games .section-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.games-header-wrap {
  text-align: center;
  margin-bottom: 1.2rem;
}
.games-header-wrap .hero-tag {
  margin-bottom: 0.4rem;
}
.games-header-wrap .section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  margin-bottom: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 0.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  animation: gameCardPop 0.6s ease cubic-bezier(0.16, 1, 0.3, 1) both;
}

.game-card:nth-child(1) { animation: gameCardPop 0.6s 0.05s ease both, floatCard 4s 0.6s ease-in-out infinite; }
.game-card:nth-child(2) { animation: gameCardPop 0.6s 0.15s ease both, floatCard 4.2s 0.8s ease-in-out infinite; }
.game-card:nth-child(3) { animation: gameCardPop 0.6s 0.25s ease both, floatCard 3.8s 1.0s ease-in-out infinite; }
.game-card:nth-child(4) { animation: gameCardPop 0.6s 0.35s ease both, floatCard 4.4s 1.2s ease-in-out infinite; }
.game-card:nth-child(5) { animation: gameCardPop 0.6s 0.45s ease both, floatCard 4.0s 1.4s ease-in-out infinite; }

@keyframes gameCardPop {
  0% { opacity: 0; transform: translateY(35px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.game-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(78, 154, 66, 0.5), 0 0 10px rgba(201, 168, 76, 0.4);
  border-color: var(--green-l);
  z-index: 10;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(78,154,66,0.6), rgba(201,168,76,0.6), rgba(78,154,66,0.6));
  background-size: 200% 200%;
  animation: borderGradientMove 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.game-card:hover::before {
  opacity: 1;
}

@keyframes borderGradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.game-thumb {
  width: 100%;
  height: 145px;
  position: relative;
  overflow: hidden;
}
.game-thumb-inner {
  width: 100%;
  height: 100%;
  position: relative;
}
.game-img,
.game-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.game-card:hover .game-img,
.game-card:hover .game-video {
  transform: scale(1.10);
}

/* Continuous Dynamic Motion for Card Videos */
.game-card.wot .game-video {
  animation: wotMotion 4s ease-in-out infinite alternate;
}
.game-card.wows .game-video {
  animation: wowsMotion 5s ease-in-out infinite alternate;
}
.game-card.enl .game-video {
  animation: enlMotion 3.5s ease-in-out infinite alternate;
}
.game-card.wt .game-video {
  animation: wtMotion 4.5s ease-in-out infinite alternate;
}
.game-card.cro .game-video {
  animation: croMotion 3.8s ease-in-out infinite alternate;
}

@keyframes wotMotion {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.08) translate(-6px, -4px); }
  100% { transform: scale(1.04) translate(4px, 2px); }
}

@keyframes wowsMotion {
  0% { transform: scale(1.03) rotate(0deg) translateY(0); }
  50% { transform: scale(1.07) rotate(-1.5deg) translateY(-8px); }
  100% { transform: scale(1.04) rotate(1.5deg) translateY(4px); }
}

@keyframes enlMotion {
  0% { transform: scale(1.02) translate(0, 0); }
  25% { transform: scale(1.06) translate(-4px, 4px); }
  50% { transform: scale(1.08) translate(3px, -5px); }
  75% { transform: scale(1.05) translate(-2px, 3px); }
  100% { transform: scale(1.03) translate(4px, -2px); }
}

@keyframes wtMotion {
  0% { transform: scale(1.02) rotate(0deg) translate(0, 0); }
  50% { transform: scale(1.09) rotate(-2deg) translate(8px, -6px); }
  100% { transform: scale(1.05) rotate(1deg) translate(-4px, 4px); }
}

@keyframes croMotion {
  0% { transform: scale(1.03) translate(0, 0); }
  33% { transform: scale(1.08) translate(-5px, -6px); }
  66% { transform: scale(1.06) translate(6px, 3px); }
  100% { transform: scale(1.04) translate(-3px, -4px); }
}

.game-thumb::after {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 70%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-25deg);
  animation: autoShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
.game-card:nth-child(1) .game-thumb::after { animation-delay: 0s; }
.game-card:nth-child(2) .game-thumb::after { animation-delay: 0.9s; }
.game-card:nth-child(3) .game-thumb::after { animation-delay: 1.8s; }
.game-card:nth-child(4) .game-thumb::after { animation-delay: 2.7s; }
.game-card:nth-child(5) .game-thumb::after { animation-delay: 3.6s; }

@keyframes autoShimmer {
  0% { left: -150%; }
  30%, 100% { left: 180%; }
}

.game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(8, 11, 15, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 168, 76, 0.6);
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-l);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 4px rgba(201, 168, 76, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 12px rgba(201, 168, 76, 0.8); }
}

.game-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-header-row {
  margin-bottom: 0.2rem;
}
.game-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  transition: color 0.3s ease;
}
.game-card:hover .game-title {
  color: var(--gold-l);
}
.game-genre {
  font-size: 0.7rem;
  color: var(--green-l);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 0.5rem;
}
.stars .star {
  color: var(--gold);
  font-size: 0.82rem;
  animation: starGlow 2.5s ease-in-out infinite;
}
@keyframes starGlow {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 1px rgba(201,168,76,0.3)); }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(201,168,76,0.9)); }
}
.stars .rating { font-size: 0.78rem; color: var(--muted); margin-left: 3px; }

.game-desc {
  font-size: 0.8rem;
  color: rgba(232, 236, 240, 0.75);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  margin-top: auto;
}
.tag {
  padding: 2px 7px;
  background: rgba(61, 122, 50, 0.15);
  border: 1px solid rgba(78, 154, 66, 0.3);
  border-radius: 50px;
  font-size: 0.68rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}
.game-card:hover .tag {
  border-color: rgba(78, 154, 66, 0.6);
  background: rgba(61, 122, 50, 0.3);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-l));
  color: #fff;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
  animation: ctaGlowPulse 2.5s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(61, 122, 50, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(61, 122, 50, 0.75), 0 0 10px rgba(201, 168, 76, 0.4); }
}

.card-cta svg {
  transition: transform 0.3s ease;
}
.game-card:hover .card-cta {
  background: linear-gradient(135deg, var(--green-l), #5dac50);
  box-shadow: 0 6px 25px rgba(61, 122, 50, 0.8), 0 0 12px rgba(201, 168, 76, 0.6);
  transform: translateY(-2px);
}
.game-card:hover .card-cta svg {
  transform: translateX(4px) scale(1.15);
}
.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(61,122,50,.05) 0%, rgba(0,0,0,.2) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--trans);
}

/* ═══════════ ABOUT ═══════════ */
#about { background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: rgba(232,236,240,.75);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-badges {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.5rem;
}
.badge {
  padding: 6px 14px;
  background: rgba(61,122,50,.15);
  border: 1px solid rgba(78,154,66,.3);
  border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  color: var(--green-l); letter-spacing: .06em;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.about-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: .6rem; color: var(--gold);
}
.about-card p {
  font-size: .92rem; color: var(--muted);
  line-height: 1.7;
}
.about-features {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 1.5rem;
}
.feature-row {
  display: flex; align-items: flex-start; gap: 12px;
}
.feature-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(61,122,50,.2);
  border: 1px solid rgba(78,154,66,.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.feature-info h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 2px;
}
.feature-info p { font-size: .82rem; color: var(--muted); }

/* ═══════════ CONTACT ═══════════ */
#contact { background: var(--bg2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold); margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 1.2rem;
}
.detail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(61,122,50,.15);
  border: 1px solid rgba(78,154,66,.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.detail-label {
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  margin-bottom: 2px;
}
.detail-val {
  font-size: .95rem; color: var(--text);
  font-weight: 500;
}
.detail-val a { color: var(--text); text-decoration: none; }
.detail-val a:hover { color: var(--gold); }

.map-wrap {
  margin-top: 1.5rem;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  height: 200px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ── Contact Form ── */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative; overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,122,50,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .field-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.18) !important;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-l));
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border: none; border-radius: 8px;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(61,122,50,.4);
}

/* ═══════════ FOOTER ═══════════ */
footer {
  background: #050709;
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 1.5rem;
}
.footer-brand .logo-text { font-size: 1.2rem; }
.footer-brand p { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: .82rem;
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  width: 100%; text-align: center;
  font-size: .78rem; color: rgba(122,136,153,.5);
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.04);
}

/* ═══════════ COOKIE BANNER ═══════════ */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: rgba(13,18,24,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 1.2rem 5%;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .5s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p {
  font-size: .85rem; color: var(--muted);
  flex: 1; min-width: 200px;
}
.cookie-bar a { color: var(--gold); text-decoration: none; }
.cookie-bar a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-accept {
  padding: 8px 22px;
  background: var(--green);
  color: #fff; border: none;
  border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: .85rem;
  transition: background var(--trans);
}
.cookie-accept:hover { background: var(--green-l); }
.cookie-close {
  padding: 8px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted); border-radius: 6px;
  cursor: pointer; font-size: .85rem;
  transition: color var(--trans);
}
.cookie-close:hover { color: var(--text); }

/* ═══════════ SUCCESS MODAL ═══════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  z-index: 3000; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg3);
  border: 1px solid var(--green);
  border-radius: 16px;
  padding: 2.5rem; text-align: center;
  max-width: 440px; width: 90%;
  animation: fadeUp .4s ease;
}
.modal-box .modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-box h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  margin-bottom: .5rem;
}
.modal-box p { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.modal-close {
  padding: 10px 28px;
  background: var(--green);
  color: #fff; border: none; border-radius: 8px;
  cursor: pointer; font-weight: 700; font-size: .95rem;
  transition: background var(--trans);
}
.modal-close:hover { background: var(--green-l); }

/* ═══════════ MULTI-TIER RESPONSIVE SYSTEM ═══════════ */

/* ── 1. Medium Desktop & Large Laptop (1100px - 1400px) ── */
@media (max-width: 1400px) and (min-width: 1100px) {
  #games { padding: 68px 2% 10px; }
  .games-grid { gap: 10px; }
  .game-thumb { height: 145px; }
  .game-body { padding: 0.85rem; }
  .game-title { font-size: 1.15rem; }
  .game-desc { font-size: 0.78rem; -webkit-line-clamp: 3; }
  .card-cta { padding: 10px; font-size: 0.88rem; }
}

/* ── 2. Intermediate Laptop & Landscape Tablet (992px - 1099px) ── */
@media (max-width: 1099px) and (min-width: 992px) {
  #games { padding: 66px 1.5% 8px; }
  .games-grid { gap: 8px; }
  .game-thumb { height: 130px; }
  .game-body { padding: 0.7rem; gap: 0.4rem; }
  .game-title { font-size: 1.05rem; }
  .game-genre { font-size: 0.7rem; }
  .game-desc { font-size: 0.72rem; -webkit-line-clamp: 2; margin-bottom: 0.4rem; }
  .tag { font-size: 0.62rem; padding: 2px 6px; }
  .card-cta { padding: 9px; font-size: 0.82rem; }
}

/* ── 3. Tablet & Mobile Showcase Grid (<= 991px) ── */
@media (max-width: 991px) {
  nav { display: none; }
  .burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-title { font-size: 1.8rem; }
  .section-label { font-size: .68rem; }

  #games {
    padding: 66px 2.5% 8px;
    min-height: auto;
  }
  .games-header-wrap {
    margin-bottom: 0.35rem;
    text-align: center;
  }
  .games-header-wrap .hero-tag {
    font-size: 0.62rem;
    padding: 2px 9px;
    margin-bottom: 0.1rem;
    background: rgba(61, 122, 50, 0.3);
    border: 1px solid rgba(78, 154, 66, 0.6);
    display: inline-block;
  }
  .games-header-wrap .section-title {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.1;
  }
  .games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Base 2-column cards (1 to 4) */
  .game-card {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    animation: gameCardPop 0.5s ease both !important;
    background: linear-gradient(180deg, rgba(20, 32, 44, 0.98) 0%, rgba(10, 16, 24, 0.99) 100%);
    border: 1.2px solid rgba(78, 154, 66, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .game-card:hover, .game-card:active {
    transform: scale(0.98) !important;
    box-shadow: 0 6px 22px rgba(61, 122, 50, 0.7), 0 0 14px rgba(201, 168, 76, 0.5);
    border-color: var(--green-l);
  }

  .game-thumb {
    width: 100%;
    height: 85px;
    min-width: 100%;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    border: none;
    border-bottom: 1.2px solid rgba(78, 154, 66, 0.4);
  }
  .game-thumb-inner {
    width: 100%;
    height: 100%;
    position: relative;
  }
  .game-thumb-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 16, 24, 0.92) 0%, transparent 65%);
    pointer-events: none;
  }
  .game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.4s ease;
  }
  .game-card:hover .game-img, .game-card:active .game-img {
    transform: scale(1.12);
  }

  .game-badge {
    display: inline-block !important;
    position: absolute;
    top: 5px;
    right: 5px;
    left: auto;
    padding: 2px 5px;
    font-size: 0.52rem;
    font-weight: 800;
    background: rgba(8, 11, 15, 0.85);
    color: #ffd54f;
    border: 1px solid rgba(201, 168, 76, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.03em;
    z-index: 3;
  }

  .game-body {
    padding: 6px 7px 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 3px;
    flex: 1;
  }
  .game-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
    margin-bottom: 0;
    width: 100%;
  }
  .game-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    color: #fff;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  }
  .game-genre {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    color: #6be35b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: 100%;
  }
  .stars {
    margin-bottom: 0;
    gap: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
  }
  .stars .star { font-size: 0.68rem; color: #ffca28; filter: drop-shadow(0 0 3px rgba(255, 202, 40, 0.7)); }
  .stars .rating {
    font-size: 0.62rem;
    color: #ffd54f;
    font-weight: 700;
    margin-left: 2px;
    font-family: 'Rajdhani', sans-serif;
  }
  .game-desc { display: none !important; }
  .game-tags { display: none !important; }

  .card-cta {
    width: 100%;
    margin-top: 3px;
    padding: 7px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 7px;
    background: linear-gradient(135deg, #38702e 0%, #529d45 50%, #68b859 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(61, 122, 50, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    animation: mobileBtnPulse 2.5s ease-in-out infinite;
  }
  .card-cta svg { width: 11px; height: 11px; fill: currentColor; }

  /* 5th Card (Crossout) — Full Width Featured Vertical Card */
  .game-card:nth-child(5) {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
  }
  .game-card:nth-child(5) .game-thumb {
    width: 100%;
    height: 90px;
    min-width: 100%;
    border-radius: 0;
    border-bottom: 1.2px solid rgba(78, 154, 66, 0.4);
    border-right: none;
    margin: 0;
  }
  .game-card:nth-child(5) .game-body {
    padding: 7px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 3px;
    width: 100%;
  }
  .game-card:nth-child(5) .game-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1px;
    width: 100%;
  }
  .game-card:nth-child(5) .game-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    width: 100%;
    color: #fff;
  }
  .game-card:nth-child(5) .game-genre {
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    color: #6be35b;
  }
  .game-card:nth-child(5) .stars {
    justify-content: center;
    gap: 2px;
  }
  .game-card:nth-child(5) .stars .star { font-size: 0.72rem; }
  .game-card:nth-child(5) .stars .rating { font-size: 0.65rem; padding: 0 4px; }
  .game-card:nth-child(5) .card-cta {
    width: 100%;
    margin-top: 4px;
    padding: 7px 0;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: auto;
  }
}

@keyframes mobileBtnPulse {
  0%, 100% { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(61, 122, 50, 0.5); }
  50% { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.35), 0 4px 24px rgba(61, 122, 50, 0.9), 0 0 12px rgba(201, 168, 76, 0.6); }
}

/* ── 4. Medium Smartphone (481px - 767px) ── */
@media (max-width: 767px) {
  section { padding: 35px 3%; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.35rem; }

  /* ── About ── */
  .about-text p    { font-size: .92rem; }
  .badge           { font-size: .72rem; padding: 4px 10px; }
  .about-card h3   { font-size: 1.15rem; }
  .feature-info h4 { font-size: .92rem; }
  .feature-info p  { font-size: .78rem; }

  /* ── Contact ── */
  .detail-val { font-size: .88rem; }
  .form-group input,
  .form-group textarea { font-size: .88rem; padding: 10px 13px; }
  .form-group label { font-size: .72rem; }
  .form-submit  { font-size: .9rem; padding: 12px; }

  /* ── Footer ── */
  .footer-brand .logo-text { font-size: 1.1rem; }
  .footer-brand p { font-size: .74rem; }
  .footer-links a { font-size: .76rem; }
  .footer-copy    { font-size: .7rem; }
}

/* ── 5. Compact Smartphone (361px - 480px) ── */
@media (max-width: 480px) {
  header { padding: 0 4%; height: 60px; width: 100%; }
  .mobile-nav { padding: 1.5rem 4%; }
  .logo-text { font-size: 1.2rem; }

  #games {
    padding: 60px 2% 4px;
  }
  .games-header-wrap {
    margin-bottom: 0.2rem;
  }
  .games-header-wrap .hero-tag {
    font-size: 0.6rem;
    padding: 1px 7px;
  }
  .games-header-wrap .section-title {
    font-size: 1.18rem;
  }
  .games-grid {
    gap: 6px;
  }
  .game-thumb {
    height: 75px;
  }
  .game-title {
    font-size: 0.9rem;
  }
  .game-genre {
    font-size: 0.54rem;
  }
  .stars .star { font-size: 0.64rem; }
  .stars .rating { font-size: 0.6rem; }

  .card-cta {
    padding: 6px 0;
    font-size: 0.76rem;
  }

  .contact-form { padding: 1.2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: .65rem; }
}

/* ── 6. Small Smartphone (<= 360px) ── */
@media (max-width: 360px) {
  #games { padding: 58px 1.5% 4px; }
  .games-header-wrap .section-title { font-size: 1.1rem; }
  .games-grid { gap: 4px; }
  .game-thumb { height: 68px; }
  .game-title { font-size: 0.82rem; }
  .game-genre { font-size: 0.5rem; }
  .stars .rating { display: none; }
  .card-cta { padding: 5px 0; font-size: 0.72rem; }
}
