/* Base & Utilities */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

/* Navigation */
.nav-header {
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

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

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

.mobile-link {
  position: relative;
  padding-left: 0;
}

/* Hero Animations */
.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

.hero-image > * {
  opacity: 0;
  transform: translateX(24px);
  animation: fadeLeft 0.7s ease forwards;
  animation-delay: 0.3s;
}

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

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Method Cards */
.method-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.method-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery Items */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

/* Scroll-triggered animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Pulse animation for CTA badge */
@keyframes pulse-soft {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(224, 122, 95, 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(224, 122, 95, 0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9a9fb0;
}

/* Selection color */
::selection {
  background: #ffd5c7;
  color: #3d405b;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}
