/* ===================================================================
   WeNXT — Main Stylesheet
   Typography: Playfair Display + Inter
   Palette:  Blue spectrum preserved & elevated
   =================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --blue-900: #1a237e;
  --blue-800: #0036cb;
  --blue-700: #1649dc;
  --blue-600: #235dff;
  --blue-500: #5683ff;
  --blue-400: #709df3;
  --blue-300: #9fbdf7;
  --blue-200: #c4d6f5;
  --blue-100: #e8f0fc;
  --blue-50:  #f7faff;

  --cyan-500: #1fcff3;
  --cyan-300: #80e1f7;

  --text-dark:  #1a1a2e;
  --text-body:  #3a3a4e;
  --text-muted: #6b6b80;
  --white:      #ffffff;
  --black:      #000000;

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 100vw;

  --shadow-sm:  0 2px 8px rgba(26, 35, 126, 0.06);
  --shadow-md:  0 8px 30px rgba(26, 35, 126, 0.10);
  --shadow-lg:  0 20px 60px rgba(26, 35, 126, 0.12);
  --shadow-card: 0 4px 24px rgba(26, 35, 126, 0.08);

  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--blue-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-800); }

::selection { background: var(--blue-400); color: var(--white); }
::-moz-selection { background: var(--blue-400); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.15;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding { padding: 3.5rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(35, 93, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-600);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Glassmorphism Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(26, 35, 126, 0.08);
  padding: 0.5rem 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 3rem;
  width: 3rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.navbar-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.navbar.scrolled .navbar-brand span {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.navbar.scrolled .nav-links a {
  color: var(--text-body);
}

.navbar.scrolled .nav-links a:hover {
  background: var(--blue-100);
  color: var(--blue-600);
}

.nav-links .nav-cta a {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
}
.nav-links .nav-cta a:hover {
  background: var(--white);
  color: var(--blue-600);
}
.navbar.scrolled .nav-links .nav-cta a {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.navbar.scrolled .nav-links .nav-cta a:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.navbar.scrolled .nav-toggle span { background: var(--text-dark); }

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    align-items: stretch;
  }

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

  .nav-links a {
    color: var(--text-body) !important;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
  }
  .nav-links a:hover {
    background: var(--blue-100) !important;
    color: var(--blue-600) !important;
  }

  .nav-links .nav-cta a {
    background: var(--blue-600) !important;
    color: var(--white) !important;
    text-align: center;
    border: none !important;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 40%, var(--blue-600) 70%, var(--blue-500) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(31, 207, 243, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(159, 189, 247, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(86, 131, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='60' height='60'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.hero .verse {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.hero .verse-ref {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.5rem;
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.scroll-hint .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Section Headings ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* ---------- Mission / Program Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.mission-card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-600);
  margin-top: 1rem;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover { gap: 0.75rem; color: var(--blue-800); }

.card-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---------- Contact Section ---------- */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--blue-50);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-card h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.contact-item .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-item .value {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-item .value a {
  color: var(--blue-600);
  font-weight: 500;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
}

/* ---------- About Page ---------- */
.about-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-500) 100%);
  position: relative;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(31, 207, 243, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(159, 189, 247, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.about-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  z-index: 1;
}

.about-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.about-content {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.about-inner h2 {
  font-size: 2rem;
  position: relative;
  padding-left: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.about-inner h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-400));
}

.about-inner h2:first-child { margin-top: 0; }

.about-inner .drop-cap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--blue-600);
}

.about-inner blockquote {
  border-left: 4px solid var(--blue-400);
  background: var(--blue-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.about-inner blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.about-inner p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0d1117;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--blue-400);
}
.footer-bottom a:hover { color: var(--blue-300); }

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Fade-up Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children */
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .hero h1 { font-size: 2.8rem; }
  .mission-card { padding: 2rem 1.5rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .about-inner { padding: 3rem 1.5rem 4rem; }
  .about-inner blockquote { padding: 1.25rem 1.5rem; }
}
