/* ============================================
   Twisted Scissors — Custom 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;
}

/* Selection */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: #f5f0e8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080f0d;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 168, 83, 0.5);
}

/* Navbar */
#navbar {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
  background: rgba(8, 15, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.menu-line {
  display: block;
}

#menuToggle.active .menu-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuToggle.active .menu-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
  width: 1.25rem;
}

/* Hero Orbs */
.hero-orb {
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  animation-delay: 0s;
}

.orb-2 {
  animation-delay: -3s;
  animation-duration: 10s;
}

.orb-3 {
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-orb {
    animation: none;
  }
  .service-card::before {
    display: none;
  }
}

/* Gallery hover */
.gallery-item {
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Form selects */
select option {
  background: #0c1a16;
  color: #f5f0e8;
}

/* Back to top */
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}
