/* Base & Reset */
*, *::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(190, 24, 93, 0.4);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
  background: #831443;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9d174d;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(10, 15, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(131, 20, 67, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Mobile menu lines 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) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Service card hover glow */
.service-card:hover {
  box-shadow: 0 20px 60px rgba(131, 20, 67, 0.15);
}

/* Gallery item */
.gallery-item {
  min-height: 200px;
}

/* Testimonial card */
.testimonial-card:hover {
  border-color: rgba(190, 24, 93, 0.3);
  box-shadow: 0 20px 60px rgba(131, 20, 67, 0.1);
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

/* 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;
  }
}

/* Gallery hover animations */
@media (prefers-reduced-motion: no-preference) {
  .gallery-item {
    overflow: hidden;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gallery-item {
    min-height: 160px;
  }
}

/* Loading state for form */
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 2px;
  border-radius: 4px;
}
