/* =========================================================
   CRA CLASS GUIDE — Dofus MMORPG Fan Page
   Custom Stylesheet — Cinematic Dark Theme
   ========================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Raleway:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Rajdhani:wght@300;400;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-base: #0a0c10;
  --bg-card: #0e1118;
  --bg-section: #0c0f15;
  --bg-elevated: #121620;

  --wind-cyan: #00d4e8;
  --wind-teal: #00b8a0;
  --wind-blue: #2060c8;
  --wind-electric: #4090ff;
  --lime-accent: #8fff4a;
  --amber-gold: #e8a020;
  --amber-warm: #ffb840;
  --danger-red: #e83040;

  --text-primary: #e8eaf0;
  --text-secondary: #9098b0;
  --text-muted: #505870;
  --text-accent: #00d4e8;

  --border-subtle: rgba(0, 212, 232, 0.12);
  --border-glow: rgba(0, 212, 232, 0.35);

  --gradient-wind: linear-gradient(135deg, #00d4e8 0%, #2060c8 50%, #4090ff 100%);
  --gradient-gold: linear-gradient(135deg, #e8a020 0%, #ffb840 60%, #e8a020 100%);
  --gradient-dark: linear-gradient(180deg, #0a0c10 0%, #0e1118 100%);

  --font-display: 'Cinzel', serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Raleway', sans-serif;

  --radius-card: 2px;
  --radius-button: 1px;

  --shadow-wind: 0 0 30px rgba(0, 212, 232, 0.25), 0 0 60px rgba(0, 212, 232, 0.08);
  --shadow-gold: 0 0 30px rgba(232, 160, 32, 0.3), 0 0 60px rgba(232, 160, 32, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wind-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-warm);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--wind-teal);
  border-radius: 3px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--wind-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--wind-cyan);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-cra-portrait-resized_cra_female_action_pose.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: transform 0.1s linear;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 12, 16, 0.92) 0%,
    rgba(10, 12, 16, 0.70) 40%,
    rgba(10, 12, 16, 0.20) 70%,
    rgba(10, 12, 16, 0.05) 100%
  );
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 16, 1) 0%,
    rgba(10, 12, 16, 0.4) 25%,
    transparent 60%
  );
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--wind-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift var(--duration, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }
  20% { opacity: 0.8; }
  80% { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translateY(-120px) translateX(var(--drift, 40px));
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 4rem;
  max-width: 750px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wind-cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--wind-cyan);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.hero-title .accent {
  background: var(--gradient-wind);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.7s forwards;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gradient-wind);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.8s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 1s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg-base);
  background: var(--gradient-wind);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--wind-teal), var(--lime-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-wind);
  color: var(--bg-base);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wind-cyan);
  background: transparent;
  border: 1px solid var(--border-glow);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  background: rgba(0, 212, 232, 0.08);
  border-color: var(--wind-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 232, 0.15);
  color: var(--wind-cyan);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.hero-scroll-hint span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  animation: scrollBounce 2s ease infinite;
}

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

/* =========================================================
   SECTION COMMON STYLES
   ========================================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wind-cyan);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--wind-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-title .accent {
  background: var(--gradient-wind);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Gradient Divider */
.gradient-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--wind-teal), transparent);
  margin: 0;
}

/* Section padding */
.section-pad {
  padding: 7rem 4rem;
}

@media (max-width: 768px) {
  .section-pad {
    padding: 5rem 1.5rem;
  }
}

/* =========================================================
   CLASS OVERVIEW SECTION
   ========================================================= */
.overview {
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.overview::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 232, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.overview-header {
  text-align: center;
  margin-bottom: 5rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.overview-card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-top: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--gradient-wind));
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.overview-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: radial-gradient(ellipse at top left, var(--card-glow, rgba(0, 212, 232, 0.04)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.overview-card:hover::before {
  transform: scaleX(1);
}

.overview-card:hover::after {
  opacity: 1;
}

.overview-card.wind {
  --card-accent: linear-gradient(to right, #00d4e8, #2060c8);
  --card-glow: rgba(0, 212, 232, 0.05);
}

.overview-card.precision {
  --card-accent: linear-gradient(to right, #4090ff, #00b8a0);
  --card-glow: rgba(64, 144, 255, 0.05);
}

.overview-card.range {
  --card-accent: linear-gradient(to right, #8fff4a, #00b8a0);
  --card-glow: rgba(143, 255, 74, 0.04);
}

.overview-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.overview-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.overview-card-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.overview-card-tag {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  position: relative;
  z-index: 1;
}

.wind .overview-card-tag {
  color: var(--wind-cyan);
  background: rgba(0, 212, 232, 0.08);
}

.precision .overview-card-tag {
  color: var(--wind-electric);
  background: rgba(64, 144, 255, 0.08);
}

.range .overview-card-tag {
  color: var(--lime-accent);
  background: rgba(143, 255, 74, 0.08);
}

/* =========================================================
   SHOWCASE GALLERY
   ========================================================= */
.gallery-showcase {
  background: var(--bg-base);
  padding: 7rem 0;
}

.gallery-showcase .inner {
  padding: 0 4rem;
}

.gallery-showcase-header {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover {
  box-shadow: 0 0 0 1px var(--border-glow), 0 8px 40px rgba(0, 212, 232, 0.15);
}

.gallery-scene-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wind-cyan);
  margin-bottom: 0.3rem;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.gallery-scene-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transform: translateY(8px);
  transition: transform 0.3s ease 0.05s;
}

.gallery-item:hover .gallery-scene-title,
.gallery-item:hover .gallery-scene-desc {
  transform: translateY(0);
}

/* =========================================================
   ABILITIES SECTION
   ========================================================= */
.abilities {
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.abilities::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: linear-gradient(to left, rgba(32, 96, 200, 0.04), transparent);
  pointer-events: none;
}

.abilities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.abilities-intro {
  position: sticky;
  top: 6rem;
}

.abilities-intro-image {
  margin-top: 2.5rem;
  position: relative;
}

.abilities-intro-image img {
  width: 100%;
  max-width: 380px;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.abilities-intro-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--wind-cyan), transparent 50%);
  z-index: -1;
  opacity: 0.4;
}

.abilities-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateX(30px);
}

.ability-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

.ability-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-accent, var(--gradient-wind));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.ability-card:hover::before {
  transform: scaleY(1);
}

.ability-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-glow);
  box-shadow: -4px 0 30px rgba(0, 212, 232, 0.08);
  transform: translateX(-4px);
}

.ability-card.revealed:hover {
  transform: translateX(-4px);
}

.ability-card-1 { --card-accent: linear-gradient(to bottom, #00d4e8, #2060c8); }
.ability-card-2 { --card-accent: linear-gradient(to bottom, #4090ff, #00b8a0); }
.ability-card-3 { --card-accent: linear-gradient(to bottom, #8fff4a, #00d4e8); }
.ability-card-4 { --card-accent: linear-gradient(to bottom, #e8a020, #ffb840); }
.ability-card-5 { --card-accent: linear-gradient(to bottom, #e83040, #e8a020); }

.ability-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ability-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(0, 212, 232, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.ability-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.ability-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: calc(44px + 1rem);
}

.ability-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   LORE SECTION
   ========================================================= */
.lore {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.lore-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/lore-cra-story-dofus-cra-banner-ecranlarge.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.lore-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 12, 16, 0.96) 0%,
    rgba(10, 12, 16, 0.82) 50%,
    rgba(10, 12, 16, 0.92) 100%
  );
}

.lore-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 7rem 4rem;
}

.lore-origin {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--wind-cyan);
  margin-bottom: 1.5rem;
}

.lore-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.lore-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  text-align: left;
  columns: 2;
  column-gap: 3rem;
}

.lore-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  border-left: 3px solid var(--wind-cyan);
  padding: 1.5rem 2rem;
  text-align: left;
  margin: 2rem 0;
  background: rgba(0, 212, 232, 0.04);
  position: relative;
}

.lore-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 5rem;
  color: var(--wind-cyan);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.lore-quote-author {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wind-teal);
  margin-top: 1rem;
  font-style: normal;
}

/* =========================================================
   ICONIC MOMENTS GALLERY
   ========================================================= */
.iconic {
  background: var(--bg-base);
}

.iconic-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.iconic-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.iconic-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.iconic-item:nth-child(1) { aspect-ratio: 4/5; }
.iconic-item:nth-child(2) { aspect-ratio: 16/9; grid-row: span 1; }
.iconic-item:nth-child(3) { aspect-ratio: 4/5; }
.iconic-item:nth-child(4) { aspect-ratio: 16/9; grid-column: span 2; }

.iconic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: saturate(0.8);
}

.iconic-item:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.iconic-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.9), transparent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iconic-item:hover .iconic-label {
  opacity: 1;
}

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats {
  background: var(--bg-elevated);
  padding: 5rem 4rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient-wind);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-card);
  padding: 4rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-brand-name span {
  color: var(--wind-cyan);
}

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

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wind-cyan);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

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

.footer-attribution a {
  color: var(--wind-cyan);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal on scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Glow pulse for CTA */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 232, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 232, 0.6), 0 0 80px rgba(0, 212, 232, 0.15); }
}

/* Wind drift particle */
@keyframes windLine {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* =========================================================
   WIND LINES DECORATION
   ========================================================= */
.wind-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wind-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 232, 0.2), transparent);
  animation: windLine var(--duration, 4s) var(--delay, 0s) infinite linear;
  width: 30%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .abilities-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .abilities-intro {
    position: static;
  }
  .abilities-intro-image img {
    max-width: 100%;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 200;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-hamburger {
    display: flex;
    z-index: 300;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .lore-text {
    columns: 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .iconic-grid {
    grid-template-columns: 1fr;
  }

  .iconic-item:nth-child(4) {
    grid-column: span 1;
  }

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

  .stat-item:nth-child(2)::after { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer {
    padding: 3rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-pad {
    padding: 4rem 1.5rem;
  }

  .gallery-showcase .inner {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* =========================================================
   DIAGONAL SECTION DIVIDERS
   ========================================================= */
.skew-top {
  position: relative;
}

.skew-top::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* =========================================================
   LOADING / UTILITY
   ========================================================= */
.max-w-screen {
  max-width: 1440px;
  margin: 0 auto;
}

.text-gradient-wind {
  background: var(--gradient-wind);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated border glow for special elements */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0, 212, 232, 0.2); }
  50% { box-shadow: 0 0 0 1px rgba(0, 212, 232, 0.6), 0 0 20px rgba(0, 212, 232, 0.1); }
}

.glow-border {
  animation: borderGlow 3s ease infinite;
}

/* Targeting reticle animation */
@keyframes rotateReticle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate-slow {
  animation: rotateReticle 12s linear infinite;
}

/* Arrow shooting animation */
@keyframes arrowShoot {
  0% { transform: translateX(-8px); opacity: 0.4; }
  100% { transform: translateX(8px); opacity: 1; }
}

/* Selection highlight */
::selection {
  background: rgba(0, 212, 232, 0.25);
  color: var(--text-primary);
}
