:root {
  --primary-blue: #1B263B;
  --secondary-silver: #E0E1DD;
  --accent-gold: #E9C46A;
  --text-dark: #121A2F;
  --text-light: #F7F7F7;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Lora', serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0; /* for page transition */
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}

/* Typography specifics */
h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
p { font-size: 1.125rem; margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--primary-blue);
  padding: 1rem 5%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar .logo img {
  height: 50px;
  width: auto;
}

.navbar .logo span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-silver);
  transition: color var(--transition-speed);
}

.navbar.scrolled .logo span {
  color: var(--accent-gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-silver);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-gold);
  transition: width var(--transition-speed);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  color: var(--secondary-silver);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(233, 196, 106, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background-color: #ffd87d; /* Lighter gold */
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: -1;
  transition: transform 0.5s ease;
}

.btn-primary:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(233, 196, 106, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-silver);
  border: 2px solid var(--secondary-silver);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary-silver);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* For parallax */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(27, 38, 59, 0.6), rgba(27, 38, 59, 0.9));
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  color: var(--secondary-silver);
}

.hero-content .highlight {
  color: var(--accent-gold);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(224, 225, 221, 0.9);
}

/* Base Sections */
.section {
  padding: 6rem 5%;
}

.section-dark {
  background-color: var(--primary-blue);
  color: var(--secondary-silver);
}

.section-dark h2, .section-dark h3 {
  color: var(--accent-gold);
}

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

/* Storytelling / Two Column Split */
.split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.split-text {
  flex: 1;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
}

.split-image:hover img {
  transform: translateY(-10px);
}

/* Interactive Program Grid */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 4px solid transparent;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-bottom-color: var(--accent-gold);
}

.program-card .icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, color 0.4s ease;
}

.program-card:hover .icon {
  transform: scale(1.1);
  color: var(--accent-gold);
}

.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.program-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0;
}

/* Impact & Stats */
.stats-section {
  background-color: var(--primary-blue);
  position: relative;
  padding: 5rem 5%;
}

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

.stat-item .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1.2rem;
  color: var(--secondary-silver);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Testimonials */
.testimonial-wrapper {
  margin-top: 4rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--secondary-silver);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial::before, .testimonial::after {
  content: '"';
  color: var(--accent-gold);
  font-size: 2rem;
  font-family: 'Poppins', sans-serif;
}

.author {
  font-family: 'Poppins', sans-serif;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  margin-bottom: 0.2rem;
}

.team-info .title {
  color: var(--accent-gold);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* Footer / Dynamic CTA */
.cta-footer {
  background: linear-gradient(135deg, var(--primary-blue), #111827);
  color: var(--secondary-silver);
  padding: 6rem 5% 3rem;
  text-align: center;
}

.cta-footer h2 {
  color: var(--secondary-silver);
  font-size: 3rem;
}

.cta-footer .highlight {
  color: var(--accent-gold);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.global-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(224, 225, 221, 0.6);
}

/* Contact Specific */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.contact-item i {
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: var(--bg-light);
  font-family: 'Lora', serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.2);
  background: var(--bg-white);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Responsiveness */
@media (max-width: 992px) {
  .split-layout, .contact-layout {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--primary-blue);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
  }

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

  .menu-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 4rem 5%;
  }
}
