/* ===== IISIF Foundation — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  --navy:       #1B2A4A;
  --navy-dark:  #0F1A2E;
  --navy-light: #2A3D66;
  --teal:       #00A89D;
  --teal-dark:  #008F86;
  --teal-light: #00C9BC;
  --white:      #FFFFFF;
  --off-white:  #F7F9FC;
  --gray-100:   #EEF1F6;
  --gray-200:   #D8DDE6;
  --gray-400:   #9AA5B8;
  --gray-600:   #5A6A85;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 4px 24px rgba(27, 42, 74, .08);
  --shadow-lg:  0 12px 48px rgba(27, 42, 74, .12);
  --transition: .35s cubic-bezier(.4, 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: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Utilities ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  line-height: 1.75;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 168, 157, .35);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 168, 157, .45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline-dark:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(27,42,74,.06);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-logo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 50%;
  transition: var(--transition);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-abbr {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1.5px;
  line-height: 1.2;
  transition: var(--transition);
}
.nav-logo-full {
  font-size: .65rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .3px;
  line-height: 1.3;
  max-width: 220px;
  transition: var(--transition);
}
.navbar.scrolled .nav-logo-abbr { color: var(--navy); }
.navbar.scrolled .nav-logo-full { color: var(--gray-600); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--gray-600); }
.navbar.scrolled .nav-links a:hover { color: var(--navy); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 80%, rgba(0,168,157,.15), transparent),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(0,201,188,.1), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}
.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  padding: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.hero-motto {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-motto .highlight {
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-fullname {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: .95rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 36px;
  letter-spacing: .5px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animated background dots */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,168,157,.15);
  animation: drift 20s infinite linear;
}
@keyframes drift {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
.about-text p {
  color: var(--gray-600);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.about-text strong { color: var(--navy); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.about-stat {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.about-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
}
.about-stat .label {
  font-size: .82rem;
  color: var(--gray-400);
  margin-top: 4px;
}
.about-visual {
  position: relative;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  background: linear-gradient(135deg, var(--teal), var(--navy-light));
  border-radius: calc(var(--radius) + 3px);
  z-index: -1;
  opacity: .6;
}
.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.about-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--gray-600);
  font-size: .95rem;
}
.about-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ===== FOCUS AREAS ===== */
.focus {
  padding: 100px 0;
}
.focus-header {
  text-align: center;
  margin-bottom: 60px;
}
.focus-header .section-desc {
  margin: 0 auto;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.focus-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  group: focus-card;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.focus-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.focus-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.focus-card:hover img { transform: scale(1.05); }
.focus-card-body {
  padding: 24px;
  background: var(--white);
}
.focus-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.focus-card-body p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.focus-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* ===== PROGRAMS ===== */
.programs {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.programs::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,157,.12), transparent 70%);
}
.programs .section-label { color: var(--teal-light); }
.programs .section-desc { color: rgba(255,255,255,.6); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.program-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,168,157,.08), transparent);
  opacity: 0;
  transition: var(--transition);
}
.program-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,168,157,.3);
  transform: translateY(-4px);
}
.program-item:hover::after { opacity: 1; }
.program-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.program-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.program-item p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===== IMPACT ===== */
.impact {
  padding: 100px 0;
  background: var(--off-white);
}
.impact-header {
  text-align: center;
  margin-bottom: 60px;
}
.impact-header .section-desc { margin: 0 auto; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.impact-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy-light));
  transform: scaleX(0);
  transition: var(--transition);
}
.impact-card:hover::before { transform: scaleX(1); }
.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.impact-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 4px;
}
.impact-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-light);
}
.impact-label {
  font-size: .9rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ===== GET INVOLVED / CTA ===== */
.cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 400px at 10% 50%, rgba(0,168,157,.06), transparent),
    radial-gradient(ellipse 400px 400px at 90% 50%, rgba(27,42,74,.04), transparent);
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta .section-title { max-width: 600px; margin: 0 auto 16px; }
.cta .section-desc { margin: 0 auto 36px; text-align: center; }
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  text-align: left;
}
.cta-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.cta-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-4px);
}
.cta-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,168,157,.1), rgba(0,168,157,.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.cta-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cta-card p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 500px at 15% 85%, rgba(0,168,157,.12), transparent),
    radial-gradient(ellipse 400px 400px at 85% 15%, rgba(0,201,188,.08), transparent);
}
.contact-content {
  position: relative;
  z-index: 1;
}
.contact-header {
  text-align: center;
  margin-bottom: 60px;
}
.contact-header .section-label { color: var(--teal-light); }
.contact-header .section-title { color: var(--white); }
.contact-header .section-desc {
  color: rgba(255,255,255,.6);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.contact-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,168,157,.3);
  transform: translateY(-6px);
}
.contact-card:hover::after { transform: scaleX(1); }
.contact-card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  filter: grayscale(0);
}
.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.contact-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  line-height: 1.6;
}
.contact-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-light);
  padding: 10px 28px;
  border-radius: 50px;
  background: rgba(0,168,157,.12);
  border: 1px solid rgba(0,168,157,.25);
  transition: var(--transition);
  letter-spacing: .3px;
}
.contact-link:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,168,157,.35);
}
.contact-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.contact-social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,168,157,.12);
  border: 1px solid rgba(0,168,157,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-light);
  transition: var(--transition);
}
.contact-social-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,168,157,.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--teal);
  color: var(--white);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-logo-full { max-width: 180px; font-size: .6rem; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: rgba(255,255,255,.7) !important; font-size: 1rem; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .focus-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-motto { font-size: 1.8rem; }
  .nav-logo img { height: 48px; width: 48px; }
  .nav-logo-full { display: none; }
  .nav-logo-abbr { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
