/* ========================================
   SAKTHIVEL FOUNDATION - MODERN ELEGANT DESIGN
   Warm Gradients, Glassmorphism, Smooth Animations
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --warm-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --sunrise-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --ocean-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --peach-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --mint-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  
  --primary-color: #667eea;
  --secondary-color: #f5576c;
  --accent-color: #fee140;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --light-bg: #f7fafc;
  
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--light-bg);
  overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-donate-btn {
  padding: 0.75rem 2rem;
  background: var(--warm-gradient);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
}

.nav-donate-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.nav-donate-btn::after {
  display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sunrise-gradient);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(245, 87, 108, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 2rem;
  padding-bottom: 5rem;
  margin-top: 10rem;
  animation: riseToWin 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  margin-top: 6rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: titleRise 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero-content p {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.98;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 1px 5px rgba(0, 0, 0, 0.3);
}

.cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-bounce);
  display: inline-block;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
}

.btn:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: var(--shadow-xl);
}

.btn.primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 3px solid var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Impact Counters */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.counter {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.counter:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-lg);
}

.counter-number {
  font-size: 3rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.counter-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

/* ========================================
   SECTION STYLES
   ======================================== */

section {
  padding: 6rem 5%;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.3rem;
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

/* ========================================
   MISSION SECTION
   ======================================== */

.mission {
  background: var(--peach-gradient);
  text-align: center;
  max-width: 100%;
  padding: 6rem 5%;
}

.mission h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.mission p {
  font-size: 1.4rem;
  color: var(--text-dark);
  line-height: 1.9;
  opacity: 0.9;
  max-width: 900px;
  margin: 0 auto;
}

/* ========================================
   PILLARS SECTION
   ======================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 5%;
  background: var(--light-bg);
}

.pillar {
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-xl);
}

.pillar img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.pillar:hover img {
  transform: scale(1.1);
}

.pillar h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 1.5rem 2rem 1rem;
}

.pillar p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0 2rem 2rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 3rem 5%;
  text-align: center;
  font-size: 1rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseToWin {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-20px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleRise {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.8);
    letter-spacing: -5px;
  }
  60% {
    transform: translateY(-15px) scale(1.05);
    letter-spacing: 2px;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0.5px;
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
  background: var(--light-bg);
  padding: 6rem 5%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 3rem auto 0;
}

.testimonial-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.testimonial-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.testimonial-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
}

.testimonial-form-section {
  background: var(--white);
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
}

.testimonial-form-section h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.testimonial-form-section p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.testimonial-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 2rem;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-input label {
  cursor: pointer;
  color: #ddd;
  transition: var(--transition-smooth);
}

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: var(--accent-color);
}

.form-notice {
  background: var(--peach-gradient);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-align: center;
}

/* Subtle badge for payment notice */
.payment-note {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.submit-btn {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--warm-gradient);
}

.submit-btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 3%;
  }

  .nav-menu {
    gap: 1.5rem;
    font-size: 0.95rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .pillars {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  section {
    padding: 4rem 4%;
  }

  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 4%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }

  .nav-donate-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-content {
    margin-top: 5rem;
    padding: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .pillars {
    grid-template-columns: 1fr;
  }
  
  .counters {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  section {
    padding: 3rem 4%;
  }

  h2 {
    font-size: 2rem;
  }

  .mission p {
    font-size: 1rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.75rem !important;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-form-section {
    padding: 2rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 3%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo {
    font-size: 0.95rem;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .nav-menu li a {
    font-size: 0.8rem;
  }

  .nav-donate-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .counter-label {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  section {
    padding: 2rem 4%;
  }

  table {
    font-size: 0.75rem;
  }

  th, td {
    padding: 0.5rem !important;
  }

  .pillar img {
    height: 180px;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .testimonial-form-section {
    padding: 1.5rem;
  }

  .testimonial-form-section h3 {
    font-size: 1.5rem;
  }
}

/* ========================================
   IMPACT STATS SECTION
   ======================================== */

.impact-stats {
  background: var(--light-bg);
  padding: 5rem 5%;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.stat-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 2rem 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}
