/* --- COLOR PALETTE --- */
:root {
  --pink-top: #fbe3db;        
  --white-mid: #ffffff;      
  --peach-bottom: #f8cfc2;  
  --coral-primary: #e86a58;  
  --coral-hover: #d15543;
  --text-dark: #2b2b2b;
  --text-muted: #666666;
  --card-parchment: #f4ede6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--pink-top);
  color: var(--text-dark);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* --- NAVBAR & LOGO --- */
.navbar {
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

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

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.logo-img {
  width: 110px;
  height: auto;
  display: block;
  transform-origin: left bottom; 
  transition: transform 0.3s ease-out;
}

.logo-link:hover .logo-img {
  animation: blowWindRight 1.6s ease-in-out infinite alternate;
}

@keyframes blowWindRight {
  0% { transform: translate(0, 0) skewX(0deg) rotate(0deg); }
  30% { transform: translate(7px, -2px) skewX(-7deg) rotate(2deg); }
  65% { transform: translate(3px, -1px) skewX(-3deg) rotate(1deg); }
  100% { transform: translate(9px, -3px) skewX(-9deg) rotate(3deg); }
}

/* --- NAVIGATION LINKS --- */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.25s ease;
  display: inline-block;
}

.nav-links a:hover:not(.btn-pill) {
  color: var(--coral-primary);
}

/* --- BUTTONS --- */
.btn-pill {
  background-color: var(--coral-primary);
  color: white !important;
  padding: 10px 26px !important;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(232, 106, 88, 0.25);
  text-decoration: none;
}

.btn-pill:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
}

.btn-pill-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--coral-primary);
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 10px;
  text-decoration: none;
  display: inline-block;
}

/* --- HERO --- */
.hero-section {
  position: relative;
  padding: 30px 0 80px 0;
  background: linear-gradient(135deg, rgba(251, 227, 219, 0.88) 0%, rgba(249, 210, 197, 0.92) 100%),
              url('https://images.unsplash.com/photo-1584100936595-c0654b55a2e2?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 440px;
}

.oval-frame-main {
  width: 100%;
  max-width: 420px;
  height: 460px;
  border-radius: 200px;
  object-fit: cover;
  border: 10px solid white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  margin: 0 auto;
  display: block;
}

/* --- MIDDLE SECTION --- */
.middle-section {
  background-color: var(--white-mid);
  padding: 60px 0;
  position: relative;
  z-index: 2;
}

.middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.middle-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.middle-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.oval-frame-secondary {
  width: 100%;
  max-width: 380px;
  height: 320px;
  border-radius: 120px;
  object-fit: cover;
  border: 8px solid var(--pink-top);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* --- WAVE TRANSITIONS --- */
.wave-transition-top,
.wave-transition-1,
.wave-transition-bottom {
  position: relative;
  width: 100%;
  height: 100px;
  line-height: 0;
  overflow: hidden;
  z-index: 3;
}

.wave-transition-top { margin-top: -30px; }
.wave-transition-1 { margin-top: -50px; }
.wave-transition-bottom { margin-top: -30px; }

.wave-transition-top svg,
.wave-transition-1 svg,
.wave-transition-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- DONATION PAGE --- */
.donation-card-container {
  background-color: var(--card-parchment);
  border: 1px solid rgba(232, 106, 88, 0.2);
  border-radius: 24px;
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.donation-card-container h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.donation-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px !important;
  margin-left: 0 !important;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  background-color: white;
}

.amount-btn:hover {
  background-color: var(--coral-primary);
  color: white !important;
  border-color: var(--coral-primary);
  transform: translateY(-2px);
}

.amount-btn:hover .preset-label {
  color: white;
}

.preset-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.donate-submit-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 14px 0;
  margin-top: 10px;
  text-align: center;
}

.trust-badge-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* --- FOOTER --- */
footer {
  background-color: var(--coral-primary);
  color: white;
  padding: 50px 0 35px 0;
  position: relative;
  z-index: 2;
}

footer a {
  color: #ffffff !important;
  text-decoration: none;
}

footer a:hover {
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-size: 0.9rem;
}

/* --- ABOUT PAGE STYLES --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  border: 6px solid white;
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.project-tag {
  display: inline-block;
  color: var(--coral-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.peach-section {
  background-color: var(--peach-bottom);
  position: relative;
  z-index: 2;
}

.peach-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 48px;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 40px;
  border-radius: 24px;
  border: 2px solid white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.founder-image-wrapper {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-bio h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.founder-title {
  display: block;
  color: var(--coral-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.founder-bio p:first-of-type {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 4px solid var(--coral-primary);
}

.founder-bio p:not(:first-of-type) {
  font-size: 1rem;
  font-style: normal;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-text p {
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* --- PROJECTS PAGE STYLES --- */
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.project-row-reverse {
  direction: rtl;
}

.project-row-reverse .project-text {
  direction: ltr;
}

.project-image-container {
  width: 100%;
  height: 340px; 
  border-radius: 24px;
  overflow: hidden;
  border: 8px solid var(--pink-top); 
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 6px;
  margin-bottom: 14px;
}

.project-text p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.disclaimer-text {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  color: var(--text-muted, #777777);
  line-height: 1.5;
  text-align: center;
}

.disclaimer-text strong {
  color: #555555;
}

/* ==========================================
   CONSOLIDATED MOBILE RESPONSIVE MEDIA QUERIES
   ========================================== */

@media (max-width: 900px) {
  .hero-grid, 
  .middle-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle,
  .middle-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hero-section {
    padding: 30px 0 40px 0;
  }

  .btn-pill-outline {
    margin-left: 0;
  }

  .hero-content > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-content .btn-pill,
  .hero-content .btn-pill-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .oval-frame-main {
    max-width: 300px;
    height: 340px;
    border-radius: 150px;
  }

  .oval-frame-secondary {
    max-width: 300px;
    height: 260px;
    border-radius: 80px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .founder-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 24px;
  }

  .founder-image-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .founder-bio p:first-of-type {
    border-left: none;
    padding-left: 0;
  }

  .project-row,
  .project-row-reverse {
    display: flex;
    flex-direction: column;
    direction: ltr;
    gap: 24px;
    text-align: center;
  }

  .project-row-reverse .project-text {
    direction: ltr;
  }

  .project-image-container {
    height: 240px;
  }

  .project-text .btn-pill {
    display: inline-block;
    width: 100%;
    max-width: 280px;
  }

  .donation-card-container {
    padding: 32px 16px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .middle-text h2 {
    font-size: 1.8rem;
  }

  .nav-flex {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .donation-preset-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}

/* --- ACTIVE MENU WATER BUBBLE (STANDARD LINKS) --- */
.nav-flex .nav-links a.active:not(.btn-pill) {
  color: var(--coral-primary) !important;
  font-weight: 700 !important;
  display: inline-block !important;
  position: relative;
  background-color: rgba(232, 106, 88, 0.15) !important;
  box-shadow: 0 4px 12px rgba(232, 106, 88, 0.12);
  animation: gentleBubble 1s ease-in-out infinite alternate;
}

/* --- ACTIVE MENU WATER BUBBLE (DONATE BUTTON) --- */
.nav-flex .nav-links a.btn-pill.active {
  color: white !important;
  background-color: var(--coral-primary) !important;
  display: inline-block !important;
  position: relative;
  box-shadow: 0 4px 15px rgba(232, 106, 88, 0.25);
  animation: gentleBubble 1s ease-in-out infinite alternate;
}

@keyframes gentleBubble {
  0% {
    transform: translateY(0px);
    box-shadow: 0 4px 10px rgba(232, 106, 88, 0.12);
  }
  100% {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(232, 106, 88, 0.22);
  }
}