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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #7f1136;
  color: #fefcf8;
}

/* === NAVBAR === */
#navbar {
  background: rgba(254, 252, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(127, 17, 54, 0.08);
}

#navbar.scrolled {
  background: rgba(254, 252, 248, 0.95);
  box-shadow: 0 4px 30px rgba(127, 17, 54, 0.08);
}

/* === HERO === */
.clip-diagonal {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
}

/* === SCROLL INDICATOR === */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* === SERVICE CARDS === */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 120px;
  font-weight: 700;
  color: rgba(127, 17, 54, 0.06);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* === SERVICE LABEL === */
.service-label {
  position: relative;
  display: inline-block;
}

.service-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #7f1136;
  vertical-align: middle;
  margin-right: 10px;
}

/* === HERO ANIMATION === */
.hero-badge {
  animation: fadeInUp 0.8s ease forwards;
}

/* === MOBILE MENU === */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.revealed {
    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; }
}

/* For browsers that support prefers-reduced-motion, content is always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === BUTTON HOVER EFFECTS === */
button[type="submit"],
a[href="#contact"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::after,
a[href="#contact"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

button[type="submit"]:active::after,
a[href="#contact"]:active::after {
  width: 300px;
  height: 300px;
}

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

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fefcf8;
}

::-webkit-scrollbar-thumb {
  background: #f9cdd7;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ec688e;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .clip-diagonal {
    clip-path: none;
    opacity: 0.3;
  }
}
