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

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* ===== NAVBAR SCROLL EFFECT ===== */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(10, 37, 64, 0.08);
}

nav.scrolled .font-heading,
nav.scrolled .font-body {
  color: #0A2540 !important;
}

nav.scrolled .mobile-link {
  color: #0A2540 !important;
}

nav.scrolled #menuIconOpen,
nav.scrolled #menuIconClose {
  stroke: #0A2540 !important;
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
  color: #00B892 !important;
  padding-left: 8px;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: #00D4AA;
  color: #0A2540;
}

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

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

::-webkit-scrollbar-thumb {
  background: #00D4AA;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00B892;
}

/* ===== FORM STYLES ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
}

/* ===== BUTTON HOVER GLOW ===== */
a:hover {
  transition: all 0.3s ease;
}

/* ===== IMAGE LOADING ===== */
img {
  background-color: #E8EDF5;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
}
