/* ═══════════════════════════════════════
   FUTURE MEMORIES STUDIO — style.css
   Theme: Dark Blue & Black
   ═══════════════════════════════════════ */

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

:root {
  --blue:       #00aaff;
  --blue-dim:   #0077cc;
  --blue-glow:  rgba(0,170,255,0.35);
  --blue-soft:  rgba(0,170,255,0.08);
  --dark:       #05080f;
  --dark2:      #080c14;
  --dark3:      #0b1018;
  --dark4:      #0e1520;
  --border:     rgba(0,170,255,0.15);
  --border-dim: rgba(0,170,255,0.08);
  --text:       rgba(255,255,255,0.62);
  --text-dim:   rgba(255,255,255,0.32);
  --heading:    #ffffff;
  --radius:     10px;
  --nav-h:      74px;
  --nav-bg:     rgba(5,8,15,0.88);
  --noise-opacity: 0.04;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --blue:       #0066dd;
  --blue-dim:   #0052b3;
  --blue-glow:  rgba(0,102,221,0.18);
  --blue-soft:  rgba(0,102,221,0.07);
  --dark:       #eef3f9;
  --dark2:      #ffffff;
  --dark3:      #ffffff;
  --dark4:      #f1f5fa;
  --border:     rgba(15,40,80,0.1);
  --border-dim: rgba(15,40,80,0.06);
  --text:       rgba(28,42,64,0.78);
  --text-dim:   rgba(28,42,64,0.5);
  --heading:    #0e1b30;
  --nav-bg:     rgba(255,255,255,0.92);
  --noise-opacity: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--dark);
  color: var(--heading);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .3s, color .3s;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: var(--noise-opacity);
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
.navbar {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 52px;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-dim);
  gap: 32px;
  transition: background .3s;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 44px; height: 44px;
  border: 2px solid var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 14px var(--blue-glow);
  animation: pulse-logo 3s ease-in-out infinite;
  background: var(--blue-soft);
}
@keyframes pulse-logo {
  0%,100% { box-shadow: 0 0 14px var(--blue-glow); }
  50%      { box-shadow: 0 0 30px var(--blue-glow); }
}
.nav-logo-text .main {
  font-size: 14px; font-weight: 900;
  letter-spacing: 2px; color: #fff; text-transform: uppercase;
}
.nav-logo-text .main span { color: var(--blue); }
.nav-logo-text .sub {
  font-size: 8px; letter-spacing: 5px;
  color: var(--blue); text-transform: uppercase; opacity: 0.8;
}

.nav-links {
  display: flex; gap: 32px; list-style: none; margin: 0 auto;
}
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: 14px; font-weight: 400;
  transition: color .25s; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; right: 0;
  width: 0; height: 1.5px; background: var(--blue);
  transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--heading); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-nav {
  padding: 10px 22px;
  border: 1.5px solid var(--blue);
  background: var(--blue-soft); color: #fff;
  font-family: 'Vazirmatn', sans-serif; font-size: 13px;
  cursor: pointer; border-radius: 6px; white-space: nowrap;
  transition: background .3s, box-shadow .3s;
}
.btn-nav:hover {
  background: rgba(0,170,255,0.18);
  box-shadow: 0 0 20px var(--blue-glow);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; margin-right: auto;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); right: 0; left: 0;
  background: rgba(5,8,15,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 36px;
  z-index: 199; flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text);
  font-size: 17px; font-weight: 500;
  padding: 15px 0; border-bottom: 1px solid var(--border-dim);
  transition: color .2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--blue); }
.mobile-menu .btn-mob {
  margin-top: 22px; padding: 14px;
  border: 1.5px solid var(--blue); border-radius: 8px;
  text-align: center; background: var(--blue-soft);
  font-size: 15px; font-weight: 600; color: #fff;
}

/* ══════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════ */
.page-wrapper { padding-top: var(--nav-h); position: relative; z-index: 1; }

/* ══════════════════════════════════
   HERO (index)
══════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  padding: 0 52px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 80% at 65% 45%, rgba(0,100,200,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 30% 80%, rgba(0,50,150,0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, #030609 100%);
  z-index: 0;
}

.particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%; background: var(--blue);
  animation: drift linear infinite; opacity: 0;
}
@keyframes drift {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-scroll-label {
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 10px; letter-spacing: 4px;
  color: var(--text-dim); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; z-index: 3;
}
.hero-scroll-label::before {
  content: ''; display: block; width: 20px; height: 1px;
  background: rgba(255,255,255,0.15);
}

.hero-main {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex: 1; padding: 48px 0 0;
}

.hero-content { flex: 0 0 auto; max-width: 480px; }

.hero-title {
  font-size: clamp(42px, 6vw, 86px);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px;
}
.hero-title .line1 { color: #fff; display: block; animation: slide-in .8s ease both; }
.hero-title .line2 {
  color: var(--blue); display: block;
  animation: slide-in .8s .15s ease both;
  text-shadow: 0 0 40px rgba(0,170,255,0.5);
}
@keyframes slide-in {
  from { opacity:0; transform: translateX(36px); }
  to   { opacity:1; transform: translateX(0); }
}

.hero-desc {
  font-size: 14px; line-height: 1.9;
  color: var(--text); margin-bottom: 32px;
  animation: fade-up .8s .3s ease both;
}
@keyframes fade-up {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}

.hero-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  animation: fade-up .8s .45s ease both;
}

.hero-visual {
  flex: 0 0 auto; width: 46%; max-width: 540px;
  pointer-events: none; position: relative;
}
.hero-visual svg { width: 100%; height: auto; }
.hg-svg { filter: drop-shadow(0 0 40px rgba(0,170,255,0.3)); }
.hg-glow { animation: glow-pulse 3s ease-in-out infinite; }
@keyframes glow-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.astronaut-wrap {
  position: absolute;
  bottom: -50px; left: 50%; transform: translateX(-50%);
  width: clamp(90px, 13vw, 160px);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-12px); }
}

/* Stats bar */
.stats-bar {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border);
  margin-top: 52px;
}
.stat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 26px;
  border-right: 1px solid var(--border);
  transition: background .3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--blue-soft); }
.stat-icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  background: var(--blue-soft);
}
.stat-num { font-size: 24px; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* Scroll CTA */
.scroll-cta {
  text-align: center; padding: 22px 0 16px;
  position: relative; z-index: 4;
}
.scroll-cta a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 11px;
  text-decoration: none; transition: color .3s;
}
.scroll-cta a:hover { color: var(--blue); }
.scroll-cta svg { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ══════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  padding: 80px 52px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0,100,200,0.14) 0%, transparent 70%);
}
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px; background: var(--blue-soft);
  font-size: 12px; color: var(--blue);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.page-hero h1 span { color: var(--blue); text-shadow: 0 0 30px rgba(0,170,255,0.4); }
.page-hero p {
  font-size: 15px; color: var(--text);
  max-width: 560px; margin: 0 auto; line-height: 1.8;
  position: relative; z-index: 1;
}

/* ══════════════════════════════════
   SECTION COMMONS
══════════════════════════════════ */
.section { padding: 80px 52px; position: relative; }
.section-alt { background: var(--dark3); }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--blue-soft); font-size: 11px;
  color: var(--blue); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900; line-height: 1.15; margin-bottom: 14px;
}
.section-title span { color: var(--blue); }
.section-desc {
  font-size: 14px; color: var(--text); line-height: 1.85;
  max-width: 560px; margin-bottom: 48px;
}
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0 auto 48px; }

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; border-radius: 8px; text-decoration: none;
  transition: all .3s; border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--blue); color: #040810; border-color: var(--blue); font-weight: 700;
}
.btn-primary:hover {
  background: #33bbff;
  box-shadow: 0 0 28px var(--blue-glow);
}
.btn-outline {
  background: var(--blue-soft); color: #fff;
  border-color: rgba(0,170,255,0.4);
}
.btn-outline:hover {
  background: rgba(0,170,255,0.16); border-color: var(--blue);
  box-shadow: 0 0 20px var(--blue-glow);
}
.btn-ghost {
  background: transparent; color: var(--blue);
  border-color: transparent; padding-right: 0; padding-left: 0;
}
.btn-ghost:hover { gap: 16px; }
.btn .arrow { font-size: 16px; }

/* Play button */
.play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,170,255,0.1); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s;
  box-shadow: 0 0 16px var(--blue-glow); flex-shrink: 0;
}
.play-btn:hover { background: rgba(0,170,255,0.25); box-shadow: 0 0 28px var(--blue-glow); }
.trailer-badge { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.trailer-info .t1 { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }
.trailer-info .t2 { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.cards-grid-2 { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card::before {
  content: ''; position: absolute;
  top: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover {
  border-color: rgba(0,170,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,170,255,0.1);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card-desc { font-size: 13px; color: var(--text); line-height: 1.75; }
.card-tag {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue);
  border: 1px solid var(--border); margin-bottom: 14px;
}

/* ══════════════════════════════════
   GAME CARD
══════════════════════════════════ */
.game-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.game-card:hover {
  border-color: rgba(0,170,255,0.35); transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.game-card-thumb {
  height: 220px;
  background: linear-gradient(135deg, #05101e, #0a1828);
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative; overflow: hidden;
}
.game-card-thumb .glow-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,170,255,0.1) 0%, transparent 70%);
}
.game-card-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.badge-dev  { background: rgba(0,170,255,0.15); color: var(--blue); border: 1px solid rgba(0,170,255,0.3); }
.badge-soon { background: rgba(255,180,0,0.15); color: #ffb400; border: 1px solid rgba(255,180,0,0.3); }
.badge-new  { background: rgba(160,80,255,0.15); color: #b060ff; border: 1px solid rgba(160,80,255,0.3); }
.game-card-body { padding: 22px; }
.game-card-title { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.game-card-desc { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 18px; }
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.game-genres { display: flex; gap: 6px; flex-wrap: wrap; }
.genre-tag {
  padding: 3px 10px; border-radius: 20px; font-size: 10px;
  background: var(--dark2); border: 1px solid var(--border); color: var(--text);
}

/* ══════════════════════════════════
   ARTICLE CARD
══════════════════════════════════ */
.article-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all .3s;
}
.article-card:hover {
  border-color: rgba(0,170,255,0.3); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.article-thumb {
  height: 190px;
  background: linear-gradient(135deg, #05101e, #0a1828);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative;
}
.article-body { padding: 22px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.article-cat {
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  background: var(--blue-soft); color: var(--blue); border: 1px solid var(--border);
}
.article-date { font-size: 11px; color: var(--text-dim); }
.article-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-desc { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.article-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.article-author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.author-name { font-size: 12px; color: var(--text); }
.read-time { font-size: 11px; color: var(--text-dim); }

/* ══════════════════════════════════
   TEAM / ABOUT
══════════════════════════════════ */
.team-card {
  text-align: center; padding: 32px 20px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .3s;
}
.team-card:hover {
  border-color: rgba(0,170,255,0.3); transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--border); margin: 0 auto 16px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  transition: border-color .3s;
}
.team-card:hover .team-avatar { border-color: var(--blue); box-shadow: 0 0 16px var(--blue-glow); }
.team-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--blue); letter-spacing: 1px; margin-bottom: 12px; }
.team-bio { font-size: 13px; color: var(--text); line-height: 1.7; }

/* ══════════════════════════════════
   SERVICE CARD
══════════════════════════════════ */
.service-card {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; position: relative;
  overflow: hidden; transition: all .3s;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; right: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover {
  border-color: rgba(0,170,255,0.28); transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5);
}
.service-card:hover::after { opacity: 1; }
.service-num {
  font-size: 48px; font-weight: 900; color: rgba(0,170,255,0.1);
  line-height: 1; margin-bottom: 12px;
}
.service-icon { font-size: 32px; margin-bottom: 16px; }
.service-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-desc { font-size: 13px; color: var(--text); line-height: 1.75; margin-bottom: 20px; }
.service-features { list-style: none; }
.service-features li {
  font-size: 13px; color: var(--text); padding: 7px 0;
  border-bottom: 1px solid var(--border-dim);
  display: flex; align-items: center; gap: 10px;
}
.service-features li::before { content: '›'; color: var(--blue); font-size: 16px; font-weight: 700; }

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  align-items: start;
}
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px; background: var(--dark3);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .3s;
}
.contact-info-item:hover { border-color: rgba(0,170,255,0.3); }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-info-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.contact-info-val { font-size: 14px; font-weight: 500; }

.contact-form {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
}
.form-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-label { font-size: 12px; color: var(--text); font-weight: 500; }
.form-input, .form-textarea, .form-select {
  padding: 13px 16px;
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 8px; color: #fff;
  font-family: 'Vazirmatn', sans-serif; font-size: 14px;
  transition: border-color .3s, box-shadow .3s; outline: none; width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,170,255,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select option { background: var(--dark2); }
.form-submit {
  width: 100%; padding: 15px;
  background: var(--blue); color: #040810;
  font-family: 'Vazirmatn', sans-serif; font-size: 15px; font-weight: 700;
  border: none; border-radius: 8px; cursor: pointer;
  transition: background .3s, box-shadow .3s;
}
.form-submit:hover { background: #33bbff; box-shadow: 0 0 28px var(--blue-glow); }

/* ══════════════════════════════════
   TIMELINE
══════════════════════════════════ */
.timeline { position: relative; padding-right: 32px; }
.timeline::before {
  content: ''; position: absolute;
  top: 0; bottom: 0; right: 0; width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(0,170,255,0.1) 100%);
}
.timeline-item { position: relative; padding-right: 32px; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute;
  top: 6px; right: -6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}
.timeline-year { font-size: 12px; color: var(--blue); font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.timeline-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.timeline-desc { font-size: 13px; color: var(--text); line-height: 1.75; }

/* ══════════════════════════════════
   DIVIDERS
══════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.25;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 60px 52px 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: var(--text); line-height: 1.75; max-width: 280px; margin-top: 16px; }
.footer-col-title {
  font-size: 12px; font-weight: 700; color: #fff;
  margin-bottom: 18px; letter-spacing: 2px; text-transform: uppercase;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: var(--text); text-decoration: none; transition: color .25s;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; text-decoration: none;
  transition: border-color .3s, box-shadow .3s;
}
.social-btn:hover { border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }

/* ══════════════════════════════════
   UTILITIES
══════════════════════════════════ */
.text-blue { color: var(--blue); }
.text-dim  { color: var(--text-dim); }
.fw-900    { font-weight: 900; }
.mb-0      { margin-bottom: 0; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cards-grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 0 24px; }
  .hero-main { flex-direction: column; padding-top: 28px; }
  .hero-content { max-width: 100%; }
  .hero-visual { width: 80%; max-width: 320px; align-self: center; order: -1; opacity: 0.6; }
  .astronaut-wrap { width: 100px; }
  .hero-scroll-label { display: none; }

  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .section { padding: 60px 24px; }
  .page-hero { padding: 60px 24px 48px; }

  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }

  /* about page story grid */
  .story-grid { grid-template-columns: 1fr !important; }
  .story-grid .story-img { min-height: 240px !important; order: -1; }

  /* timeline grid */
  .timeline-grid { grid-template-columns: 1fr !important; }

  /* games featured */
  .featured-game-grid { grid-template-columns: 1fr !important; }
  .featured-game-grid > div:first-child { min-height: 220px; border-radius: 12px 12px 0 0 !important; }
  .featured-game-grid > div:last-child { padding: 28px !important; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* process steps */
  .process-step { grid-template-columns: 48px 1fr !important; gap: 16px !important; }

  footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .navbar { padding: 0 16px; }
  .nav-logo-icon { width: 36px; height: 36px; font-size: 16px; }
  .nav-logo-text .main { font-size: 12px; }

  .hero { padding: 0 16px; }
  .hero-visual { width: 100%; max-width: 240px; opacity: 0.45; }
  .hero-title { font-size: clamp(32px, 10vw, 50px); }
  .hero-desc { font-size: 13px; }
  .hero-actions { gap: 14px; }
  .stats-bar { margin-top: 32px; }
  .stat-item { padding: 16px 12px; gap: 10px; }
  .stat-num { font-size: 20px; }
  .stat-lbl { font-size: 10px; }

  .section { padding: 48px 16px; }
  .page-hero { padding: 48px 16px 36px; }
  .cards-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 16px; }

  footer { padding: 40px 16px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 28px; }
  .stat-icon { display: none; }
  .stat-item { padding: 14px 10px; }
}

/* ══════════════════════════════════
   THEME TOGGLE (Moon/Sun)
══════════════════════════════════ */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--dark3), var(--dark2));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 999;
  font-size: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  transform: scale(1.12) rotate(-12deg);
  border-color: var(--blue);
  box-shadow: 0 10px 36px var(--blue-glow);
}
.theme-toggle:active { transform: scale(0.94); }

[data-theme="light"] .theme-toggle {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,80,160,0.12);
  color: #f59e0b;
}

/* ── Light theme element refinements ── */
[data-theme="light"] body::before { display: none; }

[data-theme="light"] body {
  background: linear-gradient(180deg, #eef3f9 0%, #e6eef7 100%);
}

[data-theme="light"] .navbar {
  box-shadow: 0 1px 20px rgba(15,40,80,0.06);
}

[data-theme="light"] .nav-logo-icon {
  background: rgba(0,102,221,0.1);
  border-color: rgba(0,102,221,0.3);
  color: var(--blue);
}
[data-theme="light"] .nav-logo-text .main { color: var(--heading); }

[data-theme="light"] .btn-nav {
  color: var(--blue);
  border-color: rgba(0,102,221,0.3);
  background: rgba(0,102,221,0.06);
}
[data-theme="light"] .btn-nav:hover {
  background: var(--blue);
  color: #fff;
}

/* Cards get soft shadows in light mode */
[data-theme="light"] .card,
[data-theme="light"] .game-card,
[data-theme="light"] .article-card,
[data-theme="light"] .product-card,
[data-theme="light"] .service-card-pub,
[data-theme="light"] .team-card,
[data-theme="light"] .stat-card-u {
  box-shadow: 0 2px 12px rgba(15,40,80,0.06);
}
[data-theme="light"] .card:hover,
[data-theme="light"] .game-card:hover,
[data-theme="light"] .article-card:hover,
[data-theme="light"] .product-card:hover {
  box-shadow: 0 12px 36px rgba(15,40,80,0.12);
}

/* Thumbnails — soft light gradient */
[data-theme="light"] .game-card-thumb,
[data-theme="light"] .article-thumb,
[data-theme="light"] .product-thumb,
[data-theme="light"] .game-card-featured .thumb,
[data-theme="light"] .store-mini-thumb,
[data-theme="light"] .article-thumb-new {
  background: linear-gradient(135deg, #dde8f5, #c8d9ed) !important;
}

/* Hero in light mode */
[data-theme="light"] .hero-bg {
  background: radial-gradient(ellipse 80% 80% at 60% 40%, rgba(0,102,221,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,102,221,0.05) 0%, transparent 60%),
              linear-gradient(180deg, #eef3f9 0%, #e6eef7 50%, #eef3f9 100%) !important;
}
[data-theme="light"] .hero-grid-lines { opacity: 0.03 !important; }
[data-theme="light"] .hero-title .line1 { color: var(--heading) !important; }
[data-theme="light"] .hero-desc { color: var(--text) !important; }

[data-theme="light"] .hero-card-3d {
  background: linear-gradient(135deg, #ffffff, #f0f6fc) !important;
  border-color: rgba(0,102,221,0.15) !important;
  box-shadow: 0 24px 60px rgba(15,40,80,0.12) !important;
}
[data-theme="light"] .hero-card-title { color: var(--heading); }
[data-theme="light"] .float-badge { background: #fff; box-shadow: 0 8px 24px rgba(15,40,80,0.1); }

/* Sections */
[data-theme="light"] .section-alt,
[data-theme="light"] .services-section,
[data-theme="light"] .store-section {
  background: rgba(0,102,221,0.025);
}
[data-theme="light"] .section-h2,
[data-theme="light"] .section-title,
[data-theme="light"] .game-title,
[data-theme="light"] .game-card-title,
[data-theme="light"] .article-title,
[data-theme="light"] .product-name,
[data-theme="light"] .card-title,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3 {
  color: var(--heading);
}

/* Footer */
[data-theme="light"] footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}
[data-theme="light"] .footer-bottom { color: var(--text-dim); }

/* Mobile menu */
[data-theme="light"] .mobile-menu {
  background: #fff;
  box-shadow: -4px 0 30px rgba(15,40,80,0.1);
}
[data-theme="light"] .mobile-menu a { color: var(--text); }

/* Stats bar */
[data-theme="light"] .stats-bar {
  background: rgba(0,102,221,0.03);
  border-top-color: rgba(0,102,221,0.1);
}

/* Forms in light */
[data-theme="light"] .form-input,
[data-theme="light"] .auth-input,
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  background: #f7faff;
  color: var(--heading);
  border-color: var(--border);
}

/* CTA boxes */
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, rgba(0,102,221,0.08), rgba(0,102,221,0.03)) !important;
  border-color: rgba(0,102,221,0.15) !important;
}
[data-theme="light"] .cta-title { color: var(--heading); }

@media (max-width: 768px) {
  .theme-toggle { bottom: 20px; left: 20px; width: 46px; height: 46px; font-size: 19px; }
}

/* ── Game Price Badge ── */
.game-price-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.game-price-badge.paid {
  background: rgba(0,170,255,0.9);
  color: #040810;
}
.game-price-badge.free {
  background: rgba(0,204,136,0.9);
  color: #022;
}
[data-theme="light"] .game-price-badge.paid { background: rgba(0,102,221,0.95); color:#fff; }
[data-theme="light"] .game-price-badge.free { background: rgba(0,180,120,0.95); color:#fff; }
