/* ===== Base ===== */
:root {
  --dark: #121212;
  --dark-2: #1a1a1a;
  --cream: #f7f3ec;
  --accent: #e63946;
  --text-light: #f5f5f5;
  --text-dark: #1c1c1c;
  --max-width: 1140px;
  --pad-x: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--pad-x);
  margin: 0 auto;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--text-light);
}

.brand span { color: var(--accent); }

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

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-light);
  transition: 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1600&q=80')
    center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  max-width: 800px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: #d8d8d8;
  max-width: 520px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.2s forwards;
}

.cta-scroll {
  display: inline-block;
  margin-top: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.4s forwards;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #c62d39;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.35);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  padding: 12px 28px;
  font-size: 0.9rem;
}

.section-dark .btn-outline { color: var(--accent); border-color: var(--accent); }

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--dark);
  color: var(--text-light);
}

.section-light {
  background: var(--cream);
  color: var(--text-dark);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-text {
  max-width: 720px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* ===== Fade animation ===== */
.fade-section,
.fade-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.visible,
.fade-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Programs ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.program-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.program-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.program-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.75rem;
  min-height: 72px;
}

/* stagger card fade */
.program-card:nth-child(1) { transition-delay: 0s; }
.program-card:nth-child(2) { transition-delay: 0.15s; }
.program-card:nth-child(3) { transition-delay: 0.3s; }

/* ===== Footer ===== */
.footer {
  background: var(--dark-2);
  color: var(--text-light);
  padding: 60px 0 40px;
  text-align: left;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.footer-brand span { color: var(--accent); }

.footer-tagline {
  margin-top: 0.75rem;
  color: #bbb;
  font-size: 0.95rem;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #777;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(18,18,18,0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad-x);
    gap: 1.25rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-title { max-width: 100%; }
  .program-card { padding: 2rem 1.5rem; }
}
