/* ===== Variables ===== */
:root {
  --primary: #6d4aff;
  --primary-dark: #5735cc;
  --bg: #0f0a1a;
  --bg-card: #1a1330;
  --bg-card-hover: #221a3d;
  --text: #f0ecff;
  --text-muted: #a89fc8;
  --accent: #ffc857;
  --border: rgba(109,74,255,0.18);
  --radius: 14px;
  --max-width: 1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Layout helpers ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Navbar ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15,10,26,0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-contact {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background .2s;
}
.nav-contact:hover { background: var(--primary-dark); text-decoration: none; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    flex-direction: column;
    background: rgba(15,10,26,0.97);
    padding: 24px;
    width: 220px;
    gap: 16px;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateX(0); }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 100px 24px 60px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(109,74,255,0.15), transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(255,200,87,0.06), transparent 50%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.hero p {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }

/* ===== Team ===== */
.team-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 3px solid var(--border);
  background: var(--bg-card);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.team-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 4px; }
.team-role { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.team-card p { color: var(--text-muted); font-style: italic; }

/* ===== Fellowship / CTA ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(109,74,255,0.08));
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}
.cta-section p { color: var(--text-muted); margin-bottom: 28px; font-size: 1.1rem; }

/* ===== Photos Carousel ===== */
.photo-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.photo-track {
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.photo-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 500px;
}
.photo-slide img {
  max-width: 100%;
  max-height: calc(100% - 50px);
  object-fit: contain;
  display: block;
}
.photo-caption {
  width: 100%;
  padding: 12px 20px;
  background: rgba(15,10,26,0.75);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-nav-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 2;
  pointer-events: none;
}
.photo-arrow {
  pointer-events: auto;
  background: rgba(15,10,26,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-muted);
  font-size: 1.2rem;
}
.photo-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.photo-nav-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.photo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.photo-dot.active { background: var(--primary); }
.photo-counter {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(15,10,26,0.75);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 2;
}
@media (max-width: 720px) {
  .photo-slide { height: 450px; }
  .photo-caption { font-size: 0.85rem; padding: 10px 16px; }
  .photo-arrow { width: 38px; height: 38px; font-size: 1rem; }
}

/* ===== About ===== */
.about-content {
  max-width: 760px;
  margin: 0 auto;
}
.about-content p { margin-bottom: 18px; color: var(--text-muted); font-size: 1.05rem; }
.preface {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}
.about-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

/* ===== Testimonials ===== */
.testimonial-slider {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.testimonial-track { display: flex; transition: transform .4s ease; }
.testimonial-slide {
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text);
}
.testimonial-author { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.testimonial-nav { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.testimonial-dot.active { background: var(--primary); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question i { transition: transform .3s; color: var(--primary); font-size: 0.9rem; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-muted); }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
  text-align: center;
}
footer h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 24px; }
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
  font-size: 1.1rem;
}
.social-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  text-decoration: none;
}
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Utilities ===== */
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
  .team-card { padding: 28px; }
  .testimonial-slide { padding: 28px; }
}

/* ===== Contact Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,26,0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: color .2s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}
.modal-header {
  margin-bottom: 24px;
  text-align: center;
}
.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  display: none;
}
.form-message.success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4caf50;
  display: block;
}
.form-message.error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #f44336;
  display: block;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .modal-content {
    padding: 28px 24px;
    margin: 16px;
  }
  .modal-header h3 {
    font-size: 1.4rem;
  }
}
