@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #002049;
  --secondary: #0060aa;
  --accent: #0099ff;
  --bg: #f4f7fa;
  --white: #ffffff;
  --text-main: #1a2b3c;
  --text-muted: #64748b;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 10px 30px rgba(0, 32, 73, 0.05);
  --shadow-lg: 0 20px 50px rgba(0, 32, 73, 0.1);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (max-width: 968px) {
  .carousel-slide {
    grid-template-columns: 1fr !important;
    padding: 2.5rem !important;
    gap: 2rem !important;
    text-align: center;
  }
  .carousel-slide h3 {
    font-size: 1.8rem !important;
  }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
}

/* Header & Nav */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-wrapper {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

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

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

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle Animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 153, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 153, 255, 0.3);
  filter: brightness(1.1);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid rgba(0, 32, 73, 0.1);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Hero */
.hero {
  padding: 15rem 0 12rem;
  background: linear-gradient(rgba(0, 20, 41, 0.45), rgba(0, 20, 41, 0.45)), url('../images/hero_bg.png') no-repeat center center;
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Changed from fixed for mobile compatibility */
  color: white;
  text-align: center;
}

@media (min-width: 969px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-grid {
  display: block;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.hero-p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-img-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

/* Cards */
.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 32, 73, 0.02);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 153, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  background: var(--primary);
  padding: 4rem;
  border-radius: var(--radius-lg);
  color: white;
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  opacity: 0.8;
  font-size: 1rem;
}

/* Responsive */


/* Forms */
.form-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 32, 73, 0.1);
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.1);
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 6rem 0 3rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Success Story */
.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.story-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Initiatives */
.initiative-card {
  border-top: 4px solid var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.badge-urgent {
  background: #fff1f2;
  color: #e11d48;
}

.badge-new {
  background: #f0fdf4;
  color: #16a34a;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 32, 73, 0.05);
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary);
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 153, 255, 0.02);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-p {
    margin: 0 auto 2.5rem;
  }
  .nav-wrapper {
    padding: 0.75rem 1.25rem;
  }

  .nav-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
  }

  .nav-toggle span {
    background: var(--primary); /* Default */
  }
  
  .nav-toggle span {
    background: var(--primary);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 4rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2.5rem;
  }
}
