/* ========================================
   ALHASSOUN CENTER - Main Stylesheet
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --pink:   #E91E8C;
  --purple: #7B2D8B;
  --orange: #FF6B35;
  --yellow: #FFD700;
  --teal:   #00BCD4;
  --green:  #4CAF50;
  --dark:   #0D0D0D;
  --dark-2: #141414;
  --dark-3: #1E1E1E;
  --white:  #ffffff;
  --muted:  #888888;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  direction: rtl;
}

body.ltr { direction: ltr; }

/* ---- Custom Cursor ---- */
.cursor {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pink);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.3s;
  mix-blend-mode: screen;
}

/* ---- Navbar ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s;
}

nav.scrolled {
  padding: 10px 40px;
  background: rgba(13,13,13,0.97);
}

.logo-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: 40px;
}

.logo-wrap img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(233,30,140,0.2);
}

.lang-toggle {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 30px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(233,30,140,0.4);
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233,30,140,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.25);
  padding: 14px 34px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-3px);
}

/* ---- Section Helpers ---- */
.section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-title span {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  line-height: 1.9;
  max-width: 620px;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--pink));
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: right;
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  background: var(--dark-3);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  background: rgba(255,255,255,0.05);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 40px 60px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(233,30,140,0.4);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Footer ---- */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 60px 30px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 6px 14px;
  border-radius: 30px;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-col ul li a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  transition: all 0.3s;
  cursor: pointer;
}

.social-link:hover {
  background: rgba(233,30,140,0.2);
  border-color: rgba(233,30,140,0.4);
  color: var(--pink);
  transform: translateY(-2px);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-up {
  0%   { transform: translateY(110vh); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh); opacity: 0; }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(-50%) rotate(-3deg); }
  50%       { transform: translateY(-55%) rotate(3deg); }
}

@keyframes float-particle {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}


/* ========================================
   index.html — Page Specific
   ======================================== */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(123,45,139,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(233,30,140,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0,188,212,0.12) 0%, transparent 50%),
    var(--dark);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(233,30,140,0.15);
  border: 1px solid rgba(233,30,140,0.3);
  color: var(--pink);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(42px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 10px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.6);
  margin-bottom: 50px;
  line-height: 1.7;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.6s ease both;
}

.hero-butterfly {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  opacity: 0.08;
  animation: gentle-float 6s ease-in-out infinite;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-butterfly { text-align: center; }

.butterfly-svg {
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 0 60px rgba(233,30,140,0.3));
  animation: gentle-float 5s ease-in-out infinite;
}

.location-tags {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.location-tag {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.tag-pink   { background: rgba(233,30,140,0.1); border: 1px solid rgba(233,30,140,0.2); }
.tag-purple { background: rgba(123,45,139,0.1);  border: 1px solid rgba(123,45,139,0.2); }

.services-section {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 80px 0;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}


/* ========================================
   pages/market.html — Page Specific
   ======================================== */

.market-hero {
  min-height: 50vh;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(76,175,80,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(255,215,0,0.1) 0%, transparent 50%),
    var(--dark);
  display: flex;
  align-items: center;
  padding: 140px 60px 80px;
}

.market-badge {
  display: inline-block;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  color: var(--green);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.market-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.market-title span {
  background: linear-gradient(135deg, var(--green), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.market-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.8;
}

.market-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.market-feat {
  background: var(--dark-2);
  border: 1px solid rgba(76,175,80,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s;
}

.market-feat:hover {
  border-color: rgba(76,175,80,0.3);
  transform: translateY(-4px);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(76,175,80,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feat-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feat-desc  { font-size: 13px; color: rgba(255,255,255,0.5); }

.cta-box {
  margin-top: 60px;
  text-align: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(255,215,0,0.05));
  border: 1px solid rgba(76,175,80,0.15);
  border-radius: 24px;
}

.cta-box h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.cta-box p  { color: rgba(255,255,255,0.6); font-size: 16px; margin-bottom: 32px; }

.btn-green {
  background: linear-gradient(135deg, var(--green), #2E7D32);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(76,175,80,0.4);
}


/* ========================================
   pages/gallery.html — Page Specific
   ======================================== */

.gallery-header {
  padding: 140px 60px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-sub {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  margin-top: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 60px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover { transform: scale(1.02); z-index: 2; }

.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 3; }
.gallery-item:nth-child(6) { grid-column: span 4; }
.gallery-item:nth-child(7) { grid-column: span 8; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  width: 100%;
  height: 100%;
}

.gallery-placeholder .icon { font-size: 32px; opacity: 0.5; }

.dev-note {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}


/* ========================================
   pages/contact.html — Page Specific
   ======================================== */

.contact-page {
  padding: 140px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.contact-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-title span {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-desc {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--dark-2);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}

.contact-detail:hover {
  border-color: rgba(233,30,140,0.3);
  transform: translateX(-4px);
}

body.ltr .contact-detail:hover { transform: translateX(4px); }

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.icon-pink   { background: rgba(233,30,140,0.12); }
.icon-teal   { background: rgba(0,188,212,0.12); }
.icon-green  { background: rgba(76,175,80,0.12); }
.icon-yellow { background: rgba(255,215,0,0.12); }

.detail-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.detail-value.ltr-text {
  direction: ltr;
  text-align: right;
}

.map-box {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  height: 280px;
  background: var(--dark-3);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.map-box:hover { border-color: rgba(233,30,140,0.3); }

.map-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.map-link { color: var(--pink); font-size: 13px; }

.contact-form {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 44px 40px;
}

.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--pink);
  background: rgba(233,30,140,0.05);
  box-shadow: 0 0 0 3px rgba(233,30,140,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark-3); }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 14px;
  font-family: 'Tajawal', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,30,140,0.5);
}


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

@media (max-width: 768px) {
  /* إخفاء اللوقو على الجوال */
  .logo-wrap     { display: none; }

  /* الناف بار العلوي يصير شفاف تقريباً */
  nav {
    padding: 12px 16px;
    justify-content: flex-end;
  }

  /* الروابط — شريط سفلي ثابت */
  .nav-links {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(13,13,13,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 4px 6px;
    justify-content: space-around;
    z-index: 200;
    gap: 0;
    list-style: none;
  }
  .nav-links li  { flex: 1; }
  .nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 4px 2px;
    border-radius: 8px;
    gap: 2px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    line-height: 1.3;
  }
  .nav-links a::before {
    font-size: 18px;
    line-height: 1;
    display: block;
  }
  /* أيقونات كل رابط */
  .nav-links a[href$="index.html"]::before,
  .nav-links a[href="/"]::before                { content: '🏠'; }
  .nav-links a[href*="market"]::before          { content: '🛒'; }
  .nav-links a[href*="gallery"]::before         { content: '🖼️'; }
  .nav-links a[href*="contact"]::before         { content: '📍'; }
  .nav-links a.active {
    color: var(--pink);
    background: rgba(233,30,140,0.1);
  }

  /* زر اللغة في الناف بار العلوي */
  .lang-toggle {
    font-size: 12px;
    padding: 7px 16px;
  }

  /* حشوة للمحتوى عشان ما يختبي خلف الشريط السفلي */
  footer { margin-bottom: 60px; }

  .stats-bar     { padding: 30px 20px; gap: 30px; }
  .section       { padding: 60px 20px; }
  .footer-top    { grid-template-columns: 1fr; }
  footer         { padding: 40px 20px 24px; }

  /* index */
  .about-grid    { grid-template-columns: 1fr; }
  .hero-butterfly { display: none; }
  .services-inner { padding: 0 20px; }

  /* market */
  .market-hero   { padding: 120px 20px 60px; }

  /* gallery */
  .gallery-header { padding: 120px 20px 40px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    padding: 0 20px 40px;
  }
  .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: 160px;
  }
  .dev-note { margin: 0 20px 40px; }

  /* contact */
  .contact-page  { padding: 120px 20px 60px; }
  .contact-wrap  { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .contact-form  { padding: 28px 20px; }
}


/* ========================================
   pages/contact.html — Branches Section
   ======================================== */

.branches-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 60px 80px;
}

.branches-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.bstat {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.bstat-num {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bstat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.branch-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--branch-color, var(--pink));
}

.branch-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.branch-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.branch-city { font-size: 22px; font-weight: 800; }

.branch-badges { display: flex; flex-direction: column; gap: 6px; }

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-center {
  background: rgba(233,30,140,0.15);
  border: 1px solid rgba(233,30,140,0.3);
  color: var(--pink);
}

.badge-market {
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  color: var(--green);
}

.branch-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
}

.branch-detail .ico { font-size: 15px; flex-shrink: 0; margin-top: 2px; }

.branch-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-map {
  flex: 1;
  min-width: 120px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 11px;
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-map:hover {
  background: rgba(233,30,140,0.15);
  border-color: rgba(233,30,140,0.4);
  color: var(--pink);
  transform: translateY(-2px);
}

.btn-map.green:hover {
  background: rgba(76,175,80,0.15);
  border-color: rgba(76,175,80,0.4);
  color: var(--green);
}

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px 100px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .branches-section { padding: 120px 20px 60px; }
  .contact-section  { padding: 60px 20px 80px; }
  .branches-stats   { gap: 12px; }
}


/* ========================================
   pages/gallery.html — Lightbox & 360
   ======================================== */

.item-360 {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(233,30,140,0.2);
  position: relative;
}

.item-360 iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.badge-360 {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.item-360 .label-360 {
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: #141414;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}


/* ========================================
   Butterfly Components (index.html)
   ======================================== */

.butterfly-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.butterfly-glow {
  position: absolute;
  bottom: auto;
  top: 78%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(198,7,198,0.8) 0%, rgba(3,173,248,0.3) 50%, transparent 70%);
  animation: glow-pulse 2.5s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes glow-pulse {
  0%,100% { opacity: 0.3; transform: translateX(-50%) scaleX(0.8); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.3); }
}

.hero-butterfly-wrap {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  opacity: 0.12;
  animation: gentle-float 6s ease-in-out infinite;
}

.butterfly-about-wrap {
  width: 100%;
  max-width: 100px;
  margin: 0 auto;
  animation: gentle-float 5s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(198,7,198,0.35));
}