/* Global variables & Design System */
:root {
  --primary-color: #0f172a;
  --primary-light: #1e293b;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-accent: #38bdf8;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Site Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-color);
  text-decoration: none;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

/* Mobile & Tablet Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger Animation when open */
.site-header.mobile-menu-open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.mobile-menu-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.site-header.mobile-menu-open .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Common Section Layout */
.section {
  padding: 6rem 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

/* Left-aligned section headers: Mission, Objectives, Contact */
.mission-section .section-header,
.objectives-section .section-header,
.contact-section .section-header {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

/* Right-aligned section headers: What We Do, Who We Are */
.what-we-do-section .section-header,
.who-we-are-section .section-header {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

/* 1. Hero Section */
.hero-section {
  padding: 7.5rem 0 6rem 0;
  background-image: url('../assets/5.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
}

/* Mobile Hero Image */
@media (max-width: 768px) {
  .hero-section {
    background-image: url('../assets/gnsc_mobile_hero.png');
  }
}

/* Large Desktop / 4K & Retina Displays */
@media (min-width: 1920px),
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .hero-section {
    background-image: url('../assets/5.png');
    height: 70vh;
  }
}

/* Ultra Wide Displays */
@media (min-width: 1921px) {
  .hero-section {
    background-image: url('../assets/5.png');
  }
}



.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  text-align: center;
  margin: 0 auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-lottie {
  width: 100%;
  max-width: 440px;
  height: auto;
  min-height: 320px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}



/* 2. Mission Section */
.mission-section {
  background-image: url('../assets/mission_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mission-card {
  position: relative;
  background: transparent;
  color: var(--primary-color);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.mission-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mission-icon-wrapper {
  background: transparent;
  padding: 1.25rem;
  border-radius: 50%;
  border: 2px solid #C0C0C0;
  color: var(--primary-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-text {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--primary-color);
}

/* 3. What We Do Section */
.what-we-do-section {
  background-color: var(--bg-main);
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.what-we-do-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.speaker-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.what-we-do-card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

.event-badge {
  display: inline-block;
  background-color: #eff6ff;
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.event-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.event-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* 4. Objectives Section */
.objectives-section {
  background-color: #ffffff;
}

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

.pillar-card {
  background-color: var(--bg-main);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.pillar-icon {
  width: 54px;
  height: 54px;
  background-color: #eff6ff;
  color: var(--brand-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 5. Who We Are Section */
.who-we-are-section {
  background-color: var(--bg-main);
}

.who-we-are-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 6. Contact Section */
.contact-section {
  background-color: #ffffff;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  background-color: var(--bg-main);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.contact-detail a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 7. Footer */
.site-footer {
  background-color: var(--primary-color);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
}

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

.footer-brand .logo {
  color: #ffffff;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-contact p a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {

  .hero-grid,
  .what-we-do-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .site-header.mobile-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {

  /* Mobile Hero: Globe behind text at 25% opacity */
  .hero-grid {
    position: relative;
    overflow: hidden;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-lottie {
    max-width: 380px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  /* Objectives: Stack all 4 cards vertically on top of one another */
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Center all section headers on mobile */
  .section-header,
  .mission-section .section-header,
  .what-we-do-section .section-header,
  .objectives-section .section-header,
  .who-we-are-section .section-header,
  .contact-section .section-header {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mission-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

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

/* Scroll Reveal Fade-in Animation Utility */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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