/* =========================================================
   LYTEGAMES YAZILIM A.S. - Deep Slate Creative Theme
   Font stack: Outfit (sans-serif geometric)
   ========================================================= */

:root {
  --c-bg:       #0B0F19; /* Deep Midnight Blue */
  --c-surface:  #151C2C; /* Slightly lighter slate */
  --c-surface-glass: rgba(21, 28, 44, 0.7);
  --c-border:   rgba(255, 255, 255, 0.08);

  /* Vibrant Accent Gradient */
  --c-accent-1: #0088FF; /* Bright Blue */
  --c-accent-2: #7000FF; /* Electric Violet */
  --c-accent-3: #FF007F; /* Hot Pink */
  
  --c-text:     #F8FAFC; /* Off-white */
  --c-text-muted: #94A3B8; /* Slate gray */

  --ff-display: 'Outfit', sans-serif;
  --ff-body:    'Outfit', sans-serif;

  --nav-h: 80px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container-w: 1200px;
}

/* ???????????????????????????????????????????????
   CUSTOM SCROLLBAR
??????????????????????????????????????????????? */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0B0F19;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
  border: 2px solid #0B0F19;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-accent-1);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #1E293B #0B0F19;
}


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

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 1s ease;
}

/* Base cursor: only hide if we are NOT on mobile, NOT in game page, and site is loaded */
@media (min-width: 1025px) {
  body.loaded:not([class*="game-"]) {
    cursor: none;
  }
  body.loaded:not([class*="game-"]) a, 
  body.loaded:not([class*="game-"]) button, 
  body.loaded:not([class*="game-"]) input, 
  body.loaded:not([class*="game-"]) select, 
  body.loaded:not([class*="game-"]) textarea, 
  body.loaded:not([class*="game-"]) .slider-dot {
    cursor: none;
  }
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ??? Custom Cursor ??? */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 999999;
  opacity: 1; /* Always visible */
  will-change: transform;
}

.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--c-accent-1);
}

.cursor-outline {
  width: 40px; height: 40px;
  border: 2px solid rgba(0, 136, 255, 0.4);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-outline.hover {
  width: 60px; height: 60px;
  background-color: rgba(0, 136, 255, 0.1);
  border-color: var(--c-accent-1);
}

@media (max-width: 768px) {
  body, a, button, input, select, textarea, .slider-dot { cursor: auto; }
  .cursor-dot, .cursor-outline { display: none; }
}

/* ??? Utilities ??? */
.container {
  width: min(var(--container-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 60px);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(90deg, var(--c-accent-1), var(--c-accent-2), var(--c-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ??? Navigation ??? */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  height: var(--nav-h);
  transition: 0.4s;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-header.scrolled {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: clamp(24px, 5vw, 60px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--c-text);
}

.lytelabs-link {
  font-weight: 800;
  background: linear-gradient(
    90deg, 
    var(--c-accent-1) 0%, 
    var(--c-accent-1) 35%, 
    #ffffff 50%, 
    var(--c-accent-1) 65%, 
    var(--c-accent-1) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShine 3s linear infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lytelabs-link svg {
  stroke: var(--c-accent-1); /* Ensure SVG is visible */
}

@keyframes metallicShine {
  to { background-position: 200% center; }
}

.lytecore-link {
  font-weight: 800;
  background: linear-gradient(
    90deg, 
    #FFD700 0%, 
    #FFA500 35%, 
    #ffffff 50%, 
    #FFA500 65%, 
    #FFD700 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShine 3s linear infinite;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lytecore-link svg {
  stroke: #FFD700;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--c-border);
}

.lang-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
}
.lang-btn.active {
  color: var(--c-text);
}
.lang-btn:hover {
  color: var(--c-accent-1);
}
.lang-divider {
  width: 1px; height: 12px; background: var(--c-border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 28px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--c-bg);
    flex-direction: column;
    padding: 40px 20px;
    border-bottom: 1px solid var(--c-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-toggle { display: flex; }
}

/* ??? Buttons ??? */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-2));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 255, 0.5);
  background: linear-gradient(135deg, #2df0ff, #8930ff);
}

.btn--ghost {
  background: var(--c-surface-glass);
  color: var(--c-text);
  border-color: var(--c-border);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--c-accent-1);
  background: rgba(0, 136, 255, 0.05);
  transform: translateY(-2px);
}

.btn--nav {
  padding: 10px 24px;
  background: linear-gradient(90deg, var(--c-accent-1), var(--c-accent-2), var(--c-accent-3), var(--c-accent-1));
  background-size: 300% 100%;
  color: #FFFFFF !important;
  border-radius: 50px;
  border: none;
  animation: moveGradient 4s linear infinite;
  position: relative;
  z-index: 1;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3);
}

.btn--nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 255, 0.5);
  filter: brightness(1.1);
}

@keyframes moveGradient {
  0% { background-position: 0% center; }
  100% { background-position: 150% center; }
}

.btn--massive {
  font-size: 18px;
  padding: 20px 48px;
  background: linear-gradient(135deg, var(--c-accent-2), var(--c-accent-3));
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
  margin-top: 20px;
}

.btn--massive:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(112, 0, 255, 0.5);
  background: linear-gradient(135deg, #8930ff, #ff3399);
}

.btn--full { width: 100%; }

/* ??? Typography Shared ??? */
.section-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-1);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  color: var(--c-text);
  margin-bottom: 32px;
}

/* ??? Hero Section ??? */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 0;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at top right, rgba(0,136,255,0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255,0,127,0.05), transparent 40%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  z-index: 0;
  animation: floatGlow 15s infinite alternate ease-in-out;
}
.hero-glow-1 {
  background: var(--c-accent-2);
  top: 5%; left: -10%;
}
.hero-glow-2 {
  background: var(--c-accent-1);
  bottom: 5%; right: -10%;
  animation-delay: -5s;
}

@keyframes floatGlow {
  100% { transform: translate(100px, 100px); }
}

.hero-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-beam {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 136, 255, 0.1), transparent);
  left: 20%;
  animation: beamMove 8s infinite linear;
}

.hero-beam:nth-child(2) { left: 40%; animation-delay: -2s; opacity: 0.5; }
.hero-beam:nth-child(3) { left: 60%; animation-delay: -4s; opacity: 0.7; }
.hero-beam:nth-child(4) { left: 80%; animation-delay: -6s; opacity: 0.3; }

@keyframes beamMove {
  0% { transform: translateY(-100%) rotate(15deg); }
  100% { transform: translateY(100%) rotate(15deg); }
}

.hero-particles-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(127, 0, 255, 0.05), transparent 70%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.floating-card {
  position: absolute;
  z-index: 3;
  width: 280px;
  perspective: 1500px;
  display: none;
}

.floating-card--left {
  top: 20%; left: 5%;
  aspect-ratio: 5 / 7;
  cursor: pointer;
}

.floating-card--right {
  top: 15%; right: 3%;
  width: 360px; /* Wider */
  aspect-ratio: 5 / 10; /* Taller */
}

.floating-card--right .floating-card-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.floating-card--right .floating-card-front img {
  background: transparent;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
}
@media(min-width: 1400px) {
  .floating-card { display: block; }
}
.floating-card--left {
  top: 20%; left: 5%;
}
.floating-card--right {
  top: 30%; right: 5%;
}

.floating-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05); /* No backdrop-filter to preserve 3D */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Rotating Glow Border - ONLY FOR LEFT */
.floating-card--left .floating-card-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(from var(--glow-angle), transparent, #ff8e00, transparent 25%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateGlow 4s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateGlow {
  to { --glow-angle: 360deg; }
}

/* Ground Glow - ONLY FOR LEFT */
.floating-card--left::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%) rotateX(70deg);
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255, 142, 0, 0.4), transparent 70%);
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
  transition: 0.5s;
}

.floating-card.spinning::after {
  animation: scatterGlow 1.2s ease-out forwards;
}

@keyframes scatterGlow {
  0% { transform: translateX(-50%) rotateX(70deg) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) rotateX(70deg) scale(3); opacity: 0.8; filter: blur(40px); }
  100% { transform: translateX(-50%) rotateX(70deg) scale(2); opacity: 0.5; }
}

.floating-card.flipped .floating-card-inner {
  transform: rotateY(180deg) !important;
}

/* Explicit Visibility Fix for stubborn browsers */
.floating-card.flipped .floating-card-front {
  opacity: 0;
  visibility: hidden;
}

.floating-card.flipped .floating-card-back {
  opacity: 1;
  visibility: visible;
}

.floating-card.spinning .floating-card-inner {
  animation: spinDrop 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes spinDrop {
  0% { transform: scale(1) rotateY(0deg); }
  20% { transform: scale(0.85) rotateY(0deg); } /* Drop/Shrink */
  100% { transform: scale(1) rotateY(1440deg); } /* Spin & Slam back */
}

/* Impact Shockwave */
.card-impact {
  position: absolute;
  inset: -20px;
  border: 4px solid #ff8e00;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-card.impact .card-impact {
  animation: shockwave 0.6s ease-out forwards;
}

@keyframes shockwave {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.floating-card-front, .floating-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}

.floating-card-front {
  z-index: 2;
  transform: rotateY(0deg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s;
}

.floating-card-back {
  z-index: 1;
  transform: rotateY(180deg);
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.floating-card-front img, .floating-card-back img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-card:hover .floating-card-front img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}

.floating-card-back {
  transform: rotateY(180deg);
  background: #000; /* Solid back background */
  z-index: 1;
}

.floating-card-back img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  transform: rotateY(0deg); /* Counteract parent mirror if any */
}

.floating-card-back p {
  position: absolute;
  bottom: 15px;
  left: 0; right: 0;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding-inline: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid rgba(0, 136, 255, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--c-accent-1);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--c-accent-1);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c-accent-1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 136, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 136, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 136, 255, 0); }
}

.hero-headline {
  font-weight: 900;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.headline-line { display: block; }

.hero-subtext {
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 500;
}

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

.scroll-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.scroll-mouse {
  width: 24px; height: 36px;
  border: 2px solid var(--c-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--c-accent-1);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* ??? Marquee Banner ??? */
.marquee-wrapper {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
  padding-block: 20px;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}
.marquee-content {
  display: flex;
  gap: 40px;
  animation: scrollMarquee 30s linear infinite;
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.marquee-content .star { color: var(--c-accent-1); }
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ??? Games Slider Section ??? */
.games-section {
  background: var(--c-bg);
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 2;
}

/* Slide Transition Effects */
.slide.effect-scale.active { animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide.effect-scale.exit { animation: scaleOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes scaleOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.05); } }

.slide.effect-slide-up.active { animation: slideUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide.effect-slide-up.exit { animation: slideUpOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUpIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-40px); } }

.slide.effect-flip.active { animation: flipIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.slide.effect-flip.exit { animation: flipOut 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes flipIn { from { opacity: 0; transform: perspective(1000px) rotateY(-30deg); } to { opacity: 1; transform: perspective(1000px) rotateY(0); } }
@keyframes flipOut { from { opacity: 1; transform: perspective(1000px) rotateY(0); } to { opacity: 0; transform: perspective(1000px) rotateY(30deg); } }

.slider-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  padding-bottom: 20px;
}

.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  transition: 0.3s;
}
.slider-dot.active { background: var(--c-accent-1); transform: scale(1.2); }

.game-visual {
  position: relative;
  aspect-ratio: 16/10;
  perspective: 1000px;
}

.game-card {
  width: 100%; height: 100%;
  border-radius: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card img { width: 100%; height: 100%; object-fit: cover; }

.game-info .tags { display: flex; gap: 12px; margin-bottom: 24px; }
.tag {
  padding: 6px 14px; background: rgba(112, 0, 255, 0.15); border: 1px solid rgba(112, 0, 255, 0.3);
  color: #d1b3ff; border-radius: 20px; font-size: 12px; font-weight: 800; text-transform: uppercase;
}

.game-title { font-size: 36px; font-weight: 800; margin-bottom: 24px; }
.game-desc { font-size: 16px; color: var(--c-text-muted); margin-bottom: 32px; }

/* ??? Studio Grid ??? */
.studio-section { background: var(--c-surface); }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.studio-card {
  background: rgba(11, 15, 25, 0.4);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.studio-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 136, 255, 0.1);
}
.card-main { grid-column: span 8; min-height: 320px; background: linear-gradient(135deg, rgba(0, 136, 255, 0.05), rgba(112, 0, 255, 0.05)); }
.card-side { grid-column: span 4; }
.card-bottom-left { grid-column: span 6; }
.card-bottom-right { grid-column: span 6; }

.studio-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.studio-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.studio-card p { font-size: 16px; color: var(--c-text-muted); font-weight: 500; }

/* ??? Lytelabs Section (Portal) ??? */
.lytelabs-portal-section {
  background: var(--c-bg); position: relative; overflow: hidden;
  padding-block: 180px;
}

.portal-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: 24px;
  position: relative;
  z-index: 2;
}

.portal-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  padding: 60px 40px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portal-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--c-accent-1);
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.portal-card--lytecore:hover {
  border-color: #FFD700;
  box-shadow: 0 40px 80px rgba(255, 215, 0, 0.1);
}

.portal-badge {
  display: inline-block; padding: 6px 16px; background: rgba(112, 0, 255, 0.2);
  border: 1px solid rgba(112, 0, 255, 0.4); color: #fff; border-radius: 30px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px;
}

.portal-badge--gold {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  color: #FFD700;
}

.portal-heading {
  font-family: var(--ff-display); font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff, var(--c-accent-1)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 24px;
}

.portal-heading--gold {
  background: linear-gradient(135deg, #fff, #FFD700); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.portal-desc { font-size: 16px; color: var(--c-text-muted); margin-bottom: 40px; line-height: 1.7; font-weight: 500; flex-grow: 1; }
.portal-perks { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.portal-perk {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 12px; border: 1px solid var(--c-border);
}
@media (max-width: 992px) {
  .portal-container-grid { grid-template-columns: 1fr; }
}

/* ??? Contact Section ??? */
.contact-section { background: var(--c-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-desc { font-size: 18px; color: var(--c-text-muted); margin-bottom: 40px; font-weight: 500; }
.contact-methods { display: flex; flex-direction: column; gap: 32px; }
.method h5 { font-size: 14px; text-transform: uppercase; color: var(--c-accent-1); margin-bottom: 8px; font-weight: 800; letter-spacing: 0.1em; }
.method a { font-size: 24px; font-weight: 800; color: var(--c-text); }
.method a:hover { color: var(--c-accent-2); }

.glass-form {
  background: rgba(11, 15, 25, 0.5); backdrop-filter: blur(12px); padding: 40px;
  border-radius: 24px; border: 1px solid var(--c-border); box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.form-group { margin-bottom: 20px; }
.glass-form input, .glass-form select, .glass-form textarea {
  width: 100%; padding: 16px 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--c-border);
  border-radius: 12px; color: #fff; font-family: var(--ff-body); font-size: 15px; font-weight: 500; transition: all 0.3s ease;
}
.glass-form input:focus, .glass-form select:focus, .glass-form textarea:focus {
  outline: none; border-color: var(--c-accent-1); background: rgba(0,136,255,0.05);
}
.form-notice { margin-top: 16px; text-align: center; font-size: 14px; min-height: 20px; font-weight: 600; }

/* ??? Footer ??? */
.footer { background: var(--c-bg); padding-block: 60px 40px; border-top: 1px solid var(--c-border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.social-links { display: flex; gap: 20px; }
.social-links a {
  width: 40px; height: 40px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--c-text-muted);
}
.social-links a:hover { background: var(--c-accent-1); color: #fff; border-color: var(--c-accent-1); transform: translateY(-3px); }
.social-links svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 32px;
  border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-text-muted); font-weight: 500;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--c-text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--c-text); }

@media (max-width: 992px) {
  .slide { grid-template-columns: 1fr; gap: 40px; }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-main, .card-side, .card-bottom-left, .card-bottom-right { grid-column: span 12; min-height: auto; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .lytelabs-centerpiece { padding: 40px 20px; }
}

/* ??? Games Portfolio Grid ??? */
.games-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  padding-block: 60px;
}
.game-portfolio-card {
  background: var(--c-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: 30px;
  overflow: hidden;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.game-portfolio-card:hover {
  transform: translateY(-12px);
  border-color: var(--c-accent-1);
  box-shadow: 0 40px 80px rgba(0, 136, 255, 0.2);
}
.game-visual {
  height: 240px;
  overflow: hidden;
}
.game-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: 0.8s ease;
}
.game-portfolio-card:hover .game-visual img {
  transform: scale(1.1);
}
.game-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.game-category {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-accent-1);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.game-info h3 { font-size: 28px; font-weight: 900; margin-bottom: 16px; color: #fff; }
.game-info p { color: var(--c-text-muted); line-height: 1.7; margin-bottom: 32px; font-weight: 500; }
.game-info .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 992px) {
  .games-portfolio-grid { grid-template-columns: 1fr; }
}

/* ??? Grain Overlay ??? */
.grain-overlay {
  position: fixed;
  inset: 0;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
  opacity: 0.04;
  pointer-events: none;
  z-index: 12000;
}

/* ???????????????????????????????????????????????
   7. CAREERS & MODAL SYSTEM
??????????????????????????????????????????????? */
/* ??? Careers & Modal System (PREMIUM) ??? */
.careers-hero {
  padding: 180px 0 100px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(127, 0, 255, 0.1) 0%, transparent 70%);
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.career-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.career-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--c-accent-1);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.career-icon {
  width: 64px; height: 64px;
  margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--c-accent-1);
  transition: 0.3s;
}

.career-card:hover .career-icon {
  background: var(--c-accent-1);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 136, 255, 0.3);
}

.career-icon svg { width: 32px; height: 32px; stroke-width: 2; }

.career-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 900;
  color: #fff;
}

.career-card p {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 20px;
  transition: opacity 0.4s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-container {
  background: linear-gradient(135deg, #111827, #0b0f19);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  padding: 60px;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}

.modal-overlay.active .modal-container { transform: translateY(0) scale(1); }

.modal-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: rgba(255,255,255,0.05);
}

.progress-bar {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--c-accent-1), var(--c-accent-2));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 30px; right: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
  z-index: 100;
}

.modal-close:hover { background: var(--c-accent-3); border-color: var(--c-accent-3); transform: rotate(90deg); }

.modal-lang-toggle {
  position: absolute;
  top: 30px; left: 60px;
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-lang-toggle .lang-btn {
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  padding: 6px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: 0.3s;
}

.modal-lang-toggle .lang-btn.active { background: #fff; color: #000; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.step-header { margin-bottom: 40px; }

.step-number {
  font-size: 12px; font-weight: 900; color: var(--c-accent-1);
  text-transform: uppercase; letter-spacing: 0.2em; display: block; margin-bottom: 8px;
}

.step-header h2 { font-size: 36px; font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.step-header p { color: var(--c-text-muted); font-size: 16px; font-weight: 500; }

.markdown-body {
  text-align: left;
  margin-bottom: 40px;
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 20px;
}

.markdown-body h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 20px; margin-top: 30px; }
.markdown-body h3:first-child { margin-top: 0; }
.markdown-body ul { margin-bottom: 30px; }
.markdown-body li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.markdown-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 2px;
  background: var(--c-accent-1);
  border-radius: 2px;
}

.markdown-body strong { color: #fff; font-weight: 700; }

.career-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dynamic-questions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }

.career-form .form-group { margin-bottom: 20px; }
.career-form label { display: block; font-size: 12px; font-weight: 800; color: var(--c-accent-1); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; }

.career-form input, .career-form textarea, .career-form select {
  width: 100%; padding: 18px 24px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; color: #fff; font-family: inherit; font-size: 15px; transition: 0.3s;
}

.career-form input:focus, .career-form textarea:focus, .career-form select:focus {
  background: rgba(255,255,255,0.06); border-color: var(--c-accent-1); outline: none; box-shadow: 0 0 20px rgba(0,136,255,0.1);
}

.career-form textarea { resize: none; }

.success-icon-wrapper {
  width: 80px; height: 80px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 30px;
}

.form-success-message { text-align: center; display: none; padding-block: 40px; }
.form-success-message h3 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.form-success-message p { color: var(--c-text-muted); font-size: 16px; max-width: 400px; margin: 0 auto; }

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar, .markdown-body::-webkit-scrollbar { width: 4px; }
.modal-container::-webkit-scrollbar-thumb, .markdown-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.modal-container::-webkit-scrollbar-thumb:hover, .markdown-body::-webkit-scrollbar-thumb:hover { background: var(--c-accent-1); }

@media (max-width: 768px) {
  .modal-container { padding: 40px 24px; }
  .modal-lang-toggle { left: 24px; }
  .career-form .form-row { grid-template-columns: 1fr; }
  .step-header h2 { font-size: 28px; }
}

/* ??? Infinite Marquee ??? */
.marquee-wrapper {
  background: var(--c-surface);
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-content span {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  padding: 0 40px;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 2px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ??? Glassmorphic Background ??? */
.glass-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  transition: background 1s ease;
}
.glass-orb--1 {
  width: 600px; height: 600px;
  top: -10%; left: -10%;
  background: var(--c-accent-1);
}
.glass-orb--2 {
  width: 500px; height: 500px;
  bottom: -10%; right: -10%;
  background: var(--c-accent-2);
}
.glass-orb--3 {
  width: 400px; height: 400px;
  top: 40%; right: 20%;
  background: #ff007f;
}

/* ??? Ambient Light State ??? */
/* ??? About Page Styles ??? */
.about-hero {
  padding-block: 160px 80px;
  background: radial-gradient(circle at center, rgba(0, 136, 255, 0.05), transparent 70%);
}
.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* ??? Stats Section ??? */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
  padding-block: 60px;
}
.stat-item { padding: 30px; }
.stat-number { font-size: 64px; font-weight: 900; color: #fff; line-height: 1; }
.stat-plus { font-size: 32px; font-weight: 800; color: var(--c-accent-1); margin-left: 4px; }
.stat-label { font-size: 14px; color: var(--c-text-muted); font-weight: 700; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.15em; }

/* ??? Timeline ??? */
/* ??? Timeline (New Design) ??? */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 100px auto;
  padding-block: 40px;
}
.timeline-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--c-accent-1) 15%, var(--c-accent-2) 85%, transparent);
  transform: translateX(-50%);
  opacity: 0.2;
}
.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 60px;
  padding: 0 40px;
}
.timeline-item:nth-child(even) { margin-left: auto; text-align: left; }
.timeline-item:nth-child(odd) { text-align: right; }

.timeline-dot {
  position: absolute;
  top: 10px;
  width: 16px; height: 16px;
  background: #fff;
  border: 4px solid var(--c-accent-1);
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 15px var(--c-accent-1);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-content {
  background: var(--c-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  padding: 30px;
  border-radius: 24px;
  transition: all 0.4s ease;
}
.timeline-item:hover .timeline-content {
  border-color: var(--c-accent-1);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.timeline-year {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  color: var(--c-accent-1);
  background: rgba(112, 0, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.timeline-content h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.timeline-content p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .timeline-line { left: 20px; transform: none; }
  .timeline-item { width: 100%; text-align: left !important; padding-left: 50px; padding-right: 0; }
  .timeline-dot { left: 12px !important; }
}

/* ??? Careers ??? */
.careers-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.abstract-orb {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--c-accent-2), var(--c-accent-3));
  filter: blur(100px);
  border-radius: 50%;
  animation: orbFloat 15s ease-in-out infinite alternate;
  opacity: 0.3;
}
@keyframes orbFloat {
  0% { transform: translate(-10%, -10%) scale(1); }
  100% { transform: translate(20%, 20%) scale(1.3); }
}

@media (max-width: 992px) {
  .about-hero { padding-block: 120px 60px; }
  .careers-card { grid-template-columns: 1fr; padding: 40px; text-align: center; }
  .careers-visual { display: none; }
  .stat-number { font-size: 48px; }
}

/* ??? Team Section ??? */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.team-member-card {
  background: var(--c-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.member-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 40px auto 20px;
  border-radius: 50%;
  border: 3px solid var(--c-accent-1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.member-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-member-card:hover .member-visual img { transform: scale(1.05); }

.member-name-tag {
  text-align: center;
  padding: 0 20px 20px;
}
.member-name-tag h3 { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.member-name-tag p { font-size: 12px; font-weight: 700; color: var(--c-accent-1); text-transform: uppercase; letter-spacing: 0.1em; }

.member-rozet {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--c-accent-1), var(--c-accent-2));
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  box-shadow: 0 5px 15px rgba(112, 0, 255, 0.4);
}

.member-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.info-block h5 {
  font-size: 13px; font-weight: 800; color: var(--c-accent-2);
  margin-bottom: 12px; letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
  display: inline-block;
}
.info-block p { font-size: 15px; color: var(--c-text-muted); line-height: 1.7; font-weight: 500; }

@media (max-width: 992px) {
  .team-grid { grid-template-columns: 1fr; }
  .member-visual { width: 160px; height: 160px; }
}

/* ??? Contact Page Enhancements ??? */
.contact-link-large {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  display: block;
  margin-bottom: 8px;
  transition: 0.3s;
}
.contact-link-large:hover { color: var(--c-accent-1); transform: translateX(10px); }

.address-text { font-size: 18px; color: var(--c-text-muted); line-height: 1.6; font-weight: 500; }

.glass-map-container {
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: var(--c-surface);
}

.glass-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-accent-1);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.glass-form select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

.glass-form select option {
  background-color: #0f172a;
  color: #fff;
  padding: 10px;
}

/* ??? TCG Card Interaction ??? */
.tcg-trigger {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, var(--c-accent-1), var(--c-accent-2));
  padding: 20px 10px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.4);
  transition: 0.3s;
}
.tcg-trigger:hover { padding-left: 20px; }
.trigger-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.2em;
}

.tcg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.tcg-overlay.active { opacity: 1; visibility: visible; }

.cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  width: 90%;
  perspective: 2000px;
}

.card-item {
  width: 100%;
  aspect-ratio: 2/3;
  cursor: pointer;
  transform-style: preserve-3d;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-item.flipped .card-inner { transform: rotateY(180px); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.card-back {
  background: #000;
  z-index: 2;
  transform: rotateY(0deg) translateZ(1px);
}
.card-back img { width: 100%; height: 100%; object-fit: contain; display: block; }

.card-front {
  transform: rotateY(180deg) translateZ(1px);
}
.card-front img { width: 100%; height: 100%; object-fit: contain; display: block; }

.selection-message {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: 0.3em;
  text-shadow: 0 0 20px var(--c-accent-1);
}

.card-name-display {
  font-size: 32px;
  font-weight: 900;
  color: var(--c-accent-1);
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
}
.card-name-display.active { opacity: 1; transform: translateY(0); }

.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.95) 70%);
  opacity: 0;
  transition: 1s ease;
}
.spotlight.active { opacity: 1; }

.close-tcg {
  position: absolute;
  bottom: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
}
.close-tcg:hover { background: #fff; color: #000; }

@media (max-width: 768px) {
  .cards-container { grid-template-columns: repeat(2, 1fr); }
}

/* ??? Custom Game Cursors (Script-Based Fix) ??? */
.cursor-dot.game-cursor {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border-radius: 0;
  border: none;
  mix-blend-mode: normal;
  box-shadow: none;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

body.game-nation-wars .cursor-dot { background-image: url('images/cursor_nation_wars_1777632706892.png'); width: 40px; height: 40px; }
body.game-soul-spark .cursor-dot { background-image: url('images/cursor_soul_spark_1777632718176.png'); width: 40px; height: 40px; }
body.game-gods-ankh .cursor-dot { background-image: url('images/cursor_gods_ankh_1777632731179.png'); width: 40px; height: 40px; }
body.game-dont-go-alone .cursor-dot { background-image: url('images/cursor_dont_go_alone_1777632745003.png'); width: 60px; height: 60px; }

/* ??? Premium Loader (Dark Theme) ??? */
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #0B0F19; /* Deep dark background */
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 120px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Make logo white for dark theme */
  animation: pulseLogo 2s infinite ease-in-out;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-progress {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0088FF, #7000FF);
  transition: width 0.4s ease;
}
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ??? Don't Go Alone: Flashlight Effect ??? */
.flashlight-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9998;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s;
  /* Spotlight gradient */
  background: radial-gradient(
    circle 200px at var(--x, 50%) var(--y, 50%),
    transparent 10%,
    rgba(0, 0, 0, 0.95) 80%,
    rgba(0, 0, 0, 1) 100%
  );
}

.game-dont-go-alone main {
  background: #000;
}
.game-dont-go-alone .section {
  border: none;
}
.game-dont-go-alone .hero-subtext, 
.game-dont-go-alone .studio-card p {
  color: #444; /* Darker text to reveal with light */
}
.game-dont-go-alone h1, 
.game-dont-go-alone h3 {
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* ??? Slider Navigation ??? */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}
.slider-nav:hover {
  background: var(--c-accent-1);
  border-color: var(--c-accent-1);
  box-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
}
.slider-nav--prev { left: -80px; }
.slider-nav--next { right: -80px; }

@media (max-width: 1300px) {
  .slider-nav--prev { left: 0; }
  .slider-nav--next { right: 0; }
}
@media (max-width: 768px) {
  .slider-nav { width: 40px; height: 40px; }
}

/* MODAL & CAREER ADDITIONS */
.modal-lang-toggle { position: absolute; top: 20px; left: 20px; display: flex; gap: 10px; z-index: 10; }
.modal-lang-toggle .lang-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: 0.3s ease; }
.modal-lang-toggle .lang-btn.active { background: #7000FF; border-color: #7000FF; }
.modal-step { display: none; animation: fadeIn 0.3s ease; }
.modal-step.active { display: block; }
.modal-actions { display: flex; gap: 15px; margin-top: 30px; }
.modal-actions .btn { flex: 1; }
.w-100 { width: 100%; }
.markdown-body { text-align: left; max-height: 50vh; overflow-y: auto; padding-right: 15px; margin-top: 20px; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.6; }
.markdown-body h3 { color: #fff; margin-top: 25px; margin-bottom: 10px; font-size: 1.2rem; }
.markdown-body ul { padding-left: 20px; margin-bottom: 15px; }
.markdown-body li { margin-bottom: 8px; }
.markdown-body strong { color: #41a1ff; }
.markdown-body::-webkit-scrollbar { width: 6px; }
.markdown-body::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.markdown-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
.markdown-body::-webkit-scrollbar-thumb:hover { background: #7000FF; }
