@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500&display=swap');

/* Add a colorful gradient background to the body */
body {
  background: linear-gradient(120deg, #fffbe7 0%, #ffe0b2 100%);
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

/* Style the header with a bold colorful background */
header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(to right, #ffb347, #ffcc33); /* Yellow-orange gradient */
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  margin: 0;
}

nav {
  background: linear-gradient(90deg, #e3f2fd 60%, #b3e5fc 100%);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin: 18px auto 32px auto;
  max-width: 1200px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
}

nav a {
  color: #111;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1.08em;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: #ffd54f;
  color: #0056b3;
}

/* Style containers with a colorful border */
.container {
  max-width: 1100px;
  margin: 0 auto 36px auto;
  padding: 32px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

h2 {
  color: #ff9800;
  font-size: 2em;
  margin-bottom: 15px;
}

p {
  line-height: 1.6;
  font-size: 1.1em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255,152,0,0.08), 0 1.5px 8px rgba(33,150,243,0.07);
}

button {
  background: linear-gradient(90deg, #ff9800 60%, #ffd54f 100%);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1.15em;
  box-shadow: 0 2px 8px rgba(255,152,0,0.13);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

button:hover {
  background: linear-gradient(90deg, #ffd54f 60%, #ff9800 100%);
  color: #0056b3;
  box-shadow: 0 6px 24px rgba(255,152,0,0.18);
}

/* Footer styling with a colorful background */
footer {
  background: linear-gradient(90deg, #e3f2fd 60%, #b3e5fc 100%);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
  margin-top: 48px;
  padding: 32px 0 0 0;
  text-align: center;
  color: #1976d2;
}

/* Card styles for approach, impact, help */
.container > div[style*="display: flex"] > div {
  transition: transform 0.18s, box-shadow 0.18s;
  border: none !important;
  box-shadow: 0 2px 12px rgba(255,152,0,0.08), 0 1.5px 8px rgba(33,150,243,0.07);
}
.container > div[style*="display: flex"] > div:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,152,0,0.13), 0 4px 16px rgba(33,150,243,0.12);
}

.button, a.button {
  background: linear-gradient(90deg, #ff9800 60%, #ffd54f 100%);
  color: #fff;
  font-weight: bold;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 1.15em;
  box-shadow: 0 2px 8px rgba(255,152,0,0.13);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.button:hover, a.button:hover {
  background: linear-gradient(90deg, #ffd54f 60%, #ff9800 100%);
  color: #0056b3;
  box-shadow: 0 6px 24px rgba(255,152,0,0.18);
}

footer h4 {
  color: #1976d2;
  margin-bottom: 10px;
}
footer a {
  color: #1976d2;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #ff9800;
}

/* --------- GALLERY SECTION --------- */
#gallery {
  text-align: center;
  padding: 20px;
}

#gallery h2 {
  font-size: 2.2em;
  color: #ff9800;
  margin-bottom: 20px;
}

/* Use a class for the gallery flex container for specificity */
#gallery .gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

#gallery .gallery-images img {
  height: 250px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(255, 152, 0, 0.1);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s cubic-bezier(.4,2,.6,1);
  will-change: transform, box-shadow;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Zoom on hover */
#gallery .gallery-images img:hover {
  transform: scale(1.10);
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26), 0 8px 24px rgba(255, 152, 0, 0.27);
}

#gallery div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
  gap: 20px;
  padding: 20px;
}

#gallery div img {
  width: 100%;
  height: 200px; /* Uniform height */
  object-fit: cover; /* Maintain aspect ratio */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(255, 152, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery div img:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(255, 152, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  nav, .container {
    max-width: 98vw;
    padding: 10px 4vw;
  }
  nav img {
    height: 60px;
  }
  #gallery .gallery-images img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  nav, .container {
    padding: 6px 2vw;
  }
  nav img {
    height: 40px;
  }
  .container {
    padding: 12px 2vw;
  }
  #gallery .gallery-images img {
    height: 120px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px;
  }
  h1 {
    font-size: 2em;
  }
  nav {
    padding: 5px;
  }
  nav a {
    margin: 0 10px;
    font-size: 0.9em;
  }
  .container {
    padding: 15px;
    margin: 20px auto;
  }
  h2 {
    font-size: 1.5em;
  }
  p {
    font-size: 1em;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  #gallery .gallery-images img {
    height: 100px;
  }
}
