/* Custom utility classes and animations not covered by Tailwind */

/* Animation Keyframes */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

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

/* Loading Screen */
#loading-screen {
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

.loading-spinner {
  border: 2px solid #f0f0f0;
  border-top: 2px solid #007bff; /* blue-600 */
  animation: spin 1s linear infinite;
}

/* Section Title Underline */
.section-title-underline {
  position: relative;
}

.section-title-underline::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #007bff; /* blue-600 */
}

/* Scroll Animation (JS will manage opacity and transform) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom classes for JS interactions */
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hamburger toggle animation for the bars */
#hamburger.active .bar:nth-child(2) { opacity: 0; }
#hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu slide-in (overrides Tailwind's left-full) */
#nav-menu.active {
    left: 0 !important;
}

/* Utility Functions Notification styles (as they are injected via JS) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.notification.success {
    background-color: #28a745;
}
.notification.error {
    background-color: #dc3545;
}
.notification-active {
    transform: translateX(0);
}