/* ===================================================
   ROBOWARS.CSS — Texcelerators Raudra Page
   =================================================== */


/* ===== CSS VARIABLES ===== */
:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --accent: #f43f5e;
  --dark: #1e293b;
  --light: #f8fafc;
  --neutral: #94a3b8;
  --background: #0f172a;
  --foreground: #f1f5f9;
  --muted: #1F2937;
  --muted-foreground: #cbd5e1;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --emerald: #10b981;
  /* Blue fire palette for RAUDRA title and accents */
  --fire-a: #00bfff;
  --fire-b: #1e90ff;
  --fire-c: #7ec8ff;
  --sidebar-width-collapsed: 80px;
  --sidebar-width-expanded: 280px;
  --navbar-height: 120px;
  --transition-duration: 0.3s;
}


/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ===== FONTS ===== */
@font-face {
  font-family: 'Equinox';
  src: url('Assets/fonts/Equinox Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Aquire';
  src: url('Assets/fonts/Aquire-BW0ox.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}


/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden; /* prevent horizontal scroll from animations/transforms */
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ===== TYPOGRAPHY ===== */
.font-addition {
  font-family: 'Equinox', sans-serif;
}

/* Clip-text trick: gradient painted onto text by clipping background to text shape */
.gradient-fire {
  background: linear-gradient(135deg, var(--fire-a), var(--fire-b), var(--fire-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* hides the actual text colour so gradient shows */
  background-clip: text;
}

/* Blue-purple gradient — used on section titles */
.gradient-blue {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===================================================
   HEADER / NAVBAR
   =================================================== */
#main-header {
  position: fixed; /* stays pinned to viewport top while page scrolls */
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px); /* frosted-glass blur over page content beneath */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* below sidebar (1001) but above all page content */
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform var(--transition-duration) ease; /* used to slide navbar off-screen when sidebar opens */
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  height: var(--navbar-height);
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-image img,
.sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.navbar-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Equinox', sans-serif;
  margin: 0;
}

.logo-text span {
  color: var(--primary);
}

/* SVPCET banner image — nudged right to sit centred between logos */
.navbar-text.left-text img {
  height: 220px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform: translateX(55px); /* compensates for asymmetric surrounding elements */
}

.tagline {
  font-size: 1rem;
  font-family: 'Equinox', sans-serif;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px; /* tightens gap between logo text and tagline */
}

/* Fine-tuned negative margins pull each navbar zone inward to fill the flex gap */
.navbar-logo.left-logo  { margin-right: -1rem; }
.navbar-text.left-text  { margin-left: -10rem; }
.navbar-text.right-text { margin-right: -4rem; }
.navbar-logo.right-logo { margin-left: -1rem; }


/* ===== MOBILE NAVBAR ===== */
.mobile-center {
  display: none; /* hidden on desktop; shown via media query */
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-start;
  padding-left: 1rem;
}

.mobile-college-logo,
.mobile-club-logo {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* prevents logos shrinking when sibling text is long */
}

.mobile-college-logo img,
.mobile-club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.mobile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-title {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Equinox', sans-serif;
  color: var(--foreground);
}

.mobile-subtitle {
  font-size: 0.7rem;
  font-family: 'Equinox', sans-serif;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px; /* tightens subtitle up against title */
}


/* ===== HAMBURGER ===== */
.hamburger-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: -7rem; /* pulls button left to avoid dead space on desktop layout */
}

.hamburger-btn {
  background: rgba(37, 99, 235, 0.1);
  border: 2px solid rgba(37, 99, 235, 0.3);
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
}

.hamburger-btn:hover {
  background-color: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(1.05);
}

.hamburger-line {
  width: 30px;
  height: 4px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* rotates around the bar's own centre for clean X animation */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hamburger-btn:hover .hamburger-line {
  background-color: var(--primary);
}

/* Animate three bars into an X when .active is added */
.hamburger-btn.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; transform: scale(0); } /* middle bar fades out */
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(8px, -8px); }


/* ===== DROPDOWN NAV MENU ===== */
.nav-menu {
  position: absolute;
  top: 100%; /* anchored directly below the header */
  left: 0;
  right: 0;
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  transform: translateY(-100%); /* hidden by sliding up behind the header */
  opacity: 0;
  visibility: hidden; /* removed from tab order when closed */
  transition: all var(--transition-duration) ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
  transform: translateY(0); /* slides down into view */
  opacity: 1;
  visibility: visible;
}

.nav-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(30, 41, 59, 0.2));
  transform: translateY(-20px); /* staggered drop-in start position; JS adds .visible */
  opacity: 0;
}

.nav-link:hover {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.1));
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px); /* subtle lift on hover */
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.nav-link.active {
  background: linear-gradient(145deg, var(--primary), var(--purple));
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.nav-link i {
  font-size: 1.2rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.nav-link:hover i,
.nav-link.active i {
  color: white;
}

.nav-link span {
  font-weight: 500;
  font-size: 1rem;
}


/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed; /* overlays all page content */
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width-collapsed); /* 80px — icon-only by default */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  z-index: 1001; /* one above navbar so it overlaps the header */
  transform: translateX(-100%); /* off-screen left until .active */
  opacity: 0;
  transition: all var(--transition-duration) ease;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
  transform: translateX(0); /* slides in from left */
  opacity: 1;
}

.sidebar:hover {
  width: var(--sidebar-width-expanded); /* 280px — expands to show labels on hover */
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* logo stays fixed size while sidebar expands */
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  font-family: 'Equinox', sans-serif;
  opacity: 0; /* hidden in collapsed state */
  transition: opacity 0.3s ease 0.1s; /* 0.1s delay so it fades in after width expands */
  white-space: nowrap;
  min-width: 0;
}

.sidebar:hover .sidebar-brand {
  opacity: 1; /* brand text revealed when sidebar expands */
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--foreground);
}

.sidebar-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* clips any pseudo-element glow effects */
  white-space: nowrap;
  border: 1px solid transparent;
}

.sidebar-link span {
  opacity: 0; /* text hidden in collapsed state */
  transform: translateX(-10px); /* starts slightly left for a slide-in feel */
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.sidebar:hover .sidebar-link span {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-link:hover {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
  color: var(--foreground);
  transform: translateX(5px); /* small nudge right gives tactile feedback */
}

.sidebar-link.active {
  background: linear-gradient(145deg, var(--primary), var(--purple));
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  border-color: transparent;
}

.sidebar-link i {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px; /* fixed width keeps icons aligned in collapsed and expanded states */
  text-align: center;
}


/* ===== MAIN CONTENT ===== */
#main-content {
  padding-top: var(--navbar-height); /* prevents content hiding behind fixed navbar */
  transition: margin-left var(--transition-duration) ease;
}

/* Slide navbar off screen when sidebar is open — matches Homepage.css behaviour */
body.sidebar-active #main-header {
  transform: translateY(-100%);
}

body.sidebar-active #main-content {
  margin-left: var(--sidebar-width-collapsed); /* indent content by collapsed sidebar width */
  transition: margin-left var(--transition-duration) ease;
}


/* ===================================================
   SHARED SECTION STYLES
   =================================================== */
.rw-section {
  padding: 6rem 0;
  position: relative; /* establishes stacking context for ::before pseudo-elements */
  overflow: hidden;
}

.rw-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.rw-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-family: 'Audiowide', cursive;
  color: #93c5fd;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 30px; /* pill shape */
  background: rgba(37, 99, 235, 0.07);
}

.rw-section-title {
  font-family: 'Equinox', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem); /* fluid — scales between 2rem and 3rem */
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.rw-section-desc {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}


/* ===== SCROLL ANIMATIONS ===== */
/* Elements start invisible and shifted down; JS adds .visible to trigger the transition */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===================================================
   HERO SECTION
   =================================================== */
.rw-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8rem; /* shifts content upward so scroll-cue arrow has breathing room */
  overflow: hidden;
}

.rw-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.3) saturate(1.1); /* heavily darkened so overlaid text is legible */
  z-index: 0; /* bottom of hero stacking order */
  animation: heroZoom 14s ease-in-out infinite alternate; /* slow Ken Burns zoom */
}

@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.1); }
}

/* Multi-layer radial gradients create a blue atmospheric glow + dark vignette at bottom */
.rw-hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1; /* above image, below canvas */
  background:
    radial-gradient(ellipse at 50% 80%, rgba(0, 191, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 20%, rgba(30, 144, 255, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(126, 200, 255, 0.09) 0%, transparent 45%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.6) 60%, rgba(15, 23, 42, 0.97) 100%);
}

/* Ember particle canvas — sits above the background, behind text */
#raudraFireCanvas {
  position: absolute;
  inset: 0;
  z-index: 2; /* above overlay, behind hero content */
  pointer-events: none; /* canvas never intercepts mouse/touch */
  width: 100%;
  height: 100%;
}

.rw-hero-content {
  position: relative;
  z-index: 3; /* topmost hero layer — text and buttons */
  text-align: center;
  padding: 0 1.5rem;
  max-width: 960px;
  animation: heroFadeIn 1s ease 0.4s both; /* 0.4s delay so particles start first */
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  font-family: 'Audiowide', cursive;
  letter-spacing: 2px;
  color: #93c5fd;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.rw-hero-badge i {
  color: var(--primary);
}

.rw-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

.rw-title-line {
  font-family: 'Equinox', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  letter-spacing: 8px;
  color: rgba(241, 245, 249, 0.45); /* intentionally faint — supporting text around main title */
  text-transform: uppercase;
}

/* Main RAUDRA wordmark — Aquire font with animated blue fire gradient via clip-text trick */
.rw-title-main {
  font-family: 'Aquire', 'Equinox', sans-serif;
  font-size: clamp(4.5rem, 15vw, 10rem); /* fluid type: 4.5rem on mobile, up to 10rem on wide screens */
  font-weight: 900;
  line-height: 0.88; /* tighter than normal to collapse vertical space on the large text */
  letter-spacing: 4px;
  padding: 0.1em 0.15em 0.15em;
  background: linear-gradient(135deg, #7ec8ff 0%, #1e90ff 35%, #00bfff 65%, #e0f4ff 100%);
  background-size: 300% 300%; /* oversized so blueFlameShift can pan across it */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 35px rgba(0, 191, 255, 0.55)); /* glow ring around the text */
  animation: titleBreath 4s ease-in-out infinite, blueFlameShift 3s ease-in-out infinite;
}

/* Pulses the glow between dim and bright to simulate fire breathing */
@keyframes titleBreath {
  0%, 100% { filter: drop-shadow(0 0 35px rgba(0, 191, 255, 0.55)); }
  50%       { filter: drop-shadow(0 0 80px rgba(0, 191, 255, 0.9)) drop-shadow(0 0 120px rgba(30, 144, 255, 0.5)); }
}

/* Pans the oversized gradient left-right to create a shifting flame colour effect */
@keyframes blueFlameShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hindi transliteration — softer blue fire, offset phase so it doesn't pulse in sync */
.rw-title-hindi {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 6px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.8), rgba(30, 144, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.3rem;
  animation: titleBreath 4s ease-in-out 0.5s infinite; /* 0.5s phase offset from main title */
}

.rw-title-meaning {
  font-size: 0.78rem;
  letter-spacing: 4px;
  color: rgba(241, 245, 249, 0.35); /* very faint — decorative only */
  text-transform: uppercase;
  font-family: 'Audiowide', cursive;
  margin-top: 0.5rem;
}

.rw-hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(241, 245, 249, 0.7);
  max-width: 580px;
  margin: 1.5rem auto 2rem;
  line-height: 1.75;
}

/* Stats bar */
.rw-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 16px;
  padding: 1.5rem 2rem;
}

.rw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex: 1; /* each stat takes equal share of bar width */
}

.rw-stat-num {
  font-family: 'Equinox', sans-serif;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.rw-stat-unit {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  -webkit-text-fill-color: var(--muted-foreground); /* overrides clip-text inheritance from parent */
}

.rw-stat-label {
  font-size: 0.68rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rw-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(37, 99, 235, 0.3); /* thin vertical rule between stats */
  margin: 0 1rem;
}

/* CTA buttons */
.rw-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.rw-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.rw-btn-primary:hover {
  transform: translateY(-3px); /* lift effect on hover */
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
}

.rw-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.rw-btn-youtube {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

.rw-btn-youtube:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}


/* ===================================================
   ABOUT SECTION
   =================================================== */
/* Subtle radial glows at opposite corners add depth without competing with content */
.rw-about {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    var(--background);
}

.rw-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.rw-about-visual {
  position: relative;
}

.rw-about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* clips the scale transform on hover */
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.08);
}

.rw-about-main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.rw-about-img-wrap:hover .rw-about-main-img {
  transform: scale(1.04);
}

/* Gradient overlay fades the image bottom into the card — makes badge text legible */
.rw-about-img-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(37, 99, 235, 0.12) 100%);
  pointer-events: none;
}

.rw-about-badge-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(139, 92, 246, 0.92));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: 'Audiowide', cursive;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rw-about-sub-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.rw-sub-img-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(30, 41, 59, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rw-sub-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.rw-sub-img-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rw-sub-img-card span {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

.rw-about-text {
  padding: 0;
}

.rw-about-text .rw-section-label {
  margin-bottom: 1rem;
}

.rw-about-para {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.rw-about-para strong { color: var(--foreground); }
.rw-about-para em     { color: #93c5fd; font-style: normal; } /* em used for blue highlight, not italics */

.rw-about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.rw-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.3));
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rw-highlight:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.rw-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #93c5fd;
  flex-shrink: 0; /* icon stays fixed size when text wraps */
  transition: transform 0.3s ease;
}

.rw-highlight:hover .rw-highlight-icon {
  transform: scale(1.15) rotate(5deg); /* playful wobble on hover */
}

.rw-highlight strong {
  display: block;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.2rem;
}

.rw-highlight p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 0;
}


/* ===================================================
   SPECS SECTION
   =================================================== */
.rw-specs {
  background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.4) 50%, rgba(15, 23, 42, 1) 100%);
}

/* Centred radial glow behind the spec cards grid */
.rw-specs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.rw-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

/*
 * Aceternity-style cursor spotlight on spec cards.
 * JS sets --mouse-x / --mouse-y CSS vars on each card to the cursor position,
 * then ::before renders a radial gradient centred on that point.
 */
.rw-spec-card {
  position: relative;
  overflow: hidden; /* clips the spotlight pseudo-element to card bounds */
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}

/* Blue spotlight that follows the cursor — opacity:0 until hover */
.rw-spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1; /* above card background, below content */
  pointer-events: none;
}

.rw-spec-card:hover::before {
  opacity: 1;
}

/* Smaller purple secondary spotlight for depth */
.rw-spec-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.2), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0; /* behind ::before spotlight */
  pointer-events: none;
}

.rw-spec-card:hover::after {
  opacity: 1;
}

.rw-spec-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-6px);
  /* layered box-shadow: border glow + depth shadow + wide blue ambient */
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 80px rgba(37, 99, 235, 0.08);
}

/* z-index:2 ensures icon/value/label sit above both spotlight pseudo-elements */
.rw-spec-icon,
.rw-spec-value,
.rw-spec-label {
  position: relative;
  z-index: 2;
}

.rw-spec-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #93c5fd;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.rw-spec-card:hover .rw-spec-icon {
  transform: scale(1.15) rotate(5deg);
}

.rw-spec-value {
  font-family: 'Equinox', sans-serif;
  font-size: 1.6rem;
  color: var(--foreground);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.rw-spec-value span {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-family: 'Outfit', sans-serif; /* back to body font for the unit suffix */
}

.rw-spec-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ===================================================
   JOURNEY — YEAR-BASED ACCORDION
   =================================================== */
.rw-journey {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    var(--background);
}

.rw-year-block {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  overflow: hidden; /* clips the body panel to the card's rounded corners */
  transition: border-color 0.3s ease;
}

.rw-year-block:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.rw-year-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.rw-year-header:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(30, 41, 59, 0.95));
}

.rw-year-header[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.08));
  border-bottom: 1px solid rgba(37, 99, 235, 0.2); /* separator line when panel is open */
}

.rw-year-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto; /* takes all available space, pushing meta badges right */
}

.rw-year-num {
  font-family: 'Equinox', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.rw-year-label {
  font-size: 1rem;
  color: var(--foreground);
  font-weight: 500;
}

.rw-year-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto; /* pushes badge group to far right of the header */
}

.rw-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Colour-coded badge variants for event type */
.rw-meta-badge.events       { background: rgba(37, 99, 235, 0.15);  color: #93c5fd; border: 1px solid rgba(37, 99, 235, 0.3); }
.rw-meta-badge.debut-badge  { background: rgba(6, 182, 212, 0.12);  color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.rw-meta-badge.win-badge    { background: rgba(234, 179, 8, 0.15);  color: #fde047; border: 1px solid rgba(234, 179, 8, 0.35); }
.rw-meta-badge.ongoing-badge{ background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }

.rw-year-chevron {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

/* Rotate chevron 180° when panel is open to form an upward-pointing arrow */
.rw-year-header[aria-expanded="true"] .rw-year-chevron {
  transform: rotate(180deg);
}

/* Accordion panel — max-height:0 collapses it; JS adds .open to animate open */
.rw-year-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* ease-in-out curve feels natural */
  background: rgba(15, 23, 42, 0.6);
}

.rw-year-body.open {
  max-height: 3000px; /* large enough to never clip content; real height is unknown at paint time */
}

.rw-event {
  display: grid;
  grid-template-columns: 340px 1fr; /* fixed photo column + flexible text column */
  gap: 2rem;
  padding: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

.rw-event:last-child {
  border-bottom: none;
}

.rw-event-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 260px;
  flex-shrink: 0;
}

.rw-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rw-event-img-wrap:hover .rw-event-img {
  transform: scale(1.05);
}

.rw-event-tag-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Tag colour variants overlaid on event photos */
.rw-event-tag-overlay.debut    { background: rgba(37, 99, 235, 0.85);  color: #fff; }
.rw-event-tag-overlay.win      { background: rgba(234, 179, 8, 0.9);   color: #000; } /* dark text on gold for contrast */
.rw-event-tag-overlay.battle   { background: rgba(139, 92, 246, 0.85); color: #fff; }
.rw-event-tag-overlay.upgraded { background: rgba(6, 182, 212, 0.85);  color: #fff; }
.rw-event-tag-overlay.ongoing  { background: rgba(16, 185, 129, 0.85); color: #fff; }

/* Gold glow ring on the photo of a winning event */
.rw-event.featured-win .rw-event-img-wrap {
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.5), 0 0 30px rgba(234, 179, 8, 0.2);
}

/* Radial gold glow at bottom of winning event image — adds trophy-feel warmth */
.rw-win-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(234, 179, 8, 0.18), transparent 70%);
}

.rw-event-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rw-event-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rw-event-date,
.rw-event-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.rw-event-date i,
.rw-event-location i {
  color: var(--primary);
  font-size: 0.75rem;
}

.rw-event-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--foreground);
  margin: 0;
}

.rw-trophy-emoji {
  font-size: 1.2rem;
}

.rw-event-desc {
  font-size: 0.93rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0;
}

.rw-beats {
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.rw-beats-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fde047;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.6rem;
}

.rw-beats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rw-beats-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.rw-beats-list li i {
  color: #f87171; /* red bullet icon — defeated opponent indicator */
  font-size: 0.75rem;
}

.rw-event-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.rw-event-video {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.rw-video-label {
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rw-event-video iframe {
  width: 100%;
  aspect-ratio: 16/9; /* maintains correct video ratio without fixed height */
  border: none;
  display: block;
}

.rw-upcoming-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted-foreground);
}

.rw-upcoming-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
}

.rw-upcoming-placeholder h4 {
  color: var(--foreground);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.rw-upcoming-placeholder p {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  font-size: 0.93rem;
}

.rw-upcoming-tags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rw-upcoming-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  font-size: 0.8rem;
}


/* ===================================================
   GALLERY SECTION
   =================================================== */
.rw-gallery-section {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    var(--background);
}

.rw-gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.rw-filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 30px; /* pill shape */
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.5);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.rw-filter-btn:hover,
.rw-filter-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.12));
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--foreground);
}

.rw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.rw-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3; /* enforces consistent thumbnail proportions */
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(30, 41, 59, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Cursor spotlight — same technique as spec cards */
.rw-gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.13), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.rw-gallery-item:hover::before {
  opacity: 1;
}

.rw-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 60px rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.rw-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  z-index: 0;
  position: relative; /* establishes stacking context so img is below ::before spotlight */
}

.rw-gallery-item:hover img {
  transform: scale(1.08);
}

/* Caption overlay — hidden until hover */
.rw-gallery-overlay {
  position: absolute;
  inset: 0;
  z-index: 2; /* above spotlight pseudo-element */
  background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.92) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rw-gallery-item:hover .rw-gallery-overlay {
  opacity: 1;
}

/* Magnify icon centred over the image */
.rw-gallery-overlay i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfectly centred regardless of icon dimensions */
  font-size: 2rem;
  color: white;
  opacity: 0.8;
}

.rw-gallery-overlay span {
  font-size: 0.85rem;
  color: var(--foreground);
  font-weight: 500;
  text-align: center;
}

.rw-gallery-item.hidden {
  display: none; /* JS filter hides items that don't match active category */
}


/* ===== LIGHTBOX ===== */
.rw-lightbox {
  display: none; /* JS switches to display:flex via .active */
  position: fixed;
  inset: 0;
  z-index: 9999; /* topmost layer — above everything */
  background: rgba(5, 8, 20, 0.97);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.rw-lightbox.active {
  display: flex;
}

.rw-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

/* Media container — JS injects either <img> or <video> depending on file type */
#lightboxMediaContainer {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Both images and videos share the same visual treatment */
#lightboxMediaContainer img,
#lightboxMediaContainer video {
  max-width: 90vw;
  max-height: 80vh; /* leaves room for caption below */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(37, 99, 235, 0.2);
  display: block;
}

#lightboxCaption {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding: 0 2rem;
}

.rw-lightbox-close,
.rw-lightbox-prev,
.rw-lightbox-next {
  position: absolute;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--foreground);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rw-lightbox-close:hover,
.rw-lightbox-prev:hover,
.rw-lightbox-next:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* Absolute positioning relative to .rw-lightbox-inner */
.rw-lightbox-close { top: 1.5rem; right: 1.5rem; }
.rw-lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); } /* vertically centred on image */
.rw-lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }


/* ===================================================
   VIDEOS SECTION
   =================================================== */
.rw-videos-section {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--background) 0%, rgba(30, 41, 59, 0.25) 50%, var(--background) 100%);
}

.rw-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Video cards reuse the cursor spotlight technique from spec cards */
.rw-video-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rw-video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.rw-video-card:hover::before {
  opacity: 1;
}

.rw-video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.18), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.rw-video-card:hover::after {
  opacity: 1;
}

.rw-video-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(37, 99, 235, 0.08);
}

/* Intrinsic ratio wrapper — padding-bottom trick keeps 16:9 without a fixed height */
.rw-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 9/16 = 56.25% — classic responsive iframe technique */
  height: 0;
  overflow: hidden;
  z-index: 2; /* above spotlight pseudo-elements */
}

.rw-video-wrap iframe {
  position: absolute; /* fills the padding-bottom box */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.rw-video-info {
  padding: 1.2rem 1.5rem;
  position: relative;
  z-index: 2; /* above spotlight pseudo-elements */
}

.rw-video-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rw-video-info h3 i {
  color: #93c5fd;
  font-size: 0.9rem;
}

.rw-video-info p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.rw-youtube-cta {
  text-align: center;
}


/* ===================================================
   BEHIND THE BUILD SECTION
   =================================================== */
.rw-bts-section {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.07) 0%, transparent 50%),
    var(--background);
}

.rw-bts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.rw-bts-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.08);
  min-height: 220px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rw-bts-card.large {
  grid-column: span 2; /* wide card spans two of the three columns */
  min-height: 280px;
}

.rw-bts-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.rw-bts-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}

.rw-bts-card:hover img {
  transform: scale(1.08);
}

/* Dark gradient from bottom — slides caption text into view on hover */
.rw-bts-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rw-bts-card:hover .rw-bts-overlay {
  opacity: 1;
}

.rw-bts-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.3rem;
}

.rw-bts-text p {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.rw-bts-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.rw-bts-quote blockquote {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.4));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-left: 4px solid var(--primary); /* thick left accent bar — classic blockquote style */
  border-radius: 16px;
  padding: 2rem 2.5rem;
}

.rw-bts-quote i {
  font-size: 1.5rem;
  color: #93c5fd;
  opacity: 0.6;
  display: block;
  margin-bottom: 1rem;
}

.rw-bts-quote p {
  font-size: 1.15rem;
  color: var(--foreground);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.rw-bts-quote cite {
  font-size: 0.85rem;
  color: #93c5fd;
  font-style: normal; /* overrides browser default italic on <cite> */
  font-weight: 600;
  letter-spacing: 1px;
}


/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 1) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr; /* wider first column for branding/description */
  gap: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-image {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-description {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.footer-copyright {
  color: var(--neutral);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.footer-credit {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-family: 'Outfit', sans-serif;
  white-space: pre-line; /* respects \n line breaks in the credit string */
  line-height: 1.7;
}

.footer-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link-item a,
.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #93c5fd;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  font-size: 0.85rem;
  flex-shrink: 0; /* icon stays fixed when contact text wraps */
}

.contact-text {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #93c5fd;
}

.follow-section {
  margin-top: 1.5rem;
}

.follow-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.follow-links {
  display: flex;
  gap: 0.75rem;
}

.follow-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.follow-link:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.15));
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  transform: translateY(-3px);
}


/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
  .rw-videos-grid { grid-template-columns: 1fr; } /* single column — 500px min-width no longer fits */
  .rw-event { grid-template-columns: 1fr; } /* photo + text stack vertically */
  .rw-event-img-wrap { height: 220px; }
}

@media (max-width: 900px) {
  .rw-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .rw-bts-grid { grid-template-columns: 1fr 1fr; }
  .rw-bts-card.large { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Swap desktop multi-logo navbar for compact mobile version */
  .navbar-logo.left-logo,
  .navbar-text.left-text,
  .navbar-text.right-text,
  .navbar-logo.right-logo { display: none; }
  .mobile-center { display: flex; }
  .hamburger-container { margin-left: auto; } /* resets the -7rem desktop offset */
}

@media (max-width: 600px) {
  .rw-hero { min-height: 100svh; } /* svh accounts for mobile browser chrome height */
  .rw-hero-stats { padding: 1rem; max-width: 100%; }
  .rw-stat-num { font-size: 1.6rem; }
  .rw-hero-cta { flex-direction: column; align-items: center; }
  .rw-btn { width: 100%; justify-content: center; } /* full-width tap targets on mobile */
  .rw-specs-grid { grid-template-columns: 1fr 1fr; }
  .rw-gallery-grid { grid-template-columns: 1fr 1fr; }
  .rw-bts-grid { grid-template-columns: 1fr; }
  .rw-bts-card.large { grid-column: span 1; } /* large card no longer spans — back to full width */
  .rw-section { padding: 4rem 0; }
  .rw-videos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .rw-specs-grid { grid-template-columns: 1fr; } /* single column on very narrow phones */
  .rw-gallery-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   CUSTOM CURSOR — Full Page Blue Fire Trail
   =================================================== */
body {
  cursor: none; /* hides the default OS cursor */
}

.rw-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #00bfff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.2s ease;
  box-shadow:
    0 0 6px 2px rgba(0, 191, 255, 0.8),
    0 0 14px 4px rgba(30, 144, 255, 0.5);
}

.rw-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0, 191, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition:
    width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.2s ease,
    opacity 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

/* Expand ring on hoverable elements */
body.cursor-hover .rw-cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
}

body.cursor-hover .rw-cursor-dot {
  width: 10px;
  height: 10px;
  background: #b197fc;
  box-shadow:
    0 0 8px 3px rgba(139, 92, 246, 0.9),
    0 0 20px 6px rgba(139, 92, 246, 0.4);
}

/* Hide custom cursor on touch/mobile */
@media (hover: none) and (pointer: coarse) {
  .rw-cursor-dot,
  .rw-cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
}


/* ===================================================
   JOURNEY — FLAT TIMELINE (New)
   =================================================== */
.rw-je-block {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rw-je-block:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.08);
}

/* Gold border for victory events */
.rw-je-win-block {
  border-color: rgba(234, 179, 8, 0.25);
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.06);
}

.rw-je-win-block:hover {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 8px 50px rgba(234, 179, 8, 0.14);
}

/* ── Description Panel ── */
.rw-je-desc-panel {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.rw-je-top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rw-je-year-pill {
  font-family: 'Equinox', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 20px;
  padding: 0.2rem 0.9rem;
  background-color: rgba(37, 99, 235, 0.08);
  -webkit-text-fill-color: unset; /* reset so gradient shows on the text not bg */
  color: transparent;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rw-je-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rw-je-tag.debut   { background: rgba(37, 99, 235, 0.2);  color: #93c5fd; border: 1px solid rgba(37, 99, 235, 0.35); }
.rw-je-tag.win     { background: rgba(234, 179, 8, 0.18); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.4); }
.rw-je-tag.battle  { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.35); }

.rw-je-meta-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rw-je-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--foreground);
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.rw-je-desc {
  font-size: 0.97rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin: 0;
  max-width: 800px;
}

/* ── Photos Panel ── */
.rw-je-photos-panel {
  padding: 1.75rem 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.rw-je-photos-label,
.rw-je-videos-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-family: 'Audiowide', cursive;
  color: #93c5fd;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.06);
}

.rw-je-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.rw-je-photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.rw-je-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.35);
}

.rw-je-photo-win {
  border-color: rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.08);
}

.rw-je-photo-win:hover {
  border-color: rgba(234, 179, 8, 0.6);
  box-shadow: 0 12px 35px rgba(234, 179, 8, 0.2);
}

.rw-je-photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rw-je-photo-card:hover img {
  transform: scale(1.06);
}

.rw-je-photo-card span {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.76rem;
  color: var(--muted-foreground);
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
}

/* ── Videos Panel ── */
.rw-je-videos-panel {
  padding: 1.75rem 2.5rem 2rem;
}

.rw-je-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.rw-je-video-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(239, 68, 68, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rw-je-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.12);
}

.rw-je-video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.rw-je-no-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.88rem;
  grid-column: 1 / -1;
}

.rw-je-no-video i {
  font-size: 1.6rem;
}

/* Upcoming block */
.rw-je-upcoming {
  border-style: dashed;
  border-color: rgba(16, 185, 129, 0.2);
}

.rw-je-upcoming:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 40px rgba(16, 185, 129, 0.06);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rw-je-desc-panel,
  .rw-je-photos-panel,
  .rw-je-videos-panel {
    padding: 1.25rem 1.25rem;
  }

  .rw-je-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .rw-je-videos-grid {
    grid-template-columns: 1fr;
  }

  .rw-je-photo-card img {
    height: 140px;
  }
}

/* ===================================================
   BACK TO TOP — Amber-to-Red Fire Button
   Deliberately NOT blue — warm contrast to the rest of the page.
   =================================================== */
.rw-back-top {
  position: fixed;
  bottom: 2.2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;

  /* Amber → Orange → Red gradient — full contrast vs the blue page */
  background: linear-gradient(145deg, #f59e0b, #ef4444);
  box-shadow:
    0 4px 18px rgba(239, 68, 68, 0.45),
    0 0 0 1px rgba(245, 158, 11, 0.25);

  /* Hidden off-screen by default — JS adds .visible */
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.rw-back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.rw-back-top:hover {
  background: linear-gradient(145deg, #fbbf24, #f43f5e);
  box-shadow:
    0 8px 28px rgba(239, 68, 68, 0.65),
    0 0 0 1px rgba(251, 191, 36, 0.4),
    0 0 40px rgba(239, 68, 68, 0.2);
  transform: translateY(-4px) scale(1.06);
}

.rw-back-top:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow:
    0 3px 12px rgba(239, 68, 68, 0.5),
    0 0 0 1px rgba(245, 158, 11, 0.2);
}

/* Subtle ring pulse while visible — like a heartbeat */
.rw-back-top.visible::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  animation: bttRingPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bttRingPulse {
  0%, 100% { opacity: 0.35; transform: scale(1);    }
  50%       { opacity: 0;    transform: scale(1.18); }
}

/* Responsive — move it up a bit on mobile so it clears the bottom nav */
@media (max-width: 600px) {
  .rw-back-top {
    bottom: 1.5rem;
    right: 1.2rem;
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border-radius: 12px;
  }
}

/* ===================================================
   PAGE LOADING SCREEN
   =================================================== */
.rw-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* Fade-out state added by JS when intro finishes */
.rw-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Particle canvas fills the whole loader */
.rw-loader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rw-loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

/* "TEXCELERATORS PRESENTS" badge */
.rw-loader-badge {
  font-family: 'Audiowide', cursive;
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: rgba(147, 197, 253, 0.5);
  text-transform: uppercase;
  opacity: 0;
  animation: loaderBadgeIn 0.5s ease 0.2s forwards;
}

@keyframes loaderBadgeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Title wrapper clips the slam animation */
.rw-loader-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

/* "RAUDRA" — slams in from above with scale */
.rw-loader-title {
  font-family: 'Aquire', 'Equinox', sans-serif;
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #7ec8ff 0%, #1e90ff 35%, #00bfff 65%, #e0f4ff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 60px rgba(0, 191, 255, 0.9))
          drop-shadow(0 0 120px rgba(30, 144, 255, 0.5));
  opacity: 0;
  transform: scale(2.5) translateY(-30px);
  animation:
    loaderTitleSlam 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards,
    loaderTitleGlow 2s ease-in-out 1s infinite;
}

@keyframes loaderTitleSlam {
  from {
    opacity: 0;
    transform: scale(2.5) translateY(-30px);
    filter: drop-shadow(0 0 0px rgba(0, 191, 255, 0));
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 60px rgba(0, 191, 255, 0.9))
            drop-shadow(0 0 120px rgba(30, 144, 255, 0.5));
  }
}

@keyframes loaderTitleGlow {
  0%, 100% { filter: drop-shadow(0 0 60px rgba(0, 191, 255, 0.9)) drop-shadow(0 0 120px rgba(30, 144, 255, 0.5)); }
  50%       { filter: drop-shadow(0 0 100px rgba(0, 191, 255, 1))  drop-shadow(0 0 200px rgba(30, 144, 255, 0.8)); }
}

/* Hindi subtitle */
.rw-loader-hindi {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  letter-spacing: 8px;
  background: linear-gradient(135deg, rgba(0,191,255,0.7), rgba(30,144,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: loaderSubIn 0.45s ease 0.85s forwards;
}

/* Sanskrit meaning */
.rw-loader-meaning {
  font-family: 'Audiowide', cursive;
  font-size: 0.62rem;
  letter-spacing: 4px;
  color: rgba(147, 197, 253, 0.4);
  text-transform: uppercase;
  opacity: 0;
  animation: loaderSubIn 0.45s ease 1s forwards;
}

@keyframes loaderSubIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Loading bar at bottom */
.rw-loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin-top: 2rem;
  overflow: hidden;
  opacity: 0;
  animation: loaderSubIn 0.3s ease 1s forwards;
}

.rw-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e90ff, #00bfff, #7ec8ff);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.7);
  animation: loaderBarFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes loaderBarFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ===================================================
   TYPEWRITER EFFECT — Hero Description
   =================================================== */
.rw-typewriter-wrap {
  min-height: 3.5rem; /* reserves space so the layout doesn't jump as text appears */
}

.rw-typewriter-text {
font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(241, 245, 249, 0.7);
  max-width: 580px;
  margin: 1.5rem auto 2rem;
  line-height: 1.75;
}

/* Blinking pipe cursor */
.rw-typewriter-cursor {
  display: inline-block;
  color: #00bfff;
  font-weight: 300;
  font-size: 1.1em;
  line-height: 1;
  margin-left: 1px;
  animation: cursorBlink 0.75s step-end infinite;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Cursor fades out once typing is fully done */
.rw-typewriter-cursor.done {
  animation: cursorFadeOut 0.8s ease 1.2s forwards;
}

@keyframes cursorFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ===================================================
   AUTO-ROTATING BOT SHOWCASE
   =================================================== */

/* Stack all slides on top of each other */
.rw-showcase-wrap {
  position: relative;
  overflow: hidden;
}

.rw-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}

/* First slide needs to not be absolute so wrapper has height */
.rw-showcase-slide:first-child {
  position: relative;
}

.rw-showcase-slide.active {
  opacity: 1;
  z-index: 1;
}

.rw-showcase-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.rw-showcase-wrap:hover .rw-showcase-slide.active img {
  transform: scale(1.04);
}

/* Caption bar at bottom of image */
.rw-showcase-caption {
  position: absolute;
  bottom: 3rem;       /* sits above the dots */
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-family: 'Audiowide', cursive;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  padding: 0 1rem;
  transition: opacity 0.4s ease;
}

/* Dot indicators */
.rw-showcase-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 7px;
  align-items: center;
}

.rw-showcase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.rw-showcase-dot.active {
  width: 22px;
  border-radius: 4px;          /* active dot stretches into a pill */
  background: #00bfff;
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.7);
}

/* Pause icon — visible on hover */
.rw-showcase-pause-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rw-showcase-wrap:hover .rw-showcase-pause-icon {
  opacity: 1;
}

/* Progress line at very bottom of image showing time until next slide */
.rw-showcase-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 4;
  background: linear-gradient(90deg, #1e90ff, #00bfff);
  box-shadow: 0 0 6px rgba(0, 191, 255, 0.7);
  pointer-events: none;
}

.rw-showcase-wrap.ticking::after {
  animation: showcaseProgress var(--slide-duration, 3s) linear;
}

@keyframes showcaseProgress {
  from { width: 0%; }
  to   { width: 100%; }
}
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}