/* ========================================
   C3 Website — Styles
   ======================================== */

:root {
  --green: #00573E;
  --green-dark: #003D2B;
  --green-light: #007A56;
  --offwhite: #D9D9D9;
  --cream: #F5F2ED;
  --white: #FFFFFF;
  --black: #0A0A0A;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(0, 87, 62, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
}

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

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

.logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height 0.3s ease;
}

.navbar.scrolled .logo-img { height: 32px; }

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: #FFFFFF; }

.nav-cta {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.5rem !important;
  border-radius: 100px;
  transition: all 0.3s ease !important;
}

.nav-cta:hover { background: rgba(255, 255, 255, 0.2) !important; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: #FFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #001A10;
  overflow: hidden;
}

.hero-video-wrap,
.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Desktop image/video by default, mobile video hidden */
.hero-video-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-video-desktop {
    display: none;
  }
  .hero-video-mobile {
    display: block;
  }
}

.hero-video {
  border: none;
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: 177.78vh; /* 16:9 */
  height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 26, 16, 0.45) 0%,
    rgba(0, 57, 38, 0.35) 40%,
    rgba(0, 26, 16, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  max-width: 900px;
}

.hero-logo-wrapper {
  margin-bottom: 2rem;
  animation: logoReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-logo {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: logoPulse 4s ease-in-out 2s infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroWordUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word-and {
  font-style: italic;
  opacity: 0;
  color: rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: heroWordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeIn 1s 2s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   Section Common
   ======================================== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--green);
}

/* ========================================
   Experiences / Carousel Section
   ======================================== */

.experiences {
  padding: 5rem 0 4rem;
  background: var(--green);
  overflow: hidden;
}

.experiences .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.experiences .section-label::before {
  background: rgba(255, 255, 255, 0.3);
}

.experiences-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 2.5rem;
}

.carousel-wrapper { padding: 0 2rem; }

.carousel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 1.5rem;
}

.carousel-card {
  flex: 0 0 calc(50% - 0.75rem);
  min-width: calc(50% - 0.75rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
}

/* Card images */
.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card:hover .card-image img {
  transform: scale(1.06);
}

.card-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.card-status {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.card-status-complete {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

.card-status-upcoming {
  background: rgba(0, 200, 120, 0.2);
  color: #00c878;
}

.card-location {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.card-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: 0.5rem; }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #FFFFFF;
  width: 20px;
  border-radius: 3px;
}

/* ========================================
   Mission Section
   ======================================== */

.mission {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    #003D2B 0%,
    #00573E 40%,
    #006B4A 70%,
    #004D36 100%
  );
}

.mission .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.mission .section-label::before {
  background: rgba(255, 255, 255, 0.3);
}

.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.35;
  color: #FFFFFF;
  max-width: 860px;
  margin-bottom: 3.5rem;
}

.mission-statement em {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.mission-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid rgba(0, 87, 62, 0.1);
  padding-top: 2.5rem;
}

.mission-details {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.mission-detail h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.mission-detail p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  font-weight: 300;
}

.experience-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.experience-types .mission-detail h4 {
  color: #FFFFFF;
}

.experience-types .mission-detail p {
  color: rgba(255, 255, 255, 0.55);
}

.experience-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.5rem;
  position: relative;
  top: -1px;
}

.badge-invite {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-members {
  background: rgba(0, 200, 120, 0.15);
  color: #00c878;
  border: 1px solid rgba(0, 200, 120, 0.25);
}

/* ========================================
   Members Section
   ======================================== */

.members {
  padding: 5rem 0 6rem;
  background: var(--white);
  overflow: hidden;
}

.principles-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.principles-header .section-label {
  margin-bottom: 1rem;
}

.members-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.members-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 300;
}

.members-description strong {
  color: var(--green);
  font-weight: 500;
}

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

.pillar {
  padding: 2.5rem 2rem 2rem;
  border-radius: 16px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 87, 62, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.6s ease,
              background 0.5s ease;
}

/* Animated gradient border glow on hover */
.pillar::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--green), rgba(0, 87, 62, 0.3), var(--green));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: gradientShift 3s ease infinite paused;
}

.pillar:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Large decorative background number */
.pillar-bg-number {
  position: absolute;
  top: -10px;
  right: -5px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 400;
  color: var(--green);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover .pillar-bg-number {
  opacity: 0.12;
  transform: translateY(-6px) scale(1.05);
  color: #FFFFFF;
}

/* Icon */
.pillar-icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 1.25rem;
  opacity: 0.7;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover .pillar-icon {
  opacity: 1;
  transform: scale(1.1);
  color: #FFFFFF;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 64px rgba(0, 87, 62, 0.25), 0 8px 24px rgba(0, 87, 62, 0.15);
  border-color: var(--green);
  background: var(--green);
}

.pillar-number {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 0.75rem;
  display: block;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover .pillar-number {
  opacity: 0.6;
  transform: translateX(4px);
  color: #FFFFFF;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--text);
  transition: color 0.4s ease;
}

.pillar:hover h3 {
  color: #FFFFFF;
}

.pillar p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.pillar:hover p {
  color: rgba(255, 255, 255, 0.75);
}

/* Animated bottom accent line */
.pillar-line {
  height: 3px;
  background: linear-gradient(90deg, var(--green), rgba(0, 87, 62, 0.2));
  border-radius: 2px;
  margin-top: 1.5rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover .pillar-line {
  transform: scaleX(1);
  background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0.3));
}

/* Staggered reveal animations for pillars */
.pillar.reveal {
  opacity: 0;
  transform: translateY(50px);
}

.pillar[data-pillar="1"].reveal { transition-delay: 0s; }
.pillar[data-pillar="2"].reveal { transition-delay: 0.15s; }
.pillar[data-pillar="3"].reveal { transition-delay: 0.3s; }

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

/* ========================================
   Members Only Nav Link
   ======================================== */

.nav-members-only {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.5rem !important;
  border-radius: 100px;
  transition: all 0.3s ease !important;
}

.nav-members-only:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   Password Modal
   ======================================== */

/* ── Members Only Modal ── */
.password-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.password-modal.active {
  display: flex;
}

.password-modal-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 40, 28, 0.95), rgba(0, 8, 5, 0.98));
  backdrop-filter: blur(30px);
  animation: overlayFadeIn 0.5s ease;
}

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

/* Floating ambient orbs */
.modal-ambient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2001;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}

.modal-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 87, 62, 0.25), transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.modal-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 120, 80, 0.15), transparent 70%);
  bottom: -80px;
  left: -80px;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-15px, 15px) scale(0.95); }
  75% { transform: translate(10px, 20px) scale(1.03); }
}

.password-modal-content {
  position: relative;
  z-index: 2002;
  background: linear-gradient(170deg, rgba(10, 45, 32, 0.9), rgba(8, 30, 22, 0.95));
  border: 1px solid rgba(0, 87, 62, 0.25);
  border-radius: 28px;
  padding: 4rem 3.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  animation: modalSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6),
              0 0 80px rgba(0, 87, 62, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(60px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative lines */
.modal-decorative-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 87, 62, 0.6), transparent);
  margin: 0 auto 2rem;
}

.modal-line-bottom {
  margin: 2rem auto 0;
}

.password-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-modal-close:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.modal-logo {
  height: 64px;
  width: auto;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 0.9; transform: scale(1); }
}

.modal-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 180, 120, 0.6);
  margin-bottom: 0.75rem;
  animation: heroWordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.password-modal-content h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  animation: heroWordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.password-modal-content > p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  animation: heroWordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.password-input-wrap {
  display: flex;
  gap: 0.75rem;
  animation: heroWordUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Glowing input container */
.glow-input-container {
  flex: 1;
  position: relative;
  border-radius: 14px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
}

.glow-input-gradient {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

.glow-input-container input {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 12px;
  background: rgba(0, 20, 14, 0.8);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #FFFFFF;
  outline: none;
  letter-spacing: 0.04em;
  transition: box-shadow 0.3s ease;
}

.glow-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

.glow-input-container input:focus {
  box-shadow: 0 0 0 2px rgba(0, 87, 62, 0.5), 0 0 30px rgba(0, 87, 62, 0.1);
}

.password-input-wrap button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--green), #007a54);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.password-input-wrap button svg {
  transition: transform 0.3s ease;
}

.password-input-wrap button:hover {
  background: linear-gradient(135deg, #007a54, #009966);
  box-shadow: 0 8px 32px rgba(0, 87, 62, 0.5), 0 0 60px rgba(0, 87, 62, 0.15);
  transform: translateY(-2px);
}

.password-input-wrap button:hover svg {
  transform: translateX(3px);
}

.password-error {
  display: none;
  color: #ef5350;
  font-size: 0.8rem;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  animation: heroWordUp 0.4s ease;
}

.password-error.show {
  display: block;
}

.glow-input-container input.error {
  box-shadow: 0 0 0 2px rgba(239, 83, 80, 0.6);
  animation: inputShake 0.4s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ========================================
   Members Only Section
   ======================================== */

.members-only-section {
  display: none;
  padding: 5rem 0;
  background: var(--green-dark);
  color: #FFFFFF;
}

.members-only-section.active {
  display: block;
}

.members-only-section .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.members-only-section .section-label::before {
  background: rgba(255, 255, 255, 0.3);
}

.members-only-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.members-only-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 600px;
}

/* ========================================
   Members Only Page
   ======================================== */

.members-only-hero {
  padding: 8rem 0 3rem;
  background: var(--green-dark);
  color: #FFFFFF;
}

.members-only-hero .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.members-only-hero .section-label::before {
  background: rgba(255, 255, 255, 0.3);
}

.members-only-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.members-only-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* Founding Members Cards */

/* Directory Filters */
.directory-filters-section {
  padding: 1.5rem 0 0;
  background: var(--white);
}

.directory-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.directory-search-wrap {
  position: relative;
}

.directory-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.directory-search {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid rgba(0, 87, 62, 0.15);
  border-radius: 12px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.directory-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 87, 62, 0.1);
}

.directory-search::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.directory-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 0.25rem;
}

.filter-select {
  padding: 0.6rem 2rem 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  border: 1px solid rgba(0, 87, 62, 0.15);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300573E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  transition: border-color 0.3s ease;
  outline: none;
  min-width: 140px;
}

.filter-select:focus {
  border-color: var(--green);
}

.filter-clear {
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(0, 87, 62, 0.2);
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-clear:hover {
  background: var(--green);
  color: #fff;
}

.directory-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-weight: 400;
}

.directory-no-results {
  text-align: center;
  padding: 4rem 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Member Map */
.member-map-section {
  padding: 0 0 2rem;
  background: var(--white);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.map-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
}

.map-view-all {
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--green);
  border-radius: 100px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-view-all:hover {
  background: var(--green);
  color: #fff;
}

.member-map {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  border: 1px solid rgba(0, 87, 62, 0.15);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Marker dot style */
.c3-map-marker {
  background: none !important;
  border: none !important;
}

.c3-marker-dot {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 200, 120, 0.9), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 200, 120, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: markerAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.c3-marker-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 30px rgba(0, 200, 120, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
}

@keyframes markerAppear {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.c3-marker-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 120, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: markerPulse 3s ease-out infinite;
  pointer-events: none;
}

@keyframes markerPulse {
  0% { width: 100%; height: 100%; opacity: 0.6; }
  100% { width: 250%; height: 250%; opacity: 0; }
}

.c3-marker-dot span {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Custom popup styling */
.c3-custom-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(10, 45, 32, 0.95), rgba(5, 25, 18, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 200, 120, 0.08);
  border: 1px solid rgba(0, 200, 120, 0.15);
  color: #fff;
}

.c3-custom-popup .leaflet-popup-tip {
  background: rgba(10, 45, 32, 0.95);
  box-shadow: none;
}

.c3-custom-popup .leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 18px !important;
}

.c3-custom-popup .leaflet-popup-close-button:hover {
  color: #fff !important;
}

.c3-popup {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #fff;
  padding: 0.25rem;
}

.popup-city-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.c3-popup strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}

.c3-popup-count {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 200, 120, 0.8);
  white-space: nowrap;
}

.popup-member-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.popup-member {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.popup-member:hover {
  background: rgba(0, 200, 120, 0.15);
}

.popup-prof {
  font-size: 0.65rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.1rem;
}

/* Card highlight when clicking from map */
.member-card-highlight {
  animation: cardHighlight 2s ease;
}

@keyframes cardHighlight {
  0%, 100% { box-shadow: 0 2px 12px rgba(0, 87, 62, 0.06); }
  15%, 50% { box-shadow: 0 0 0 3px var(--green), 0 8px 32px rgba(0, 87, 62, 0.2); }
}

/* Leaflet overrides */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: rgba(10, 45, 32, 0.9) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
  background: var(--green) !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .member-map {
    height: 340px;
    border-radius: 14px;
  }

  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Member cards - directory style */
.member-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.member-class-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(0, 87, 62, 0.08);
  color: var(--green);
  margin-top: 0.5rem;
}

.member-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.member-location svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.member-profession {
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 400;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.member-card-details {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  width: 100%;
}

.member-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.detail-label {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.7;
  margin-right: 0.3rem;
}

.member-interests {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  margin-top: 0.4rem;
}

.member-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.member-contact-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.member-contact-link:hover {
  opacity: 0.7;
}

.member-contact-link svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.founding-members-section {
  padding: 2rem 0 4rem;
  background: var(--white);
}

.member-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.member-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 87, 62, 0.1);
}

.member-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  letter-spacing: 0.02em;
}

.member-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.member-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.6;
}

.member-talk {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.member-talk-link {
  display: block;
  text-decoration: none;
  color: var(--green);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.member-talk-link:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .member-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .member-cards { grid-template-columns: repeat(2, 1fr); }
  .founding-members-section { padding: 1.5rem 0 2.5rem; }

  .directory-filters {
    flex-direction: column;
  }

  .filter-select {
    min-width: 100%;
  }
}

/* Schedule Section */

.schedule-section {
  padding: 4rem 0;
  background: var(--cream);
}

.schedule-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.schedule-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.schedule-day {
  margin-bottom: 3rem;
}

.schedule-day:last-child {
  margin-bottom: 0;
}

.schedule-day-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 87, 62, 0.15);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;
}

.schedule-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 87, 62, 0.08);
}

.schedule-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  opacity: 0.4;
  min-width: 24px;
  padding-top: 0.2rem;
}

.schedule-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.schedule-info p {
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 400;
  font-style: italic;
}

a.schedule-link {
  text-decoration: none;
  cursor: pointer;
}

a.schedule-link:hover {
  border-left: 3px solid var(--green);
}

@media (max-width: 768px) {
  .members-only-hero { padding: 6rem 0 2rem; }
  .schedule-section { padding: 2.5rem 0; }
  .schedule-item { padding: 1rem 1.25rem; gap: 1rem; }
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--green-dark);
  padding: 3rem 0 1.5rem;
  color: #FFFFFF;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.footer-links { display: flex; gap: 2rem; }

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: #FFFFFF; }

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ========================================
   Animations
   ======================================== */

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.8; transform: scaleY(1.15); }
}

@keyframes heroWordUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes logoPulse {
  0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 0px transparent); }
  50%      { filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .mission-details { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-logo { height: 48px; }
  .hero-headline { font-size: clamp(1.75rem, 8vw, 2.5rem); }

  .experiences { padding: 3.5rem 0 3rem; }

  .carousel-card {
    flex: 0 0 calc(100% - 1rem);
    min-width: calc(100% - 1rem);
  }

  .mission { padding: 3.5rem 0; }
  .mission-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .experience-types {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .members { padding: 3.5rem 0; }

  .principles-header {
    margin-bottom: 2.5rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pillar-bg-number {
    font-size: 5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}
