/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
  font-family: 'Inter', system-ui, sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
  background: #7B2D3B;
  border-radius: 5px;
}

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

/* Section Headers */
.section-label {
  display: block;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hero Animations */
.hero-subtitle {
  animation: slideUp 0.8s ease forwards;
}

.hero-title {
  animation: slideUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero-body {
  animation: slideUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  animation: slideUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.hero-stats {
  animation: slideUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

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

/* Service Cards */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.2);
}

/* Project Cards */
.project-card {
  overflow: hidden;
  border-radius: 0;
}

/* Navbar */
.nav-scrolled {
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
  color: #2C2C2C;
}

.nav-scrolled .menu-line {
  background: #2C2C2C;
}

/* Mobile Menu */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
  transform: translateX(8px);
}

/* Menu Toggle Animation */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Testimonial Cards */
.testimonial-card {
  transition: transform 0.3s ease, background 0.3s ease;
}

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

/* Counter Animation */
.counter {
  display: inline-block;
}

/* Selection Color */
::selection {
  background: #F9A3BA;
  color: #3A141E;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  nav,
  #contact,
  .animate-bounce {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
