/* ===== Base & Utilities ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(29, 184, 169, 0.2);
  color: #0A2540;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
  background: #bcccdc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9fb3c8;
}

/* ===== Fade-in Animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 100ms; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 200ms; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 300ms; }

/* ===== Nav Transition ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1DB8A9;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* ===== Mobile Menu Animation ===== */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
  transition: all 0.2s ease;
}

/* ===== Hero Image Float ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===== Button Focus ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #1DB8A9;
  outline-offset: 2px;
}

/* ===== Print ===== */
@media print {
  nav, #contact-form-wrapper, .fade-up { display: none; }
  body { color: #000; }
}
