/* ===================================
   BLACKDAWG MC — STYLESHEET
   =================================== */

/* ---------- VARIABLES ---------- */
:root {
  --red:        #c0392b;
  --red-dark:   #8B1A1A;
  --red-glow:   rgba(192, 57, 43, 0.4);
  --black:      #0a0a0a;
  --black-soft: #111111;
  --dark:       #1a1a1a;
  --dark-2:     #242424;
  --gray:       #333333;
  --gray-light: #666666;
  --white:      #f5f5f0;
  --white-dim:  rgba(245, 245, 240, 0.75);

  --font-title: 'Bebas Neue', sans-serif;
  --font-sub:   'Oswald', sans-serif;
  --font-body:  'Raleway', sans-serif;

  --radius:     4px;
  --transition: 0.3s ease;
  --shadow:     0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-red: 0 4px 30px rgba(192, 57, 43, 0.35);
}

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

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SECTION HEADERS ---------- */
.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}

.title-underline {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 16px auto 0;
}

/* ====================================
   NAVIGATION
   ==================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.97);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
  border-bottom: 1px solid rgba(192, 57, 43, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(192, 57, 43, 0.5));
}

.nav-logo span {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.nav-logo em {
  font-style: normal;
  color: var(--red);
}

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

.nav-links a {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  padding: 8px 20px;
  border: 1px solid var(--red);
  color: var(--red) !important;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition) !important;
}

.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--red) !important; color: var(--white) !important; }

.btn-nav-members {
  border-color: rgba(245,245,240,0.2) !important;
  color: var(--white-dim) !important;
}
.btn-nav-members:hover { background: var(--dark-2) !important; border-color: var(--white-dim) !important; color: var(--white) !important; }

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

/* ====================================
   HERO
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(139, 26, 26, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 20%, rgba(192, 57, 43, 0.07) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.1) 50%, rgba(10,10,10,0.95) 100%);
}

/* Animated grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  animation: fadeDown 0.8s ease both;
}

.badge-1pct, .badge-mg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dark);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(192,57,43,0.5);
}

.badge-1pct {
  width: 32px;
  height: 32px;
  transform: rotate(45deg);
  font-size: 0.6rem;
}

.badge-1pct span { display: block; transform: rotate(-45deg); }

.badge-mg {
  padding: 4px 10px;
  border-radius: 2px;
}

.hero-logo {
  width: clamp(240px, 38vw, 380px);
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 40px rgba(192, 57, 43, 0.5)) drop-shadow(0 0 80px rgba(192, 57, 43, 0.2));
  animation: fadeUp 0.9s ease 0.1s both, pulse-glow 4s ease-in-out 1s infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(192,57,43,0.5)) drop-shadow(0 0 80px rgba(192,57,43,0.2)); }
  50%       { filter: drop-shadow(0 0 60px rgba(192,57,43,0.7)) drop-shadow(0 0 100px rgba(192,57,43,0.35)); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: 0.1em;
  line-height: 0.9;
  color: var(--white);
  text-shadow: 0 0 60px rgba(192,57,43,0.3);
  animation: fadeUp 0.9s ease 0.2s both;
}

.hero-subtitle {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 3vw, 1.6rem);
  letter-spacing: 0.5em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 4px;
  animation: fadeUp 0.9s ease 0.3s both;
}

.hero-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  animation: fadeUp 0.9s ease 0.4s both;
}

.hero-location span {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--white-dim);
  text-transform: uppercase;
}

.divider-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray));
  display: block !important;
}

.divider-line:last-child {
  background: linear-gradient(to left, transparent, var(--gray));
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  font-style: italic;
  margin-bottom: 36px;
  animation: fadeUp 0.9s ease 0.5s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.6s both;
}

.btn-primary, .btn-secondary {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}

.btn-primary:hover {
  background: #e74c3c;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(192,57,43,0.6);
}

.btn-secondary {
  border: 1px solid rgba(245,245,240,0.3);
  color: var(--white-dim);
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeIn 1s ease 1.2s both;
}

.hero-scroll span {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gray-light);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-light), transparent);
  animation: scroll-line 1.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ====================================
   ABOUT
   ==================================== */
.about {
  padding: 120px 0;
  background: var(--black-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p {
  color: var(--white-dim);
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.about-visual { display: flex; flex-direction: column; gap: 32px; }

.about-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-patch {
  width: 280px;
  height: 280px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(192,57,43,0.4));
  transition: filter var(--transition);
}

.about-patch:hover {
  filter: drop-shadow(0 0 50px rgba(192,57,43,0.7));
}

.patch-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(192,57,43,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%,-50%) scale(1.2); }
}

.about-values { display: flex; flex-direction: column; gap: 20px; }

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--dark);
  border: 1px solid var(--gray);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.value-item:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.value-icon {
  color: var(--red);
  font-size: 0.6rem;
  margin-top: 6px;
  flex-shrink: 0;
}

.value-item h4 {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* ====================================
   ABOUT — EXTRAS
   ==================================== */
.about-quote {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--red);
  text-align: center;
  border-left: none;
  margin: -20px auto 60px;
  opacity: 0.85;
}

.about-chapter-title {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.about-symbol { margin-top: 8px; }

.about-symbol-title {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.about-symbol-note {
  font-size: 0.8rem;
  color: var(--gray-light);
  font-style: italic;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray);
}

.about-colors { margin-top: 28px; }

.colors-row {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.color-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.color-swatch {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--gray);
}

.color-black { background: #0a0a0a; }
.color-red   { background: var(--red); }

.color-block span {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
}

.color-block small {
  font-size: 0.7rem;
  color: var(--gray-light);
  text-align: center;
}

/* ====================================
   HIERARCHY
   ==================================== */
.hierarchy {
  padding: 120px 0;
  background: var(--black);
}

.ranks-columns {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.ranks-group-label {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray);
}

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.rank-card {
  padding: 22px 20px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background: var(--dark);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.rank-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.rank-top::before       { background: linear-gradient(90deg, var(--red), #e74c3c); }
.rank-officer::before   { background: linear-gradient(90deg, #8B6914, #c49a22); }
.rank-road::before      { background: linear-gradient(90deg, #5a3a7a, #9b59b6); }
.rank-member::before    { background: linear-gradient(90deg, #2c5f2e, #52b54e); }
.rank-prospect::before  { background: linear-gradient(90deg, #1a3a5c, #2e86de); }
.rank-hangaround::before { background: var(--gray); }

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(192,57,43,0.3);
}

.rank-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.rank-top h3         { color: var(--red); }
.rank-officer h3     { color: #c49a22; }
.rank-road h3        { color: #9b59b6; }
.rank-member h3      { color: #52b54e; }
.rank-prospect h3    { color: #2e86de; }
.rank-hangaround h3  { color: var(--gray-light); }

.rank-card p {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

.rank-patch {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border: 1px solid var(--gray);
  border-radius: 2px;
  color: var(--gray-light);
}

/* ====================================
   RULES
   ==================================== */
.rules {
  padding: 120px 0;
  position: relative;
  background: var(--black-soft);
}

.rules-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(139,26,26,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(139,26,26,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.rules-intro {
  text-align: center;
  max-width: 600px;
  margin: -20px auto 60px;
  color: var(--white-dim);
  font-style: italic;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--gray);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.rule-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--dark);
  transition: background var(--transition);
}

.rule-item:hover { background: var(--dark-2); }

.rule-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: rgba(192,57,43,0.25);
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
}

.rule-item:hover .rule-num { color: rgba(192,57,43,0.5); }

.rule-content h4 {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--white);
}

.rule-content p {
  font-size: 0.85rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ====================================
   GALLERY
   ==================================== */
.gallery {
  padding: 120px 0;
  background: var(--black);
}

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

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gray);
  position: relative;
  cursor: pointer;
  background: var(--dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.gallery-overlay span {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: var(--white-dim);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--red); }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ====================================
   RECRUITMENT
   ==================================== */
.recruitment {
  padding: 120px 0;
  background: var(--black-soft);
}

.recruitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.recruitment-info h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--red);
}

.recruitment-info > p {
  color: var(--white-dim);
  margin-bottom: 32px;
  line-height: 1.8;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--white-dim);
}

.req-icon {
  color: var(--red);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.process-steps { }

.process-steps h4 {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 28px;
  height: 28px;
  background: var(--red-dark);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
}

.step strong {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}

.step p {
  font-size: 0.82rem;
  color: var(--gray-light);
}

/* --- FORM --- */
.recruitment-form {
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 40px;
}

.recruitment-form h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group select option {
  background: var(--dark);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.form-check input {
  width: auto;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.form-check label {
  margin-bottom: 0 !important;
  font-size: 0.8rem !important;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(192,57,43,0.3);
}

.btn-submit:hover {
  background: #e74c3c;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(192,57,43,0.5);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(82,181,78,0.1);
  border: 1px solid rgba(82,181,78,0.3);
  color: #52b54e;
}

.form-message.error {
  display: block;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  color: var(--red);
}

/* ====================================
   RECRUITMENT — DISCORD CARD
   ==================================== */
.recruitment-discord {
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-card {
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 440px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.discord-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #5865F2;
}

.discord-card-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(192,57,43,0.4));
}

.discord-card h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.discord-card > p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.8;
}

.discord-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #5865F2;
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
  width: 100%;
  justify-content: center;
}

.discord-apply-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(88, 101, 242, 0.55);
}

.discord-card-note {
  font-size: 0.78rem !important;
  color: var(--gray-light) !important;
  line-height: 1.7 !important;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--gray);
  padding: 80px 0 0;
}

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

.footer-logo {
  width: 95px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(192,57,43,0.3));
}

.footer-brand h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer-brand p {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.footer-tagline {
  font-style: italic;
  color: var(--gray-light) !important;
  font-size: 0.85rem !important;
  margin-top: 12px;
  letter-spacing: 0.05em !important;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--white-dim);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-bottom: 20px;
  line-height: 1.7;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #5865F2;
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.discord-btn:hover { background: #4752c4; transform: translateY(-2px); }

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

.footer-patches { display: flex; gap: 8px; }

.patch-tag {
  padding: 4px 10px;
  border: 1px solid var(--red-dark);
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  border-radius: 2px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-light);
  text-align: center;
}

.footer-rp {
  font-size: 0.72rem !important;
  font-style: italic;
}

.members-link {
  font-size: 0.7rem;
  color: rgba(102,102,102,0.5);
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.members-link:hover { color: var(--red); }

/* ====================================
   BACK TO TOP
   ==================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--red-dark);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(192,57,43,0.5);
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover { background: var(--red); }

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

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
  .about-grid, .recruitment-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(10,10,10,0.98);
    border-left: 1px solid var(--gray);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 24px;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 1000; }
  .nav-links a { font-size: 1rem; }

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

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

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

  .about-stats { gap: 24px; }
  .ranks-grid { grid-template-columns: 1fr 1fr; }
  .colors-row { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .recruitment-form { padding: 24px; }
  .about-stats { flex-direction: column; gap: 16px; }
}

/* ====================================
   OPTIMISATIONS MOBILE (ANTI-FREEZE)
   ==================================== */
@media (max-width: 768px) {
  /* Supprime la texture SVG feTurbulence — très coûteuse sur mobile */
  .hero::before { display: none; }

  /* Remplace l'animation drop-shadow infinie par une version statique */
  .hero-logo {
    animation: fadeUp 0.9s ease 0.1s both;
    filter: drop-shadow(0 0 30px rgba(192,57,43,0.5));
  }

  /* Désactive les transitions de filtre coûteuses sur les images de galerie */
  .gallery-item img {
    transition: transform 0.4s ease;
    filter: none !important;
  }

  /* Réduit les transitions lourdes sur cartes */
  .rank-card,
  .rule-item,
  .value-item {
    transition: border-color var(--transition);
    transform: none !important;
  }

  /* Logo about — filtre statique plus léger */
  .about-patch {
    filter: drop-shadow(0 0 20px rgba(192,57,43,0.4));
    transition: none;
  }
  .about-patch:hover { filter: drop-shadow(0 0 20px rgba(192,57,43,0.4)); }

  /* Les boutons ne lèvent plus sur hover (pas de hover sur mobile) */
  .btn-primary:hover,
  .btn-secondary:hover { transform: none; }
}

/* ====================================
   RESPECT DES PRÉFÉRENCES ANIMATIONS
   ==================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
