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

:root {
  --blue: #2B3990;
  --blue-dark: #1E2A6E;
  --coral: #E85D3A;
  --red: #D94432;
  --cream: #F5F0E8;
  --dark-footer: #1A1A2E;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

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

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blue);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
}

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

.nav-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover { opacity: 0.8; }

.nav-cta {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 10px 24px;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  margin-left: 32px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.15);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

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

/* ========== HERO ========== */
.hero {
  position: relative;
  background: var(--blue);
  padding: 160px 0 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      125deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.03) 40px,
      rgba(255,255,255,0.03) 42px
    ),
    linear-gradient(
      125deg,
      rgba(30,42,110,0.8) 0%,
      rgba(43,57,144,0.6) 30%,
      rgba(60,70,160,0.4) 60%,
      rgba(43,57,144,0.8) 100%
    );
}

/* Diagonal metallic lines overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 20%, rgba(100,120,200,0.15) 20.5%, rgba(100,120,200,0.15) 21%, transparent 21.5%),
    linear-gradient(125deg, transparent 35%, rgba(100,120,200,0.12) 35.5%, rgba(100,120,200,0.12) 36%, transparent 36.5%),
    linear-gradient(125deg, transparent 50%, rgba(100,120,200,0.1) 50.5%, rgba(100,120,200,0.1) 51%, transparent 51.5%),
    linear-gradient(125deg, transparent 65%, rgba(130,150,220,0.15) 65.5%, rgba(130,150,220,0.15) 66.5%, transparent 67%),
    linear-gradient(125deg, transparent 78%, rgba(100,120,200,0.12) 78.5%, rgba(100,120,200,0.12) 79.5%, transparent 80%);
}

/* Thicker accent stripes */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 15%, rgba(80,100,180,0.2) 16%, rgba(80,100,180,0.2) 18%, transparent 19%),
    linear-gradient(125deg, transparent 42%, rgba(80,100,180,0.18) 43%, rgba(80,100,180,0.18) 46%, transparent 47%),
    linear-gradient(125deg, transparent 58%, rgba(90,110,190,0.2) 59%, rgba(90,110,190,0.2) 62%, transparent 63%),
    linear-gradient(125deg, transparent 72%, rgba(80,100,180,0.15) 73%, rgba(80,100,180,0.15) 76%, transparent 77%),
    linear-gradient(125deg, transparent 85%, rgba(100,120,200,0.2) 86%, rgba(100,120,200,0.2) 90%, transparent 91%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-heading {
  color: var(--white);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin-bottom: 36px;
}

.btn-coral {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.btn-coral:hover {
  background: #d14e2e;
  transform: translateY(-1px);
}

.hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  width: 100%;
  margin: 60px auto 0;
  padding: 0 24px;
}

.hero-card {
  border-top: 3px solid rgba(255,255,255,0.4);
  padding: 32px 24px;
  transition: background 0.2s;
}

.hero-card:hover {
  background: rgba(255,255,255,0.05);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero-card h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-card .arrow {
  color: var(--white);
  font-size: 20px;
}

.hero-card p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* ========== ABOUT + STATS ========== */
.about {
  background: var(--cream);
  padding: 100px 0;
}

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

.about-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
  display: block;
}

/* ========== PILLARS ========== */
.pillars {
  background: var(--cream);
  padding: 0 0 100px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  margin-bottom: 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 340px;
  cursor: pointer;
}

.pillar-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

/* Placeholder gradient backgrounds when images aren't loaded */
.pillar-card:nth-child(1) .pillar-img { background-color: #5c4a2e; }
.pillar-card:nth-child(2) .pillar-img { background-color: #8b6a3a; }
.pillar-card:nth-child(3) .pillar-img { background-color: #3a4a6b; }
.pillar-card:nth-child(4) .pillar-img { background-color: #2a3a5b; }

.pillar-card:hover .pillar-img {
  transform: scale(1.05);
}

.pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.pillar-overlay h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pillar-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

/* ========== TIMELINE ========== */
.timeline {
  background: var(--cream);
  padding: 80px 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 60px;
  align-items: center;
}

.timeline-heading h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-item {
  text-align: center;
}

.timeline-year {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.timeline-label {
  font-size: 14px;
  color: var(--text);
}

.timeline-fade {
  opacity: 0.3;
}

/* ========== NETWORK MAP ========== */
.network {
  position: relative;
  background: var(--blue-dark);
  overflow: hidden;
}

.network-map {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}

.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.network-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.network-subtitle {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.network-content h2 {
  color: var(--white);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
}

.network-flags {
  align-self: flex-end;
  display: flex;
  gap: 8px;
}

.flag-emoji {
  font-size: 28px;
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ========== CERTIFICATIONS ========== */
.certifications {
  background: var(--cream);
  padding: 100px 0;
}

.section-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-top: -24px;
  margin-bottom: 48px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-icon {
  margin-bottom: 20px;
  height: 100px;
  display: flex;
  align-items: center;
}

.cert-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ========== PARTNERS ========== */
.partners {
  background: var(--cream);
  padding: 0 0 100px;
}

.partners-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

.partners-header h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.partners-header p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 600px;
}

.partners-header .btn-coral {
  flex-shrink: 0;
  margin-top: 8px;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.partner-logo:hover { opacity: 1; }

/* ========== SOCIAL / LINKEDIN FEED ========== */
.social {
  background: var(--cream);
  padding: 80px 0;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.social-card {
  flex: 0 0 33.333%;
  padding: 0 12px;
}

.social-card > *:not(.social-image) {
  padding-left: 0;
  padding-right: 0;
}

.social-card > div:first-child,
.social-card > p,
.social-card > div:last-child {
  background: var(--white);
}

.social-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  border: 1px solid #e5e5e5;
  border-bottom: none;
}

.social-avatar {
  flex-shrink: 0;
}

.social-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.social-name {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-time {
  font-size: 12px;
  color: var(--text-light);
}

.social-li {
  flex-shrink: 0;
}

.social-text {
  font-size: 13px;
  padding: 0 16px 16px;
  background: var(--white);
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  line-height: 1.5;
}

.social-text a {
  color: #0A66C2;
  font-weight: 500;
}

.social-image {
  height: 200px;
  width: 100%;
}

.social-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-light);
  background: var(--white);
  border-radius: 0 0 12px 12px;
  border: 1px solid #e5e5e5;
  border-top: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}

.carousel-arrow:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active { background: var(--text); }

/* ========== FOOTER ========== */
.footer {
  position: relative;
  background: var(--dark-footer);
  color: var(--white);
  padding: 80px 0 0;
  overflow: hidden;
}

.footer-map-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background:
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

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

.footer-copy {
  font-size: 13px;
  opacity: 0.6;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-privacy {
  font-size: 13px;
  color: var(--white);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-privacy:hover { opacity: 1; }

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partners-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 3;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--blue);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a {
    padding: 16px 24px;
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .hero-heading {
    font-size: 32px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

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

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

  .pillar-card {
    height: 260px;
  }

  .timeline-items {
    flex-direction: column;
    gap: 32px;
  }

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

  .partners-header {
    flex-direction: column;
  }

  .partners-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-card {
    flex: 0 0 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
