/* ============================================
   The Crimson Candle Tattoo and Art Collection
   Premium Dark Luxury Styles
   ============================================ */

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(217, 160, 46, 0.1);
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
}

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(196, 48, 48, 0.2);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 40, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-card {
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 160, 46, 0.3);
}

/* ============================================
   Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .testimonial-card,
  .gallery-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  }
}

/* Scroll reveal — below the fold only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal.revealed {
    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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(217, 160, 46, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(217, 160, 46, 0.1);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: rgba(196, 48, 48, 0.35);
  color: #f7f7f8;
}

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

::-webkit-scrollbar-track {
  background: #12121a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #4a4a60;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 4.5rem;
  }
}
