:root {
  --primary: #643192;
  --secondary: #1c70b9;
  --accent: #1eb57f;
  --text-dark: #181028;
  --text-light: #f4f4fa;
  --bg: #f7f8fc;
  --glass: rgba(255, 255, 255, 0.65);
  --shadow: 0 24px 70px rgba(10, 12, 31, 0.12);
  --gradient: radial-gradient(circle at 20% 20%, rgba(100, 49, 146, 0.35), transparent 60%), radial-gradient(circle at 80% 0%, rgba(28, 112, 185, 0.35), transparent 40%), #eef2fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--gradient);
}

html {
  scroll-behavior: smooth;
}

header {
  min-height: 100vh;
  position: relative;
  padding: 40px 24px 120px;
  overflow: hidden;
  color: var(--text-light);
  background-image: radial-gradient(circle at top, rgba(6, 11, 40, 0.7), rgba(6, 11, 40, 0.25)), url("https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 18, 40, 0.82), rgba(22, 75, 145, 0.65));
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: -1;
}

.orb.orb-1 {
  width: 420px;
  height: 420px;
  top: 10%;
  left: -5%;
  background: #643192;
}

.orb.orb-2 {
  width: 520px;
  height: 520px;
  bottom: -10%;
  right: -5%;
  background: #1c70b9;
}

nav {
  max-width: 1200px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-radius: 999px;
  background: rgba(17, 26, 54, 0.45);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

nav .logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: #e7e8ff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle i {
  font-size: 1.3rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  opacity: 0.92;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 24px;
  padding: 0;
  list-style: none;
  margin: 0 0 30px;
  flex-wrap: wrap;
}

.hero-stats li {
  min-width: 120px;
}

.hero-stats strong {
  display: block;
  font-size: 1.7rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 40px 80px rgba(4, 7, 24, 0.65);
  object-fit: cover;
  min-height: 360px;
  max-height: 520px;
}

.floating-card {
  position: absolute;
  bottom: -30px;
  right: 20px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #f5f5ff;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(6, 9, 26, 0.35);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}

.cta.primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  box-shadow: 0 20px 30px rgba(28, 112, 185, 0.35);
}

.cta.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.cta.small {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.cta:hover {
  transform: translateY(-4px);
}

main {
  max-width: 1200px;
  margin: -80px auto 80px;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 5;
}

section {
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  text-align: left;
}

section::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .glass {
    background: rgba(255, 255, 255, 0.92);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(28, 112, 185, 0.12);
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

.section-heading {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  color: var(--primary);
  text-align: left;
  line-height: 1.3;
}

.section-intro {
  margin: 0 0 30px;
  color: #4a3f5d;
  max-width: 720px;
  text-align: left;
  line-height: 1.7;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.stats li {
  padding: 18px;
  background: rgba(100, 49, 146, 0.08);
  border-radius: 18px;
  border: 1px solid rgba(100, 49, 146, 0.2);
  text-align: left;
}

.stats li strong {
  display: block;
  margin-bottom: 6px;
}

.programs-grid,
.partnership-grid,
.facility-grid,
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.program-card,
.partnership-card,
.facility-card,
.contact-card {
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 50px rgba(16, 18, 45, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
}

.program-card h3,
.partnership-card h3,
.facility-card h3,
.contact-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  text-align: left;
}

.program-card p,
.partnership-card p,
.facility-card p,
.contact-card p {
  margin: 0;
  text-align: left;
  line-height: 1.6;
}

.program-card:hover,
.partnership-card:hover,
.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(17, 20, 48, 0.2);
}

.program-card img,
.facility-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 18px;
  height: 200px;
  object-fit: cover;
}

.icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 112, 185, 0.15);
  color: var(--secondary);
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.facility-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(28, 112, 185, 0.05), rgba(100, 49, 146, 0.08));
  z-index: -1;
}

.contact-card a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.btn-outline {
  border-radius: 999px;
  border: 1px solid rgba(24, 16, 40, 0.2);
  padding: 12px 24px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: #5c5470;
  font-size: 0.9rem;
}

.parallax {
  will-change: transform;
}

@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(17, 26, 54, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
    pointer-events: none;
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 18px;
    text-align: center;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  nav .cta.primary.small {
    display: none;
  }

  nav {
    position: relative;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1,
  .hero-subtitle {
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }

  section {
    padding: 36px 24px;
  }

  .section-heading,
  .section-intro {
    text-align: center;
  }

  .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .badge {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .programs-grid,
  .partnership-grid,
  .facility-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  header {
    padding: 24px 16px 80px;
    min-height: auto;
  }

  nav {
    padding: 12px 16px;
    margin-bottom: 30px;
    border-radius: 20px;
  }

  nav .logo {
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    padding: 8px 12px;
    font-size: 1.1rem;
  }

  .nav-links {
    margin-top: 10px;
    padding: 16px;
    border-radius: 16px;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-stats li {
    min-width: auto;
  }

  .hero-media img {
    min-height: 240px;
  }

  .floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
  }

  section {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .section-heading {
    font-size: 1.7rem;
    text-align: center;
  }

  .section-intro {
    text-align: center;
    font-size: 0.95rem;
  }

  .program-card,
  .partnership-card,
  .facility-card,
  .contact-card {
    padding: 20px;
    text-align: center;
  }

  .program-card h3,
  .partnership-card h3,
  .facility-card h3,
  .contact-card h3 {
    text-align: center;
  }

  .program-card p,
  .partnership-card p,
  .facility-card p,
  .contact-card p {
    text-align: center;
  }

  .icon-pill {
    margin-left: auto;
    margin-right: auto;
    display: flex;
  }

  .program-card img,
  .facility-card img {
    height: 180px;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats li {
    text-align: center;
  }

  .badge {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  main {
    padding: 0 16px 40px;
    gap: 32px;
  }
}

@media (max-width: 400px) {
  .hero-copy h1 {
    font-size: 1.75rem;
  }

  section {
    padding: 20px 16px;
  }

  .program-card,
  .partnership-card,
  .facility-card,
  .contact-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

