/* =========================================
   Barber Bougsni — Soft 3D Glassmorphism UI
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --blob-purple: #a78bfa;
  --blob-orange: #fb923c;
  --blob-green:  #34d399;
  --blob-pink:   #f472b6;
  --blob-yellow: #fbbf24;

  --bg:          #0e0c15;
  --glass-bg:    rgba(255,255,255,0.06);
  --glass-border:rgba(255,255,255,0.12);
  --glass-light: rgba(255,255,255,0.10);
  --text-1:      #f1f0f5;
  --text-2:      #a09db8;
  --text-3:      #6d6b84;
  --primary:     #a78bfa;
  --primary-glow:rgba(167,139,250,0.35);
  --success:     #34d399;
  --error:       #f87171;

  --r-sm:  14px;
  --r-md:  22px;
  --r-lg:  36px;
  --r-xl:  50px;

  --shadow-glass: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  --shadow-btn:   0 4px 20px rgba(167,139,250,0.4);
  --shadow-card:  0 20px 60px rgba(0,0,0,0.4);

  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,h2,h3,h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
img { display: block; max-width: 100%; }

/* ---- Noise Texture Overlay ---- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* ---- Animated Gradient Blobs ---- */
.blob-container {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: blobFloat 18s ease-in-out infinite;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--blob-purple), transparent 70%);
  top: -150px; left: -150px;
  animation-duration: 20s;
}
.blob-2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, var(--blob-orange), transparent 70%);
  top: 40%; right: -120px;
  animation-duration: 24s; animation-delay: -6s;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--blob-green), transparent 70%);
  bottom: -100px; left: 30%;
  animation-duration: 22s; animation-delay: -12s;
}
.blob-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--blob-pink), transparent 70%);
  top: 20%; left: 40%;
  animation-duration: 26s; animation-delay: -4s;
}
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-30px,40px) scale(0.95); }
}

/* ---- Main Layout wrapper ---- */
.page-wrapper {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(14,12,21,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--text-1);
  display: flex; align-items: center; gap: .6rem;
  letter-spacing: -0.02em;
}
.brand i { color: var(--primary); font-size: 1.4rem; }
.brand-dot { color: var(--primary); }

.lang-switcher {
  display: flex; gap: .25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 99px; padding: .3rem;
}
.lang-btn {
  padding: .28rem .85rem;
  border-radius: 99px;
  font-size: .78rem; font-weight: 600;
  color: var(--text-2);
  transition: all .25s ease;
  cursor: pointer;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

/* ---- Mobile bottom nav ---- */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  padding: .75rem 1.5rem;
  background: rgba(14,12,21,0.85);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
}
.bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
}
.bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  color: var(--text-3); font-size: .68rem; font-weight: 600;
  background: none; border: none; cursor: pointer;
  transition: color .2s;
}
.bottom-nav-btn i { font-size: 1.4rem; }
.bottom-nav-btn.active { color: var(--primary); }

/* ---- Hero Split Layout ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: calc(100vh - var(--nav-h));
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* Hero left */
.hero-left {
  display: flex; flex-direction: column;
  gap: 2rem;
  position: relative;
}
.hero-blob-glow {
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(167,139,250,0.25), transparent 65%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  font-size: .8rem; font-weight: 600;
  color: var(--primary);
  width: fit-content;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--blob-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-sub {
  color: var(--text-2); font-size: 1.05rem;
  max-width: 420px; line-height: 1.7;
}

/* Floating 3D scissors icon */
.hero-3d-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-3d-icon {
  font-size: 9rem;
  color: transparent;
  background: linear-gradient(135deg, var(--blob-purple), var(--blob-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 30px rgba(167,139,250,0.5));
  animation: floatIcon 4s ease-in-out infinite;
  display: block; text-align: center;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--blob-purple), transparent);
  opacity: .3;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: orbPulse 3s ease-in-out infinite;
}
.hero-orb-2 {
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--blob-orange), transparent);
  opacity: .6;
  top: 10%; right: 10%;
  animation: floatIcon 3.5s ease-in-out infinite reverse;
}

@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes orbPulse {
  0%,100% { opacity: .25; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: .40; transform: translate(-50%,-50%) scale(1.15); }
}

/* Hero right */
.hero-right { display: flex; flex-direction: column; gap: 1.25rem; }

/* ---- Glass Card ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  padding: 1.75rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-1);
}
.card-badge {
  font-size: .72rem; font-weight: 700;
  padding:.3rem .8rem;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 99px;
  border: 1px solid rgba(167,139,250,0.3);
}

/* ---- Service Row Item ---- */
.service-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all .25s ease;
  margin-bottom: .6rem;
}
.service-row:last-child { margin-bottom: 0; }
.service-row:hover {
  background: rgba(167,139,250,0.1);
  border-color: rgba(167,139,250,0.3);
  transform: translateX(4px);
}
.service-row.selected {
  background: rgba(167,139,250,0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.3);
}
.service-icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blob-purple), var(--blob-orange));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(167,139,250,0.35);
}
.service-text { flex: 1; }
.service-name {
  font-family: 'Sora', sans-serif;
  font-size: .95rem; font-weight: 600;
  color: var(--text-1);
}
.service-meta {
  font-size: .78rem; color: var(--text-2); margin-top: .1rem;
}
.service-add-btn {
  width: 32px; height: 32px;
  border-radius: 99px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,.3);
  color: var(--primary);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
  cursor: pointer;
}
.service-row.selected .service-add-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; width: 100%;
  padding: .95rem 1.5rem;
  border-radius: var(--r-md);
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: .95rem;
  letter-spacing: .01em;
  border: none; cursor: pointer;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content:''; position:absolute; inset:0;
  background: rgba(255,255,255,0); transition: background .2s;
}
.btn:active::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--blob-purple) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(167,139,250,0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--success));
  color: #fff;
  box-shadow: 0 4px 20px rgba(52,211,153,0.4);
}
.btn-success:hover { transform: translateY(-2px); }
.btn-whatsapp {
  background: linear-gradient(135deg, #128C7E, #25D366);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: .5rem;
  font-size: .82rem; font-weight: 600;
  color: var(--text-2); letter-spacing: .03em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  padding: .9rem 1.1rem;
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
  color-scheme: dark;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-3); }

/* ---- Step indicators ---- */
.step-indicator {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.8rem;
  justify-content: center;
}
.step-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--glass-border);
  transition: all .3s ease;
}
.step-dot.active {
  width: 28px; background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}
.step-dot.done { background: var(--success); }

/* ---- Time Slots ---- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .6rem; margin-top: .75rem;
}
.slot-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-1);
  padding: .65rem .4rem;
  border-radius: var(--r-md);
  font-family: 'Sora', sans-serif;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: all .2s ease;
}
.slot-btn:hover { border-color: var(--primary); color: var(--primary); }
.slot-btn.selected {
  background: var(--primary);
  color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 14px var(--primary-glow);
}
.slot-btn:disabled {
  opacity: .35; cursor: not-allowed; text-decoration: line-through;
}

/* ---- Divider / Section title ---- */
.section-label {
  font-size: .72rem; font-weight: 700;
  color: var(--text-3); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.divider {
  height: 1px; background: var(--glass-border);
  margin: 1.25rem 0;
}

/* ---- Confirmation card ---- */
.confirm-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5rem; text-align: center;
  padding: 2rem 1rem;
}
.confirm-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,211,153,0.2), transparent);
  border: 2px solid rgba(52,211,153,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--success);
  animation: floatIcon 3s ease-in-out infinite;
}

/* ---- Footer ---- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(14,12,21,0.6);
  backdrop-filter: blur(12px);
}
.footer-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--text-1); margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.footer-logo i { color: var(--primary); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-2); font-size: .9rem; }
.footer-links a:hover { color: var(--primary); }
.copyright { color: var(--text-3); font-size: .78rem; }

/* ---- Fade-in Reveal ---- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- RTL ---- */
html[dir="rtl"] { text-align: right; }
html[dir="rtl"] .service-row:hover { transform: translateX(-4px); }

/* ---- Utility ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--blob-purple), var(--blob-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.glow-ring {
  box-shadow: 0 0 0 1px var(--primary), 0 0 20px var(--primary-glow);
}
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.25rem; }
.mt-lg { margin-top: 2rem; }
.p-sm  { padding: .75rem; }
.t2    { color: var(--text-2); }

/* ---- Hero Image ---- */
.hero-img-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
}
.hero-img-glow {
  position: absolute;
  width: 90%; height: 90%;
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.3) 0%, transparent 70%);
  filter: blur(50px);
  top: 8%; left: 5%;
  pointer-events: none; z-index: 0;
  animation: orbPulse 4s ease-in-out infinite;
}
.hero-img-frame {
  position: relative; z-index: 1;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  animation: floatIcon 6s ease-in-out infinite;
  width: 100%;
  max-width: 520px;
}
.hero-img {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
  border-radius: 32px;
  aspect-ratio: 16/9;
  object-position: center;
}
/* Floating booking badge (bottom-left overlay) */
.hero-img-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(14,12,21,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: .6rem 1rem .6rem .75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: floatIcon 5s ease-in-out infinite reverse;
}
/* Floating live pill (top-right overlay) */
.hero-img-live {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(14,12,21,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .75rem; font-weight: 700;
  color: var(--success);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  animation: floatIcon 4s ease-in-out infinite;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--success);
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:.4; transform: scale(0.7); }
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 5rem;
    min-height: auto; gap: 1.5rem;
  }
  .hero-left { text-align: center; align-items: center; }
  .hero-sub  { max-width: 100%; }
  .hero-3d-wrap { min-height: 160px; }
  .hero-3d-icon { font-size: 6rem; }
  .bottom-nav { display: block; }
  .site-footer { padding-bottom: 100px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .glass-card { padding: 1.25rem; border-radius: var(--r-md); }
  .hero-title { font-size: 2rem; }
  .btn { padding: .85rem 1.25rem; }
}
