/* Custom styles for Complete Solution Care Services */

/* Color palette based on healthcare/teal theme */
:root {
  --primary-teal: #0891b2;
  --secondary-teal: #06b6d4;
  --deep-purple: #7c3aed;
  --soft-red: #f43f5e;
  --light-gray: #f8fafc;
  --dark-gray: #1e293b;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

.slide-in-right {
  animation: slideInFromRight 0.6s ease-out;
}

/* Carousel content animations */
.carousel-slide h1 {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-slide p {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.carousel-slide .fade-in-up {
  animation: fadeInUp 1s ease-out 0.9s both;
}

/* Hero carousel styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.carousel-wrapper {
  display: flex;
  width: 300%; /* 3 slides = 300% */
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 33.333333%; /* Each slide takes 1/3 of wrapper width */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay for better text readability */
.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 42, 71, 0.7) 0%,
    rgba(0, 180, 219, 0.6) 50%,
    rgba(14, 42, 71, 0.8) 100%
  );
  z-index: 1;
}

.carousel-slide .container {
  position: relative;
  z-index: 2;
}

/* Navigation arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* Navigation dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: white;
  border-color: rgba(0, 180, 219, 0.8);
  transform: scale(1.3);
}

/* Pause on hover */
.carousel-container:hover .carousel-wrapper {
  animation-play-state: paused;
}

/* Button hover effects */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.3);
}

/* Service card effects */
.service-card {
  transition: all 0.3s ease;
}

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

/* Form styling */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Mobile navigation */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

/* Responsive text sizes */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  /* Mobile carousel adjustments */
  .carousel-nav {
    width: 40px;
    height: 40px;
    display: none; /* Hide arrows on mobile, use swipe instead */
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .carousel-dots {
    bottom: 20px;
    gap: 8px;
  }
  
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  /* Adjust hero content for mobile */
  .carousel-slide h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .carousel-slide p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .carousel-slide h1 {
    font-size: 1.75rem;
  }
  
  .carousel-slide p {
    font-size: 1rem;
  }
  
  .carousel-slide .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Loading animation */
.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading.loaded {
  opacity: 1;
}


/* Navbar transition & state styles */
#main-nav {
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-link {
  transition: color 0.3s ease;
}

.nav-btn {
  transition: all 0.3s ease;
}

/* Button styles for scroll state */
.btn-primary-light {
  background: white !important;
  color: #0891b2 !important;
  border: 2px solid #0891b2 !important;
}

.btn-primary-light:hover {
  background: #0891b2 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.3);
}

.hero-card {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-card.visible {
  opacity: 1;
  transform: translateY(0);
}

