:root {
  --bg: oklch(14% 0.02 256);
  --text: oklch(98% 0.01 256);
  --accent: oklch(60% 0.2 25);
  --muted: oklch(60% 0.02 256);
  --surface: oklch(18% 0.02 256);
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Mono', monospace;

  /* Fluid Typography */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --fs-xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --fs-huge: clamp(3.5rem, 10vw, 10rem);
  
  --gutter: clamp(1rem, 5vw, 4rem);
  --header-height: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* Spotlight Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 10;
}

h1, h2, h3, .logo, .display-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

h1 { font-size: var(--fs-huge); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

.donate-btn {
  color: var(--accent) !important;
  font-weight: 800;
  border: 1px solid var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-decoration: none;
}

.donate-btn:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

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

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Header ─── */
header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  mix-blend-mode: difference;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Reset blend mode when mobile menu is open so overlay renders correctly */
body.menu-open header {
  mix-blend-mode: normal;
}

.logo, nav, .menu-toggle {
  pointer-events: auto;
}

.logo {
  font-size: 1.5rem;
  line-height: 1;
}

/* ─── Hamburger Button ─── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end; /* Align bars to the right */
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0; /* Remove padding to avoid offset */
  z-index: 1100;
}

.menu-toggle .bar {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.25s ease,
              width 0.35s ease;
  transform-origin: center;
}

.menu-toggle .bar:nth-child(2) {
  width: 24px; /* Shorter middle bar for character */
}

/* Hamburger → X animation */
.menu-toggle.is-open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 32px;
}
.menu-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 32px;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
}

/* ─── Desktop Nav ─── */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ─── Mobile Overlay Nav ─── */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: oklch(8% 0.02 256);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              visibility 0.4s;
  z-index: 1050;
  pointer-events: none;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              color 0.3s ease;
}

.nav-mobile.is-open a {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the links */
.nav-mobile.is-open li:nth-child(1) a { transition-delay: 0.08s; }
.nav-mobile.is-open li:nth-child(2) a { transition-delay: 0.14s; }
.nav-mobile.is-open li:nth-child(3) a { transition-delay: 0.20s; }
.nav-mobile.is-open li:nth-child(4) a { transition-delay: 0.26s; }

.nav-mobile a:active {
  color: var(--accent);
}

/* Hide mobile nav on desktop */
@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
}

/* Lock scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  width: 100%;
}

/* =================================
   FLICKITY CAROUSEL
   ================================= */
.main-carousel {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.carousel-cell {
  width: 100%;
  height: 65dvh;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flickity-viewport {
  transition: height 0.2s;
}

.flickity-page-dots {
  bottom: 10px;
}

.flickity-page-dots .dot {
  background: var(--text);
  opacity: 0.2;
}

.flickity-page-dots .dot.is-selected {
  opacity: 1;
  background: var(--accent);
}

.flickity-button {
  background: transparent !important;
  color: var(--text);
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.flickity-button:focus {
  outline: none;
  box-shadow: none;
}

.flickity-button:hover {
  color: var(--accent);
}

/* =================================
   ABOUT & CONTACT (Common Sections)
   ================================= */
section {
  padding: 4rem var(--gutter);
  max-width: 900px;
  margin: 0 auto;
}

.about {
  text-align: justify;
}

.about h2 {
  margin-bottom: 4rem;
}

.members-section {
  margin-top: 6rem;
}

.members-section h3 {
  margin-bottom: 4rem;
  color: var(--accent);
}

.members-list {
  margin-bottom: 4rem;
  text-align: left;
}

.members-list p {
  font-size: var(--fs-base);
  line-height: 1.6;
}

.members-list a {
  border-bottom: 1px solid var(--surface);
  transition: all 0.3s ease;
}

.members-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.members-list .status {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--surface);
  color: var(--text);
  padding: 2px 8px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

.contact-form {
  margin: 1em 0;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface);
  color: var(--text);
  padding: 1rem;
  font-family: var(--font-body);
  margin-bottom: 2rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-form button:hover {
  opacity: 0.8;
}

/* =================================
   SOCIAL MEDIA ICONS
   ================================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface);
}

.social-icons a {
  color: var(--muted);
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 24px;
  height: 24px;
}

/* =================================
   FOOTER
   ================================= */
footer {
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--surface);
  font-size: var(--fs-xs);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }
}

@media (max-width: 767px) {
  .header-container nav {
    display: none;
  }

  .logo {
    font-size: 1.2rem;
  }
  
  h1 { font-size: calc(var(--fs-xl) * 1.2); }

  .carousel-cell {
    height: calc(100dvh - 180px);
  }
}
