/* Global Styles and Variables */
:root {
  --primary-color: #7e3fa3; /* Purple from the design */
  --secondary-color: #e86a6a; /* Pink/red accent color */
  --gradient-bg: linear-gradient(to right, #f5e7ff, #ffdbdb); /* Background gradient */
  --text-dark: #333333;
  --text-light: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-black {
  color: #222222;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

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

.section-padding {
  padding: var(--spacing-lg) 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--spacing-md);
  background: linear-gradient(to right, #f9f7ff, #fff9f9);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 80px;
}

.logo {
  width: 123.444px;
  height: 35px;
  margin-left: 2rem;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  margin-right: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li {
  margin-left: 2.5rem;
}

/* Menu link styling */
nav ul li {
  position: relative;
}

/* Base styles for all navigation links */
nav ul li a {
  text-align: center;
  font-family: 'Poppins', var(--font-heading);
  font-weight: 500; /* medium weight */
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  opacity: 1;
  color: #222222;
}

/* Mission link styling */
nav ul li:nth-child(1) a {
  width: 52px;
  height: 20px;
}

/* Our Journey link styling */
nav ul li:nth-child(2) a {
  width: 86px;
  height: 20px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:hover::after {
  width: 100%;
}

.get-involved-btn {
  background-color: var(--secondary-color);
  color: #FFFFFF !important; /* Override color for this specific button */
  border-radius: 25px;
  font-family: 'Poppins', var(--font-heading);
  font-weight: 500; /* medium weight */
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  letter-spacing: 0px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(232, 106, 106, 0.3);
  display: inline-block;
  
  /* Fix dimensions with padding instead of fixed width/height */
  padding: 5px 15px;
  min-width: 88px;
}

.get-involved-btn:hover {
  background-color: #d55a5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(232, 106, 106, 0.4);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
#hero {
  background: linear-gradient(120deg, #f5e7ff 0%, #ffdbdb 100%);
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

#hero .container {
  position: relative;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 540px; /* Set a fixed height to accommodate absolute positioning */
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  text-align: left;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content h2 {
  position: absolute;
  left: 197px;
  top: 100px;
  width: 400px; /* Wider to ensure text stays on one line */
  font-size: 22px;
  line-height: 33px;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 500;
  font-family: var(--font-heading); /* Montserrat as fallback for Poppins */
  margin: 0;
  white-space: nowrap; /* Prevent wrapping */
}

.hero-content h1 {
  position: absolute;
  margin: 0;
  color: #222222;
  font-size: 64px;
  line-height: 82px;
  letter-spacing: 0px;
  font-weight: 600;
  font-family: 'Lora', serif;
}

.hero-content h1:first-of-type {
  left: 197px;
  top: 146px;
}

.hero-content h1:last-of-type {
  left: 197px;
  top: 228px;
}

.hero-ampersand {
  position: absolute;
  left: 134px; /* Positioned to touch Generosity */
  top: 142px; /* Positioned slightly above Generosity to be centered between Compassion and Generosity */
  color: #222222;
  opacity: 0.2;
  font-weight: 395;
  font-size: 128px;
  line-height: 169px;
  font-family: 'Lora', serif;
  letter-spacing: 0px;
  z-index: 1;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-elderly-man,
.hero-elderly-woman {
  max-height: none;
  height: 450px;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
  position: absolute;
}

.hero-elderly-man {
  right: 10%;
  top: 50px;
  z-index: 2;
}

.hero-elderly-woman {
  right: 30%;
  top: 80px;
  z-index: 1;
  height: 420px;
}

/* Placeholder Image Styles */
.placeholder-image {
  background-color: #f0f0f0;
  border-radius: var(--border-radius);
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-weight: 600;
  border: 2px dashed var(--primary-color);
}

.placeholder-text {
  text-align: center;
  padding: 1rem;
}

/* Harmony of Ages Section */
#harmony-of-ages {
  padding: var(--spacing-lg) 0;
  background-color: #ffffff;
  text-align: center;
}

#harmony-of-ages .container {
  max-width: 700px;
}

#harmony-of-ages h2 {
  /* Sizing based on XD specs (adjusted for responsive design) */
  width: 541px;
  max-width: 100%;
  margin: 0 auto 1.8rem;
  
  /* Text styles */
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  
  /* Enhanced gradient text effect exactly matching XD specs */
  background-image: linear-gradient(80deg, #744AA4 0%, #DF3A3E 53%, #E07502 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  
  /* Ensure proper text alignment */
  text-align: center;
  padding: 5px 0;
  letter-spacing: 0.5px;
}

#harmony-of-ages p {
  /* Sizing based on XD specs */
  width: 678px;
  max-width: 100%;
  margin: 0 auto;
  
  /* Text styles precisely matching XD specs */
  font: normal normal 600 20px/30px 'Source Sans Pro', sans-serif;
  letter-spacing: 0px;
  color: #222222;
  
  /* Ensure proper text alignment */
  text-align: center;
  opacity: 1;
}

/* Mission & Services Section */
#mission-services {
  padding: var(--spacing-lg) 0;
  background-color: #f8f8f8;
}

.mission-meals-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.mission-box, .meals-box {
  flex: 1;
  background-color: var(--text-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.mission-box {
  text-align: left;
}

.mission-box h2 {
  /* UI Properties as per XD */
  color: #222222;
  text-align: left;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0px;
  opacity: 1;
  margin-bottom: 1.5rem;
}

.mission-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.meals-box {
  text-align: center;
}

.meals-box i {
  margin-bottom: 1rem;
}

/* Meals Content Layout */
.meals-content {
  display: flex;
  margin: 1.5rem 0 1rem;
  position: relative;
  justify-content: center;
}

/* Meals Title Container */
.meals-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Styling for the "2" */
.meals-number {
  /* UI Properties */
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  color: #884790;
  margin-right: 5px;
  margin-top: -15px;
}

/* Styling for "Nourishing" */
.meals-nourishing {
  /* UI Properties */
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: #DF3D3A;
  margin-bottom: 5px;
}

/* Styling for "MEALS" */
.meals-text {
  /* UI Properties */
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 2.52px;
  color: #DF3D3A;
  text-transform: uppercase;
}

.meals-frequency {
  /* UI Properties */
  color: #222222;
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 auto 1.5rem;
}

.meal-types {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  position: relative;
  padding-top: 15px;
  border-top: 1px solid #dddddd;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.meal-type {
  /* UI Properties */
  color: #222222;
  text-align: center;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: normal;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.4;
  padding: 0.5rem 1rem;
  background-color: #f9f7ff;
  border-radius: 4px;
}

/* Gallery Section */
#gallery {
  padding: var(--spacing-lg) 0;
  text-align: center;
  position: relative;
}

#gallery h2 {
  /* Layout Properties */
  position: relative;
  width: 689px;
  height: auto; /* Auto height to accommodate exactly two lines */
  max-width: 95%;
  margin: 0 auto var(--spacing-md);
  
  /* Text styles */
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 900;
  font-size: 1.85rem; /* Adjusted size to ensure text breaks at the right point */
  line-height: 1.3; /* Tighter line height for two rows */
  
  /* Enhanced gradient text effect matching Harmony of Ages */
  background-image: linear-gradient(80deg, #744AA4 0%, #DF3A3E 53%, #E07502 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  
  /* Force two-line display with specific styling */
  text-align: center;
  padding: 10px 20px;
  letter-spacing: 0.3px;
  /* Use display: -webkit-box to limit lines */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to exactly 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-container {
  position: relative;
  margin: var(--spacing-md) 0;
  overflow: hidden;
}

.gallery-images {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-item {
  padding: 0 var(--spacing-sm);
  /* JavaScript will handle display: none/block */
}

.gallery-item img,
.gallery-img {
  border-radius: var(--border-radius);
  height: 500px;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--box-shadow);
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Impact Section */
#impact {
  padding: var(--spacing-lg) 0;
  text-align: center;
  background-color: #f5f5f5; /* Lighter gray background to match XD */
}

#impact p {
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
  font-size: 1.75rem; /* Larger font size to match XD */
  line-height: 1.4;
  color: #222222; /* Darker text color to match XD */
  font-weight: 600; /* Semibold weight */
}

.stats-container {
  display: flex;
  justify-content: space-between;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: var(--spacing-md) auto;
}

.stat {
  flex: 1;
  text-align: center;
  padding: var(--spacing-sm);
  position: relative;
}

/* Add dividers between stats */
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #e0e0e0;
}

.stat-label {
  font-size: 1.125rem;
  color: #444444;
  margin-bottom: 1.5rem;
  font-weight: 500;
  max-width: 200px;
  line-height: 1.4;
  margin-left: auto;
  margin-right: auto;
}

.stat-number {
  font-size: 4.5rem; /* Much larger font size to match XD */
  font-weight: 700;
  color: #222222; /* Darker color to match XD */
  font-family: var(--font-heading);
  margin-top: 0;
  line-height: 1; /* Ensure consistent line height for all stats */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px; /* Fixed height to ensure alignment */
}

/* Get Involved Section */
#get-involved {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

#get-involved .container {
  max-width: 920px;
  width: 920px;
  height: 320px;
  background: transparent linear-gradient(69deg, #744AA4 0%, #DF3A3E 53%, #E07502 100%) 0% 0% no-repeat padding-box;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

#get-involved h2, 
#get-involved p,
#get-involved .btn {
  color: white;
}

#get-involved .btn {
  background-color: white;
  color: #744AA4;
  font-weight: 700;
  padding: 0.75rem 2.5rem;
  border-radius: 25px;
  margin-top: 1.5rem;
}

#get-involved .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Journey Section */
#journey {
  padding: var(--spacing-lg) 0;
  text-align: center;
}

#journey .container {
  max-width: 800px;
}

blockquote {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: var(--spacing-lg) auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--spacing-sm) 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--text-light);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: var(--spacing-sm);
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
}

/* Initiatives Section */
#initiatives {
  padding: var(--spacing-lg) 0;
  background-color: #f8f8f8;
}

#initiatives h2 {
  color: #222222;
  text-align: center;
  font: normal normal 900 72px/100px 'Source Sans Pro', sans-serif;
  letter-spacing: 0px;
  opacity: 1;
  margin-bottom: 2rem;
}

.initiative-container {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.initiative-text {
  flex: 1;
  padding-right: var(--spacing-md);
}

.initiative-text h3 {
  text-align: left;
  font: normal normal 600 12px/15px 'Source Sans Pro', sans-serif;
  letter-spacing: 1.2px;
  color: #744AA4;
  text-transform: uppercase;
  opacity: 1;
  margin-bottom: 1rem;
}

.initiative-text p {
  text-align: left;
  font: normal normal 600 32px/41px 'Lora', serif;
  letter-spacing: 0px;
  color: #222222;
  opacity: 1;
  margin-bottom: 1.5rem;
}

.initiative-image {
  flex: 1;
}

.initiative-img {
  border-radius: 20px;
  height: 416px;
  width: 467px;
  object-fit: cover;
  box-shadow: var(--box-shadow);
}

#initiatives p.text-center {
  max-width: 800px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--text-light);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  margin-bottom: var(--spacing-sm);
}

.footer-section h3 + p {
  margin-top: 0;
}

.footer-section a {
  color: var(--text-light);
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  text-align: center;
}

/* Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Accessibility Improvements */
a:focus, 
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  #harmony-of-ages h2 {
    font-size: 2rem;
    width: auto;
    max-width: 90%;
  }
  
  #harmony-of-ages p {
    font-size: 18px;
    line-height: 28px;
    width: 90%;
  }
  
  #initiatives h2 {
    font-size: 4rem;
    line-height: 1.2;
  }
  
  .initiative-text p {
    font-size: 28px;
    line-height: 36px;
  }
  
  .initiative-img {
    width: 100%;
    max-width: 467px;
    height: auto;
    max-height: 416px;
    margin: 0 auto;
  }
  
  header {
    padding: 1rem var(--spacing-sm);
    height: auto;
  }
  
  .logo {
    margin-left: 0.5rem;
  }
  
  nav {
    margin-right: 0.5rem;
  }
  
  nav ul li {
    margin-left: 1.5rem;
  }
  
  #hero {
    padding: 4rem 0;
  }
  
  #hero .container {
    flex-direction: column;
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .hero-content {
    flex: none;
    width: 100%;
    padding: 0;
    text-align: center;
    margin-left: 0;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
  }
  
  .hero-image {
    flex: none;
    width: 100%;
    height: auto;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
  }
  
  .hero-elderly-man,
  .hero-elderly-woman {
    height: 350px;
  }
  
  .hero-elderly-man {
    right: 0;
  }
  
  .hero-elderly-woman {
    position: relative;
    right: 10%;
    bottom: auto;
    height: 320px;
  }
  
  .mission-meals-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .mission-box, .meals-box {
    width: 100%;
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .stat {
    margin-bottom: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-label {
    margin-bottom: 0.5rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  
  #impact p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item::after {
    left: 24px !important;
  }
  
  .initiative-container {
    flex-direction: column;
  }
  
  .initiative-text, .initiative-image {
    flex: none;
    width: 100%;
    padding: 0;
  }
  
  .initiative-image {
    margin-top: var(--spacing-md);
    text-align: center;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row; /* Keep as row to place logo and menu toggle on same line */
    justify-content: space-between;
    padding: 1rem;
    height: 70px;
  }
  
  #harmony-of-ages h2 {
    font-size: 1.8rem;
    width: 100%;
  }
  
  #harmony-of-ages p {
    font-size: 16px;
    line-height: 26px;
    width: 100%;
  }
  
  .initiative-text p {
    font-size: 24px;
    line-height: 32px;
  }
  
  .logo {
    margin: 0;
    width: 110px;
    height: 30px;
  }
  
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    z-index: 99;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    background: linear-gradient(to right, #f9f7ff, #fff9f9);
  }
  
  nav ul li {
    margin: 0.75rem 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }
  
  .get-involved-btn {
    margin-top: 0.5rem;
    display: inline-block;
    width: auto;
  }
  
  .mobile-menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
  }
  
  nav ul {
    display: none;
  }
  
  nav.active ul {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1rem;
  }
  
  .hero-elderly-man,
  .hero-elderly-woman {
    height: 250px;
  }
  
  .hero-elderly-woman {
    right: 20%;
    height: 230px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: var(--spacing-md);
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .timeline-content {
    padding: var(--spacing-sm);
  }
  
  .social-links {
    justify-content: center;
  }
}
