/* ====== Custom Animations ====== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-out;
}

/* ====== General Transitions ====== */
.feature-card,
button {
  transition: all 0.3s ease;
}

/* ====== Hover Effects ====== */
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* ====== Counter Typography ====== */
.counter {
  font-family: "Arial", sans-serif;
  font-weight: bold;
}

/* ====== Navigation Hover Underline ====== */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #0aa0ba; /* Primary color */
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ====== Gradient Text Effect ====== */
.gradient-text {
  background: linear-gradient(45deg, #0aa0ba, #5dd2e1); /* Primary to lightest */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== Custom Scrollbar ====== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0aa0ba; /* Primary */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #045866; /* Darker */
}

/* ====== Loading Animation ====== */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
  .animate-fade-in {
    animation-duration: 0.8s;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }
}
