/* ── Base & Utilities ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #faf5ff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0a1e;
}
::-webkit-scrollbar-thumb {
  background: #4a1d52;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5e2a68;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* ── Service Cards ── */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Floating Cards ── */
.floating-card-1 {
  animation: float 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float 5s ease-in-out 1s infinite;
}
.floating-card-3 {
  animation: float 7s ease-in-out 0.5s infinite;
}

/* ── Reveal on Scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

/* ── Navbar Transition ── */
.nav-scrolled {
  background: rgba(26, 10, 30, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 29, 82, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Image Hover ── */
.group img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Button Ripple ── */
button, a {
  position: relative;
  overflow: hidden;
}

/* ── Form Focus States ── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ── Smooth Image Loading ── */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* ── Mobile Menu Animation ── */
#mobile-menu {
  animation: fadeIn 0.3s ease;
}

/* ── Decorative Lines ── */
.deco-line {
  position: absolute;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(251, 191, 36, 0.2), transparent);
}
