/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

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

.float-card-1 {
  animation: float1 4s ease-in-out infinite;
}

.float-card-2 {
  animation: float2 5s ease-in-out infinite;
  animation-delay: 1s;
}

.float-card-3 {
  animation: float3 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

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

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

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

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal:nth-child(5) { transition-delay: 0.25s; }
.reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  box-shadow: 0 4px 30px rgba(15, 31, 51, 0.08);
}

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

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

/* ===== SELECTION ===== */
::selection {
  background: color-mix(in srgb, #df5528 80%, white);
  color: white;
}

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

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

::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, #df5528 50%, #e4a74e);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #df5528;
}
