/* Custom styles for New Vision Construction */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #be1f3d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9f102d;
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(159, 16, 45, 0.08);
}

/* Service card hover lift */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Gallery item */
.gallery-item {
  cursor: pointer;
}

/* Testimonial card */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(159, 16, 45, 0.1);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animations (progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero text gradient accent */
h1 .italic {
  font-style: italic;
  background: linear-gradient(135deg, #f6a6b8 0%, #dc3d5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Prevent layout shift on images */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Mobile menu active state */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #be1f3d;
  transition: width 0.2s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Button ripple effect */
button, a {
  position: relative;
  overflow: hidden;
}

/* Selection color */
::selection {
  background: #fce7eb;
  color: #6e1228;
}
