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

/* ── Floating stat cards ── */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(0.5deg); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.floating-card-1 { animation: float1 5s ease-in-out infinite; }
.floating-card-2 { animation: float2 4.5s ease-in-out infinite; }
.floating-card-3 { animation: float3 6s ease-in-out infinite; }
.floating-card-4 { animation: float4 4s ease-in-out infinite; }

/* ── Service cards ── */
.service-card {
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  box-shadow: 0 20px 60px rgba(91, 44, 111, 0.4);
}

/* ── Gallery items ── */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 16, 41, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ── Nav scroll state ── */
nav.scrolled {
  background: rgba(35, 16, 41, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Scroll reveal (progressive enhancement — only when JS runs) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94), transform 0.8s cubic-bezier(.25,.46,.45,.94);
  }
  .reveal.revealed {
    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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

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

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #231029; }
::-webkit-scrollbar-thumb { background: #5B2C6F; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7b3f7b; }

/* ── 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='%23a36aa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='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;
}
