/* Custom styles for Diamond Design Group */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf8f2;
}
::-webkit-scrollbar-thumb {
  background: #c5dfb8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9cc48a;
}

/* Hero entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-badge {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-trust {
  animation: fadeIn 1s ease-out 0.6s both;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 252, 248, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Service card stagger */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gallery image hover */
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Selection color */
::selection {
  background: #c5dfb8;
  color: #2b4523;
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid #548a42;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduce motion for accessibility */
@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;
  }
  .reveal, .service-card {
    opacity: 1;
    transform: none;
  }
}
