/* ===== CUSTOM STYLES ===== */

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #ecfdf5;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #059669;
  margin: 4px auto 0;
  transition: width 0.25s ease;
}
.mobile-link:hover::after,
.mobile-link:focus::after {
  width: 60%;
}

/* Floating cards animation */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}
@keyframes float-4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.floating-card { animation: float-1 4s ease-in-out infinite; }
.floating-card-2 { animation: float-2 5s ease-in-out infinite; }
.floating-card-3 { animation: float-3 4.5s ease-in-out infinite; }
.floating-card-4 { animation: float-4 5.5s ease-in-out infinite; }

/* Scroll reveal — progressive enhancement */
.reveal-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header scroll state */
header.scrolled {
  background: rgba(255, 254, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
  pointer-events: all;
}

/* Image hover zoom */
img {
  transition: transform 0.5s ease;
}

/* Selection */
::selection {
  background: #059669;
  color: #fff;
}
