@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #487BB5;
  --primary-dark: #3a6391;
  --light-bg: #F9FBFC;
  --dark-text: #1a1a1a;
  --accent-color: #000000;
  --secondary-color: #6C757D;
  --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(72, 123, 181, 0.15);
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

/* Navbar */
.navbar {
  /* background-color: var(--gradient-bg)!important; */
  background-color: var(--light-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  height: 75px;
  width: 200px;
  background-color: var(--primary-color);
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 94px;
  right: 14px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #fff;
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.nav-link {
  color: #333 !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  margin-left: 0.5rem;
  padding: 0.6rem 1.2rem !important;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
  color: var(--primary-color) !important;
  background-color: rgba(72, 123, 181, 0.08);
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(72, 123, 181, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(72, 123, 181, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(72, 123, 181, 0.2);
}

/* Hero Section */
.hero-section {
  padding: 10rem 0 6rem;
  background: radial-gradient(circle at 0% 0%, rgba(72, 123, 181, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(72, 123, 181, 0.05) 0%, transparent 50%)  ;
  position: relative;
}

.custom-hero-bg {
  min-height: 100vh;
  background: url('./assets/hero_desktop.webp') center/contain no-repeat;
}

.hero-section h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: -webkit-linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  font-size: 1.25rem;
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-banner-link {
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.hero-banner-img {
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
}

.hero-banner-link:hover .hero-banner-img {
  transform: scale(1.005);
  filter: brightness(0.97);
}

/* Scroll Animations */
.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transition: all 0.8s ease-out;
}

/* Default (Fade Up) */
.reveal {
  transform: translateY(30px);
}

/* Left Slide */
.reveal-left {
  transform: translateX(-50px);
}

/* Right Slide */
.reveal-right {
  transform: translateX(50px);
}

/* Zoom In */
.reveal-zoom {
  transform: scale(0.9);
}

/* Active States */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1);
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Image Hover Zoom */
.img-hover-zoom {
  transition: transform 0.5s ease;
}

.img-hover-zoom:hover {
  transform: scale(1.03);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 15px;
  /* Positioned left of WhatsApp */
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Delays */
.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Section Common */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-sub {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Feature Cards (Glassmorphism) */
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(72, 123, 181, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  color: #fff;
  transform: rotateY(360deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Highlights */
.highlight-box {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.highlight-box:hover {
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 5rem 0 2rem;
  position: relative;
}

footer h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.35rem;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
  color: #fff;
}

.social-icons a:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  padding-left: 0;
  /* Reset hover padding */
}

/* Responsive */
@media (max-width: 991px) {
  .hero-section {
    padding: 8rem 0 4rem;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p {
    margin: 0 auto 2rem;
  }

  .d-flex.gap-3 {
    justify-content: center;
  }

  .custom-hero-bg {
    min-height: 120vh;
    background: url('./assets/hero_mobile.jpg') center/contain no-repeat;
  }
}

/* Service Image Cards */
.service-img-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.service-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.service-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-img-card:hover img {
  transform: scale(1.08);
}

.service-img-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-img-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--accent-color);
  font-weight: 700;
}

.service-img-content p {
  color: var(--secondary-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-img-content .btn-know-more {
  align-self: flex-start;
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
  border: none;
}

.service-img-content .btn-know-more i {
  transition: transform 0.3s ease;
}

.service-img-content .btn-know-more:hover {
  color: var(--primary-dark);
}

.service-img-content .btn-know-more:hover i {
  transform: translateX(5px);
}

/* Appointment Form Styling */
.appointment-form .form-control,
.appointment-form .form-select {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--light-bg);
  color: var(--dark-text);
  transition: all 0.3s ease;
}

.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(72, 123, 181, 0.15);
  background-color: #fff;
}

/* Sidebar Info Card Styling (for detail pages) */
.sidebar-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--shadow-soft);
  border-radius: 20px;
  padding: 2rem;
}

/* Testimonials Carousel Custom Styling */
.testimonials-carousel .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  transition: all 0.3s ease;
}

.testimonials-carousel .owl-dots {
  text-align: center;
  margin-top: 2rem;
}

.testimonials-carousel .owl-dot span {
  width: 10px !important;
  height: 10px !important;
  margin: 5px 7px !important;
  background: rgba(72, 123, 181, 0.2) !important;
  display: block;
  transition: all 0.3s ease;
  border-radius: 30px;
}

.testimonials-carousel .owl-dot.active span,
.testimonials-carousel .owl-dot:hover span {
  background: var(--primary-color) !important;
  width: 25px !important;
}

/* Navbar Dropdown on Hover for Desktop */
@media (min-width: 992px) {
  .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .navbar-nav .nav-item.dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
}

.dropdown-menu {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(72, 123, 181, 0.05); /* Softened from #152396 border */
}

.dropdown-item {
  color: #1a1a1a;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover, 
.dropdown-item.active,
.dropdown-item:active {
  background-color: rgba(72, 123, 181, 0.08) !important;
  color: var(--primary-color) !important;
  padding-left: 1.75rem;
}

.dropdown-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Dropdown Chevron Icon Styling */

.dropdown-toggle i.fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  margin-left: 0.25rem;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Footer Bottom Separation */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
}