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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR SCROLL ===== */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(253, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 26, 43, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
  box-shadow: 0 4px 24px rgba(139, 26, 43, 0.1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  z-index: 50;
  background: rgba(253, 248, 246, 0.98);
  backdrop-filter: blur(16px);
}

.mobile-menu-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(139, 26, 43, 0.08);
  transition: color 0.2s ease;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(139, 26, 43, 0.08);
  background: #fdf8f6;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139, 26, 43, 0.12);
  border-color: rgba(139, 26, 43, 0.2);
}

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(139, 26, 43, 0.15);
}

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

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 26, 43, 0.1);
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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