:root {
  --primary-color: #577BC1;
  --secondary-color: #344CB7;
  --accent-color: #337357;
  --light-color: #ECF0F1;
  --dark-color: #2C3D4F;
  --gradient-primary: linear-gradient(135deg, #577BC1 0%, #337357 100%);
  --hover-color: #4A69A8;
  --background-color: #ECF0F1;
  --text-color: #2C3E50;
  --border-color: rgba(51, 115, 87, 0.3);
  --divider-color: rgba(87, 123, 193, 0.15);
  --shadow-color: rgba(87, 123, 193, 0.2);
  --highlight-color: #5CB338;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Open Sans', sans-serif;
}

/* Mobile Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.hamburger .line {
  width: 28px;
  height: 3px;
  background-color: var(--light-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li {
  margin: 1rem 0;
}

.mobile-nav a {
  display: block;
  padding: 1.2rem 1.8rem;
  color: var(--light-color);
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid transparent;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(8px);
}

/* Enhanced Feature Cards */
.feature-card {
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #fdfefe);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px var(--shadow-color);
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(51, 115, 87, 0.12), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: var(--accent-color);
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.feature-icon {
  font-size: 3.5rem;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(-5deg);
}

/* Enhanced Testimonial Cards */
.testimonial {
  transition: all 0.4s ease;
  border: none;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fdfefe 100%);
  padding: 2.5rem;
  margin: 1.5rem 0;
  border-radius: 20px;
  box-shadow: 0 8px 25px var(--shadow-color);
  border-left: 6px solid var(--secondary-color);
}

.testimonial::after {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 6rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: var(--main-font);
}

.testimonial:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px var(--shadow-color);
  border-left-color: var(--accent-color);
}

/* Enhanced FAQ Items */
.faq-item {
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fdfefe 100%);
  padding: 2.5rem;
  margin: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--shadow-color);
}

.faq-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--secondary-color);
}

/* Enhanced Form Styles */
input,
textarea {
  transition: all 0.4s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.3rem;
  background-color: white;
  color: var(--text-color);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 6px rgba(87, 123, 193, 0.15);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffffff 0%, #fdfefe 100%);
}

input:hover,
textarea:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* Enhanced Button Styles */
button,
.btn {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.3rem 2.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button::before,
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

button:hover::before,
.btn:hover::before {
  width: 300%;
  height: 300%;
}

button:hover,
.btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 30px rgba(87, 123, 193, 0.4);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero Section Enhancement */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--dark-color) 100%);
}

/* Enhanced Typography */
h1, h2, h3 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--main-font);
  font-weight: 700;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
}

/* Statistics Cards */
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfefe 100%);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow-color);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-color);
  border-color: var(--accent-color);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--main-font);
}

.stat-text {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

/* Trust Indicators */
.trust-indicator {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.3s ease;
}

.trust-indicator:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .navigation {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item,
  .stat-card,
  .trust-indicator {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .feature-card,
  .testimonial,
  .faq-item,
  .stat-card {
    margin: 1rem 0;
    padding: 1.5rem;
  }

  .trust-indicator {
    margin: 1rem 0;
    padding: 1rem 0;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--light-color);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(87, 123, 193, 0.3);
}

footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  color: var(--light-color);
  padding: 4rem 0 1rem;
}

header img[alt="logo"],
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--highlight-color);
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Animation for page elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Background patterns */
.pattern-bg {
  background-image: 
    radial-gradient(circle at 25% 75%, rgba(87, 123, 193, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 25%, rgba(51, 115, 87, 0.08) 0%, transparent 50%);
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-color: #000000;
    --background-color: #FFFFFF;
    --border-color: #000000;
    --primary-color: #000000;
    --secondary-color: #000000;
  }
}