/* Custom styles for Veera Foundation */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('responsive.css');

:root {
  /* Softer, more eye-pleasing color palette */
  --primary-red: #ef4444; /* Soft red */
  --secondary-red: #f87171; /* Lighter red */
  --accent-yellow: #fbbf24; /* Warm amber */
  --soft-orange: #fdba74; /* Soft orange */
  --light-bg: #fef7f7; /* Very light pinkish background */
  --card-bg: #ffffff; /* Pure white for cards */
  --text-dark: #1e293b; /* Dark slate for text */
  --text-light: #64748b; /* Muted gray for secondary text */
  --border-color: #e2e8f0; /* Light border color */
  --shadow-light: rgba(0, 0, 0, 0.05); /* Light shadow */
  --shadow-medium: rgba(0, 0, 0, 0.08); /* Medium shadow */
  --shadow-hover: rgba(0, 0, 0, 0.12); /* Hover shadow */
  --gradient-start: #fee2e2; /* Light red gradient start */
  --gradient-end: #ffe4e6; /* Light pink gradient end */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
  transition: all 0.3s ease;
}

/* Navigation Styles */
nav {
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

nav.scrolled {
  box-shadow: 0 6px 20px var(--shadow-medium);
  background: rgba(255, 255, 255, 0.98);
}

/* Hero Section */
.pattern-dots {
  background-image: radial-gradient(var(--secondary-red) 1px, transparent 1px);
}

/* Button Styles - Enhanced with beautiful gradients and shadows */
button, .btn {
  cursor: pointer;
  outline: none;
  border: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 50px;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button::before, .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

button:hover::before, .btn:hover::before {
  opacity: 1;
}

button:hover, .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow-hover);
}

button:active, .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Primary Button */
.btn-primary, button.bg-red-600, button.bg-red-700 {
  background: linear-gradient(45deg, var(--primary-red), #dc2626);
  color: white;
}

.btn-primary:hover, button.bg-red-600:hover, button.bg-red-700:hover {
  background: linear-gradient(45deg, #dc2626, #b91c1c);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(45deg, var(--accent-yellow), #f59e0b);
  color: #1e293b;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: white;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

/* Card Styles with enhanced hover effects */
.bg-gradient-to-br, .card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-light);
  position: relative;
  z-index: 1;
}

.bg-gradient-to-br:hover, .card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 25px -5px var(--shadow-hover), 0 10px 10px -5px var(--shadow-medium);
}

.bg-gradient-to-br::before, .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bg-gradient-to-br:hover::before, .card:hover::before {
  opacity: 1;
}

/* Animation Classes */
@keyframes pulseGentle {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.98);
    opacity: 0.8;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-gentle {
  animation: pulseGentle 4s infinite ease-in-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

/* Animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

.animate-delay-1000 {
  animation-delay: 1s;
}

/* Testimonial Cards */
.bg-gray-50, .testimonial-card {
  transition: all 0.4s ease;
  border-radius: 16px;
  box-shadow: 0 4px 6px var(--shadow-light);
}

.bg-gray-50:hover, .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 20px -5px var(--shadow-hover);
}

/* Footer Styles */
footer ul li a {
  position: relative;
  display: inline-block;
  color: #94a3b8;
}

footer ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

footer ul li a:hover {
  color: white;
}

footer ul li a:hover::after {
  width: 100%;
}

/* Form elements with enhanced styling */
input, textarea, select {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Stats section with enhanced cards */
.stats-grid > div {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shadow-light);
}

.stats-grid > div:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 20px -5px var(--shadow-hover);
}

/* Section titles with decorative elements */
.text-center h2 {
  position: relative;
  padding-bottom: 20px;
}

.text-center h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-yellow));
  border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .how-it-works {
    flex-direction: column;
  }
  
  .how-it-works > div:not(:last-child) {
    margin-bottom: 30px;
  }
  
  .hidden.md\:block {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-red);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Utility Classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px var(--shadow-medium), 0 4px 6px -2px var(--shadow-light);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px var(--shadow-hover), 0 10px 10px -5px var(--shadow-medium);
}

.transform {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.transform:hover {
  transform: scale(1.05);
}

/* Animation for elements appearing on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(90deg, var(--primary-red), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating elements */
.floating {
  animation: float 8s ease-in-out infinite;
}

/* Gentle pulse for call-to-action elements */
.pulse-gentle {
  animation: pulseGentle 3s infinite ease-in-out;
}