/* ===== Base & Typography ===== */
*, *::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-color: rgba(163, 53, 80, 0.15);
  color: #6c2237;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fdfbf8;
}
::-webkit-scrollbar-thumb {
  background: #e5708e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a33550;
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #a33550;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled {
  background-color: rgba(254, 253, 252, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(163, 53, 80, 0.08);
}

#navbar.scrolled .nav-link {
  color: #4a4a4a;
}

/* ===== Mobile Menu ===== */
#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.active .mobile-link {
  animation: fadeUp 0.4s ease forwards;
}

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

.menu-line {
  display: block;
  transition: all 0.3s ease;
}

#menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

#menu-btn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ===== Hero Animations ===== */
.hero-subtitle {
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  animation: slideUp 0.8s ease 0.15s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-desc {
  animation: slideUp 0.8s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  animation: slideUp 0.8s ease 0.45s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-stats {
  animation: slideUp 0.8s ease 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* ===== Section Animations ===== */
.section-label {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

.section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

.section-desc {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

/* ===== Service Cards ===== */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

/* ===== Process Steps ===== */
.process-step {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}

/* ===== Button Styles ===== */
.btn-primary {
  box-shadow: 0 4px 20px rgba(163, 53, 80, 0.3);
  transition: all 0.4s ease;
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(163, 53, 80, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

/* ===== Keyframes ===== */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-active .section-label {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-active .section-title {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-active .section-desc {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-active .service-card {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-active .process-step {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a33550;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
}
