/* === BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* === NAV === */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* === FLOATING CARDS === */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* === MENU TABS === */
.menu-tab {
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-tab.active {
  background: white;
  color: #0d9488;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.menu-tab:hover:not(.active) {
  color: #475569;
  background: rgba(255,255,255,0.5);
}

/* === SCROLL REVEAL === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === MOBILE MENU === */
.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.mobile-link:hover {
  background: #f0fdfa;
  color: #0d9488;
}

/* === MOBILE MENU ANIMATION === */
#mobileMenu {
  animation: slideDown 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  #hero h1 { font-size: 2.75rem; }
  .floating-card { animation: none; }
}

/* === FOCUS === */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* === SELECTION === */
::selection {
  background: #ccfbf1;
  color: #134e4a;
}
