/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── Animations ── */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(0.5deg); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-0.5deg); }
}

.floating-card { animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.card-1 { animation: float1 5s infinite; }
.card-2 { animation: float2 6s infinite; }
.card-3 { animation: float3 4.5s infinite; }
.card-4 { animation: float4 5.5s infinite; }

/* ── Nav ── */
#nav { background: transparent; }
#nav.scrolled {
  background: rgba(42, 16, 25, 0.92);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(140, 58, 92, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Mobile menu ── */
.mobile-link { display: block; }
.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 24px; margin-left: 0; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #2a1019; }
::-webkit-scrollbar-thumb { background: #5c263c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8c3a5c; }

/* ── Selection ── */
::selection { background: rgba(255, 190, 0, 0.3); color: #fff; }

/* ── Form focus styles ── */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 190, 0, 0.15);
}

/* ── Smooth image loading ── */
img { image-rendering: auto; }

/* ── Print ── */
@media print {
  #nav, #contacte, .floating-card { display: none; }
  body { background: white; color: black; }
}
