/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-deep:    #050d1a;
  --blue-dark:    #0a1628;
  --blue-mid:     #0d2447;
  --blue-accent:  #1a5fa8;
  --blue-bright:  #2d8fff;
  --blue-glow:    #4db8ff;
  --text-primary: #e8f4fd;
  --text-muted:   #7bafd4;
  --text-faint:   #3d6080;
  --white:        #ffffff;
  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --max-width:    1100px;
  --radius:       12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--blue-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* =====================
   NAVIGATION
   ===================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s;
}

#nav.scrolled {
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(45, 143, 255, 0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-glow);
}

/* Subpages have no hero, so lock the nav background permanently */
body.subpage #nav {
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 143, 255, 0.12);
  padding: 14px 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(45, 143, 255, 0.4);
  color: var(--blue-glow);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.lang-toggle:hover {
  background: rgba(45, 143, 255, 0.1);
  border-color: rgba(45, 143, 255, 0.6);
}

/* =====================
   HERO
   ===================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(26, 95, 168, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(13, 36, 71, 0.6) 0%, transparent 50%),
    linear-gradient(160deg, #050d1a 0%, #0d2447 50%, #050d1a 100%);
  overflow: hidden;
}

/* Animated water shimmer */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(45, 143, 255, 0.03) 2px,
      rgba(45, 143, 255, 0.03) 4px
    );
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.hero-overlay {
  display: none; /* used if you add a background image */
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--blue-glow);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue-accent);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(45, 143, 255, 0.3);
}

.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 143, 255, 0.35);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--blue-glow);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(45, 143, 255, 0.4);
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: rgba(45, 143, 255, 0.08);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =====================
   SECTION LABELS
   ===================== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 12px;
}

.section-label.light {
  color: var(--blue-glow);
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 40px;
}

/* =====================
   ABOUT
   ===================== */
#about {
  padding: 120px 0;
  background: var(--blue-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(45, 143, 255, 0.12);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--blue-mid);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.9rem;
  border: 2px dashed rgba(45, 143, 255, 0.2);
}

.image-placeholder span {
  font-weight: 500;
  color: var(--text-muted);
}

.image-placeholder.dark {
  aspect-ratio: 16/9;
  background: rgba(13, 36, 71, 0.5);
}

/* =====================
   PROJECTS
   ===================== */
#projects {
  padding: 120px 0;
  background: var(--blue-deep);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  background: var(--blue-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(45, 143, 255, 0.1);
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 143, 255, 0.3);
  box-shadow: 0 16px 48px rgba(5, 13, 26, 0.6);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card.featured .project-image-wrap {
  height: 100%;
}

.project-card.featured .image-placeholder {
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  border: none;
}

.project-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.project-status.active {
  background: rgba(0, 200, 130, 0.15);
  color: #00c882;
  border: 1px solid rgba(0, 200, 130, 0.3);
}

.project-status.upcoming {
  background: rgba(255, 170, 50, 0.12);
  color: #ffaa32;
  border: 1px solid rgba(255, 170, 50, 0.3);
}

.project-image-wrap {
  overflow: hidden;
}

.project-body {
  padding: 28px;
}

.project-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue-glow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(45, 143, 255, 0.08);
  border: 1px solid rgba(45, 143, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
}

.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-bright);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--blue-glow);
}

/* =====================
   DESTINATIONS
   ===================== */
#destinations {
  padding: 120px 0;
  background: var(--blue-deep);
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dest-card {
  background: var(--blue-dark);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(45, 143, 255, 0.1);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.dest-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 143, 255, 0.3);
  box-shadow: 0 16px 48px rgba(5, 13, 26, 0.6);
}

.dest-body {
  padding: 20px;
}

.dest-region {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-glow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.dest-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.dest-count {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.dest-sites {
  list-style: none;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 143, 255, 0.3) transparent;
}

.dest-sites li {
  border-bottom: 1px solid rgba(45, 143, 255, 0.06);
}

.dest-sites li:last-child {
  border-bottom: none;
}

.dest-site-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.83rem;
}

.dest-site-link:hover {
  color: var(--blue-glow);
}

.dest-site-link:hover .dest-coords {
  color: var(--blue-glow);
}

.dest-coords {
  font-size: 0.7rem;
  color: var(--text-faint);
  flex-shrink: 0;
  font-family: monospace;
  letter-spacing: 0.01em;
}

/* =====================
   TEACHING
   ===================== */
#teaching {
  padding: 120px 0;
  background: var(--blue-dark);
}

.teaching-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 52px;
  border-bottom: 1px solid rgba(45, 143, 255, 0.12);
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--blue-glow);
  border-bottom-color: var(--blue-glow);
}

.tab-btn:hover {
  color: var(--blue-glow);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Scheduled class cards */
.class-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.class-card {
  background: var(--blue-mid);
  border: 1px solid rgba(45, 143, 255, 0.15);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.class-card:hover {
  border-color: rgba(45, 143, 255, 0.35);
  box-shadow: 0 8px 32px rgba(5, 13, 26, 0.5);
}

.class-date-block {
  text-align: center;
  min-width: 56px;
  padding-right: 24px;
  border-right: 1px solid rgba(45, 143, 255, 0.12);
}

.class-date-block .class-month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-glow);
}

.class-date-block .class-day {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 2px 0;
}

.class-date-block .class-year {
  display: block;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.class-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.class-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.class-status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 170, 50, 0.12);
  color: #ffaa32;
  border: 1px solid rgba(255, 170, 50, 0.3);
}

.class-status-badge.open {
  background: rgba(0, 200, 130, 0.12);
  color: #00c882;
  border-color: rgba(0, 200, 130, 0.3);
}

.no-classes {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 28px 0;
  border-top: 1px solid rgba(45, 143, 255, 0.08);
}

@media (max-width: 768px) {
  .class-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .class-date-block {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(45, 143, 255, 0.12);
    padding-right: 0;
    padding-bottom: 16px;
  }

  .class-date-block .class-day {
    font-size: 1.6rem;
  }
}

/* =====================
   SOCIAL
   ===================== */
#social {
  padding: 120px 0;
  background: var(--blue-deep);
}

.social-inner {
  text-align: center;
}

.social-inner > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.social-card {
  display: block;
  background: var(--blue-dark);
  border: 1px solid rgba(45, 143, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 143, 255, 0.3);
  box-shadow: 0 16px 48px rgba(5, 13, 26, 0.6);
}

.social-platform {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.social-handle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.social-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-bottom: 16px;
  color: var(--blue-glow);
}

.social-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.social-logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-glow);
  line-height: 1;
}

.social-arrow {
  font-size: 1rem;
  color: var(--blue-bright);
}

/* =====================
   CONTACT
   ===================== */
#contact {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26, 95, 168, 0.3) 0%, transparent 70%),
    var(--blue-mid);
}

.contact-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-footer {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0 !important;
}

/* =====================
   FOOTER
   ===================== */
footer {
  padding: 28px 0;
  background: var(--blue-deep);
  border-top: 1px solid rgba(45, 143, 255, 0.08);
}

footer p {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    order: -1;
  }

  .image-placeholder {
    aspect-ratio: 4/3;
  }

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

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-card.featured .image-placeholder {
    aspect-ratio: 16/9;
  }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

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