/* ═══════════════════════════════════════════════════════════════
   JALAL ALUMINIUM — DESIGN SYSTEM
   Ultra-modern, Luxury, Industrial-Chic
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Montserrat:wght@300;400;500;600;700;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────── */
:root {
  --primary:      #1A1A2E;
  --secondary:    #C0C0C0;
  --accent:       #FFD700;
  --accent-dark:  #B8960C;
  --background:   #0A0A0F;
  --surface:      #111121;
  --surface-2:    #16162A;
  --text:         #FFFFFF;
  --text-muted:   #A0A0C0;
  --text-dim:     #606080;
  --success:      #25D366;
  --error:        #FF4444;

  --gradient-metal: linear-gradient(135deg, #C0C0C0 0%, #FFD700 50%, #C0C0C0 100%);
  --gradient-gold:  linear-gradient(135deg, #FFD700 0%, #B8960C 100%);
  --gradient-dark:  linear-gradient(135deg, #1A1A2E 0%, #0A0A0F 100%);
  --gradient-hero:  linear-gradient(135deg, #0A0A0F 0%, #1A1A2E 50%, #0D0D20 100%);

  --glass-bg:     rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  --font-arabic: 'Cairo', sans-serif;
  --font-latin: 'Montserrat', sans-serif;

  --z-cursor:   9999;
  --z-loading:  9998;
  --z-nav:      1000;
  --z-float:    999;
  --z-modal:    998;
  --z-overlay:  100;
}

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

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

html[lang="ar"] {
  font-family: var(--font-arabic);
}

html[lang="fr"],
html[lang="en"] {
  font-family: var(--font-latin);
}

body {
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.rtl { direction: rtl; text-align: right; }
body.ltr { direction: ltr; text-align: left; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { outline: none; font-family: inherit; }

/* ── Custom Cursor ────────────────────────────────────────────── */
#cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  mix-blend-mode: screen;
}

#cursor-inner {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: all 0.05s ease;
}

body:hover #cursor-outer.hover {
  width: 60px;
  height: 60px;
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--accent);
}

/* ── Loading Screen ───────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: var(--z-loading);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-metal);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalShine 2s infinite;
  letter-spacing: 0.1em;
}

.loading-bar-wrap {
  width: 200px;
  height: 3px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 10px;
  animation: loadBarFill 2.5s ease forwards;
}

@keyframes loadBarFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 1.5s infinite;
}

/* ── Navbar ───────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.7rem 2rem;
  box-shadow: var(--glass-shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.nav-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--gradient-metal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

.nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--primary) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5) !important;
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 0.25rem;
  backdrop-filter: blur(10px);
}

.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn.active {
  background: var(--gradient-gold);
  color: var(--primary);
}

.lang-btn:hover:not(.active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Section ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  padding: 8rem 4rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-title .line-1 {
  display: block;
  color: var(--text);
}

.hero-title .line-2 {
  display: block;
  background: var(--gradient-metal);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalShine 3s infinite 1s;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.9s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-gold);
  color: var(--primary);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 1.1s both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.badge:hover {
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--accent);
}

.badge-icon { font-size: 1rem; }

.hero-3d {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  animation: fadeIn 1s ease 0.5s both;
}

#hero-canvas {
  width: 100%;
  max-width: 600px;
  height: 500px;
  border-radius: var(--radius-lg);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounceDown 2s infinite;
  z-index: 2;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: scrollBob 2s infinite;
}

/* ── Stats Section ────────────────────────────────────────────── */
#stats {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 4rem 2rem;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--glass-border);
}

.stat-item:last-child::after { display: none; }

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Section Common ───────────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Services Section ─────────────────────────────────────────── */
#services {
  background: var(--background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.1);
}

.service-icon-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  position: relative;
}

.service-canvas {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--gradient-metal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}

.service-link:hover { gap: 0.6rem; }

/* ── Portfolio Section ────────────────────────────────────────── */
#portfolio {
  background: var(--surface);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-gold);
  color: var(--primary);
  border-color: transparent;
  font-weight: 600;
}

.masonry-grid {
  columns: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover img { transform: scale(1.05); }

.masonry-overlay h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.masonry-overlay span {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  background: rgba(255, 215, 0, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.masonry-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1rem;
  transition: var(--transition-fast);
  align-self: flex-end;
  margin-top: -2rem;
  margin-inline-start: auto;
}

.masonry-view-btn:hover { transform: scale(1.1); }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.lightbox-img {
  max-width: 65vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-info {
  width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.lightbox-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-metal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
}

.lightbox-detail {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lightbox-detail strong { color: var(--text); }

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--error);
  border-color: var(--error);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-nav:hover { background: var(--accent); color: var(--primary); }

/* Before/After Slider */
.before-after-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
}

.before-after-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  cursor: ew-resize;
  z-index: 10;
}

.ba-slider-btn {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* ── Why Us Section ───────────────────────────────────────────── */
#why-us {
  background: var(--background);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-3d {
  position: relative;
  height: 500px;
}

#why-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.why-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid transparent;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(30px);
}

.why-feature.visible {
  opacity: 1;
  transform: translateX(0);
}

.why-feature:hover {
  border-color: rgba(255, 215, 0, 0.2);
  background: rgba(255, 215, 0, 0.05);
}

.why-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.why-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.why-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Testimonials ─────────────────────────────────────────────── */
#testimonials {
  background: var(--surface);
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 380px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.testimonial-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.testimonial-meta p {
  font-size: 0.78rem;
  color: var(--accent);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-quote::before { content: '"'; color: var(--accent); font-size: 1.5rem; }
.testimonial-quote::after  { content: '"'; color: var(--accent); font-size: 1.5rem; }

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.testi-btn:hover {
  background: var(--gradient-gold);
  color: var(--primary);
  border-color: transparent;
}

.testi-dots {
  display: flex;
  gap: 0.5rem;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--text-dim);
  transition: var(--transition-fast);
  cursor: pointer;
}

.testi-dot.active {
  background: var(--accent);
  width: 24px;
}

/* ── Process Section ──────────────────────────────────────────── */
#process {
  background: var(--background);
  overflow: hidden;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  padding-top: 3rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.process-step {
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-num {
  width: 48px;
  height: 48px;
  background: var(--gradient-gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--background), 0 0 0 6px var(--accent);
}

.process-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.process-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.process-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Quote Calculator ─────────────────────────────────────────── */
#quote-calc {
  background: var(--surface);
}

.calculator-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
}

.form-input:focus {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-input option {
  background: var(--surface);
  color: var(--text);
}

.calc-result {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  display: none;
}

.calc-result.show { display: block; animation: fadeIn 0.4s ease; }

.calc-price {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ── Contact Section ──────────────────────────────────────────── */
#contact {
  background: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.contact-form-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--gradient-metal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

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

.submit-btn {
  width: 100%;
  background: var(--gradient-gold);
  color: var(--primary);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.6s;
}

.submit-btn:hover::before { left: 100%; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5); }

.form-feedback {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--success);
}

.form-feedback.error {
  display: block;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: var(--error);
}

/* Contact Info */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-item-text a,
.contact-item-text span {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item-text a:hover { color: var(--accent); }

.whatsapp-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #25D366;
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  height: 220px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.5) invert(1) hue-rotate(180deg) brightness(0.8);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
}

.social-btn:hover {
  background: var(--gradient-gold);
  color: var(--primary);
  border-color: transparent;
  transform: scale(1.1);
}

/* ── WhatsApp Float ───────────────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.rtl #whatsapp-float {
  right: auto;
  left: 2rem;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  position: relative;
  transition: var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s infinite;
}

.whatsapp-float-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: waPulse 2s infinite 0.5s;
}

.whatsapp-float-btn:hover { transform: scale(1.1); }

/* ── Footer ───────────────────────────────────────────────────── */
#footer {
  background: var(--primary);
  border-top: 1px solid var(--glass-border);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.87rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.82rem;
}

.footer-bottom p span { color: var(--accent); }

/* ── Cookie Banner ────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-float);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 700px;
  width: calc(100% - 3rem);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

#cookie-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
}

.cookie-accept {
  background: var(--gradient-gold);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.cookie-accept:hover { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes metalShine {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

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

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  100%      { transform: translateY(16px); opacity: 0; }
}

@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0;   }
}

/* AOS-like animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-visible { transform: translateX(0); }

[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-visible { transform: translateX(0); }

[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="zoom-in"].aos-visible { transform: scale(1); }

/* Delay helper */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(3, 1fr); }
  .process-timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; }
  .hero-3d { display: none; }
  .hero-content { padding: 8rem 2rem 4rem; max-width: 700px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-3d { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .masonry-grid { columns: 2; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .masonry-grid { columns: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item::after { display: none; }
  .calc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { min-width: 300px; }
  .lightbox-content { flex-direction: column; }
  .lightbox-img { max-width: 90vw; }
  .lightbox-info { width: 90vw; }
  .hero-ctas { flex-direction: column; }
  .calculator-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  #navbar { padding: 1rem; }
  .hero-content { padding: 7rem 1rem 3rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; text-align: center; }
}

/* Mobile Nav Drawer */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-nav.open { transform: translateX(0); }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-nav-links a:hover { color: var(--accent); }

/* RTL adjustments for why features */
.rtl .why-feature {
  transform: translateX(-30px);
}

.rtl .why-feature.visible {
  transform: translateX(0);
}

/* Metallic text helper */
.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-metal {
  background: var(--gradient-metal);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalShine 3s infinite;
}
