@charset "UTF-8";

/* ==========================================================================
   Royal Hair Salon - Barbearia Odivelas
   Luxury Barber Aesthetic & Advanced Animation Stylesheet
   ========================================================================== */

:root {
  --gold-primary: #d4af37;
  --gold-light: #f6e27a;
  --gold-dark: #aa771c;
  --gold-gradient: linear-gradient(135deg, #f6e27a 0%, #d4af37 50%, #aa771c 100%);
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --bg-deep: #08090b;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(28, 31, 41, 0.85);
  --border-subtle: rgba(212, 175, 55, 0.18);
  --border-active: rgba(212, 175, 55, 0.6);
  
  --barber-red: #e63946;
  --barber-blue: #1d3557;
  --barber-light-blue: #457b9d;
  --barber-white: #f1faee;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #08090b;
}
::-webkit-scrollbar-thumb {
  background: #2a2c38;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Typography Helpers */
.font-royal {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

.font-display {
  font-family: 'Syne', sans-serif;
}

.font-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Gold Text Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff 0%, #f6e27a 35%, #d4af37 70%, #aa771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-pure {
  color: #d4af37;
}

/* Glassmorphism Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-active);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px var(--gold-glow);
}

/* Luxury Button */
.btn-royal-gold {
  position: relative;
  background: var(--gold-gradient);
  color: #08090b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-royal-gold::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
}

.btn-royal-gold:hover::before {
  left: 120%;
}

.btn-royal-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.55);
}

.btn-royal-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: transparent;
  color: #f6e27a;
  border: 1px solid var(--gold-primary);
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: #f6e27a;
  color: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

/* ==========================================================================
   Rotating 3D Barber Pole
   ========================================================================== */
.barber-pole-container {
  width: 42px;
  height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.barber-pole-cap {
  width: 46px;
  height: 14px;
  background: linear-gradient(180deg, #f6e27a 0%, #aa771c 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), inset 0 1px 1px #fff;
  z-index: 2;
}

.barber-pole-cap.bottom {
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(0deg, #f6e27a 0%, #aa771c 100%);
}

.barber-pole-glass {
  width: 32px;
  height: 112px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 2px 0 4px rgba(255, 255, 255, 0.4),
              inset -2px 0 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.barber-pole-stripes {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 300px;
  background: repeating-linear-gradient(
    -45deg,
    #e63946,
    #e63946 12px,
    #ffffff 12px,
    #ffffff 24px,
    #1d3557 24px,
    #1d3557 36px,
    #ffffff 36px,
    #ffffff 48px
  );
  animation: spinBarberPole 3.5s linear infinite;
}

@keyframes spinBarberPole {
  0% { transform: translateY(0); }
  100% { transform: translateY(96px); }
}

/* ==========================================================================
   Animated Scissor Snipping Hero Visual
   ========================================================================== */
.scissors-interactive-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scissors-orbit-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  animation: rotateClockwise 30s linear infinite;
}

.scissors-orbit-ring-inner {
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: rotateCounterClockwise 20s linear infinite;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* The Snip Action SVG */
.scissor-blade-top {
  transform-origin: 160px 180px;
  animation: snipTop 1.4s ease-in-out infinite;
}

.scissor-blade-bottom {
  transform-origin: 160px 180px;
  animation: snipBottom 1.4s ease-in-out infinite;
}

@keyframes snipTop {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(-16deg); }
  60% { transform: rotate(4deg); }
  75% { transform: rotate(-4deg); }
  85% { transform: rotate(0deg); }
}

@keyframes snipBottom {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(16deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
  85% { transform: rotate(0deg); }
}

/* Hair strands falling animation on hero */
.hair-cut-spark {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #f6e27a 0%, rgba(212, 175, 55, 0) 70%);
}

/* ==========================================================================
   Before / After Interactive Fade Slider
   ========================================================================== */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 30px -5px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #08090b;
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.before-after-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

.before-after-overlay .before-after-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.before-after-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #d4af37;
  z-index: 20;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.9);
}

.before-after-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #08090b;
  border: 2px solid #d4af37;
  color: #f6e27a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.6);
  cursor: ew-resize;
  pointer-events: auto;
}

.before-after-badge {
  position: absolute;
  top: 16px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(8, 9, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 15;
  pointer-events: none;
  user-select: none;
}

.before-after-badge.before {
  left: 16px;
  color: #e5e7eb;
}

.before-after-badge.after {
  right: 16px;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   Sound Wave Animation for ASMR audio toggle
   ========================================================================== */
.sound-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.sound-bar {
  width: 3px;
  background-color: #d4af37;
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.sound-active .sound-bar:nth-child(1) { animation: soundWave 0.8s ease-in-out infinite; }
.sound-active .sound-bar:nth-child(2) { animation: soundWave 1.1s ease-in-out 0.2s infinite; }
.sound-active .sound-bar:nth-child(3) { animation: soundWave 0.9s ease-in-out 0.4s infinite; }
.sound-active .sound-bar:nth-child(4) { animation: soundWave 1.2s ease-in-out 0.1s infinite; }

@keyframes soundWave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

/* ==========================================================================
   Hair Canvas Background
   ========================================================================== */
#hairCuttingCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Glowing Neon Elements */
.neon-glow-gold {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.glow-pill {
  position: relative;
}
.glow-pill::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gold-gradient);
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
}

/* Pulse animation for live indicators */
@keyframes royalPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse-gold {
  animation: royalPulse 2.5s infinite;
}

/* Gallery Hover Zoom & Overlay */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0) 30%, rgba(8, 9, 11, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Modal Transitions */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-overlay.hidden-modal,
.modal-overlay.hidden,
.hidden-modal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.modal-overlay.hidden-modal .modal-content,
.modal-overlay.hidden .modal-content {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
}

/* Service Tab active styles */
.tab-btn.active {
  background: var(--gold-gradient);
  color: #08090b;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Tooltip & interactive scissors cursor effect */
.scissors-cursor-active {
  cursor: crosshair;
}
/* ==========================================================================
   Light Mode Overrides
   ========================================================================== */
body.light-mode {
  background-color: #fafafa !important;
  color: #111111 !important;
}
body.light-mode .bg-\[\#0a0b0f\],
body.light-mode .bg-neutral-950,
body.light-mode .bg-neutral-900,
body.light-mode .bg-neutral-900\/90,
body.light-mode .bg-black {
  background-color: #ffffff !important;
}
body.light-mode .bg-neutral-800 {
  background-color: #f3f4f6 !important;
}
body.light-mode .text-white {
  color: #111111 !important;
}
body.light-mode .text-neutral-400,
body.light-mode .text-neutral-300 {
  color: #4b5563 !important;
}
body.light-mode .border-neutral-900,
body.light-mode .border-neutral-800,
body.light-mode .border-neutral-700,
body.light-mode .border-white\/10 {
  border-color: #e5e7eb !important;
}
body.light-mode .glass-panel {
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}
body.light-mode .shadow-\[0_20px_50px_rgba\(0\,0\,0\,0\.5\)\] {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}
