:root {
  --primary-color: #2D5C7F;
  --secondary-color: #2C7FB2;
  --accent-color: #5A9F77;
  --light-color: #F0F7FF;
  --dark-color: #1D2A3C;
  --gradient-primary: linear-gradient(135deg, #2D5C7F 0%, #2C7FB2 100%);
  --hover-color: #245070;
  --background-color: #F5FAFF;
  --text-color: #3A4A5A;
  --border-color: rgba(45, 92, 127, 0.2);
  --divider-color: rgba(44, 127, 178, 0.15);
  --shadow-color: rgba(45, 92, 127, 0.12);
  --highlight-color: #F4D03F;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Open Sans', sans-serif;
}

/* Mobile Menu */
.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.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(8px);
}

/* Feature Cards */
.feature-card {
  transition: all 0.4s ease;
  border: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f5faff 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 25px rgba(45, 92, 127, 0.12);
  text-align: center;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(45, 92, 127, 0.2);
}
.feature-icon {
  font-size: 3rem;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  text-align: center;
  width: 100%;
}
.feature-card:hover .feature-icon { transform: scale(1.2) rotate(-8deg); }

/* Testimonials */
.testimonial {
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f5faff 100%);
  padding: 2.5rem;
  margin: 1.5rem 0;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(45, 92, 127, 0.1);
  border-left: 6px solid var(--accent-color);
  position: relative;
}
.testimonial::before {
  content: '❝';
  position: absolute;
  top: 20px; right: 25px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.06;
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(45, 92, 127, 0.18);
}

/* FAQ */
.faq-item {
  border: 2px solid var(--border-color);
  transition: all 0.4s ease;
  background: white;
  padding: 2rem;
  margin: 1.2rem 0;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(45, 92, 127, 0.08);
  position: relative;
}
.faq-item::before {
  content: '';
  position: absolute;
  left: -2px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 0;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transition: height 0.4s ease;
}
.faq-item:hover::before { height: 75%; }
.faq-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(45, 92, 127, 0.15);
  border-color: var(--primary-color);
}

/* Inputs */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.2rem;
  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 5px rgba(45, 92, 127, 0.12);
  transform: translateY(-2px);
}
input:hover, textarea:hover {
  border-color: var(--secondary-color);
}

/* Buttons */
button, .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  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: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}
button:hover::before, .btn:hover::before { width: 300%; height: 300%; }
button:hover, .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(45, 92, 127, 0.4);
}

/* Base */
html { scroll-behavior: smooth; }
h1, h2, h3 {
  text-shadow: 0 1px 3px rgba(0,0,0,0.08);
  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.75;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 60%, var(--dark-color) 100%);
}

/* Stats */
.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5faff 100%);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(45, 92, 127, 0.12);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}
.stat-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 35px rgba(45, 92, 127, 0.2);
}
.stat-number {
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--main-font);
}
.stat-text {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

/* Trust */
.trust-indicator {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(45, 92, 127, 0.08);
  transition: all 0.3s ease;
}
.trust-indicator:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(45, 92, 127, 0.14);
}

/* Header / Footer */
header {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  color: var(--light-color);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 3px 15px rgba(29, 42, 60, 0.35);
}
footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 0 1rem;
}
header img[alt="logo"], footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Pattern */
.pattern-bg {
  background-image:
    radial-gradient(circle at 30% 65%, rgba(45, 92, 127, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(90, 159, 119, 0.06) 0%, transparent 50%),
    linear-gradient(60deg, rgba(244, 208, 63, 0.02) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(44, 127, 178, 0.03) 25%, transparent 25%);
  background-size: 120px 120px, 160px 160px, 40px 40px, 40px 40px;
}

/* Focus */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--highlight-color);
  outline-offset: 3px;
}

/* 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); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s ease-out; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .container { padding: 0 1.2rem; }
  .feature-card, .testimonial, .faq-item, .stat-card, .trust-indicator { padding: 1.8rem; }
  #contact .grid { max-width: 100% !important; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .feature-card, .testimonial, .faq-item, .stat-card { margin: 0.8rem 0; padding: 1.4rem; }
  .stat-number { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (prefers-contrast: high) {
  :root {
    --text-color: #000000;
    --background-color: #FFFFFF;
    --border-color: #000000;
    --primary-color: #000000;
    --secondary-color: #000000;
  }
}