@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================== */
:root {
  /* Primary Colors */
  --color-primary: #3B82F6;
  --color-primary-dark: #2563EB;
  --color-secondary: #9333EA;
  --color-secondary-dark: #7E22CE;
  --color-accent: #F97316;
  --color-accent-dark: #EA580C;
  
  /* Gradient Colors */
  --color-gradient-start: #1e293b;
  --color-gradient-mid: #334155;
  --color-gradient-end: #475569;
  
  /* Text Colors */
  --color-text-primary: #1F2937;
  --color-text-secondary: #4B5563;
  --color-text-light: #9CA3AF;
  
  /* Background Colors */
  --color-bg-light: #F9FAFB;
  --color-bg-white: #FFFFFF;
  
  /* Border Colors */
  --color-border: #E5E7EB;
  --color-border-dark: #D1D5DB;
  
  /* Overlay Colors */
  --overlay-dark: rgba(0, 0, 0, 0.5);
  --overlay-darker: rgba(0, 0, 0, 0.7);
}

/* ===================================
   GLOBAL STYLES
   =================================== */
body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

/* Scrollbar styling */
body::-webkit-scrollbar {
  width: 5px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.gradient-bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-mid) 50%, var(--color-gradient-end) 100%);
}

.overlay-dark {
  background: var(--overlay-dark);
}

.overlay-darker {
  background: var(--overlay-darker);
}

/* ===================================
   NAVIGATION & HEADER
   =================================== */
.navbar-active {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-header {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-content: space-between;
}

.desktop-header {
  display: none;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.dropdown-menu.show {
  max-height: 500px;
}

/* ===================================
   BUTTONS & CALL-TO-ACTION
   =================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(30, 58, 138, 0.4);
}

.donate-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.3);
}

.donate-btn:hover {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(30, 58, 138, 0.4);
}

.btn-hover-effect {
  transition: all 0.3s ease;
  transform: translateY(0);
}

.btn-hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   MOBILE MENU
   =================================== */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* ===================================
   SWIPER CAROUSEL
   =================================== */
.swiper-button-next, 
.swiper-button-prev {
  display: none !important;
}

.hero-buttons {
  flex-direction: column;
  gap: 1rem;
}

.hero-buttons a {
  width: 100%;
  text-align: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  z-index: 0;
}

.hero-slide > * {
  position: relative;
  z-index: 1;
}

/* ===================================
   IMPACT & STATS
   =================================== */
.impact-number {
  transition: all 0.5s ease;
}

.impact-number:hover {
  transform: scale(1.1);
}

.impact-stat {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 12px;
}

/* ===================================
   PARTNERS & LOGOS
   =================================== */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

#partnersScroller::-webkit-scrollbar { 
  display: none; 
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 5s ease-in-out infinite;
}

.active-filter {
  animation: pulseActive 0.8s ease-in-out;
}

@keyframes pulseActive {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===================================
   TIMELINE
   =================================== */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background: var(--color-border);
}

.timeline-item:last-child::after {
  display: none;
}

/* ===================================
   PROJECT & THEME CARDS
   =================================== */
.project-card {
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-secondary);
}

/* ===================================
   PROCESS STEPS
   =================================== */
.process-step {
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-secondary);
  z-index: 2;
}

.process-step::after {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 3rem;
  bottom: -2rem;
  width: 2px;
  background: var(--color-border);
  z-index: 1;
}

.process-step:last-child::after {
  display: none;
}

/* ===================================
   BLOG STYLES
   =================================== */
.blog-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
}

.blog-card {
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-filter {
  transition: all 0.3s ease;
}

.category-filter.active {
  background-color: var(--color-primary);
  color: white;
}

.author-avatar {
  width: 40px;
  height: 40px;
}

.read-time {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.pagination-btn {
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background-color: var(--color-primary);
  color: white;
}

.pagination-btn.active {
  background-color: var(--color-primary);
  color: white;
}

.featured-blog {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 12px;
}

/* ===================================
   RESPONSIVE - TABLET & DESKTOP
   =================================== */
@media (min-width: 768px) {
  .mobile-header {
    display: none;
  }
  
  .desktop-header {
    display: block;
  }
  
  #mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-overlay {
    display: none !important;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .hero-buttons a {
    width: auto;
  }
  
  .timeline-item {
    padding-left: 3rem;
  }
  
  .timeline-item::before {
    left: 1rem;
    width: 16px;
    height: 16px;
  }
  
  .timeline-item::after {
    left: 1.5rem;
  }
  
  .process-step::before {
    left: -3rem;
  }
  
  .process-step::after {
    left: -2.25rem;
  }
}

@media (min-width: 1024px) {
  .swiper-button-next, 
  .swiper-button-prev {
    display: flex !important;
  }
}
