/* ========== CSS Variables ========== */
:root {
  --deep-blue: #014583;
  --aqua-blue: #0FAADA;
  --green: #85C754;
  --yellow: #E5E464;
  --white: #FFFFFF;
  --dark: #1A1A2E;
  --gray-light: #F7F9FC;
  --gray-mid: #E2E8F0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(1, 69, 131, 0.08);
  --shadow-hover: 0 8px 40px rgba(1, 69, 131, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

h1, h2, h3, h4, .logo, .nav-cta {
  font-family: 'Poetsen One', cursive;
}

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--deep-blue);
}

.btn-primary:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--deep-blue);
}

.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(1, 69, 131, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.logo {
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--white) !important;
  color: var(--deep-blue) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--yellow) !important; transform: scale(1.05); }

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

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--aqua-blue) 100%);
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 40px;
  font-style: italic;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-wave svg { display: block; width: 100%; height: auto; }

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

.section-alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--deep-blue), var(--aqua-blue));
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag.light {
  background: rgba(255,255,255,0.2);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--deep-blue);
  max-width: 700px;
  margin: 0 auto;
}

.section-header h2.light { color: var(--white); }

/* ========== About Grid ========== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.3rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.about-card p {
  color: #555;
  line-height: 1.8;
}

/* ========== Pillar Cards ========== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--deep-blue), var(--aqua-blue));
  transform: scaleX(0);
  transition: var(--transition);
}

.pillar-card:hover::before { transform: scaleX(1); }

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

.pillar-icon { font-size: 3rem; margin-bottom: 16px; }

.pillar-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--deep-blue), var(--aqua-blue));
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.pillar-card p { color: #555; font-size: 0.95rem; }

/* ========== Stats Section ========== */
.section-stats {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--aqua-blue) 100%);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-card {
  padding: 20px;
}

.stat-number {
  font-family: 'Poetsen One', cursive;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  display: inline;
}

.stat-suffix {
  font-family: 'Poetsen One', cursive;
  font-size: clamp(2rem, 4vw, 2.5rem);
  display: inline;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 8px;
}

/* ========== Timeline ========== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--deep-blue), var(--aqua-blue), var(--green));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--deep-blue), var(--aqua-blue));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poetsen One', cursive;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(1, 69, 131, 0.3);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.timeline-content p { color: #555; }

/* ========== CTA Section ========== */
.section-cta {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #023a6e 50%, var(--aqua-blue) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Footer ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.8; }

.footer-links h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links li { margin-bottom: 10px; font-size: 0.9rem; }

.footer-links a:hover { color: var(--aqua-blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ========== Animations ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--deep-blue);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .nav-links.active { right: 0; }

  .nav-links a { font-size: 1.1rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section { padding: 70px 0; }

  .timeline { padding-left: 50px; }
  .timeline::before { left: 18px; }
  .timeline-marker { left: -50px; width: 40px; height: 40px; font-size: 1rem; }
  .timeline-content { padding: 20px 24px; }
}

@media (max-width: 480px) {
  .about-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
