/* ═══════════════════════════════════════════════
   Edu AI — Design System & Global Styles
   ═══════════════════════════════════════════════ */

:root {
  --deep-blue: #0D1A42;
  --mid-blue: #162557;
  --light-blue: #3EA6FF;
  --accent-glow: rgba(62, 166, 255, 0.15);
  --white: #FFFFFF;
  --off-white: #F4F7FB;
  --gray-100: #E8ECF2;
  --gray-300: #B0BDD0;
  --gray-500: #6B7C99;
  --gray-700: #3B4A64;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(13, 26, 66, 0.08);
  --shadow-lg: 0 12px 48px rgba(13, 26, 66, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  color: var(--deep-blue);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-blue);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--light-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--light-blue);
}

.nav-cta {
  background: var(--deep-blue);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--light-blue);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--deep-blue);
  border-radius: 4px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--deep-blue) 0%, #0F2255 50%, #132B6A 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--light-blue);
  top: -200px;
  right: -150px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--light-blue);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--white);
  bottom: 20%;
  right: 15%;
  opacity: 0.04;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(62, 166, 255, 0.1);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(62, 166, 255, 0.2);
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--light-blue), #73C2FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--gray-300);
  margin-bottom: 8px;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--light-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(62, 166, 255, 0.35);
}

.btn-primary:hover {
  background: #2B96F0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(62, 166, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   Section Shared
   ═══════════════════════════════════════════════ */

section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════════
   2. What You'll Build — Cards
   ═══════════════════════════════════════════════ */

#build {
  background: var(--off-white);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.1), rgba(62, 166, 255, 0.05));
  border-radius: 14px;
  color: var(--light-blue);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   3. Why Edu AI
   ═══════════════════════════════════════════════ */

#why {
  background: var(--white);
}

.why-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.why-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--deep-blue);
  color: var(--light-blue);
}

.why-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-item p {
  color: var(--gray-500);
  font-size: 0.92rem;
}

.why-quote {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--deep-blue);
  border: none;
  position: relative;
  padding: 24px 40px;
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(62, 166, 255, 0.06), rgba(62, 166, 255, 0.02));
  border-radius: var(--radius);
  border-left: 4px solid var(--light-blue);
}

/* ═══════════════════════════════════════════════
   4. The Cohort Experience
   ═══════════════════════════════════════════════ */

#cohort {
  background: var(--deep-blue);
  color: var(--white);
}

#cohort .section-title {
  color: var(--white);
}

#cohort .section-subtitle {
  color: var(--gray-300);
}

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

.cohort-item {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition), transform var(--transition);
}

.cohort-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.cohort-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--light-blue);
  letter-spacing: 1px;
  margin-bottom: 14px;
  opacity: 0.7;
}

.cohort-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cohort-item p {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   5. Syllabus Snapshot
   ═══════════════════════════════════════════════ */

#syllabus {
  background: var(--off-white);
}

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

.syllabus-item {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.syllabus-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.syllabus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-blue);
  background: rgba(62, 166, 255, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.syllabus-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.syllabus-item p {
  color: var(--gray-500);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════
   6. Application / Apply Section
   ═══════════════════════════════════════════════ */

#apply {
  background: var(--white);
}

.apply-centered {
  text-align: center;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 48px;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--white);
  background: linear-gradient(135deg, var(--light-blue), #2B8CE0);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(62, 166, 255, 0.35);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-apply:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(62, 166, 255, 0.5);
  background: linear-gradient(135deg, #2B96F0, #1A7CD4);
}

.apply-or {
  margin: 32px 0 24px;
  font-size: 0.95rem;
  color: var(--gray-500);
  font-weight: 500;
}

.apply-contact-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  text-align: left;
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.whatsapp-icon {
  background: #25D366;
  color: var(--white);
}

.phone-icon {
  background: var(--light-blue);
  color: var(--white);
}

.contact-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-card span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════════
   7. Footer
   ═══════════════════════════════════════════════ */

#footer {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  display: inline-block;
}

.footer-logo span {
  color: var(--light-blue);
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-link a {
  font-size: 0.9rem;
  color: var(--light-blue);
  transition: opacity var(--transition);
}

.footer-link a:hover {
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════
   Responsive Design
   ═══════════════════════════════════════════════ */

@media (max-width: 968px) {

  .cards-grid,
  .cohort-grid,
  .syllabus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }

  /* Grids collapse */
  .cards-grid,
  .cohort-grid,
  .syllabus-grid {
    grid-template-columns: 1fr;
  }

  /* Why */
  .why-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Section padding */
  section {
    padding: 72px 0;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .card {
    padding: 28px 24px;
  }
}

/* ─── Fade-in on scroll ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}