/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Fade-in effect for sections */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Apply the fade-in animation to each section */
section {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Each section fades in a little later than the previous one */
#about { animation-delay: 0.6s; }
#solutions { animation-delay: 0.9s; }
#contact { animation-delay: 1.2s; }

/* Hover effect for all buttons with a shadow for depth */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ensure the buttons return to their original state smoothly */
.btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle pulse animation for call-to-action buttons to draw attention */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-primary {
  animation: pulse 2s infinite;
}

.card-deck .card {
  cursor: pointer;
  overflow: hidden;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-deck .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.feature-card .card-img-top {
  height: 180px; /* Adjust the height as needed */
  object-fit: cover; /* Ensure the image covers the card area */
  transition: transform 0.3s ease;
}

.feature-card:hover .card-img-top {
  transform: scale(1.05); /* Slight zoom on hover */
}

.feature-card .card-body {
  padding: 1.5rem;
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive design for cards */
@media (max-width: 768px) {
  .card-deck .card {
      margin-bottom: 20px;
  }
}

/* Add some shadow for depth and change the background color for a solid look */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #007bff !important;
}

/* Change the font style and padding for a cleaner appearance */
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 1.25rem 1rem;
}

/* A visual cue for the active section could be a border bottom */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  border-bottom: 3px solid #fff;
}

/* Improved mobile responsiveness */
@media (max-width: 991px) {
  .navbar-collapse {
      background-color: #007bff;
      padding: 1rem 2rem;
  }

  .navbar-nav .nav-link {
      padding: 0.25rem 1rem;
      margin: 0.5rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
}

/* Sticky Navbar */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

/* Effet de fondu pour la barre de navigation */
.navbar {
  animation: fadein 2s;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Effets de survol sur les liens de la navbar */
.navbar-nav .nav-link {
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
  color: #ffdd00; /* Changement de couleur au survol */
}

/* Transitions sur les boutons */
.btn-primary, .btn-secondary {
  transition: background-color 0.3s ease-in-out, transform 0.2s ease;
}

.btn-primary:hover, .btn-secondary:hover {
  background-color: #ffdd00; /* Couleur au survol */
  transform: scale(1.05); /* Légère augmentation de taille */
}

/* Effet de survol sur les cartes */
.card {
  transition: box-shadow 0.3s ease-in-out, transform 0.2s ease;
}

.card:hover {
  transform: scale(1.03); /* Légère augmentation de taille */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Ombre plus prononcée */
}

/* Ajout de transitions et d'effets visuels */
.hero-section, .feature-card, .btn {
  transition: transform 0.3s ease-in-out;
}

.hero-section:hover, .feature-card:hover, .btn:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-section, .feature-card {
      transform: none;
  }
}

/* Responsive adjustments */
.navbar-toggler {
  border-color: rgba(255,255,255,0.1);
}

@media (max-width: 992px) {
  .hero-section h1 {
      font-size: 2.5rem; /* Smaller title on smaller screens */
  }
}

/* Improved visual hierarchy */
.feature-card img {
  width: 100%;
  height: auto;
}

.feature-card {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
}

/* Footer enhancements */
footer {
  padding: 20px 0;
  font-size: 0.9rem;
  background: #0056b3; /* Darker shade for better contrast */
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
  background-color: #0056b3;
  color: white;
  text-align: center;
  padding: 10px;
}
