/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-float { animation: float 5s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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);
}

/* ── Service Cards ── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C8961E, #E8B84B);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::before {
  transform: scaleX(1);
}

/* ── Testimonial Cards ── */
.testimonial-card {
  position: relative;
  overflow: hidden;
}
.testimonial-card::after {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  color: rgba(200, 150, 30, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* ── Navbar ── */
#navbar.scrolled {
  background: rgba(9, 18, 48, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Mobile Menu ── */
.mobile-link {
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mobile-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-link:nth-child(2) { animation-delay: 0.1s; }
mobile-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-link:nth-child(4) { animation-delay: 0.2s; }

/* ── Menu Button Animation ── */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #091230; }
::-webkit-scrollbar-thumb { background: #C8961E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #E8B84B; }

/* ── Selection ── */
::selection { background: rgba(200, 150, 30, 0.3); color: #fff; }

/* ── Form 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='%23C8961E' stroke-width='2.5' 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 1rem center;
  padding-right: 2.5rem;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #C8961E;
  outline-offset: 2px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .font-800 { font-weight: 700; }
}
