/* ============================================
   Intimate Ink Tattoo Studio — Custom Styles
   ============================================ */

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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 164, 92, 0.3);
  color: #f0f0f0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05111c;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 164, 92, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 164, 92, 0.5);
}

/* ============================================
   Header / Navigation
   ============================================ */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
  background: rgba(5, 17, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8A45C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #C8A45C;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* Menu toggle animation */
#menu-toggle.active .menu-line:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
  bottom: 50%;
  transform: rotate(-45deg);
}

/* ============================================
   Hero — Floating Cards
   ============================================ */
.floating-card {
  animation: floatA 6s ease-in-out infinite;
}

.floating-card-2 {
  animation: floatB 7s ease-in-out infinite;
}

.floating-card-3 {
  animation: floatC 5.5s ease-in-out infinite;
}

.floating-card-4 {
  animation: floatD 6.5s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes floatC {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes floatD {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.5deg); }
}

/* Scroll line animation */
.scroll-line {
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
  .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
  .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
  .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* ============================================
   Form Styles
   ============================================ */
select option {
  background: #091e30;
  color: #f0f0f0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  #hero {
    min-height: 100vh;
    padding-top: 80px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero {
    padding-top: 100px;
  }
}
