/* ==========================================
   SMARTS ELWADY - SHARED STYLES
   ========================================== */

:root {
  --yellow: #FFD60A;
  --yellow-dark: #E5BC00;
  --yellow-glow: rgba(255, 214, 10, 0.35);
  --black: #0A0A0A;
  --black-soft: #131313;
  --black-card: #1A1A1A;
  --gray-line: #2A2A2A;
  --gray-text: #8B8B8B;
  --white: #F5F5F5;
  --blue-accent: #3BA3E0;
  --green-accent: #4CAF50;
  --red-accent: #E53935;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,214,10,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,214,10,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* === TOP BAR === */
.topbar {
  background: var(--black-soft);
  border-bottom: 1px solid var(--gray-line);
  padding: 8px 0;
  font-size: 13px;
  color: var(--gray-text);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a { color: var(--gray-text); text-decoration: none; transition: color 0.2s; }
.topbar a:hover { color: var(--yellow); }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span i { color: var(--yellow); margin-left: 6px; }

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-line);
  z-index: 1000;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-wrap img { height: 52px; width: auto; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .brand {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.3px;
}
.logo-text .sub {
  font-size: 11px;
  color: var(--yellow);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  margin-top:10px;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
  color: var(--white);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--yellow);
  background: rgba(255,214,10,0.05);
}
.nav-menu .has-drop > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  margin-right: 4px;
}
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--black-card);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  list-style: none;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.has-drop:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.dropdown li a:hover {
  background: rgba(255,214,10,0.08);
  color: var(--yellow);
  padding-right: 16px;
}
.dropdown li a i { color: var(--yellow); width: 16px; text-align: center; }

.btn-login {
  background: var(--yellow);
  color: var(--black);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-login:hover { background: var(--white); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-line);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

/* === BUTTONS === */
.btn {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 10px 30px -8px var(--yellow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -8px var(--yellow-glow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--gray-line);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* === SECTION HEADS === */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '—';
  margin: 0 10px;
  opacity: 0.5;
}
.section-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--white);
  letter-spacing: -0.5px;
}
.section-title .y { color: var(--yellow); }
.section-sub {
  color: var(--gray-text);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* === PAGE HERO (for inner pages) === */
.page-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-line);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 60%);
  top: -300px;
  left: -200px;
  filter: blur(80px);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,163,224,0.12) 0%, transparent 60%);
  bottom: -300px;
  right: -200px;
  filter: blur(80px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--gray-text);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray-text);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep {
  color: var(--gray-line);
  font-size: 11px;
}
.breadcrumb .current { color: var(--yellow); font-weight: 600; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,214,10,0.08);
  border: 1px solid rgba(255,214,10,0.3);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'Space Mono', monospace;
}
.page-hero h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
  color: var(--white);
}
.page-hero h1 .y { color: var(--yellow); }
.page-hero p.lead {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 32px;
  max-width: 540px;
}
.page-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero-visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,214,10,0.1), rgba(59,163,224,0.05));
  border: 1px solid var(--gray-line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.page-hero-visual .big-icon {
  font-size: 200px;
  color: var(--yellow);
  opacity: 0.9;
  filter: drop-shadow(0 20px 40px var(--yellow-glow));
}
.page-hero-visual .deco {
  position: absolute;
  border: 1px solid rgba(255,214,10,0.15);
  border-radius: 50%;
}
.page-hero-visual .deco.d1 { width: 70%; height: 70%; }
.page-hero-visual .deco.d2 { width: 90%; height: 90%; }

/* === FOOTER === */
footer {
  background: var(--black-soft);
  border-top: 1px solid var(--gray-line);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .logo-wrap { margin-bottom: 18px; }
.footer-brand p {
  color: var(--gray-text);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--black-card);
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  transform: translateY(-2px);
}
.footer-col h5 {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-right: 14px;
}
.footer-col h5::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--yellow);
  border-radius: 2px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--yellow); padding-right: 6px; }
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--gray-text);
}
.footer-contact-item i {
  color: var(--yellow);
  font-size: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}
.footer-contact-item a { color: var(--gray-text); text-decoration: none; }
.footer-contact-item a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--gray-line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--gray-text);
}
.footer-bottom .heart { color: var(--red-accent); }
.footer-bottom a { color: var(--yellow); text-decoration: none; }

/* === FLOATING WHATSAPP === */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: ring 2s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero-visual { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    right: 0;
    width: 280px;
    height: calc(100vh - 76px);
    background: var(--black-card);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    align-items: stretch;
    border-right: 1px solid var(--gray-line);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > li > a { padding: 12px; }
  .menu-toggle { display: block; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    box-shadow: none;
    display: none;
  }
  .has-drop.open .dropdown { display: block; }
  .topbar-info { font-size: 12px; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 70px 0; }
  .page-hero { padding: 50px 0 70px; }
  .page-hero-visual .big-icon { font-size: 130px; }
}
