/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* ========== FLOATING ANIMATIONS ========== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(2deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 6s ease-in-out infinite;
}

.animate-bounce-slow {
  animation: bounce-slow 2.5s ease-in-out infinite;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-revealed="false"] {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== NAVBAR SCROLL ========== */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(13, 33, 55, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-nav.close {
  opacity: 0;
  pointer-events: none;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #7fa3cf;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5487c0;
}

/* ========== SELECTION ========== */
::selection {
  background: #7DD3C0;
  color: #0D2137;
}
