:root {
  color-scheme: dark;
  --bg: #0f1217;
  --surface: rgba(25, 31, 39, 0.96);
  --surface-soft: rgba(33, 40, 51, 0.8);
  --surface-strong: #161b22;
  --text: #eef2f5;
  --muted: #9aabb9;
  --accent: #f07a29;
  --accent-soft: rgba(240, 122, 41, 0.16);
  --green: #4cbf77;
  --shadow: 0 35px 80px rgba(0, 0, 0, 0.18);
  --radius: 26px;
  --radius-sm: 18px;
  --border: 1px solid rgba(255,255,255,0.08);
  font-family: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, rgba(78, 131, 108, 0.14), transparent 28%), linear-gradient(180deg, #0f1217 0%, #090b0f 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(13, 18, 25, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 2.4rem;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text);
}

.controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 2.4rem;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0.55rem; }
.nav-toggle span:nth-child(2) { top: 1.15rem; }
.nav-toggle span:nth-child(3) { top: 1.75rem; }

.hero-section,
.page-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 6rem 0;
  overflow: hidden;
}

.hero-section .hero-overlay,
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.18) 0%, rgba(7, 10, 16, 0.95) 85%);
}

.hero-section {
  background: url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}

.page-hero.about-hero { background: url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.page-hero.team-hero { background: url('https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.page-hero.gallery-hero { background: url('https://images.unsplash.com/photo-1499696786235-9cfdcb8c2a28?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.page-hero.events-hero { background: url('https://images.unsplash.com/photo-1428366890490-852c4a52fa6a?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.page-hero.contact-hero { background: url('https://images.unsplash.com/photo-1519817650390-64a93db511aa?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }
.page-hero.detail-hero { background: url('https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-content .eyebrow,
.section-header .eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-content h1,
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.02;
  margin: 0;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 1.25rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-tertiary {
  background: var(--surface-soft);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.featured-section,
.stats-section,
.testimonial-section,
.dashboard-section,
.content-section,
.contact-section,
.map-section {
  padding: 5rem 0;
}

.feature-card,
.event-card,
.stat-card,
.testimonial-card,
.dashboard-card,
.team-card,
.contact-card,
.event-summary-card,
.itinerary-card,
.registration-card,
.photo-card,
.past-event-card,
.gallery-item {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card,
.event-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
}

.feature-card h2,
.section-header h2,
.event-card h3,
.team-card h3,
.value-card h3,
.testimonial-card strong,
.event-summary-card h2,
.map-card h2 {
  margin: 0 0 0.75rem;
}

.event-grid,
.stats-grid,
.testimonial-grid,
.dashboard-grid,
.text-grid,
.values-grid,
.team-grid,
.past-events,
.contact-grid,
.detail-grid,
.photo-grid {
  display: grid;
  gap: 1.5rem;
}

.event-grid,
.team-grid,
.gallery-grid,
.testimonial-grid,
.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-grid,
.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-card,
.team-card,
.testimonial-card,
.dashboard-card,
.value-card,
.past-event-card,
.gallery-item,
.contact-card,
.event-summary-card,
.itinerary-card,
.registration-card,
.photo-card {
  padding: 1.75rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.event-card .event-meta,
.event-footer,
.team-links,
.gallery-copy,
.registration-card p,
.contact-card ul,
.form-group,
.itinerary-card ol {
  margin: 0;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.event-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-card {
  padding: 2rem;
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
}

.testimonial-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  color: var(--muted);
  line-height: 1.8;
}

.testimonial-card div {
  display: grid;
  gap: 0.25rem;
}

.dashboard-card {
  padding: 2rem;
}

.team-showcase-section {
  padding: 8rem 0;
  background: #000;
  color: #fff;
}

.team-showcase-section .section-header {
  margin-bottom: 5rem;
}

.team-showcase-section .subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

.team-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-member-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.team-member-image-wrap {
  position: relative;
  height: 100%;
  width: 100%;
}

.team-member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 65%, transparent 100%);
}

.image-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 70%, #000 100%);
  pointer-events: none;
}

.team-member-content {
  padding: 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-member-name {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #fff;
}

.team-member-role {
  font-size: 0.95rem;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin: -0.5rem 0 0;
}

.team-member-bio {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin: 0.5rem 0;
}

.team-member-links {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  font-weight: 500;
}

.team-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.team-link .icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 6rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .team-member-content {
    padding: 2rem 3rem;
  }
  .team-member-name {
    font-size: 3.2rem;
  }
}

@media (max-width: 980px) {
  .team-member-row {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  
  .team-member-image {
    height: 450px;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  }

  .image-gradient-overlay {
    background: linear-gradient(to bottom, transparent 75%, #000 100%);
  }

  .team-member-content {
    padding: 4rem 1.5rem;
    align-items: center;
  }

  .team-member-bio {
    max-width: 100%;
  }

  .team-member-links {
    justify-content: center;
  }
}


.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.section-subtitle {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 0.35rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
  font-family: 'Playfair Display', serif;
}

/* Cinematic 16:9 gallery card */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.02));
  box-shadow: 0 14px 34px rgba(0,0,0,0.42);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  aspect-ratio: 16 / 9;
  display: block;
}

/* Ensure images fill the card and crop without distortion */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* Hover / focus effects: subtle zoom + cinematic dark overlay */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(3,6,10,0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}

.gallery-item:hover::after,
.gallery-item:focus-within::after {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.9) 100%);
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  min-height: 3rem;
}

.gallery-copy h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus {
  background: var(--accent);
  color: #0b0b0b;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 11, 17, 0.9);
  padding: 2rem;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  cursor: pointer;
}

.past-events {
  display: grid;
  gap: 1.5rem;
}

.past-event-card {
  padding: 1.75rem;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-card {
  min-height: 420px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  color: var(--text);
  padding: 0.95rem 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.55);
}

.form-success {
  display: none;
  color: var(--green);
  margin-top: 0.5rem;
}

.map-card {
  border-radius: 28px;
  overflow: hidden;
  border: var(--border);
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.event-summary-card,
.itinerary-card,
.registration-card {
  margin-bottom: 1.5rem;
}

.event-summary-card ul,
.itinerary-card ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.itinerary-card ol {
  list-style: decimal;
}

.registration-card {
  padding: 2rem;
}

.registration-card .event-meta {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.photo-card {
  overflow: hidden;
  border-radius: 28px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header + * {
  margin-top: 1.25rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: appear 0.9s ease forwards;
}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  padding: 3rem 0 2rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 980px) {
  .text-grid,
  .contact-grid,
  .detail-grid,
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: left;
    padding: 0 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-section,
  .page-hero {
    min-height: 70vh;
    padding: 4rem 0;
  }

  .hero-actions,
  .event-footer,
  .team-links,
  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar,
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100%, calc(100% - 1.5rem));
  }

  .hero-content h1,
  .section-header h2 {
    font-size: 2.5rem;
  }

  .team-card img,
  .team-avatar-placeholder {
    height: 240px;
  }

  .event-card,
  .contact-card,
  .team-card,
  .stat-card,
  .testimonial-card,
  .dashboard-card,
  .value-card,
  .past-event-card {
    padding: 1.35rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .gallery-copy h3 {
    font-size: 0.95rem;
  }
}

body.dark-mode {
  --bg: #090b0f;
  --surface: rgba(12, 18, 24, 0.94);
  --surface-soft: rgba(20, 27, 38, 0.72);
  --surface-strong: #0d1118;
  --text: #f8fafc;
  --muted: #a0b3c0;
  --shadow: 0 35px 90px rgba(0, 0, 0, 0.22);
}
