/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:    #2563eb;
  --primary-dk: #1d4ed8;
  --accent:     #f59e0b;
  --text:       #1e293b;
  --text-light: #64748b;
  --bg:         #ffffff;
  --bg-alt:     #f1f5f9;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.section-title + .section-subtitle { margin-top: 0.5rem; }
.section-title + .events-list,
.section-title + .about-grid,
.section-title + .contact-grid { margin-top: 2.5rem; }

/* ── Button ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: var(--primary-dk); transform: translateY(-2px); }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  z-index: 1000;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.nav-links a:hover  { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}
.lang-toggle {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background var(--transition), color var(--transition);
}
.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
}

/* Background slides */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 3.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 8s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.02);
}

/* Content sits above slides */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Text exits upward */
.hero-content.fading h1,
.hero-content.fading p { opacity: 0; transform: translateY(-14px); }
/* Text enters from below (snap, no transition) */
.hero-content.entering h1,
.hero-content.entering p { opacity: 0; transform: translateY(14px); transition: none; }

.hero .btn {
  background: var(--accent);
  color: #1e293b;
}
.hero .btn:hover { background: #d97706; }

/* Arrow buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.25rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-50%) scale(1.1);
}
.hero-arrow-left  { left: 1.5rem; }
.hero-arrow-right { right: 1.5rem; }

@media (max-width: 480px) {
  .hero-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .hero-arrow-left  { left: 0.75rem; }
  .hero-arrow-right { right: 0.75rem; }
}

/* Dot indicators */
.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── About ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}
.about-text p { color: var(--text-light); margin-bottom: 1rem; font-size: 1.05rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label { font-size: 0.85rem; color: var(--text-light); }

/* ── Events ────────────────────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
.event-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform var(--transition);
}
.event-card:hover { transform: translateX(4px); }
.event-date {
  min-width: 64px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.event-date .day  { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date .month { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event-info h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.event-info p  { font-size: 0.9rem; color: var(--text-light); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, 0.7);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Gallery categories (main page) ───────────────────────── */
.gallery-category-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
#gallery-sections .gallery-grid { margin-top: 0; }
.gallery-empty {
  text-align: center;
  color: var(--text-light);
  grid-column: 1 / -1;
  padding: 2rem 0;
}

/* ── Gallery folder cards (main page) ─────────────────────── */
.gallery-folder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  display: block;
  cursor: pointer;
}
.gallery-folder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-folder:hover img { transform: scale(1.06); }

.gallery-folder-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  padding: 2.5rem 1rem 1rem;
  color: #fff;
}
.gallery-folder-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.gallery-folder-info small { font-size: 0.8rem; opacity: 0.85; }

.gallery-folder-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ── Gallery page (gallery.html) ───────────────────────────── */
body.page-gallery {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-gallery .section { flex: 1; }

.gallery-page-header {
  background: var(--primary);
  color: #fff;
  padding: 4.5rem 0 2rem;
  text-align: center;
}
.gallery-page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.gallery-page-header p { opacity: 0.85; font-size: 1rem; }

.btn-sm {
  padding: 0.4rem 1.1rem;
  font-size: 0.875rem;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-height: 75vh;
  max-width: 90vw;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-caption { color: #cbd5e1; font-size: 0.95rem; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 0.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}
.contact-icon { font-size: 1.25rem; display: flex; align-items: center; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--bg);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { resize: vertical; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem 1.5rem; gap: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 380px) {
  .event-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .event-date { min-width: unset; width: 100%; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; }
  .event-date .day { font-size: 1.2rem; }
}
