/* ── Brand Variables ── */
:root {
  --red: #CC0000;
  --yellow: #FFC200;
  --dark: #1A1A1A;
  --gray: #6B7280;
  --light: #F9FAFB;
  --gradient: linear-gradient(135deg, #FFC200 0%, #CC0000 100%);
  --gradient-rev: linear-gradient(135deg, #CC0000 0%, #FFC200 100%);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; color: var(--dark); background: #fff; overflow-x: hidden; }

/* ── Gradient Utilities ── */
.bg-brand-gradient { background: var(--gradient); }
.text-brand-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.border-brand-gradient {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

/* ── Navigation ── */
#navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
#navbar .logo img { height: 80px; filter: brightness(0) invert(1); transition: height 0.4s ease, filter 0.5s ease; }
#navbar.scrolled .logo img { height: 48px; filter: none; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.75; }
#navbar.scrolled .nav-links a { color: var(--dark); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* Language switcher */
.lang-switcher { display: flex; gap: 0.35rem; }
.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-btn:hover, .lang-btn.active {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
#navbar.scrolled .lang-btn { border-color: var(--gray); color: var(--dark); }
#navbar.scrolled .lang-btn:hover,
#navbar.scrolled .lang-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
#navbar.scrolled .hamburger span { background: var(--dark); }
.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 menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-menu-lang { display: flex; gap: 0.75rem; }
.mobile-menu-lang .lang-btn { border-color: var(--gray); color: var(--dark); font-size: 1rem; padding: 0.4rem 1rem; }
.mobile-menu-lang .lang-btn.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255,194,0,0.90) 0%, rgba(204,0,0,0.90) 100%),
    url('../assets/generated/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 8rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  position: relative;
}
.hero-content { max-width: 1000px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50px;
  padding: 0.35rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(1.9rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff;
  color: var(--red);
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ── Section Shared ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── Services ── */
#services { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(204,0,0,0.12);
}
.service-img {
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--light);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; color: var(--dark); }
.service-card p { font-size: 0.95rem; color: var(--gray); line-height: 1.65; }

/* Core services chips */
.core-title { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin: 3.5rem 0 1.5rem; text-align: center; }
.core-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.core-chip {
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.core-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.2; margin-bottom: 1.25rem; }
.about-text p { font-size: 1rem; color: var(--gray); line-height: 1.8; margin-bottom: 1.5rem; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.stat-pill {
  background: var(--light);
  border-inline-start: 4px solid var(--red);
  padding: 0.6rem 1.2rem;
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}
.about-text .section-label { margin-bottom: 0.75rem; }
.about-visual {
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 16px 50px rgba(204,0,0,0.12);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Mission / Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.mv-card {
  background: var(--gradient);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem;
}
.mv-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.85rem; }
.mv-card p { font-size: 0.98rem; line-height: 1.75; opacity: 0.95; }

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.value-card {
  background: var(--light);
  border-radius: 16px;
  padding: 1.75rem;
  border-top: 4px solid var(--red);
}
.value-card h4 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 0.6rem; }
.value-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* ── Partners ── */
#partners { background: var(--light); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.partner-logo {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #EEF0F2;
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.partner-logo:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.partner-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* Team monogram fallback avatar */
.team-monogram {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 2rem; letter-spacing: 0.02em;
}

/* ── CTA Band ── */
#cta-band {
  background: linear-gradient(rgba(20,20,20,0.62), rgba(20,20,20,0.62)),
              url('../assets/generated/cta.jpg') center/cover no-repeat;
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.cta-inner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.6; }

/* Contact email link */
.contact-item-text a { font-size: 0.95rem; color: var(--red); text-decoration: none; font-weight: 600; }
.contact-item-text a:hover { text-decoration: underline; }

/* ── Portfolio ── */
#portfolio { background: var(--dark); }
#portfolio .section-title { color: #fff; }
#portfolio .section-label { color: var(--yellow); }
#portfolio .section-sub { color: rgba(255,255,255,0.6); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #2d2d2d;
  cursor: pointer;
}
/* ── Portfolio Card Visuals ── */
.portfolio-bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* Per-project gradient backgrounds */
.pb-auto  { background: linear-gradient(135deg, #1565C0 0%, #0D47A1 50%, #01579B 100%); }
.pb-tech  { background: linear-gradient(135deg, #6A1B9A 0%, #4A148C 50%, #311B92 100%); }
.pb-green { background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 50%, #33691E 100%); }
.pb-bank  { background: linear-gradient(135deg, #0277BD 0%, #01579B 50%, #006064 100%); }
.pb-okto  { background: linear-gradient(135deg, #E65100 0%, #BF360C 50%, #FF6F00 100%); }
.pb-sport { background: linear-gradient(135deg, #CC0000 0%, #B71C1C 50%, #FF6D00 100%); }

/* Geometric decoration elements */
.pg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.pg-circle-outline {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: transparent;
}
.pg-bar {
  position: absolute;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
}
.pg-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* Always-visible label strip at card bottom */
.portfolio-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  z-index: 2;
}
.portfolio-label h3 {
  font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem;
}
.portfolio-label span {
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  transition: opacity 0.3s;
  padding: 2rem;
  text-align: center;
}
.portfolio-card:hover .portfolio-overlay { opacity: 0.96; }
.portfolio-overlay h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.portfolio-overlay p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 1.25rem; }
.portfolio-overlay a {
  background: #fff;
  color: var(--red);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.portfolio-overlay a:hover { opacity: 0.85; }

/* ── Testimonials ── */
#testimonials { background: var(--light); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 5rem;
  color: var(--yellow);
  opacity: 0.4;
  position: absolute;
  top: -0.5rem; inset-inline-start: 1.2rem;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-text { font-size: 0.97rem; color: var(--gray); line-height: 1.75; margin-bottom: 1.5rem; padding-top: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-company { font-size: 0.82rem; color: var(--gray); }

/* ── Stats Counter ── */
#stats {
  background: var(--gradient);
  padding: 5rem 2rem;
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.stat-item { color: #fff; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-suffix { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.stat-label { font-size: 0.95rem; opacity: 0.85; font-weight: 500; }

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.team-card-top {
  height: 8px;
  background: var(--gradient);
}
.team-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 1.5rem auto 0.75rem;
  padding: 3px;
  background: var(--gradient);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  clip-path: circle(50%);
}
.team-card-body { padding: 0 1.5rem 1.75rem; text-align: center; }
.team-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--red); font-weight: 600; margin-bottom: 0.5rem; }
.team-bio { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ── Contact ── */
#contact { background: var(--light); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.contact-form { background: #fff; border-radius: 20px; padding: 2.5rem; box-shadow: 0 4px 30px rgba(0,0,0,0.07); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  display: inline-block;
  width: 100%;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  font-family: inherit;
}
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-status { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; line-height: 1.5; min-height: 1.2em; }
.form-status.sending { color: var(--gray); }
.form-status.success { color: #16a34a; }
.form-status.error { color: var(--red); }
body.rtl-active .form-status { text-align: right; }

.contact-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.contact-info p { color: var(--gray); line-height: 1.7; margin-bottom: 2rem; font-size: 0.97rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: 0.88rem; color: var(--dark); font-weight: 700; margin-bottom: 0.15rem; }
.contact-item-text span { font-size: 0.9rem; color: var(--gray); }

/* ── Footer ── */
footer {
  background: var(--gradient);
  color: #fff;
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 100px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; opacity: 0.85; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; opacity: 0.75; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.3); }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* RTL overrides */
body.rtl-active { font-family: 'Cairo', 'Tajawal', 'Inter', sans-serif; }

/* Fixed link order: rely on dir="rtl" and default flex-direction: row */
body.rtl-active .nav-links { flex-direction: row !important; }
body.rtl-active .nav-right  { flex-direction: row !important; }

/* Hero */
body.rtl-active .hero-btns { direction: rtl !important; }

/* About */
body.rtl-active .about-grid { direction: rtl !important; }

/* Services */
body.rtl-active .service-card { text-align: right !important; }
body.rtl-active .mv-card,
body.rtl-active .value-card { text-align: right !important; }
body.rtl-active .about-text .section-label,
body.rtl-active .about-text h2,
body.rtl-active .about-text p { text-align: right !important; }

/* Portfolio labels */
body.rtl-active .portfolio-label { direction: rtl !important; text-align: right !important; }

/* Testimonials */
body.rtl-active .testimonial-card { text-align: right !important; direction: rtl !important; }
body.rtl-active .testimonial-author { flex-direction: row !important; }

/* Form */
body.rtl-active .form-row    { direction: rtl !important; }
body.rtl-active .form-group label { text-align: right !important; }
body.rtl-active .form-group input,
body.rtl-active .form-group select,
body.rtl-active .form-group textarea { text-align: right !important; direction: rtl !important; }

/* Contact */
body.rtl-active .contact-grid        { direction: rtl !important; }
body.rtl-active .contact-item        { flex-direction: row !important; }
body.rtl-active .contact-info h3,
body.rtl-active .contact-info p      { text-align: right !important; }

/* Footer */
body.rtl-active .footer-top     { direction: rtl !important; }
body.rtl-active .footer-brand p { text-align: right !important; }
body.rtl-active .footer-col h4  { text-align: right !important; }
body.rtl-active .footer-col ul  { text-align: right !important; align-items: flex-end !important; }
body.rtl-active .footer-bottom  { flex-direction: row-reverse !important; }
body.rtl-active .footer-bottom p { text-align: right !important; }

/* Mobile Menu Fixes */
body.rtl-active .mobile-menu button#mobile-close { left: 1.5rem !important; right: auto !important; }


/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  #hero { clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 4rem 1.25rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure mobile menu is hidden on desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .hamburger { display: none !important; }
}
