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

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
  background: #b3c1df;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8da2cf;
}

/* Floating card animations */
.floating-card-1 {
  animation: float-1 4s ease-in-out infinite;
}
.floating-card-2 {
  animation: float-2 5s ease-in-out infinite;
}
.floating-card-3 {
  animation: float-3 6s ease-in-out infinite;
}

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

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

@keyframes float-3 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(6px); }
}

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

/* Header scroll state */
header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

/* Selection color */
::selection {
  background: #d4a84b;
  color: #1a2744;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button ripple on hover */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}
