/* Modern Color Palette */
:root {
  --primary: #007bff; /* Bootstrap primary */
  --teal: #20c997; /* Modern teal */
  --navy: #1a1f71; /* Dark navy */
  --coral: #ff6b6b; /* Vibrant coral */
  --dark: #212529; /* Dark background */
  --light: #f8f9fa; /* Light background */
}

/* Hero Section */
.hero-section {
  height: 70vh;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.animate-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(45deg, var(--primary), var(--teal));
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  transition: transform 0.2s ease, background 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, var(--teal), var(--primary));
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* Text Colors */
.text-primary {
  color: var(--primary) !important;
}

.text-teal {
  color: var(--teal) !important;
}

/* Footer Links */
.hover-link:hover {
  color: var(--primary) !important;
  text-decoration: underline;
}

/* Numbers Section */
.bg-dark {
  background: linear-gradient(var(--navy), var(--dark));
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    height: 50vh;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}

/* Ensure cards start hidden before animation */
.animate-card {
  opacity: 0;
}

/* Smooth transition for animated cards */
.animate-card.animate__animated {
  opacity: 1;
}

/* Optional: Add subtle hover effect for cards */
.animate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Numbers Section Cards */
.animate-card {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.animate-card.animate__animated {
  opacity: 1;
}

.animate-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.count-up {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments for numbers */
@media (max-width: 768px) {
  .count-up {
    font-size: 2.5rem;
  }
  .animate-card p {
    font-size: 1rem;
  }
  .animate-card {
    padding: 2rem !important; /* Reduce padding on mobile */
  }
}


/* Ensure carousel controls sit above overlay */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
}
/* Message Button Styles */
.message-btn {
  z-index: 10; /* High z-index to ensure visibility above overlay (z-index: 1) and container (z-index: 2) */
  background: var(--teal); /* Modern teal background for visibility */
  color: white; /* White text for contrast */
  border: none;
  border-radius: 6px; /* Smaller border-radius for a compact look */
  padding: 6px 12px; /* Reduced padding for smaller size */
  font-size: 0.8rem; /* Smaller font size */
  line-height: 1.2; /* Tight line height for compact appearance */
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Offset to center the button */
}

.message-btn:hover {
  background: var(--primary); /* Switch to primary color on hover */
  transform: scale(1.05) translateX(-50%); /* Maintain centering on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

@media (max-width: 768px) {
  .message-btn {
    font-size: 0.7rem; /* Even smaller font on mobile */
    padding: 5px 10px; /* Further reduced padding */
  }
}