@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary: #5b5ddd;
  --primary-dark: #3b3dbd;
  --accent: #6366f1;
  --bg-dark: #1a1714;
  --bg-card: rgba(210,180,140,0.06);
  --bg-glass: rgba(210,180,140,0.08);
  --text: #f5f0e8;
  --text-muted: #b8a890;
  --border: rgba(210,180,140,0.12);
  --indigo: #3b3dbd;
  --indigo-light: #5b5ddd;
  --gradient-1: linear-gradient(135deg, #3b3dbd 0%, #6366f1 100%);
  --gradient-2: linear-gradient(135deg, #5b5ddd 0%, #818cf8 100%);
  --shadow: 0 25px 50px -12px rgba(20,15,10,0.6);
  --wood-light: #d2b48c;
  --wood-mid: #c4a06a;
  --wood-dark: #2a2319;
  --radius: 16px;
  --radius-sm: 10px;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Hide scrollbar but keep scroll functionality */
html, body { -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  max-width: 100vw;
}

body.en { direction: ltr; font-family: var(--font-en); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(26,23,20,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}
.navbar.scrolled { background: rgba(26,23,20,0.95); padding: 10px 40px; }
.nav-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-logo img { height:44px; border-radius:8px; }
.nav-logo span { font-weight:800; font-size:1.2rem; color:var(--text); }
.nav-links { display:flex; align-items:center; gap:28px; list-style:none; }
.nav-links a {
  color: var(--text-muted); text-decoration:none; font-weight:500;
  font-size:0.95rem; transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height:2px; background:var(--gradient-1); transform:scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color:var(--text); }
.nav-links a:hover::after { transform:scaleX(1); }
.lang-btn {
  background: var(--bg-glass); border:1px solid var(--border);
  color:var(--text); padding:8px 18px; border-radius:30px;
  cursor:pointer; font-size:0.85rem; font-weight:600;
  transition: all 0.3s; font-family: inherit;
}
.lang-btn:hover { background:var(--primary); color:var(--bg-dark); border-color:var(--primary); }
.menu-toggle {
  display:none; background:none; border:none; color:var(--text);
  font-size:1.5rem; cursor:pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display:flex; align-items:center;
  justify-content:center;
  position:relative; padding: 120px 40px 80px;
  overflow:hidden;
}
.hero-video-bg {
  position:absolute; top:0; left:0; width:100%; height:100%;
  object-fit:cover; z-index:0;
}
.hero-overlay {
  position:absolute; top:0; left:0; width:100%; height:100%;
  background: linear-gradient(
    to bottom,
    rgba(26,23,20,0.75) 0%,
    rgba(26,23,20,0.6) 40%,
    rgba(26,23,20,0.85) 100%
  );
  z-index:1;
}
.hero-bg-glow {
  position:absolute; width:600px; height:600px; border-radius:50%;
  filter: blur(150px); pointer-events:none; z-index:2;
}
.hero-bg-glow.g1 { top:-100px; right:-100px; background:#3b3dbd; opacity:0.12; }
.hero-bg-glow.g2 { bottom:-100px; left:-100px; background:#5b5ddd; opacity:0.1; }
.hero-content {
  max-width:800px; margin:0 auto; width:100%;
  text-align:center; position:relative; z-index:3;
}
.hero-text { z-index:3; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background: var(--bg-glass); border:1px solid var(--border);
  padding:8px 20px; border-radius:30px; font-size:0.85rem;
  color:var(--primary); font-weight:600; margin-bottom:24px;
  animation: fadeInUp 0.8s ease;
}
.hero-badge .dot {
  width:8px; height:8px; border-radius:50%; background:var(--primary);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.5); }
}
.hero-title {
  font-size: clamp(2.5rem,5vw,4rem); font-weight:900;
  line-height:1.15; margin-bottom:20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-title .highlight {
  background: var(--gradient-1); -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-desc {
  font-size:1.1rem; color:var(--text-muted); margin-bottom:16px;
  max-width:600px; margin-left:auto; margin-right:auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-tagline {
  font-size:1.15rem; font-weight:600; font-style:italic;
  background: var(--gradient-1); -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; background-clip:text;
  margin-bottom:36px; max-width:600px; margin-left:auto; margin-right:auto;
  animation: fadeInUp 0.8s ease 0.25s both;
}
.hero-btns {
  display:flex; gap:16px; flex-wrap:wrap; justify-content:center;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.btn {
  padding:14px 32px; border-radius:12px; font-weight:700;
  font-size:1rem; cursor:pointer; transition:all 0.3s;
  text-decoration:none; display:inline-flex; align-items:center; gap:8px;
  border:none; font-family:inherit;
}
.btn-primary {
  background:var(--gradient-1); color:#fff;
  box-shadow: 0 8px 30px rgba(59,61,189,0.35);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 12px 40px rgba(59,61,189,0.5); }
.btn-outline {
  background:transparent; color:var(--text);
  border:2px solid var(--border);
}
.btn-outline:hover { border-color:var(--primary); color:var(--primary); }
.hero-stats {
  display:flex; gap:32px; margin-top:40px; justify-content:center;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.stat { text-align:center; }
.stat-num {
  font-size:1.8rem; font-weight:900;
  background:var(--gradient-1); -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; background-clip:text;
}
.stat-label { font-size:0.8rem; color:var(--text-muted); font-weight:500; }

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 40px; position:relative; overflow:hidden; }
.section-header { text-align:center; margin-bottom:60px; }
.section-tag {
  display:inline-block; background:var(--bg-glass); border:1px solid var(--border);
  padding:6px 18px; border-radius:30px; font-size:0.8rem;
  color:var(--primary); font-weight:600; margin-bottom:14px;
  text-transform:uppercase; letter-spacing:1px;
}
.section-title {
  font-size: clamp(2rem,4vw,3rem); font-weight:900; margin-bottom:14px;
}
.section-desc { color:var(--text-muted); font-size:1.05rem; max-width:560px; margin:0 auto; }

/* ===== SERVICES ===== */
.services-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:24px; max-width:1200px; margin:0 auto;
}
.service-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:36px 28px;
  transition:all 0.4s ease; position:relative; overflow:hidden;
}
.service-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--gradient-2); opacity:0; transition:opacity 0.4s;
}
.service-card:hover { transform:translateY(-6px); border-color:rgba(210,180,140,0.25); }
.service-card:hover::before { opacity:1; }
.service-icon {
  width:56px; height:56px; border-radius:14px;
  background:var(--bg-glass); display:flex; align-items:center;
  justify-content:center; font-size:1.6rem; margin-bottom:20px;
  border:1px solid var(--border);
}
.service-card h3 { font-size:1.25rem; font-weight:700; margin-bottom:10px; }
.service-card p { color:var(--text-muted); font-size:0.95rem; line-height:1.7; }

/* ===== BRANDS ===== */
.brands-section { background: var(--wood-dark); }

.brands-marquee {
  overflow:hidden; max-width:1200px; margin:0 auto;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.brands-track {
  display:flex; gap:48px; animation: marquee 25s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}
body[dir="rtl"] .brands-track { animation: marquee-rtl 25s linear infinite; }
@keyframes marquee-rtl {
  0% { transform:translateX(0); }
  100% { transform:translateX(50%); }
}
.brand-item {
  display:flex; align-items:center; justify-content:center;
  min-width:140px; height:70px; background:var(--bg-glass);
  border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:12px 24px; font-size:1.3rem; font-weight:800;
  color:var(--text-muted); white-space:nowrap; transition: all 0.3s;
}
.brand-item:hover { color:var(--text); border-color:rgba(91,93,221,0.4); }

/* ===== WHY US ===== */
.why-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px; max-width:1000px; margin:0 auto;
}
.why-card {
  text-align:center; padding:40px 24px; border-radius:var(--radius);
  background:var(--bg-card); border:1px solid var(--border);
  transition:all 0.4s;
}
.why-card:hover { transform:translateY(-4px); border-color:rgba(210,180,140,0.25); }
.why-icon {
  font-size:2.5rem; margin-bottom:16px; display:block;
}
.why-card h3 { font-size:1.1rem; font-weight:700; margin-bottom:8px; }
.why-card p { color:var(--text-muted); font-size:0.9rem; }

/* ===== CONTACT ===== */
.contact-section { position:relative; }
.contact-container {
  max-width:900px; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
}
.contact-info { display:flex; flex-direction:column; gap:24px; }
.contact-item {
  display:flex; align-items:center; gap:16px;
  background:var(--bg-card); border:1px solid var(--border);
  padding:20px 24px; border-radius:var(--radius-sm);
  transition: all 0.3s;
}
.contact-item:hover { border-color:rgba(210,180,140,0.25); }
.contact-icon {
  width:48px; height:48px; border-radius:12px;
  background:var(--bg-glass); display:flex; align-items:center;
  justify-content:center; font-size:1.3rem; flex-shrink:0;
}
.contact-item h4 { font-weight:600; margin-bottom:2px; font-size:0.95rem; }
.contact-item span, .contact-item p { color:var(--text-muted); font-size:0.88rem; }
a.contact-item { text-decoration:none; color:inherit; cursor:pointer; }
a.contact-item.clickable:hover {
  border-color:rgba(91,93,221,0.4); transform:translateY(-2px);
  background:rgba(91,93,221,0.06);
}
a.contact-item.clickable::after {
  content:'→'; position:absolute; left:16px; top:50%; transform:translateY(-50%);
  font-size:1.1rem; color:var(--primary); opacity:0; transition:opacity 0.3s;
}
body[dir="rtl"] a.contact-item.clickable::after {
  content:'←'; left:auto; right:16px;
}
a.contact-item.clickable:hover::after { opacity:1; }
.contact-item { position:relative; }
.contact-socials {
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.social-card {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; padding:20px 12px; border-radius:var(--radius);
  background:var(--bg-card); border:1px solid var(--border);
  text-decoration:none; color:var(--text); transition:all 0.3s;
  cursor:pointer;
}
.social-card:hover {
  transform:translateY(-4px); border-color:rgba(91,93,221,0.4);
  background:rgba(91,93,221,0.08);
}
.social-icon { font-size:1.6rem; }
.social-name { font-size:0.85rem; font-weight:600; }

/* ===== VIDEO SHOWCASE ===== */
.video-showcase {
  padding: 60px 40px 80px; background: var(--wood-dark);
}
.video-showcase-wrap {
  max-width: 900px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.video-showcase-wrap video {
  width: 100%; display: block;
}

/* ===== FOOTER ===== */
.footer {
  padding:40px; text-align:center;
  border-top:1px solid var(--border);
}
.footer-logo { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:16px; }
.footer-logo img { height:36px; border-radius:6px; }
.footer-logo span { font-weight:800; font-size:1.1rem; }
.footer-links { display:flex; justify-content:center; gap:24px; margin-bottom:16px; flex-wrap:wrap; }
.footer-links a {
  color:var(--text-muted); text-decoration:none; font-size:0.9rem;
  transition:color 0.3s;
}
.footer-links a:hover { color:var(--primary); }
.footer p { color:var(--text-muted); font-size:0.8rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
.reveal {
  opacity:0; transform:translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ===== MOBILE NAV ===== */
.mobile-menu {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(26,23,20,0.98); z-index:999;
  flex-direction:column; align-items:center; justify-content:center; gap:28px;
}
.mobile-menu.open { display:flex; }
.mobile-menu a {
  color:var(--text); font-size:1.3rem; font-weight:600;
  text-decoration:none;
}
.mobile-menu .close-btn {
  position:absolute; top:20px; right:20px;
  background:none; border:none; color:var(--text);
  font-size:2rem; cursor:pointer;
}
body[dir="ltr"] .mobile-menu .close-btn { right:auto; left:20px; }

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

/* Tablet & smaller */
@media(max-width:900px) {
  .navbar { padding:14px 20px; }
  .nav-links { display:none; }
  .menu-toggle { display:block; }

  .hero { padding:100px 20px 60px; min-height:100vh; }
  .hero-content { max-width:100%; }
  .hero-desc { max-width:100%; }
  .hero-tagline { max-width:100%; }
  .hero-badge { font-size:0.8rem; padding:6px 16px; }

  section { padding:60px 20px; }
  .section-title { font-size:1.8rem; }
  .section-desc { font-size:0.95rem; }

  .services-grid { grid-template-columns:1fr; max-width:500px; margin:0 auto; }
  .service-card { padding:28px 22px; }

  .why-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
  .why-card { padding:28px 16px; }

  .contact-container { grid-template-columns:1fr; gap:32px; }

  .footer-links { gap:16px; }
}

/* Phone */
@media(max-width:480px) {
  .navbar { padding:12px 16px; }
  .nav-logo img { height:36px; }
  .nav-logo span { font-size:1rem; }

  .hero { padding:90px 16px 40px; }
  .hero-title { font-size:1.75rem; line-height:1.25; }
  .hero-desc { font-size:0.95rem; }
  .hero-tagline { font-size:1rem; }
  .hero-btns { flex-direction:column; align-items:stretch; gap:12px; }
  .btn { justify-content:center; padding:14px 24px; font-size:0.95rem; }
  .hero-stats { gap:16px; flex-wrap:wrap; }
  .stat-num { font-size:1.4rem; }
  .stat-label { font-size:0.7rem; }
  .hero-badge { font-size:0.75rem; padding:6px 14px; margin-bottom:16px; }

  .section-header { margin-bottom:40px; }
  .section-tag { font-size:0.7rem; padding:5px 14px; }
  .section-title { font-size:1.5rem; }

  .services-grid { gap:16px; }
  .service-card { padding:24px 18px; }
  .service-icon { width:48px; height:48px; font-size:1.3rem; border-radius:12px; }
  .service-card h3 { font-size:1.1rem; }
  .service-card p { font-size:0.88rem; }

  .brand-item { min-width:110px; height:56px; font-size:1rem; padding:8px 16px; }

  .why-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .why-card { padding:24px 12px; }
  .why-icon { font-size:2rem; margin-bottom:10px; }
  .why-card h3 { font-size:0.95rem; }
  .why-card p { font-size:0.8rem; }

  .contact-item { padding:16px 18px; gap:12px; }
  .contact-icon { width:40px; height:40px; font-size:1.1rem; border-radius:10px; }
  .contact-item h4 { font-size:0.88rem; }
  .contact-item p, .contact-item a { font-size:0.82rem; }

  .contact-form input, .contact-form textarea {
    padding:12px 14px; font-size:0.9rem;
  }
  .contact-form textarea { min-height:100px; }

  .footer { padding:32px 16px; }
  .footer-logo img { height:30px; }
  .footer-logo span { font-size:0.95rem; }
  .footer-links { gap:12px; }
  .footer-links a { font-size:0.82rem; }
  .footer p { font-size:0.75rem; }

  .mobile-menu a { font-size:1.1rem; }
}

/* Very small phone */
@media(max-width:360px) {
  .hero-title { font-size:1.5rem; }
  .hero-desc { font-size:0.88rem; }
  .hero-tagline { font-size:0.9rem; }
  .why-grid { grid-template-columns:1fr; }
  .stat-num { font-size:1.2rem; }
  .btn { padding:12px 20px; font-size:0.88rem; }
}
