/* ============================================
   REBELIÃO STUDIO — Design System & Main Styles
   IDV: Punk/Street Art / Halftone / Rebel Cat
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@100;300;400;900&family=Outfit:wght@100..900&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* IDV Colors */
  --rebel-red: #C0392B;
  --rebel-red-light: #E74C3C;
  --rebel-red-dark: #962D22;
  --rebel-dark: #2A0501;
  --rebel-blue: #5F8FA4;
  --rebel-blue-light: #7EB3C9;
  --rebel-wall: #DDD0CE;
  --rebel-brown-bg: #3A0A05;

  /* Backgrounds */
  --bg-primary: #1A0A08;
  --bg-secondary: #120604;
  --bg-card: rgba(42, 5, 1, 0.7);
  --bg-card-hover: rgba(192, 57, 43, 0.15);
  --bg-navbar: rgba(26, 10, 8, 0.95);
  --bg-overlay: rgba(26, 10, 8, 0.6);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #E0D4D0;
  --text-muted: #A39691;
  --text-accent: #E74C3C;

  /* Typography */
  --font-display: 'Londrina Solid', cursive;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gap: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Borders */
  --border-subtle: 1px solid rgba(192, 57, 43, 0.2);
  --border-accent: 2px solid var(--rebel-red);

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(192, 57, 43, 0.3);
  --shadow-text: 2px 3px 0px rgba(42, 5, 1, 0.8);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--rebel-red) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--rebel-red);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rebel-red-light);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; }

p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

a {
  color: var(--rebel-red-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--text-primary);
}

/* --- TYPEWRITER --- */
.typewriter {
  border-right: 0.1em solid var(--rebel-red);
  white-space: pre-wrap;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--rebel-red); }
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--rebel-red);
  border-radius: 2px;
}

.section-title .subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 12px;
  font-weight: 300;
}

.accent-text {
  color: var(--rebel-red);
}

.blue-text {
  color: var(--rebel-blue);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--rebel-red);
  color: var(--rebel-red);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--rebel-red);
  transition: left var(--transition-smooth);
  z-index: -1;
}

.btn:hover {
  color: var(--text-primary);
  border-color: var(--rebel-red);
  box-shadow: var(--shadow-glow);
}

.btn:hover::before {
  left: 0;
}

.btn-filled {
  background: var(--rebel-red);
  color: var(--text-primary);
}

.btn-filled::before {
  background: var(--rebel-red-dark);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-blue {
  border-color: var(--rebel-blue);
  color: var(--rebel-blue);
}

.btn-blue::before {
  background: var(--rebel-blue);
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-navbar);
  padding: 12px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(192, 57, 43, 0.15);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  transition: transform var(--transition-smooth);
  filter: brightness(0) invert(1);
}

.navbar.scrolled .navbar-brand img {
  height: 35px;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 4px 0;
  text-decoration: none;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rebel-red);
  transition: width var(--transition-smooth);
}

.navbar-links a:hover {
  color: var(--rebel-red);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-socials {
  display: flex;
  gap: 12px;
}

.navbar-socials a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.navbar-socials a:hover {
  color: var(--rebel-red);
  transform: translateY(-2px);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 20px;
  padding: 4px;
  cursor: pointer;
}

.lang-toggle button {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 16px;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.lang-toggle button.active {
  background: var(--rebel-red);
  color: var(--text-primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-smooth);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- HERO CAROUSEL --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(26, 10, 8, 0.95) 0%,
    rgba(26, 10, 8, 0.6) 30%,
    rgba(26, 10, 8, 0.2) 60%,
    rgba(26, 10, 8, 0.4) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 0 5vw 100px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}

.swiper-slide-active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rebel-red);
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.4);
  padding: 6px 16px;
  margin-bottom: 16px;
}

.hero-slide-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-shadow: var(--shadow-text);
  margin-bottom: 12px;
  line-height: 1;
}

.hero-slide-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Hero Navigation */
.hero .swiper-button-next,
.hero .swiper-button-prev {
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  background: rgba(26, 10, 8, 0.6);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 0;
  transition: all var(--transition-smooth);
}

.hero .swiper-button-next:hover,
.hero .swiper-button-prev:hover {
  background: var(--rebel-red);
  border-color: var(--rebel-red);
}

.hero .swiper-button-next::after,
.hero .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.hero .swiper-pagination {
  position: absolute;
  top: 50% !important;
  right: 5% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 10;
  width: auto;
}

.hero .swiper-pagination-bullet {
  width: auto;
  height: auto;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-right: 3px solid transparent;
  border-radius: 0;
  text-align: right;
  cursor: pointer;
  transition: all var(--transition-smooth);
  opacity: 1;
}

.hero .swiper-pagination-bullet:hover {
  color: rgba(255, 255, 255, 0.8);
}

.hero .swiper-pagination-bullet-active {
  background: transparent;
  color: var(--text-primary);
  border-right-color: var(--rebel-red-light);
  text-shadow: var(--shadow-text);
  transform: translateX(-10px);
}

/* --- HALFTONE TEXTURE OVERLAY --- */
.halftone-section {
  position: relative;
}

.halftone-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/idv/halftone-1.png');
  background-size: cover;
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

.halftone-section > * {
  position: relative;
  z-index: 1;
}

/* --- ABOUT SECTION --- */
.about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  position: relative;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(192, 57, 43, 0.05);
  border-left: 3px solid var(--rebel-red);
  transition: all var(--transition-smooth);
}

.about-value:hover {
  background: rgba(192, 57, 43, 0.1);
  transform: translateX(8px);
}

.about-value-icon {
  font-size: 1.5rem;
  color: var(--rebel-red);
  min-width: 36px;
  text-align: center;
}

.about-value h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-value p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-mascot {
  max-width: 350px;
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(192, 57, 43, 0.2));
  animation: float 6s ease-in-out infinite;
}

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

.about-deco {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

.about-deco-1 {
  top: -40px;
  right: -60px;
  width: 200px;
  transform: rotate(15deg);
}

.about-deco-2 {
  bottom: -30px;
  left: -40px;
  width: 150px;
  transform: rotate(-20deg);
}

/* --- GAMES SECTION --- */
.games {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.game-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(192, 57, 43, 0.1);
  transition: all var(--transition-smooth);
  cursor: pointer;
  group: true;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(192, 57, 43, 0.4);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.game-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.game-card:hover .game-card-image img {
  transform: scale(1.08);
}

.game-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(26, 10, 8, 0.9), transparent);
  pointer-events: none;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(192, 57, 43, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.game-card-overlay .btn {
  background: var(--text-primary);
  color: var(--rebel-red-dark);
  border-color: var(--text-primary);
}

.game-card-overlay .btn:hover {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.overlay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 0 12px;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-overlay p {
  color: var(--text-primary);
  text-align: center;
  padding: 0 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.game-card-info {
  padding: 20px;
  position: relative;
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.game-card-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.game-card-platform svg {
  width: 14px;
  height: 14px;
}

/* --- COMMUNITY SECTION --- */
.community {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.community-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.community h2 {
  margin-bottom: 16px;
}

.community p {
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.community-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.community-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
  padding: 16px;
  border: 1px solid rgba(192, 57, 43, 0.1);
  min-width: 100px;
}

.social-link:hover {
  color: var(--rebel-red);
  border-color: var(--rebel-red);
  transform: translateY(-4px);
  background: rgba(192, 57, 43, 0.05);
}

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

.community-deco {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

.community-deco-left {
  left: -80px;
  bottom: -20px;
  width: 300px;
  transform: rotate(-15deg);
}

.community-deco-right {
  right: -60px;
  top: -40px;
  width: 250px;
  transform: rotate(20deg);
}

/* --- SEPARATOR --- */
.section-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--rebel-red),
    transparent
  );
  opacity: 0.3;
}

/* --- FOOTER --- */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(192, 57, 43, 0.15);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
  opacity: 0.8;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--rebel-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-column ul a:hover {
  color: var(--rebel-red);
  padding-left: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(192, 57, 43, 0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-socials {
  display: flex;
  gap: 16px;
}

.footer-bottom-socials a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-bottom-socials a:hover {
  color: var(--rebel-red);
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(10) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(11) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(12) { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 992px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-navbar);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition-smooth);
    border-left: 1px solid rgba(192, 57, 43, 0.2);
  }

  .navbar-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .navbar-socials {
    display: none;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .about-mascot {
    max-width: 250px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-slide-content {
    padding: 0 40px 80px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    height: 85vh;
    min-height: 500px;
  }

  .hero-slide-content {
    padding: 0 24px 70px;
  }

  .hero-slide-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-slide-desc {
    font-size: 0.95rem;
  }

  .hero .swiper-button-next,
  .hero .swiper-button-prev {
    display: none;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .community-buttons {
    flex-direction: column;
    align-items: center;
  }

  .community-socials {
    gap: 12px;
  }

  .social-link {
    min-width: 80px;
    padding: 12px;
    font-size: 0.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero {
    height: 75vh;
    min-height: 450px;
  }

  .hero-slide-content {
    padding: 0 16px 60px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .about-value {
    padding: 12px 16px;
  }

  .lang-toggle button {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
}

/* --- Loading State --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader img {
  width: 80px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.page-loader p {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--rebel-red);
  letter-spacing: 3px;
  text-transform: uppercase;
}
