/* ========================================
   MISIO MOHMED - MAIN CSS
   Luxury Black & Gold Barber Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;600;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #8B6914;
  --gold-muted: #9B7D3A;
  --black: #0A0A0A;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --black-4: #222222;
  --black-5: #2A2A2A;
  --white: #FFFFFF;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --gold-alpha-20: rgba(201,168,76,0.2);
  --gold-alpha-10: rgba(201,168,76,0.1);
  --gold-alpha-05: rgba(201,168,76,0.05);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
  --glass-gold: rgba(201,168,76,0.1);
  --shadow-gold: 0 0 30px rgba(201,168,76,0.3);
  --shadow-dark: 0 20px 60px rgba(0,0,0,0.8);
  --border-gold: 1px solid rgba(201,168,76,0.3);
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --font-display: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ===== SELECTION ===== */
::selection { background: var(--gold-alpha-20); color: var(--gold-light); }

/* ===== LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-arabic);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  animation: pulse-gold 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--black-5);
  border-radius: 1px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 1px;
  animation: load-bar 1.5s ease forwards;
}

@keyframes load-bar {
  to { width: 100%; }
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(201,168,76,0.5); }
  50% { opacity: 0.7; text-shadow: 0 0 40px rgba(201,168,76,0.8); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--shadow-dark);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(201,168,76,0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--white-50);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--gold);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black) !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.navbar-cta::after { display: none !important; }

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.6) !important;
  color: var(--black) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: var(--glass);
  border: var(--border-gold);
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  right: 0;
  left: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  padding: 20px 40px 30px;
  border-bottom: var(--border-gold);
  transform: translateY(-20px);
  opacity: 0;
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu ul a {
  color: var(--white-70);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--white-05);
  transition: var(--transition);
}

.mobile-menu ul a:hover { color: var(--gold); padding-right: 10px; }

/* ===== SECTIONS ===== */
section {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-alpha-10);
  border: var(--border-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-arabic);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--white-50);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(201,168,76,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: var(--border-gold);
}

.btn-outline:hover {
  background: var(--gold-alpha-10);
  transform: translateY(-2px);
  border-color: var(--gold);
}

.btn-ghost {
  background: var(--glass);
  color: var(--white-70);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--white-10);
  color: var(--white);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ===== CARDS ===== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--gold-alpha-20);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.gold-card {
  background: linear-gradient(135deg, var(--black-3), var(--black-4));
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.gold-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* ===== DIVIDER ===== */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-pending { background: rgba(251,191,36,0.15); color: #FBB924; border: 1px solid rgba(251,191,36,0.3); }
.badge-confirmed { background: rgba(34,197,94,0.15); color: #22C55E; border: 1px solid rgba(34,197,94,0.3); }
.badge-completed { background: rgba(99,102,241,0.15); color: #6366F1; border: 1px solid rgba(99,102,241,0.3); }
.badge-cancelled { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 8px;
}

.form-label span { color: var(--gold); margin-right: 2px; }

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--black-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  direction: rtl;
}

.form-control:focus {
  border-color: var(--gold-alpha-20);
  background: var(--black-4);
  box-shadow: 0 0 0 3px var(--gold-alpha-10);
}

.form-control::placeholder { color: var(--white-50); }

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '▼';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.7rem;
  pointer-events: none;
}

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  padding: 14px 16px;
  text-align: right;
  font-weight: 700;
  color: var(--gold);
  background: var(--black-3);
  border-bottom: var(--border-gold);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 16px;
  text-align: right;
  color: var(--white-70);
  border-bottom: 1px solid var(--white-05);
  transition: var(--transition);
}

.data-table tr:hover td {
  background: var(--gold-alpha-05);
  color: var(--white);
}

/* ===== FOOTER ===== */
footer {
  background: var(--black-2);
  border-top: var(--border-gold);
  padding: 60px 0 30px;
}

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

.footer-brand .logo-name { font-size: 1.4rem; margin-bottom: 6px; }

.footer-desc {
  font-size: 0.9rem;
  color: var(--white-50);
  margin: 16px 0 24px;
  line-height: 1.8;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glass);
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold-alpha-20);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(201,168,76,0.3);
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--white-50);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '←';
  color: var(--gold-dark);
  font-size: 0.75rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  background: var(--gold-alpha-10);
  border: var(--border-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.footer-contact-info {
  font-size: 0.85rem;
  color: var(--white-50);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--white-05);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--white-50);
}

.footer-copyright span { color: var(--gold); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 998;
  transition: var(--transition);
  animation: float-bounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(37,211,102,0.7);
}

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--black-3);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-dark);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  pointer-events: auto;
  min-width: 280px;
  text-align: center;
  justify-content: center;
}

.toast-success { border-right: 3px solid #22C55E; color: var(--white); }
.toast-error { border-right: 3px solid #EF4444; color: var(--white); }
.toast-info { border-right: 3px solid var(--gold); color: var(--white); }

@keyframes toast-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--black-3);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white-10);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--glass);
  border: var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--white-70);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(239,68,68,0.2); color: #EF4444; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.page-header-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.page-header-title span {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header-desc {
  font-size: 1.1rem;
  color: var(--white-50);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--white-50);
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: var(--white-30); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  section { padding: 70px 0; }
  .section-title { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-header-title { font-size: 2.2rem; }
}
