/* ============================================
   A Perfect Image Salon — Custom Styles
   ============================================ */

/* Base & Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection Color */
::selection {
  background: rgba(13, 148, 136, 0.4);
  color: #fff;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   Reveal on Scroll
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ============================================
   Navigation
   ============================================ */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #d4a017, #f0c040);
  transition: width 0.3s ease;
}

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

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

.mobile-nav-link {
  transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
  transform: scale(1.05);
}

/* Hamburger Animation */
#bar1.open {
  transform: translateY(4px) rotate(45deg);
}

#bar2.open {
  opacity: 0;
  transform: scaleX(0);
}

#bar3.open {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Navbar Scroll State
   ============================================ */

.navbar-scrolled {
  background: rgba(6, 13, 15, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   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, #d4a017, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* ============================================
   Gallery Hover Effects
   ============================================ */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

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

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

/* ============================================
   Form Styling
   ============================================ */

select option {
  background: #132a2e;
  color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(212, 160, 23, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}

/* ============================================
   Gold Gradient Text Utility
   ============================================ */

.text-gold-gradient {
  background: linear-gradient(135deg, #d4a017, #f0c040, #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 640px) {
  h1 {
    font-size: 2.75rem !important;
  }

  h1 .italic {
    font-size: 2rem !important;
  }
}

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #060d0f;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0d9488, #d4a017);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0a7a70, #f0c040);
}
