/* ============================================================
   BRIKOL – Abdelaziz Anadam Portfolio
   Design: Black + Yellow, Premium, Mobile-First
   ============================================================ */

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

:root {
  --yellow: #F5C518;
  --yellow-dark: #D4A800;
  --black: #0A0A0A;
  --dark: #111111;
  --dark2: #1A1A1A;
  --dark3: #222222;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --white: #FFFFFF;
  --font-fr: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-yellow: 0 4px 24px rgba(245,197,24,0.25);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-fr);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: var(--font-ar); }
body[dir="rtl"] * { letter-spacing: 0; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- UTILITY ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 100px 0; }
.yellow { color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: var(--shadow-yellow);
}
.btn-primary:hover { background: var(--yellow-dark); box-shadow: 0 6px 32px rgba(245,197,24,0.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #20B858; box-shadow: 0 6px 32px rgba(37,211,102,0.45); }

.section-label {
  display: inline-block;
  background: rgba(245,197,24,0.12);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(245,197,24,0.3);
}

.section-title {
  margin-bottom: 12px;
  color: var(--white);
}
.section-desc {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 56px;
}
.text-center { text-align: center; }

/* ---------- SCROLL REVEAL DEFAULTS ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.88); }

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.preloader-logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -1px;
}
.preloader-bar {
  width: 200px; height: 3px;
  background: var(--dark3);
  border-radius: 50px;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  border-radius: 50px;
}

/* ---------- NAVBAR ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-light);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--dark2);
  border-radius: 50px;
  padding: 4px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.1);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn.active {
  background: var(--yellow);
  color: var(--black);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--yellow); }
.mobile-nav .lang-switcher { margin-top: 16px; }

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245,197,24,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 80% at 10% 80%, rgba(245,197,24,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-title { margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--yellow); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-light);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item {}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  flex-shrink: 0;
}
.hero-card-name { font-size: 1.1rem; font-weight: 700; }
.hero-card-sub { font-size: 0.85rem; color: var(--gray); }

.hero-services-list { display: flex; flex-direction: column; gap: 12px; }
.hero-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.hero-service-item:hover { background: rgba(245,197,24,0.08); }
.hero-service-item .icon { font-size: 1.2rem; }
.hero-service-check {
  margin-left: auto;
  width: 20px; height: 20px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: #22C55E;
}
body[dir="rtl"] .hero-service-check { margin-left: unset; margin-right: auto; }

/* Floating decoration */
.hero-glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,197,24,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- SERVICES ---------- */
#services { background: var(--dark); }

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

.service-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
body[dir="rtl"] .service-card::before { transform-origin: right; }
.service-card:hover { border-color: rgba(245,197,24,0.25); transform: translateY(-6px); box-shadow: var(--shadow-yellow); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: rgba(245,197,24,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border: 1px solid rgba(245,197,24,0.2);
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon { background: rgba(245,197,24,0.18); transform: scale(1.08); }

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.7; }

.service-bg-number {
  position: absolute;
  right: 20px; bottom: 10px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.025);
  line-height: 1;
  pointer-events: none;
}
body[dir="rtl"] .service-bg-number { right: unset; left: 20px; }

/* ---------- WHY CHOOSE US ---------- */
#why { background: var(--black); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-features { display: flex; flex-direction: column; gap: 24px; }

.why-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-feature-icon {
  width: 48px; height: 48px;
  background: rgba(245,197,24,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(245,197,24,0.2);
}
.why-feature-text h4 { margin-bottom: 4px; font-size: 1rem; }
.why-feature-text p { color: var(--gray); font-size: 0.9rem; }

.why-visual {
  position: relative;
}
.why-big-stat {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}
.why-big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.why-big-label { font-size: 1.1rem; color: var(--gray-light); margin-top: 8px; }

.why-testimonial {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  border-left: 3px solid var(--yellow);
}
body[dir="rtl"] .why-testimonial { border-left: none; border-right: 3px solid var(--yellow); }
.why-testimonial p { color: var(--gray-light); font-size: 0.95rem; font-style: italic; margin-bottom: 12px; }
.why-testimonial-author { font-size: 0.85rem; color: var(--gray); font-weight: 600; }

/* ---------- PORTFOLIO ---------- */
#portfolio { background: var(--dark); }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.filter-btn.active { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(245,197,24,0.2); }

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 3rem;
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-image img { transform: scale(1.05); }

.project-body { padding: 24px; }
.project-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.project-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.project-body p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; }

/* ---------- ABOUT ---------- */
#about { background: var(--black); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  border-radius: 20px;
  background: var(--dark2);
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-yellow);
}
body[dir="rtl"] .about-badge { right: unset; left: -20px; }
.about-badge-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.about-badge-label { font-size: 0.8rem; margin-top: 2px; }

.about-content {}
.about-text { color: var(--gray-light); margin-bottom: 28px; line-height: 1.8; }
.about-skills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.skill-tag {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--yellow);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}
.about-certifications { margin-top: 16px; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  color: var(--gray-light);
}
.cert-item .cert-icon { color: var(--yellow); font-size: 1rem; }

/* ---------- CONTACT ---------- */
#contact { background: var(--dark); }

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

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover { border-color: var(--yellow); transform: translateX(4px); }
body[dir="rtl"] .contact-card:hover { transform: translateX(-4px); }
.contact-card-icon {
  width: 48px; height: 48px;
  background: rgba(245,197,24,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-card-label { font-size: 0.8rem; color: var(--gray); margin-bottom: 3px; }
.contact-card-value { font-size: 1rem; font-weight: 600; }

.contact-card.whatsapp { border-color: rgba(37,211,102,0.2); }
.contact-card.whatsapp .contact-card-icon { background: rgba(37,211,102,0.1); }
.contact-card.whatsapp:hover { border-color: #25D366; }

.contact-form-wrap {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 40px;
}
.contact-form-wrap h3 { margin-bottom: 28px; font-size: 1.3rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--yellow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark2); }

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

.form-success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #22C55E;
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}
.form-success.show { display: block; }

/* ---------- FLOATING BUTTONS ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
body[dir="rtl"] .floating-whatsapp { right: unset; left: 28px; }
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.7); }

.floating-call {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 900;
  width: 60px; height: 60px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--black);
  box-shadow: var(--shadow-yellow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
body[dir="rtl"] .floating-call { right: unset; left: 28px; }
.floating-call:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(245,197,24,0.6); }

/* Pulse animation on floating buttons */
.floating-whatsapp::before,
.floating-call::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: float-pulse 2s infinite;
}
.floating-whatsapp::before { background: rgba(37,211,102,0.3); }
.floating-call::before { background: rgba(245,197,24,0.3); }
@keyframes float-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- FOOTER ---------- */
#footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand {}
.footer-logo { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--yellow); }
.footer-tagline { color: var(--gray); font-size: 0.9rem; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--dark2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.social-btn:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 20px; color: var(--white); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--gray); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { color: var(--gray); font-size: 0.85rem; }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--yellow);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .floating-whatsapp, .floating-call { width: 52px; height: 52px; }
  .floating-call { bottom: 90px; }
}

/* ---------- RTL OVERRIDES ---------- */
[dir="rtl"] .nav-links a::after { left: unset; right: 0; }
[dir="rtl"] .hero-subtitle { direction: rtl; }
[dir="rtl"] .section-desc { direction: rtl; }
[dir="rtl"] .why-testimonial p { font-style: normal; }
[dir="rtl"] .contact-card:hover { transform: translateX(-4px); }

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

/* ---------- SELECTION ---------- */
::selection { background: var(--yellow); color: var(--black); }

/* ============================================================
   BRICOLAGE ANIMATIONS
============================================================ */

/* ---------- FLOATING TOOL ICONS (hero background) ---------- */
.tools-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.tool-float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: var(--size, 2rem);
  opacity: 0.12;
  animation: tool-drift var(--dur, 6s) var(--delay, 0s) ease-in-out infinite alternate;
  filter: blur(0.5px);
  user-select: none;
  display: inline-block;
}
.tool-float::before { content: attr(data-tool); }

@keyframes tool-drift {
  0%   { transform: translateY(0px) rotate(-8deg) scale(1); opacity: 0.10; }
  50%  { opacity: 0.18; }
  100% { transform: translateY(-28px) rotate(8deg) scale(1.08); opacity: 0.10; }
}

/* ---------- TYPEWRITER ROTATING WORDS ---------- */
.typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-light);
}
.typewriter-word {
  color: var(--yellow);
  font-weight: 700;
  min-width: 160px;
  display: inline-block;
}
.typewriter-cursor {
  color: var(--yellow);
  font-weight: 300;
  font-size: 1.2rem;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---------- MARQUEE STRIP ---------- */
.marquee-strip {
  background: var(--dark2);
  border-top: 1px solid rgba(245,197,24,0.15);
  border-bottom: 1px solid rgba(245,197,24,0.15);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.marquee-track .sep {
  color: var(--yellow);
  font-size: 0.7rem;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- SPARK PARTICLES ---------- */
.spark-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 1rem;
  will-change: transform, opacity;
}

/* ---------- MAGNETIC BUTTON ---------- */
.btn-primary,
.btn-whatsapp {
  will-change: transform;
}

/* ---------- ANIMATED SKILL BARS ---------- */
.skill-bars { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.skill-bar-item {}
.skill-bar-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 500;
}
.skill-bar-label { color: var(--gray-light); }
.skill-bar-pct { color: var(--yellow); font-weight: 700; }
.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 50px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow-dark), var(--yellow));
  border-radius: 50px;
  transition: none;
}

/* ---------- TOOL ICON ORBIT (hero avatar) ---------- */
.hero-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.hero-avatar {
  width: 60px;
  height: 60px;
}
.orbit-icon {
  position: absolute;
  font-size: 0.85rem;
  width: 22px;
  height: 22px;
  background: var(--dark3);
  border: 1px solid rgba(245,197,24,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  pointer-events: none;
}

/* ---------- SECTION TITLE UNDERLINE ANIM ---------- */
.animated-underline {
  position: relative;
  display: inline-block;
}
.animated-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.8s ease;
}
.animated-underline.active::after { width: 100%; }

/* ---------- CARD TILT EFFECT ---------- */
.service-card {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* ---------- PULSE RING on service icons ---------- */
.service-icon {
  position: relative;
}
.service-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245,197,24,0);
  transition: border-color 0.3s, inset 0.3s;
}
.service-card:hover .service-icon::after {
  inset: -10px;
  border-color: rgba(245,197,24,0.25);
}

/* ---------- HERO CARD ANIMATED BORDER ---------- */
.hero-card {
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(245,197,24,0.4), transparent, rgba(245,197,24,0.15), transparent);
  background-size: 400% 400%;
  animation: card-border-rotate 6s linear infinite;
  z-index: -1;
}
@keyframes card-border-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- ELECTRIC BOLT DECORATIONS ---------- */
.bolt-deco {
  position: absolute;
  color: var(--yellow);
  opacity: 0.07;
  font-size: 8rem;
  pointer-events: none;
  animation: bolt-flicker 3s ease-in-out infinite;
  z-index: 0;
}
.bolt-deco-1 { top: 10%; right: 5%; animation-delay: 0s; }
.bolt-deco-2 { bottom: 15%; left: 3%; animation-delay: 1.5s; font-size: 5rem; }
@keyframes bolt-flicker {
  0%,100% { opacity: 0.07; transform: scale(1) rotate(-5deg); }
  30%      { opacity: 0.12; transform: scale(1.05) rotate(-5deg); }
  50%      { opacity: 0.05; transform: scale(0.98) rotate(-5deg); }
  70%      { opacity: 0.10; transform: scale(1.02) rotate(-5deg); }
}

/* ---------- TYPEWRITER FIX ---------- */
/* The word element must start visible; JS drives fades */
#typewriter { display: inline-block; }
.typewriter-wrap { overflow: hidden; }

/* ---------- ELECTRIC SPARK PARTICLES (spawned by JS) ---------- */
.electric-spark-anim {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  z-index: 2;
}

/* ---------- HERO LAMP (decorative light bulb) ---------- */
.hero-lamp {
  position: absolute;
  top: 8%;
  right: 12%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  filter: brightness(1);
  will-change: transform, filter, opacity;
  animation: lamp-float 3.2s ease-in-out infinite alternate;
}
[dir="rtl"] .hero-lamp { right: unset; left: 12%; }

@keyframes lamp-float {
  0%   { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-14px) rotate(3deg); }
}

/* ---------- RESPONSIVE ADDITIONS ---------- */
@media (max-width: 1024px) {
  .hero-lamp { right: 4%; top: 6%; }
}
@media (max-width: 768px) {
  .tool-float { display: none; }
  .hero-lamp  { width: 44px; top: 4%; right: 3%; }
  .typewriter-wrap { font-size: 0.95rem; }
  .marquee-strip { padding: 12px 0; }
}
@media (max-width: 480px) {
  .typewriter-word { min-width: 120px; }
  .hero-lamp { display: none; }
}
