/* =========================================================
   LB MUN 2026 — Main Stylesheet
   Theme: Deep Purple & Lavender
   ========================================================= */

/* ── 1. CSS VARIABLES ──────────────────────────────────── */
:root {
  --primary-dark:   #180928;
  --primary-brand:  #532D7A;
  --accent:         #A17ED6;
  --accent-dim:     #7442C8;
  --text-primary:   #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted:     #8080A0;

  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-blur:     blur(16px);

  --card-bg:        rgba(83, 45, 122, 0.18);
  --card-border:    rgba(161, 126, 214, 0.25);

  --font-heading:   'Montserrat', sans-serif;
  --font-body:      'Inter', sans-serif;

  --nav-h:          72px;
  --radius-sm:      10px;
  --radius-md:      18px;
  --radius-lg:      28px;

  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:      0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:      0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow:    0 0 40px rgba(161, 126, 214, 0.25);
}

/* ── 2. RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

/* ── 3. SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-brand); border-radius: 3px; }

/* ── 4. SHARED UTILITIES ───────────────────────────────── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 1.25rem auto 0;
  line-height: 1.8;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-brand), var(--accent));
  border-radius: 2px;
  margin: 1.25rem auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-dim));
  color: #fff;
  box-shadow: 0 4px 24px rgba(106, 62, 152, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(106, 62, 152, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-large { padding: 1.1rem 2.5rem; font-size: 0.9rem; }
.btn-sm    { padding: 0.7rem 1.5rem; font-size: 0.8rem; }

/* ── 5. NAVBAR ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(24, 9, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  letter-spacing: -0.01em;
}
.logo-lb  { color: var(--text-primary); }
.logo-mun { color: var(--accent); }
.logo-year{ color: var(--text-muted); font-size: 0.9rem; margin-left: 0.15rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--primary-brand);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(106,62,152,0.4);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(106,62,152,0.6);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 120% 80% at 60% 40%, #4A2078 0%, #180928 55%, #080414 100%);
  padding: 2rem 0 6rem;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 2s ease-in-out;
}

.hero-video.fade-out {
  opacity: 0;
}

.hero-content-hidden {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-content-visible {
  opacity: 1;
}

/* Canvas for stars */
#stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: rgba(83, 45, 122, 0.3);
  top: -100px; right: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 350px; height: 350px;
  background: rgba(161, 126, 214, 0.15);
  bottom: 80px; left: -60px;
  animation-delay: 3s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: rgba(83, 45, 122, 0.25);
  top: 40%; left: 40%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.97); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1.5rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.hero-content.hero-content-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation-delay: 0.2s;
}
.eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.heading-welcome {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.heading-name {
  display: block;
  font-size: clamp(3.5rem, 10vw, 8rem);
  background: linear-gradient(135deg, #fff 30%, var(--accent) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin: 1rem 0 2rem;
  letter-spacing: 0.05em;
}

/* Countdown */
.countdown-wrapper {
  margin-bottom: 3rem;
}
.countdown-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.countdown-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.08);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.countdown-unit-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.4rem;
}
.countdown-separator {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  padding-bottom: 1.2rem;
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0.1; } }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  animation: fadeIn 1.5s ease 1.5s forwards;
  opacity: 0;
}
@keyframes fadeIn { to { opacity: 1; } }
.scroll-cue span {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.4); opacity: 0.3; }
}

/* ── 7. STATS STRIP ────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(180deg, rgba(83, 45, 122, 0.2) 0%, rgba(24, 9, 40, 0.3) 100%);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-desc {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-divider {
  display: none;
}

/* ── 8. LETTERS SECTION ────────────────────────────────── */
.letters-section {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--primary-dark) 0%, #12081E 100%);
}

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

.letter-card {
  background: linear-gradient(135deg, rgba(83, 45, 122, 0.25) 0%, rgba(24, 9, 40, 0.9) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.letter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-brand), var(--accent), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.letter-card:hover {
  transform: translateY(-6px);
  border-color: rgba(161, 126, 214, 0.5);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.letter-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.letter-seal {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-brand), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(106, 62, 152, 0.5);
}
.dg-seal {
  background: linear-gradient(135deg, #4B2D7F, var(--accent));
}
.letter-role {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.letter-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.letter-ornament {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
  margin-bottom: 1.5rem;
}

.letter-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-style: italic;
}
.letter-body p:first-child { font-style: normal; font-weight: 500; color: var(--text-primary); }
.letter-body p:last-child  { margin-bottom: 1.5rem; }

.letter-signature {
  margin-top: 1.5rem;
}
.sig-line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 0.75rem;
}
.sig-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.sig-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── 9. COMMITTEES SECTION ─────────────────────────────── */
.committees-section {
  padding: 7rem 0;
  background: var(--primary-dark);
}

.community-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.community-card {
  display: flex;
  background: linear-gradient(135deg, rgba(83, 45, 122, 0.2) 0%, rgba(24, 9, 40, 0.85) 100%);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  position: relative;
}

.community-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 40px rgba(161, 126, 214, 0.2);
}

.community-card-image {
  flex: 0 0 60%;
  overflow: hidden;
  min-height: 300px;
}

.community-card-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}



.community-card-content {
  flex: 0 0 40%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--text-primary);
}

.community-card-content .card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.community-card-content .card-abbr {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.community-card-content .card-snippet {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.community-card-content .card-agenda {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.community-card-content .card-agenda strong {
  color: var(--accent);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .community-card {
    max-width: 800px;
    margin: 0 auto;
  }
  .community-card-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .community-card {
    flex-direction: column;
  }
  .community-card-image {
    flex: none;
    width: 100%;
  }
  .community-card-image img {
    height: 250px;
  }
  .community-card-content {
    flex: none;
    width: 100%;
  }
}

/* Mevcut committees-grid'i gizle (eski stil için) */
.committees-grid {
  display: none;
}

.committee-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: none;
  box-shadow: var(--shadow-sm);
}

/* Glow on hover */
.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(161,126,214,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.committee-card:hover .card-glow,
.committee-card:focus .card-glow { opacity: 1; }
.committee-card:hover,
.committee-card:focus {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(161, 126, 214, 0.6);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  width: fit-content;
  background: rgba(106, 62, 152, 0.4);
  color: var(--accent);
  border: 1px solid rgba(183,148,246,0.2);
}
.card-badge.intermediate { background: rgba(59,130,246,0.15); color: #93C5FD; border-color: rgba(147,197,253,0.2); }
.card-badge.beginner     { background: rgba(16,185,129,0.12); color: #6EE7B7; border-color: rgba(110,231,183,0.2); }
.card-badge.advanced     { background: rgba(239,68,68,0.12);  color: #FCA5A5; border-color: rgba(252,165,165,0.2); }
.card-badge.ileri        { background: rgba(239,68,68,0.12);  color: #FCA5A5; border-color: rgba(252,165,165,0.2); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.card-abbr {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.card-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.card-cta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--transition);
}
.committee-card:hover .card-cta { color: var(--text-primary); }

.card-agenda {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── 10. APPLY SECTION ─────────────────────────────────── */
.apply-section {
  padding: 7rem 0;
  background: linear-gradient(180deg, #12081E 0%, #080414 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100vw;
}
.apply-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,45,122,0.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.apply-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
}

/* Application Form Styles */
.apply-form-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.application-form {
  background: linear-gradient(145deg, rgba(40, 18, 64, 0.9) 0%, rgba(24, 9, 40, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #ffffff !important;
  background: rgba(18, 9, 32, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(161, 126, 214, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
  background-color: #120920;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-primary);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}
.apply-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1.25rem;
}
.apply-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.apply-checklist {
  margin-bottom: 2rem;
}
.apply-checklist li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.apply-checklist li::first-letter {
  color: var(--accent);
}

/* Card stack visual */
.apply-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-card-stack {
  position: relative;
  width: 280px;
  height: 300px;
}
.stack-card {
  position: absolute;
  width: 220px;
  height: 140px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  line-height: 1.3;
  transition: transform 0.4s ease;
}
.sc-1 {
  background: linear-gradient(135deg, #3D2465, #532D7A);
  border: 1px solid rgba(161,126,214,0.4);
  top: 20px; left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.sc-2 {
  background: linear-gradient(135deg, #532D7A, var(--accent-dim));
  border: 1px solid rgba(161,126,214,0.5);
  top: 70px; left: 50%;
  transform: translateX(-50%) rotate(3deg);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.sc-3 {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  border: 1px solid rgba(255,255,255,0.25);
  top: 130px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.apply-visual:hover .sc-1 { transform: translateX(-50%) rotate(-12deg) translateY(-10px); }
.apply-visual:hover .sc-2 { transform: translateX(-50%) rotate(0deg) translateY(-5px); }
.apply-visual:hover .sc-3 { transform: translateX(-50%) rotate(-4deg) translateY(5px); }

/* ── 11. FOOTER ────────────────────────────────────────── */
.footer {
  background: #0A0614;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 0;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-links ul li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

.social-icons {
  display: flex;
  gap: 0.75rem;
}
.social-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(183,148,246,0.2);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── 12. MODALS ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 6, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content {
  background: linear-gradient(145deg, rgba(40, 18, 64, 0.96) 0%, rgba(24, 9, 40, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(161, 126, 214, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 620px;
  width: 100%;
  position: relative;
  transform: translateY(30px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.05);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #FCA5A5;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding-right: 3rem;
}
.modal-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.modal-abbr {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.modal-badge {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(106,62,152,0.4);
  color: var(--accent);
  border: 1px solid rgba(183,148,246,0.25);
}
.modal-badge.intermediate { background: rgba(59,130,246,0.15); color: #93C5FD; border-color: rgba(147,197,253,0.2); }
.modal-badge.beginner     { background: rgba(16,185,129,0.12); color: #6EE7B7; border-color: rgba(110,231,183,0.2); }
.modal-badge.advanced     { background: rgba(239,68,68,0.12);  color: #FCA5A5; border-color: rgba(252,165,165,0.2); }
.modal-badge.ileri        { background: rgba(239,68,68,0.12);  color: #FCA5A5; border-color: rgba(252,165,165,0.2); }
.modal-usg {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.modal-usg::before {
  content: '• ';
  color: var(--accent);
}

.modal-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.modal-agenda {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.modal-agenda h4 {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.modal-agenda p {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* Scrollbar inside modal */
.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary-brand); }

/* ── 13. RESPONSIVE / MOBILE ───────────────────────────── */
@media (max-width: 1200px) {
  .committees-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .letters-grid { grid-template-columns: repeat(2, 1fr); }
  .committees-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-container { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(24, 9, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { font-size: 0.9rem; }

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

  .countdown-glass {
    padding: 1.25rem 1.2rem;
    gap: 0.3rem;
  }
  .countdown-unit  { min-width: 48px; }
  .countdown-value { font-size: 2rem; }

  .hero-actions { flex-direction: column; align-items: center; }

  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .modal-content { padding: 2rem 1.5rem; }
  .modal-title   { font-size: 1.3rem; }

  /* Apply section mobile */
  .apply-section {
    padding: 4rem 0;
  }

  .apply-container {
    gap: 2rem;
  }

  /* Form mobile styles - very strict */
  .apply-form-wrapper,
  .application-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .application-form {
    padding: 1.25rem;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-title {
    font-size: 1.3rem;
    word-break: break-word;
  }

  .form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    width: 100%;
  }

  .form-section-title {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .form-group {
    width: 100%;
    max-width: 100%;
  }

  .form-group label {
    font-size: 0.7rem;
    word-break: break-word;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .radio-group,
  .checkbox-group {
    gap: 0.75rem;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .radio-group label,
  .checkbox-group label {
    font-size: 0.85rem;
    word-break: break-word;
    width: 100%;
  }

  .btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
  }

  .apply-text {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .stats-container { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

  .section-title { font-size: 1.7rem; }
  .apply-heading { font-size: 1.8rem; }

  .countdown-glass  { flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem; }
  .countdown-separator { display: none; }

  .section-container {
    padding: 0 1rem;
  }

  /* Smaller mobile form styles - extreme strict */
  .apply-section,
  .apply-container,
  .apply-form-wrapper,
  .application-form,
  .apply-text {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .application-form {
    padding: 1rem;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-title {
    font-size: 1.2rem;
    word-break: break-word;
  }

  .form-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    width: 100%;
  }

  .form-section-title {
    font-size: 0.72rem;
    word-break: break-word;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .radio-group,
  .checkbox-group {
    gap: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .radio-group label,
  .checkbox-group label {
    font-size: 0.825rem;
    word-break: break-word;
    width: 100%;
  }

  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 100%;
  }
}