/* ═══════════════════════════════════════
   ALSALEM DENTAL CENTER — style.css
   Dark luxury aesthetic · Cairo + Playfair
═══════════════════════════════════════ */

:root {
  --primary:   #4cc9f0;
  --secondary: #4361ee;
  --gold:      #c9a84c;
  --bg:        #04090f;
  --bg2:       #070e1a;
  --glass:     rgba(255,255,255,0.05);
  --glass-b:   rgba(255,255,255,0.09);
  --text:      #e8f4fd;
  --muted:     #8da5ba;
  --radius:    20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  direction: rtl;
}

/* ══════════════════════════════════
   LOADER
══════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-tooth {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 0 40px rgba(76,201,240,.5);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(76,201,240,.5); }
  50%       { transform: scale(1.1); box-shadow: 0 0 60px rgba(76,201,240,.8); }
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  animation: loadBar 1.4s ease forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

.loader-text {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
}

/* ══════════════════════════════════
   PARTICLES CANVAS
══════════════════════════════════ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════
   BACKGROUND
══════════════════════════════════ */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(4,9,15,.88) 0%,
      rgba(4,9,15,.75) 50%,
      rgba(4,9,15,.93) 100%
    ),
    url('./bg-image.jpeg') center center / cover no-repeat;
  z-index: -1;
}

/* ══════════════════════════════════
   TICKER
══════════════════════════════════ */
.ticker-wrap {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  overflow: hidden;
  padding: 10px 0;
  direction: ltr;
}

.ticker {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.ticker span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

.ticker-dot {
  color: rgba(255,255,255,.6) !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  position: relative;
  z-index: 5;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Logo Badge ── */
.logo-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  justify-content: center;
}

.logo-ring {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  animation: rotateBorder 4s linear infinite;
}

.logo-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes rotateBorder {
  to { filter: hue-rotate(360deg); }
}

.logo-icon {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 25px rgba(76,201,240,.4);
}

.logo-text {
  text-align: right;
  line-height: 1.2;
}

.logo-en {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 4px;
}

.logo-ar {
  display: block;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ── Clinic Name ── */
.clinic-name {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-en {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  direction: ltr;
  letter-spacing: 1px;
}

.name-ar {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--muted);
}

/* ── Coming Soon ── */
.coming-wrapper {
  margin-bottom: 24px;
}

.coming-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 12vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 6px;
  direction: ltr;
  display: block;

  background: linear-gradient(180deg,
    #ffffff 0%,
    #a8e6ff 35%,
    #4cc9f0 65%,
    #0099dd 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.c-letter {
  display: inline-block;
  animation: letterFloat 3s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes letterFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  from { filter: drop-shadow(0 0 12px rgba(76,201,240,.4)); }
  to   { filter: drop-shadow(0 0 35px rgba(76,201,240,.8)); }
}

.coming-ar {
  font-size: clamp(22px, 5vw, 42px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 8px;
  margin-top: -4px;
}

/* ── Description ── */
.hero-desc {
  font-size: 17px;
  line-height: 2;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 24px;
}

.desc-en {
  font-size: 14px;
  color: rgba(141,165,186,.7);
  font-style: italic;
}

/* ── Ornament ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.orn-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary));
}

.orn-line:last-child {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.orn-icon {
  color: var(--primary);
  font-size: 18px;
}

/* ── Buttons ── */
.buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity .35s;
  background: rgba(255,255,255,.12);
}

.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-4px) scale(1.04); }

.btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btn span small {
  font-size: 11px;
  font-weight: 400;
  opacity: .75;
  direction: ltr;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 25px rgba(76,201,240,.35);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  box-shadow: 0 6px 25px rgba(37,211,102,.3);
}

.btn i { font-size: 20px; }

/* ── Social ── */
.social-icons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
}

.social-icons a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  transition: all .35s;
  backdrop-filter: blur(10px);
}

.social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(76,201,240,.4);
}

/* ── Stats Strip ── */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 22px 40px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(14px);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.stat-label small {
  font-size: 11px;
  opacity: .7;
  direction: ltr;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.1);
}

/* ══════════════════════════════════
   BRANCHES
══════════════════════════════════ */
.branches {
  padding: 80px 20px 100px;
  position: relative;
  z-index: 5;
}

.section-header {
  text-align: center;
  margin-bottom: 55px;
}

.section-tag {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 50px;
  background: rgba(76,201,240,.12);
  border: 1px solid rgba(76,201,240,.25);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  direction: ltr;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  direction: ltr;
}

.branches-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.branch-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(14px);
  overflow: hidden;
  cursor: default;
  transition: all .4s ease;
}

.branch-card:hover {
  transform: translateY(-8px);
  border-color: rgba(76,201,240,.4);
  background: rgba(76,201,240,.07);
}

.branch-card:hover .branch-glow {
  opacity: 1;
}

.branch-card:hover .branch-num {
  color: var(--primary);
}

.branch-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76,201,240,.06), transparent);
  opacity: 0;
  transition: opacity .4s;
}

/* shimmer */
.branch-card::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transition: left .6s;
}

.branch-card:hover::before { left: 100%; }

.branch-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  position: absolute;
  top: 12px;
  left: 14px;
  direction: ltr;
  transition: color .3s;
}

.branch-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(76,201,240,.3);
  position: relative;
  z-index: 1;
}

.branch-info {
  position: relative;
  z-index: 1;
}

.branch-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.branch-info p {
  font-size: 13px;
  color: var(--muted);
  direction: ltr;
}

/* ══════════════════════════════════
   SERVICES TEASER
══════════════════════════════════ */
.services-teaser {
  position: relative;
  z-index: 5;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}

.services-inner {
  text-align: center;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  direction: ltr;
}

.services-scroll {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  animation: scrollPills 20s linear infinite;
  width: max-content;
  padding-bottom: 4px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.service-pill i {
  color: var(--primary);
  font-size: 10px;
}

@keyframes scrollPills {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 32px 20px;
}

.footer-inner {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.footer-logo i { font-size: 18px; }

.footer-copy {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  flex: 1;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: all .3s;
}

.footer-social a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* ══════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {

  .logo-badge { flex-direction: column; gap: 10px; }
  .logo-text { text-align: center; }

  .name-en { font-size: 26px; }
  .name-ar { font-size: 20px; }

  .coming-title { font-size: clamp(48px, 14vw, 80px); letter-spacing: 2px; }
  .coming-ar { font-size: 28px; letter-spacing: 4px; }

  .hero-desc { font-size: 15px; }

  .stats-strip { gap: 18px; padding: 18px 22px; }
  .stat-number { font-size: 28px; }

  .branches-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .btn { padding: 13px 24px; font-size: 15px; }
}

@media (max-width: 480px) {
  .branches-grid { grid-template-columns: 1fr; }
  .stats-strip { gap: 12px; padding: 16px 18px; }
  .stat-divider { height: 35px; }
}
