/* ============================================
   INSAN Charity Website - Main Stylesheet
   مؤسسة إنسان للأعمال الخيرية والتنمية
   ============================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&family=Cairo:wght@400;600;700;900&family=Almarai:wght@400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Montserrat:wght@400;600;700;800&display=swap');

/* ----- CSS Variables ----- */
:root {
  /* Colors */
  --primary-color: #1e7e34;
  --primary-dark: #155724;
  --primary-light: #28a745;
  --secondary-color: #ffc107;
  --secondary-dark: #e0a800;
  --accent-color: #17a2b8;
  --danger-color: #dc3545;
  --dark-color: #212529;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
  --gradient-secondary: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
  --gradient-accent: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  --gradient-shimmer: linear-gradient(90deg, #1e7e34 0%, #17a2b8 50%, #1e7e34 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.8s ease;
  
  /* Fonts */
  --font-arabic: 'Tajawal', 'Cairo', 'Almarai', sans-serif;
  --font-english: 'Poppins', 'Montserrat', sans-serif;
}

/* ----- Reset & Base Styles ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

body[dir="ltr"] {
  font-family: var(--font-english);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

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

a:hover {
  color: var(--primary-color);
}

/* ----- Top Bar ----- */
.top-bar {
  background: var(--gradient-shimmer);
  background-size: 200% 100%;
  color: var(--white);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  animation: shimmer 8s linear infinite, slideDown 0.8s ease-out;
  z-index: 1001;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.top-bar a {
  color: var(--white);
  transition: var(--transition-fast);
}

.top-bar a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.top-bar i {
  margin: 0 0.5rem;
  animation: pulse 2s infinite;
}

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

/* ----- Language Switcher ----- */
.language-switcher {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(5deg) scale(1.05);
}

.language-switcher button.active {
  background: var(--white);
  color: var(--primary-color);
}

/* ----- Navbar ----- */
.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 1s ease-out 0.3s both;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-normal);
  animation: glow 3s infinite;
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(30, 126, 52, 0.3)); }
  50% { filter: drop-shadow(0 0 15px rgba(30, 126, 52, 0.6)); }
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
  background: rgba(30, 126, 52, 0.05);
}

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

.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background: rgba(30, 126, 52, 0.1);
}

/* ----- Buttons ----- */
.btn {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

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

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

.btn i {
  transition: var(--transition-fast);
}

.btn:hover i {
  transform: translateX(5px) rotate(10deg);
}

.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* Warning Button */
.btn-warning {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Donate Button */
.btn-donate {
  background: var(--gradient-secondary);
  color: var(--dark-color);
  font-size: 1.2rem;
  animation: pulseGlow 2s infinite;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
    transform: scale(1.05);
  }
}

.btn-donate:hover {
  box-shadow: 0 0 40px rgba(255, 193, 7, 1);
}

/* ----- Hero Slider ----- */
.hero-slider {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: parallaxZoom 8s ease-out forwards;
}

@keyframes parallaxZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 126, 52, 0.75) 0%, rgba(23, 162, 184, 0.65) 100%);
  z-index: 1;
}

/* Animated Particles */
.slide-overlay::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 40px 40px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}

.slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.slide-content h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content .lead {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  max-width: 800px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.slide-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.slide-buttons .btn {
  animation: floatButton 3s ease-in-out infinite;
}

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

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition-normal);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(30, 126, 52, 0.8);
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 0 20px rgba(30, 126, 52, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: var(--transition-fast);
}

.swiper-pagination-bullet:hover {
  transform: scale(1.3);
}

.swiper-pagination-bullet-active {
  background: var(--secondary-color);
  width: 40px;
  border-radius: 6px;
  animation: ripple 1.5s infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  100% {
    box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
  }
}

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: fadeIn 1s ease-out 1.5s both, bounce 2s infinite 2.5s;
}

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

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

.scroll-down i {
  font-size: 2.5rem;
  color: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ----- Test Data Badge ----- */
.test-badge {
  position: fixed;
  top: 50px;
  right: 20px;
  background: var(--danger-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: bold;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideInRight 0.8s ease-out, bounce 2s infinite 1s;
}

@keyframes slideInRight {
  from {
    transform: translateX(200%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ----- Statistics Section ----- */
.statistics-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.stat-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  opacity: 0;
  transform: translateY(50px);
}

.stat-card.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

.stat-card i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition-normal);
}

.stat-card:hover i {
  transform: rotate(360deg) scale(1.2);
}

.stat-card h3 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  animation: shimmerBg 3s infinite;
  background: var(--gradient-shimmer);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmerBg {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.stat-card p {
  font-size: 1.2rem;
  color: var(--dark-color);
  font-weight: 600;
}

/* ----- About Section ----- */
.about-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--gradient-secondary);
  margin: 1rem auto;
  border-radius: var(--radius-sm);
}

.about-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  opacity: 0;
  transform: translateY(50px);
}

.about-card.animate-on-scroll {
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  background: rgba(30, 126, 52, 0.03);
}

.about-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.about-card:hover i {
  transform: rotate(360deg) scale(1.15);
  color: var(--secondary-color);
}

.about-card h4 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* ----- Services Section ----- */
.services-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  height: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50px);
}

.service-card.animate-on-scroll {
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
.service-card:nth-child(6) { animation-delay: 0.35s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transition: var(--transition-slow);
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, rgba(30, 126, 52, 0.03) 0%, rgba(23, 162, 184, 0.03) 100%);
  border: 2px solid var(--primary-light);
}

.service-card i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover i {
  transform: scale(1.2) rotate(10deg);
  color: var(--white);
  filter: drop-shadow(0 4px 8px rgba(30, 126, 52, 0.5));
}

.service-card h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

/* ----- Projects Section ----- */
.projects-section {
  padding: 5rem 0;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
  opacity: 0;
  transform: scale(0.9);
}

.project-card.animate-on-scroll {
  animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

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

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-card-body {
  padding: 2rem;
}

.project-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-card h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.progress {
  height: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--light-bg);
  margin-top: 1rem;
}

.progress-bar {
  background: var(--gradient-primary);
  transition: width 1.5s ease-out;
  animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
  from { width: 0; }
}

/* ----- CTA Section ----- */
.cta-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: wave 15s infinite ease-in-out;
}

.cta-section::before {
  width: 600px;
  height: 600px;
  top: -300px;
  left: -200px;
}

.cta-section::after {
  width: 800px;
  height: 800px;
  bottom: -400px;
  right: -300px;
  animation-delay: 2s;
}

@keyframes wave {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(20px, 20px); }
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  animation: slideInLeft 1s ease-out;
}

.cta-section p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  animation: slideInLeft 1s ease-out 0.2s both;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
  animation: slideInRight 1s ease-out 0.4s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ----- Footer ----- */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer p,
.footer li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer a:hover {
  color: var(--secondary-color);
  padding-right: 5px;
}

.footer .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer .social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.footer .social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 5px 15px rgba(30, 126, 52, 0.5);
}

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

/* ----- Scroll Animations ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ----- Responsive Design ----- */
@media (max-width: 991px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  
  .hero-slider {
    height: 80vh;
    min-height: 600px;
  }
  
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content .lead {
    font-size: 1.3rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .hero-slider {
    height: 70vh;
    min-height: 500px;
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
  }
  
  .slide-content .lead {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .slide-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-card,
  .about-card,
  .service-card {
    margin-bottom: 2rem;
  }
  
  .test-badge {
    top: 60px;
    right: 10px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* ----- Print Styles ----- */
@media print {
  .navbar,
  .footer,
  .test-badge,
  .btn {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
