/* ===== BASE & RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR SCROLL EFFECT ===== */
.nav-scrolled {
  box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

/* ===== HERO ===== */
#hero {
  position: relative;
}

/* ===== 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, #7e22ce, #d97706);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(107, 33, 168, 0.1);
}

/* ===== FAQ ===== */
.faq-item {
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: #7e22ce;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-content {
  max-height: 300px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SCROLL REVEAL (below-fold only) ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ===== SELECTION ===== */
::selection {
  background: #7e22ce;
  color: white;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 640px) {
  .font-serif {
    word-spacing: -0.02em;
  }
}
