/* ========================================
   TEXKEN INTERNATIONAL RESOURCES
   Main Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Primary Blues */
  --blue-50: #EBF5FF;
  --blue-100: #D6EBFF;
  --blue-200: #A3D4FF;
  --blue-300: #5FB5FF;
  --blue-400: #2196F3;
  --blue-500: #1976D2;
  --blue-600: #1565C0;
  --blue-700: #0D47A1;
  --blue-800: #0A3578;
  --blue-900: #072350;

  /* Accent Colors */
  --red: #E63946;
  --red-dark: #C62828;
  --yellow: #F4A261;
  --yellow-bright: #FFD600;
  --green: #2A9D8F;
  --green-dark: #1B7A6E;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #2196F3 100%);
  --gradient-hero: linear-gradient(135deg, rgba(13, 71, 161, 0.92) 0%, rgba(25, 118, 210, 0.85) 50%, rgba(42, 157, 143, 0.8) 100%);
  --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-accent: linear-gradient(135deg, #E63946, #F4A261);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-blue: 0 10px 40px rgba(13, 71, 161, 0.3);
  --shadow-glow: 0 0 40px rgba(33, 150, 243, 0.15);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h4 {
  font-size: 1.25rem;
}

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

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

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.section-padding {
  padding: var(--section-padding);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-label .dot {
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.highlight {
  background: linear-gradient(135deg, var(--blue-500), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 45px rgba(13, 71, 161, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200);
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(230, 57, 70, 0.4);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(42, 157, 143, 0.3);
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(42, 157, 143, 0.4);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1001;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.nav-logo-name .logo-blue {
  color: #4285F4;
}

.nav-logo-name .logo-yellow {
  color: #FBBC05;
}

.nav-logo-name .logo-red {
  color: #EA4335;
}

.nav-logo-name .logo-green {
  color: #34A853;
}

.nav-logo-subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-base);
  margin-top: 2px;
}

.navbar.scrolled .nav-logo-subtitle {
  color: var(--gray-500);
}

/* Footer logo subtitle override */
.footer .nav-logo-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px; /* Reduced from 32px for better fit */
}

.nav-links a {
  font-size: 0.85rem; /* Slightly smaller for better fit */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 4px 0;
  transition: var(--transition-fast);
  white-space: nowrap; /* Prevent text wrapping */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--white);
}

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

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--blue-600);
}

.navbar.scrolled .nav-links a.active {
  color: var(--blue-600);
}

.navbar.scrolled .nav-links a::after {
  background: var(--blue-500);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn-primary {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav-donate-btn {
  background: var(--red) !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3) !important;
}

.nav-donate-btn:hover {
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition-base);
}

.navbar.scrolled .menu-toggle span {
  background: var(--gray-800);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  color: var(--white);
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero h1 .accent-word {
  color: var(--yellow);
}

.hero-text {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: fadeInUp 0.8s ease 1s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Decorative Shapes */
.hero-shape {
  position: absolute;
  z-index: 2;
  opacity: 0.08;
}

.hero-shape-1 {
  top: 15%;
  right: 8%;
  width: 300px;
  height: 300px;
  border: 3px solid white;
  border-radius: 50%;
  animation: rotate-slow 30s linear infinite;
}

.hero-shape-2 {
  bottom: 20%;
  right: 15%;
  width: 200px;
  height: 200px;
  border: 3px solid white;
  border-radius: 30%;
  animation: rotate-slow 20s linear infinite reverse;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   IMPACT STATS SECTION
   ======================================== */
.impact-stats {
  padding: 80px 0;
  background: var(--gray-50);
  position: relative;
}

.impact-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--green), var(--yellow), var(--red));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:nth-child(2)::before {
  background: var(--green);
}

.stat-card:nth-child(3)::before {
  background: var(--yellow);
}

.stat-card:nth-child(4)::before {
  background: var(--red);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--blue-50);
  color: var(--blue-600);
}

.stat-card:nth-child(2) .stat-icon {
  background: #E8F5F1;
  color: var(--green);
}

.stat-card:nth-child(3) .stat-icon {
  background: #FFF8E1;
  color: var(--yellow);
}

.stat-card:nth-child(4) .stat-icon {
  background: #FFEBEE;
  color: var(--red);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

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

/* ========================================
   FEATURED PROGRAMS
   ======================================== */
.programs-section {
  padding: var(--section-padding);
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
  position: relative;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.program-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.program-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.program-card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
}

.program-card-body {
  padding: 28px;
}

.program-card-body h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.program-card-body p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.program-card-link:hover {
  gap: 10px;
  color: var(--blue-700);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.1), transparent 70%);
  border-radius: 50%;
}

.testimonials-section .section-title {
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonial-quote {
  font-size: 2rem;
  color: var(--yellow);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author-info h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.testimonial-author-info span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
  padding: 60px 0;
  background: var(--gray-50);
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-text h3 {
  margin-bottom: 8px;
}

.newsletter-text p {
  color: var(--gray-500);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.newsletter-form input {
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 300px;
  transition: var(--transition-fast);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: var(--blue-600);
  transform: translateY(-3px);
}

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

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ========================================
   PAGE HERO (Interior Pages)
   ======================================== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 60%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

.page-hero .breadcrumb .separator {
  font-size: 0.7rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
  padding: var(--section-padding);
}

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

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.about-feature-icon {
  font-size: 1.2rem;
}

/* ========================================
   PROGRAMS PAGE
   ======================================== */
.program-detail-section {
  padding: var(--section-padding);
}

.program-detail-section:nth-child(even) {
  background: var(--gray-50);
}

.program-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.program-detail-grid.reverse {
  direction: rtl;
}

.program-detail-grid.reverse>* {
  direction: ltr;
}

.program-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.program-detail-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.program-detail-content h2 {
  margin-bottom: 16px;
}

.program-detail-content p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.8;
}

.program-features-list {
  margin-bottom: 28px;
}

.program-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.program-features-list li:last-child {
  border-bottom: none;
}

.program-check {
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ========================================
   PROJECTS / THEMATIC AREAS
   ======================================== */
.thematic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.thematic-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.thematic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  opacity: 0;
  transition: var(--transition-base);
}

.thematic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.thematic-card:hover::before {
  opacity: 1;
}

.thematic-card.water::before {
  background: var(--blue-500);
}

.thematic-card.health::before {
  background: var(--red);
}

.thematic-card.food::before {
  background: var(--green);
}

.thematic-card.education::before {
  background: var(--yellow);
}

.thematic-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.thematic-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.thematic-card.water .thematic-icon {
  background: var(--blue-50);
}

.thematic-card.health .thematic-icon {
  background: #FFEBEE;
}

.thematic-card.food .thematic-icon {
  background: #E8F5E9;
}

.thematic-card.education .thematic-icon {
  background: #FFF8E1;
}

.thematic-card h3 {
  font-size: 1.3rem;
}

.thematic-card p {
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.7;
}

.thematic-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.thematic-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.thematic-list li .check {
  color: var(--green);
  font-size: 0.9rem;
}

/* ========================================
   APPLICATION PAGE
   ======================================== */
.application-section {
  padding: var(--section-padding);
}

.application-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.app-tab {
  padding: 14px 32px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--white);
  color: var(--gray-600);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-tab:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.app-tab.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}

.app-form-container {
  max-width: 720px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.form-card h3 {
  margin-bottom: 8px;
}

.form-card .form-subtitle {
  color: var(--gray-500);
  margin-bottom: 32px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group label .required {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.file-upload {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.file-upload:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--blue-400);
  margin-bottom: 8px;
}

.file-upload p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.file-upload p strong {
  color: var(--blue-600);
}

.form-submit {
  margin-top: 32px;
  text-align: center;
}

/* ========================================
   DONATE PAGE
   ======================================== */
.donate-section {
  padding: var(--section-padding);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.donate-info h2 {
  margin-bottom: 20px;
}

.donate-info p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.donate-emotional {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
}

.donate-emotional p {
  color: var(--blue-700);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.donate-methods h4 {
  margin-bottom: 16px;
}

.donate-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--gray-100);
}

.donate-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.donate-method-info {
  flex: 1;
}

.donate-method-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.donate-method-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.donate-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  position: sticky;
  top: 100px;
}

.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-preset {
  padding: 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
  font-family: var(--font-body);
}

.amount-preset:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.amount-preset.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: var(--shadow-blue);
}

/* ========================================
   ACCOMPLISHMENTS
   ======================================== */
.accomplishments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.accomplishment-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.accomplishment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.accomplishment-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--blue-50);
  color: var(--blue-600);
}

.accomplishment-card:nth-child(2) .accomplishment-icon {
  background: #E8F5F1;
  color: var(--green);
}

.accomplishment-card:nth-child(3) .accomplishment-icon {
  background: #FFF8E1;
  color: #F59E0B;
}

.accomplishment-card:nth-child(4) .accomplishment-icon {
  background: #FFEBEE;
  color: var(--red);
}

.accomplishment-card:nth-child(5) .accomplishment-icon {
  background: #F3E8FF;
  color: #8B5CF6;
}

.accomplishment-card:nth-child(6) .accomplishment-icon {
  background: #ECFDF5;
  color: #10B981;
}

.accomplishment-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.accomplishment-title {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-card-info p,
.contact-card-info a {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.contact-card-info a:hover {
  color: var(--blue-600);
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

/* ========================================
   COUNTER ANIMATION
   ======================================== */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
  .nav-links {
    gap: 16px;
  }
  
  .nav-cta {
    gap: 8px;
  }

  .nav-cta .btn-primary {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-grid,
  .program-detail-grid,
  .donate-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .program-detail-grid.reverse {
    direction: ltr;
  }

  .thematic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--white) !important;
  }

  .nav-cta {
    display: none;
  }

  .nav-links.active~.nav-cta,
  .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

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

  .stat-card {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .accomplishments-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 28px 20px;
  }

  .application-tabs {
    flex-direction: column;
    align-items: center;
  }

  .amount-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .donate-form-card {
    position: static;
  }
}

@media (max-width: 480px) {
  .accomplishments-grid {
    grid-template-columns: 1fr;
  }

  .thematic-list {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ========================================
   FOCUS STYLES (Accessibility)
   ======================================== */
*:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tab Panel Display */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}
/* ========================================
   GALLERY STYLES
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }
}
