/* Custom CSS for PediaBP by AMF */

/* Custom scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
*:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Custom selection */
::selection {
  background-color: #3b82f6;
  color: white;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Apply animations */
.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-pulse-blue {
  animation: pulse 2s infinite;
}

/* Custom form input focus styles */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  border-color: #3b82f6;
}

/* Custom transitions */
.transition {
  transition: all 0.3s ease;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-hover-grow {
  transition: transform 0.3s ease;
}

.btn-hover-grow:hover {
  transform: scale(1.05);
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.active {
  max-height: 500px;
  opacity: 1;
}

/* Feature card hover effects */
.feature-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: #ebf5ff;
}

/* Custom section spacing for smaller screens */
@media (max-width: 768px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Make sure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Custom hero section gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #f0f9ff 100%);
}

/* Custom top border for sections */
.section-border-top {
  border-top: 1px solid #e2e8f0;
}

/* Custom vertical divider for contact section */
.vertical-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
}

/* Custom underline animation for navigation links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}
