:root {
  --bg-main: #060709;
  --bg-card: rgba(15, 17, 23, 0.72);
  --gold-primary: #d4af37;
  --gold-light: #f8df8c;
  --text-primary: #f8fafc;
  --text-sub: #a1a1aa;
  --border-gold: rgba(212, 175, 55, 0.22);
  --glass-blur: blur(18px);
  --ease-smooth-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Cinzel", serif;
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-ar: "Tajawal", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

[dir="rtl"] {
  font-family: var(--font-ar);
}

.ambient-glow {
  position: fixed;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.09) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: -2;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999;
  transition: transform 0.08s ease-out;
}

#barber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.royal-border {
  position: relative;
  border: 1px solid var(--border-gold);
}

.royal-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-light),
    transparent
  );
  opacity: 0.8;
}

.epic-cut-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.epic-cut-overlay.active {
  visibility: visible;
  pointer-events: all;
}

.slice-wall {
  position: absolute;
  width: 50vw;
  height: 100vh;
  background: #000;
  z-index: 10;
  transition: transform 0.8s var(--ease-smooth-slow);
}

.wall-left {
  left: 0;
  transform: translateX(-100%);
}
.wall-right {
  right: 0;
  transform: translateX(100%);
}

.epic-cut-overlay.active .wall-left {
  transform: translateX(0);
}
.epic-cut-overlay.active .wall-right {
  transform: translateX(0);
}

.arm-scissors-runner {
  position: absolute;
  top: 50%;
  left: -250px;
  transform: translateY(-50%) rotate(-10deg);
  z-index: 30;
  opacity: 0;
  width: 220px;
  height: 220px;
}

.arm-scissors-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9));
}

.blade-top,
.blade-bottom {
  transform-origin: 85px 110px;
}

.epic-cut-overlay.slicing .blade-top {
  animation: chompTop 0.25s infinite alternate ease-in-out;
}
.epic-cut-overlay.slicing .blade-bottom {
  animation: chompBottom 0.25s infinite alternate ease-in-out;
}

@keyframes chompTop {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-28deg);
  }
}
@keyframes chompBottom {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(28deg);
  }
}

.epic-cut-overlay.slicing .arm-scissors-runner {
  opacity: 1;
  animation: armRunAcross 0.9s forwards var(--ease-smooth-slow);
}

@keyframes armRunAcross {
  0% {
    left: -250px;
    transform: translateY(-50%) rotate(-10deg);
  }
  50% {
    left: 45vw;
    transform: translateY(-50%) rotate(5deg) scale(1.1);
  }
  100% {
    left: 110vw;
    transform: translateY(-50%) rotate(-15deg);
  }
}

#hair-sparks-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  pointer-events: none;
}

.golden-slash-laser {
  position: absolute;
  top: 50%;
  left: -500px;
  width: 1000px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-light),
    #fff,
    transparent
  );
  opacity: 0;
  transform: translateY(-50%);
  box-shadow: 0 0 25px var(--gold-primary);
  z-index: 25;
}

.epic-cut-overlay.slicing .golden-slash-laser {
  opacity: 1;
  animation: laserSlashMove 0.7s forwards ease-out;
}

@keyframes laserSlashMove {
  0% {
    left: -500px;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100vw;
    opacity: 0;
  }
}

.scatter-target {
  transition:
    transform 1.8s var(--ease-smooth-slow),
    opacity 1.8s var(--ease-smooth-slow),
    filter 1.8s var(--ease-smooth-slow);
}

body.jumbled .scatter-target[data-scatter="top"] {
  transform: translate3d(0, -140px, 0) rotate(8deg) scale(0.85);
  opacity: 0;
  filter: blur(10px);
}

body.jumbled .scatter-target[data-scatter="center"] {
  transform: translate3d(-180px, 80px, 0) rotate(-15deg) scale(0.7);
  opacity: 0;
  filter: blur(12px);
}

body.jumbled .scatter-target[data-scatter="left"] {
  transform: translate3d(-250px, -60px, 0) rotate(18deg) scale(0.65);
  opacity: 0;
  filter: blur(15px);
}

body.jumbled .scatter-target[data-scatter="right"] {
  transform: translate3d(250px, 100px, 0) rotate(-22deg) scale(0.65);
  opacity: 0;
  filter: blur(15px);
}

body.jumbled .scatter-target[data-scatter="card1"] {
  transform: translate3d(-150px, 180px, 0) rotate(-25deg) scale(0.6);
  opacity: 0;
}

body.jumbled .scatter-target[data-scatter="card2"] {
  transform: translate3d(0px, 220px, 0) rotate(15deg) scale(0.5);
  opacity: 0;
}

body.jumbled .scatter-target[data-scatter="card3"] {
  transform: translate3d(180px, 150px, 0) rotate(-18deg) scale(0.6);
  opacity: 0;
}

body.assembled .scatter-target {
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  opacity: 1;
  filter: blur(0px);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 0;
  background: rgba(6, 7, 9, 0.7);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
  border-bottom: 1px solid var(--border-gold);
  transition: all 0.3s;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 7, 9, 0.95);
}
.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-emblem {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
}
.logo-svg {
  width: 24px;
  height: 24px;
}

.logo-text-box {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.sub-logo {
  font-size: 0.5rem;
  letter-spacing: 3px;
  color: var(--text-sub);
}
.gold-accent {
  color: var(--gold-primary);
}

.nav-menu a {
  color: var(--text-sub);
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border-gold);
  padding: 2px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  padding: 3px 7px;
  font-size: 0.7rem;
  border-radius: 12px;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

.btn-atelier {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-atelier:hover {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 60px;
  overflow: hidden;
}

.hero-bg-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-bg-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition:
    opacity 1.2s ease-in-out,
    transform 4s ease-out;
  transform: scale(1.04);
}
.hero-bg-slideshow .slide.active {
  opacity: 0.55;
  transform: scale(1);
}

.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(6, 7, 9, 0.35) 0%,
    rgba(6, 7, 9, 0.75) 100%
  );
}

.hero-card-compact {
  background: rgba(15, 17, 23, 0.65);
  backdrop-filter: var(--glass-blur);
  padding: 35px 30px;
  border-radius: 20px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
.gold-text-gradient {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--gold-primary) 50%,
    var(--gold-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtext {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--text-sub);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-primary-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #000;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary-gold:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-ghost {
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 6px;
}
.section-title,
.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.ambience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ambience-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
}
.ambience-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}
.ambience-card:hover .ambience-img {
  transform: scale(1.04);
}
.ambience-info {
  padding: 18px;
  text-align: left;
}
.ambience-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.ambience-info p {
  font-size: 0.82rem;
  color: var(--text-sub);
}

.slider-box {
  max-width: 800px;
  margin: 0 auto;
}
.ba-slider {
  position: relative;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
}
.img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.after-layer {
  background-image: url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1000&q=80");
}
.before-layer {
  background-image: url("https://images.unsplash.com/photo-1517832606299-7ae9b720a186?auto=format&fit=crop&w=1000&q=80");
  width: 50%;
  border-right: 2px solid var(--gold-primary);
}
.slider-divider {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
}
.divider-btn {
  width: 38px;
  height: 38px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
  font-weight: bold;
}
.ba-badge {
  position: absolute;
  bottom: 18px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 0.72rem;
}
.ba-badge.left {
  left: 18px;
}
.ba-badge.right {
  right: 18px;
}

.services-grid-wrapper {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 25px;
}
.services-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  padding: 18px 22px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.service-card:hover,
.service-card.selected {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}
.service-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.summary-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  padding: 24px;
  border-radius: 14px;
  height: fit-content;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.92rem;
}
.full-btn {
  width: 100%;
  margin-top: 16px;
}

.modal-services-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.srv-chip {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
}
.srv-chip.selected {
  background: var(--gold-primary);
  color: #000;
  font-weight: bold;
  border-color: var(--gold-light);
}

.modal-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.social-cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.social-item {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
}
.social-thumb {
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.social-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-primary);
  color: #000;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
}
.social-content {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.link-gold {
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 0.82rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.hours-list {
  margin-top: 16px;
}
.hour-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-date-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.date-chip {
  flex: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.date-chip.active,
.date-chip:hover {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
}
.time-slot-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  padding: 7px 4px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.time-slot-btn:hover:not(.booked) {
  background: var(--gold-primary);
  color: #000;
  font-weight: bold;
}
.time-slot-btn.selected {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
.time-slot-btn.booked {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  text-decoration: line-through;
  cursor: not-allowed;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal-card {
  background: #0c0e12;
  border-radius: 18px;
  padding: 30px;
  max-width: 460px;
  width: 90%;
  position: relative;
}
.wide-modal {
  max-width: 520px;
}
.close-x {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-sub);
}

.input-field {
  margin-bottom: 14px;
  text-align: left;
}
.input-field label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-sub);
}
.input-field input,
.input-field textarea {
  width: 100%;
  padding: 10px;
  background: #000;
  border: 1px solid var(--border-gold);
  color: #fff;
  border-radius: 8px;
  font-family: inherit;
}

.footer {
  text-align: center;
  padding: 35px 20px;
  border-top: 1px solid var(--border-gold);
  font-size: 0.82rem;
  color: var(--text-sub);
}
.footer-legal a {
  color: var(--gold-primary);
  margin: 0 10px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 2rem;
  }
  .ambience-grid,
  .services-grid-wrapper,
  .contact-card,
  .social-cards-wrapper {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
  .modal-services-chips {
    grid-template-columns: 1fr;
  }
}
