/* ===== CUSTOM STYLES FOR FORSAKEN TATTOO ===== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== FLOATING STAT CARDS ===== */
.stat-card {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

.stat-card:nth-child(1) {
  animation-delay: 0s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.8s;
}

.stat-card:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* ===== SERVICE CARDS ===== */
.service-card {
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* ===== GALLERY ITEMS ===== */
.gallery-item {
  will-change: transform;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

/* Default visible state for reduced-motion / no-JS */
.reveal {
  opacity: 1;
  transform: none;
}

/* ===== NAVBAR SCROLLED STATE ===== */
.navbar-scrolled {
  background: rgba(254, 253, 248, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08), 0 4px 24px rgba(4, 120, 87, 0.06);
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
  animation: slideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(4, 120, 87, 0.08);
  transition: color 0.2s ease;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover {
  color: #059669;
}

/* ===== SELECT STYLING ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' stroke='%23047857' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

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

::-webkit-scrollbar-thumb {
  background: #6ee7b7;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== PRINT ===== */
@media print {
  #navbar, #contactForm, #formSuccess {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
