/* === CUSTOM STYLES === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Navbar scroll state */
#nav.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 196, 165, 0.3);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

/* Card hover */
.card-hover {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
}

/* Float animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.1); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(10px); }
}
.animate-float1 { animation: float1 4s ease-in-out infinite; }
.animate-float2 { animation: float2 3.5s ease-in-out infinite; }
.animate-float3 { animation: float3 5s ease-in-out infinite; }

/* Scroll reveal (progressive enhancement — only when JS runs & user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
/* If JS is disabled or prefers-reduced-motion, content stays visible */
:not(.reveal) { /* default visible */ }

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Smooth focus visible */
:focus-visible {
  outline: 2px solid #D97757;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(217, 119, 87, 0.2);
  color: #1C1917;
}
