/* =========================
   ROOT VARIABLES
========================== */
:root {
  --yellow: #FFD166;
  --yellow-light: #FFE699;
  --yellow-dark: #FFBF33;
  --orange: #FF9F1C;
  --orange-light: #FFB84D;
  --orange-dark: #E68A00;
  --cream: #FFF8F0;
  --cream-dark: #FFF0DB;
  --charcoal: #2C3E50;
  --charcoal-light: #34495E;
  --gray: #7F8C8D;
  --gray-light: #BDC3C7;
  --white: #FFFFFF;
  --success: #27AE60;
  --gradient: linear-gradient(135deg, #FF9F1C 0%, #FFD166 100%);
  --gradient-alt: linear-gradient(135deg, #FFD166 0%, #FF9F1C 100%);
  
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.2);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   RESET & BASE
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

p {
  line-height: 1.7;
  color: var(--charcoal-light);
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--orange);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   NAVBAR
========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 15px 5%;
  box-shadow: var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
  cursor: pointer;
}

.logo-icon {
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: var(--transition);
}

/*=========================
   HERO SECTION
========================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 5% 80px;
  overflow: hidden;
}

/* BACKGROUND SYSTEM */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* SLIDES */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out, transform 8s ease;
  transform: scale(1);
}

/* ACTIVE SLIDE */
.hero-slide.active {
  opacity: 1;
  transform: scale(1.05); /* subtle cinematic zoom */
}

/* NETFLIX-STYLE VIGNETTE FADE */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;

  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.hero-vignette.active {
  opacity: 1;
}

/* CINEMATIC GRAIN + WARM OVERLAY */
.cinematic-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  background:
    radial-gradient(circle at center, rgba(255,209,102,0.08), rgba(0,0,0,0.45)),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.015) 1px,
      rgba(0,0,0,0.02) 1px,
      rgba(0,0,0,0.02) 2px
    );

  opacity: 0.65;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 4;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

/* BADGE */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* TITLE */
.hero-title {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.15;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* SUBTITLE */
.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* CTA */
.cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 2px solid rgba(255, 159, 28, 0.2);
  animation: fadeInUp 1s ease-out 1s both;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.85rem;
  animation: fadeIn 1s ease-out 1.5s both;
  z-index: 4;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.15;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
  font-size: 1.6rem;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: 2px solid rgba(255, 159, 28, 0.2);
  animation: fadeInUp 1s ease-out 1s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.85rem;
  animation: fadeIn 1s ease-out 1.5s both;
  z-index: 2;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: var(--gray-light);
  position: relative;
  animation: scrollDown 2s infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================
   BUTTONS
========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-adopt {
  width: 100%;
  justify-content: center;
  background: var(--gradient);
  color: var(--white);
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-icon {
  font-size: 1.2rem;
}

/* =========================
   SECTIONS
========================== */
section {
  padding: 100px 5%;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--yellow-light);
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
}

/* =========================
   MISSION SECTION
========================== */
.mission-section {
  background: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(30px);
}

.card[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease-out forwards;
}

.card[data-delay="0"] { animation-delay: 0s; }
.card[data-delay="1"] { animation-delay: 0.1s; }
.card[data-delay="2"] { animation-delay: 0.2s; }
.card[data-delay="3"] { animation-delay: 0.3s; }

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

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  transition: var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(10deg);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--charcoal);
}

.card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-footer {
  padding-top: 20px;
  border-top: 2px solid var(--cream);
}

.card-stat {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
}

/* =========================
   TRUST SECTION
========================== */
.trust-section {
  background: var(--cream-dark);
}

.trust {
  max-width: 800px;
  margin: 0 auto;
  background: var(--yellow);
  padding: 50px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.trust h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.trust p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}

/* =========================
   ADOPTION GALLERY
========================== */
.adoption-section {
  background: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.polaroid {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  perspective: 1500px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.polaroid[data-aos="fade-up"] {
  animation: fadeInUp 0.6s ease-out forwards;
}

.polaroid[data-delay="1"] { animation-delay: 0.15s; }
.polaroid[data-delay="2"] { animation-delay: 0.3s; }

.polaroid:hover {
  box-shadow: var(--shadow-xl);
}

.flip {
  position: relative;
  width: 100%;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.polaroid:hover .flip {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.front {
  background: var(--white);
}

.polaroid-image {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.polaroid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.polaroid:hover .polaroid-image img {
  transform: scale(1.1);
}

.polaroid-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--success);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.polaroid-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.polaroid-content h3 {
  font-size: 1.6rem;
  color: var(--charcoal);
}

.polaroid-desc {
  color: var(--gray);
  font-size: 0.95rem;
}

.polaroid-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  padding: 5px 12px;
  background: var(--cream);
  color: var(--orange);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.back {
  background: linear-gradient(135deg, var(--cream) 0%, var(--yellow-light) 100%);
  transform: rotateY(180deg);
  padding: 30px;
  justify-content: space-between;
}

.back-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.back h3 {
  font-size: 1.4rem;
  color: var(--charcoal);
}

.back p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  flex: 1;
}

.back-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
}

.back-details li {
  font-size: 0.9rem;
  color: var(--charcoal-light);
}

.back-details strong {
  color: var(--charcoal);
  font-weight: 600;
}

.adoption-cta {
  text-align: center;
  margin-top: 40px;
}

.adoption-cta .handwritten {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* =========================
   DONATION SECTION
========================== */
.donation-section {
  background: var(--cream-dark);
}

.donation-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.donation-left .section-tag {
  margin-bottom: 15px;
}

.donation-left .section-title {
  text-align: left;
  margin-bottom: 15px;
}

.donation-text {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.donation-goal {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.goal-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.goal-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
}

.progress-container {
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
  margin-bottom: 15px;
}

.progress {
  height: 100%;
  width: 80%;
  background: var(--gradient);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.goal-remaining {
  font-size: 0.95rem;
  color: var(--orange);
  font-weight: 600;
}

.donation-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.quick-btn {
  padding: 12px;
  background: var(--cream);
  border: 2px solid var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.quick-btn:hover, .quick-btn.active {
  background: var(--yellow-light);
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--gray);
  font-size: 1.1rem;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 40px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.1);
}

.donation-note {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  margin-top: 15px;
}

.thanks-message {
  margin-top: 20px;
  padding: 15px;
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.thanks-message:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.donation-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.impact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.impact-card h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: var(--charcoal);
}

.impact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.impact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.impact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.impact-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 5px;
}

.impact-item p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.donation-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-box .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* =========================
   TESTIMONIALS
========================== */
.testimonials-section {
  background: var(--white);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  background: var(--cream);
  padding: 35px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal-light);
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 15px;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* =========================
   CONTACT SECTION
========================== */
.contact-section {
  background: var(--cream-dark);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-left .section-tag {
  margin-bottom: 15px;
}

.contact-left .section-title {
  text-align: left;
  margin-bottom: 15px;
}

.contact-left > p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 5px;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--gray);
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-btn {
  padding: 12px 24px;
  background: var(--white);
  color: var(--charcoal);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.1);
}

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

.form-success {
  margin-top: 20px;
  padding: 15px;
  background: var(--success);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
}

.form-success:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
========================== */
footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-tagline {
  color: var(--yellow);
  font-size: 1.3rem;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-column a {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--yellow);
  padding-left: 5px;
}

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

.footer-bottom p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-note {
  color: var(--gray);
  font-size: 0.85rem;
}

/* =========================
   BACK TO TOP
========================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* =========================
   RESPONSIVE DESIGN
========================== */
@media (max-width: 1024px) {
  .donation-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 20px;
    transform: translateY(-200%);
    opacity: 0;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .donation-stats {
    grid-template-columns: 1fr;
  }
  
  .testimonials {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 5%;
  }
  
  .hero {
    padding: 100px 5% 60px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .card,
  .trust,
  .donation-form,
  .impact-card,
  .contact-form {
    padding: 25px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}
