/* General Styles */
:root {
  --primary-50: #e6eef0;
  --primary-100: #ccdee2;
  --primary-200: #99bdc6;
  --primary-300: #669ca9;
  --primary-400: #337b8d;
  --primary-500: #005f71;
  --primary-600: #004253;
  --primary-700: #003642;
  --primary-800: #002a32;
  --primary-900: #001f21;
  
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  
  --accent-50: #f9f5f3;
  --accent-100: #f3ebe7;
  --accent-200: #e7d7d0;
  --accent-300: #dbc3b9;
  --accent-400: #ceafa1;
  --accent-500: #be9e8c;
  --accent-600: #b08e7a;
  --accent-700: #9c7e6c;
  --accent-800: #886d5e;
  --accent-900: #735c50;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--secondary-800);
  font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary-900);
}

.text-primary {
  color: var(--primary-600) !important;
}

.bg-primary {
  background-color: var(--primary-600) !important;
}

.btn {
  border-radius: 30px;
  padding: 0.7rem 1.4rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
}

.btn-primary:hover {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}

.btn-outline-secondary {
  border-color: var(--secondary-300);
  color: var(--secondary-800);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-100);
  color: var(--secondary-900);
}

.form-control, .form-select {
  border-radius: 16px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--secondary-200);
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(51, 123, 141, 0.25);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary-600);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--secondary-600);
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.py-md-7 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

/* Header */
.header {
  transition: all 0.3s;
  z-index: 1030;
  background: white;
}

.header.scrolled {
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  font-family: 'Outfit', sans-serif;
}

.nav-link {
  color: var(--secondary-700);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-600);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Mobile Menu */
.offcanvas {
  border-radius: 24px 0 0 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu .nav-link {
  font-size: 1.05rem;
  border-radius: 12px;
  transition: all 0.3s;
}

.mobile-menu .nav-link:hover {
  background-color: var(--primary-50);
  padding-left: 1.5rem;
}

.mobile-menu .nav-link::after {
  display: none;
}

.mobile-social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-50);
  color: var(--primary-600);
  border-radius: 50%;
  transition: all 0.3s;
}

.mobile-social-links .social-icon:hover {
  background-color: var(--primary-600);
  color: white;
  transform: translateY(-3px);
}

.navbar-toggler {
  padding: 0.25rem;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero {
  padding-top: 9rem;
  padding-bottom: 4.5rem;
}

.hero-image-container {
  position: relative;
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 24px;
  transition: all 0.5s;
}

.hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blob {
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(50px);
  opacity: 0.4;
  z-index: 1;
  transition: all 3s ease-in-out;
}

.blob-primary {
  background-color: var(--primary-300);
  top: -2.5rem;
  left: -2.5rem;
  animation: float 8s ease-in-out infinite alternate;
}

.blob-accent {
  background-color: var(--accent-300);
  bottom: -2.5rem;
  right: -2.5rem;
  animation: float 8s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
  100% {
    transform: translateY(10px) scale(0.9);
  }
}

/* Stats */
.stats-container {
  margin-top: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-600);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--secondary-600);
}

.stats-divider {
  width: 1px;
  height: 3rem;
  background-color: var(--secondary-200);
  margin: 0 1.5rem;
}

@media (min-width: 576px) {
  .stat-value {
    font-size: 1.7rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

/* Services */
.service-card {
  background-color: white;
  padding: 1.8rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--secondary-100);
  height: 100%;
  transition: all 0.4s;
}

.service-card:hover {
  border-color: var(--accent-300);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
}

.icon-container {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
}

.service-card:hover .icon-container {
  background-color: var(--primary-600);
}

.icon-container i {
  font-size: 1.6rem;
  color: var(--primary-600);
  transition: all 0.4s;
}

.service-card:hover .icon-container i {
  color: white;
}

/* Steps */
.steps-connection {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-200);
  z-index: 1;
}

.step-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.step-item:hover .step-icon {
  transform: scale(1.05) rotate(5deg);
}

.step-icon i {
  font-size: 1.8rem;
  color: white;
}

.step-1 {
  background-color: var(--primary-600);
}

.step-2 {
  background-color: var(--primary-700);
}

.step-3 {
  background-color: var(--primary-800);
}

/* Benefits */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.3s;
}

.benefit-list li:hover {
  background-color: var(--primary-50);
  transform: translateX(5px);
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background-color: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.benefit-list li:hover .benefit-icon {
  background-color: var(--primary-600);
}

.benefit-icon i {
  font-size: 1.25rem;
  color: var(--primary-600);
  transition: all 0.3s;
}

.benefit-list li:hover .benefit-icon i {
  color: white;
}

.benefits-gallery {
  position: relative;
}

.gallery-img {
  height: 12rem;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.4s;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-card {
  background-color: white;
  padding: 1.8rem;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.4s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  color: var(--secondary-700);
  font-size: 0.95rem;
}

.testimonial-img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid var(--primary-200);
  transition: all 0.3s;
}

.testimonial-card:hover .testimonial-img {
  border-color: var(--accent-500);
}

/* Testimonials Carousel */
.testimonials-carousel {
  padding: 2rem 0;
}

/* Carousel indicators customization */
.carousel-indicators {
  position: relative;
  margin-bottom: 0;
  bottom: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-200);
  opacity: 0.5;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary-600);
  opacity: 1;
  width: 12px;
  height: 12px;
}

/* Contact */
.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.contact-icon:hover {
  background-color: var(--primary-600);
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--primary-600);
  transition: all 0.3s;
}

.contact-icon:hover i {
  color: white;
}

.social-link {
  width: 3rem;
  height: 3rem;
  background-color: white;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.social-link:hover {
  background-color: var(--primary-600);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.social-link i {
  font-size: 1.5rem;
  color: var(--primary-600);
  transition: all 0.3s;
}

.social-link:hover i {
  color: white;
}

.card {
  border-radius: 24px;
  border: none;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.alert {
  border-radius: 16px;
}

/* Footer */
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s;
  margin-right: 1.5rem;
  position: relative;
}

.footer-links a:last-child {
  margin-right: 0;
}

.footer-links a:hover {
  color: white;
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -3px;
  left: 0;
  background-color: white;
  transition: all 0.3s;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  transition: all 0.3s;
  margin-right: 1rem;
}

.footer-social a:hover {
  color: white;
  transform: translateY(-3px);
}

/* Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 1030;
  border: none;
}

.btn-back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.btn-back-to-top:hover {
  background-color: var(--primary-700);
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.btn-back-to-top i {
  font-size: 1.5rem;
}

/* Media Queries */
@media (min-width: 992px) {
  .section-title {
    font-size: 2.6rem;
  }
}

/* Reduced text size for display headings */
.display-4 {
  font-size: 2.8rem !important;
}

.display-5 {
  font-size: 2.4rem !important;
}

.display-6 {
  font-size: 2rem !important;
}

.lead {
  font-size: 1.05rem !important;
  line-height: 1.6;
}

h1, .h1 {
  font-size: 2.5rem;
}

h2, .h2 {
  font-size: 2rem;
}

h3, .h3 {
  font-size: 1.6rem;
}

h4, .h4 {
  font-size: 1.4rem;
}

h5, .h5 {
  font-size: 1.15rem;
}

h6, .h6 {
  font-size: 1rem;
}

/* Button size adjustments */
.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}

.small {
  font-size: 85%;
}

/* Mobile testimonials adjustments */
@media (max-width: 767px) {
  .testimonials-carousel .carousel-item .row {
    margin-right: 0;
    margin-left: 0;
  }
}