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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #E8605C;
  color: white;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Hero ===== */
#hero {
  background: linear-gradient(135deg, #faf5f0 0%, #fff8f6 50%, #f5f0eb 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 96, 92, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 96, 92, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* ===== Gallery ===== */
#gallery .group img {
  will-change: transform;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Back to Top ===== */
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop {
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* ===== Mobile Menu ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Form ===== */
#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 96, 92, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .service-card {
    padding: 1.5rem !important;
  }

  #hero .order-1 {
    order: 2 !important;
  }

  #hero .order-2 {
    order: 1 !important;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.25rem;
  }

  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
