/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
  color: #f0fdf4;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1a3a5c 0%, #0a1628 100%);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: #2d4a6a;
  border: 2px solid #b8cce0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #f0f4f8;
  border-color: #8faecf;
  transform: translateY(-2px);
}

/* ── Nav ── */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(240, 253, 244, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* ── Floating Cards ── */
.floating-card {
  animation: float1 4s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 5s ease-in-out infinite;
}
.floating-card-3 {
  animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(30px);
}

/* ── Mobile Links ── */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dcfce7;
}
.mobile-link:last-child { border-bottom: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .floating-card, .floating-card-2, .floating-card-3 { animation: none; }
  .reveal:not(.revealed) { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  img { transition: none; }
}

/* ── Focus visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
  border-radius: 4px;
}
