/* ── MENU OVERLAY ── */
#menuOverlay {
  position: fixed;
  inset: 0;
  z-index: 997;
  background: rgba(13, 10, 20, 0);
  pointer-events: none;
  transition: background 0.4s ease;
}
#menuOverlay.active {
  background: rgba(13, 10, 20, 0.6);
  pointer-events: auto;
}

/* ── RESET & VARIABLES ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #7b2fbe;
  --purple-l: #9b59d0;
  --purple-d: #4a1080;
  --dark: #0d0a14;
  --dark2: #150f22;
  --dark3: #1e1530;
  --white: #ffffff;
  --off-white: #f4f0fa;
  --gray: #8a8a9a;
  --light-gray: #c8c4d4;
  --accent: #b06fe8;
  --font-head: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--white); color: var(--dark); overflow-x: hidden; max-width: 100vw; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(13, 10, 20, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(123, 47, 190, 0.2);
  transition: box-shadow 0.3s;
  isolation: isolate;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(123, 47, 190, 0.35); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  color: var(--white); text-decoration: none;
  white-space: nowrap; flex-shrink: 0; min-width: 0;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff;
}
.nav-logo span { display: inline-block; }

#desktopLinks { display: flex; align-items: center; gap: 2rem; list-style: none; }
#desktopLinks a {
  color: var(--light-gray); text-decoration: none; font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.03em; transition: color 0.2s; position: relative;
}
#desktopLinks a::after {
  content: ""; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--purple-l); transition: width 0.25s;
}
#desktopLinks a:hover { color: var(--white); }
#desktopLinks a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }

.btn-contact {
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  color: #fff; border: none; padding: 0.5rem 1.2rem;
  border-radius: 6px; font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 500; cursor: pointer; transition: opacity 0.2s, transform 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-contact:hover { opacity: 0.85; transform: translateY(-1px); }

.lang-badge {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--light-gray); font-size: 0.75rem; padding: 0.3rem 0.65rem;
  border-radius: 4px; cursor: pointer; transition: background 0.2s;
}
.lang-badge:hover { background: rgba(255, 255, 255, 0.15); }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }

/* ── HERO ── */
#hero {
  min-height: 100vh; background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 5% 80px; position: relative; overflow: hidden;
}
#hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(123, 47, 190, 0.45), transparent),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(92, 45, 145, 0.3), transparent),
    radial-gradient(ellipse 30% 30% at 10% 70%, rgba(123, 47, 190, 0.15), transparent);
}
#hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 47, 190, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 47, 190, 0.07) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards; position: relative; z-index: 1;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800; line-height: 1.05; color: var(--white);
  opacity: 0; animation: fadeUp 0.7s 0.35s forwards; position: relative; z-index: 1;
}
.hero-title span { color: var(--purple-l); }
.hero-sub {
  margin-top: 1.4rem; font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--gray);
  max-width: 560px; line-height: 1.65;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards; position: relative; z-index: 1;
}

/* ── HERO CARDS ── */
.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3.5rem; width: 100%; max-width: 840px;
  position: relative; z-index: 1;
  opacity: 0; animation: fadeUp 0.8s 0.65s forwards;
}
.diamond-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.diamond {
  width: 100%; height: 240px; border-radius: 16px; overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55); transition: transform 0.3s, box-shadow 0.3s;
}
.diamond:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 28px 70px rgba(123, 47, 190, 0.5); }
.diamond img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.5); transition: transform 0.5s;
}
.diamond:hover img { transform: scale(1.06); }
.diamond-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(123, 47, 190, 0.55), rgba(0, 0, 0, 0.3));
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.diamond-label { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.diamond-btn {
  display: inline-block; width: auto; background: #fff; color: var(--dark);
  border: none; font-size: 0.85rem; font-weight: 700;
  padding: 0.6rem 1.8rem; border-radius: 8px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); transition: background 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.diamond-btn:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }

/* ── SHARED ── */
section { padding: 90px 8%; }
.section-tag { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--purple); font-weight: 700; margin-bottom: 0.6rem; }
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.15; }
.section-title em { font-style: normal; color: var(--purple); }

/* ── ABOUT ── */
#about { background: var(--off-white); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 80px 8%; }
#about .right p { color: #444; line-height: 1.75; font-size: 0.95rem; margin-bottom: 1.4rem; }
.btn-primary {
  display: inline-block; background: var(--purple); color: #fff;
  padding: 0.7rem 1.8rem; border-radius: 6px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--purple-d); transform: translateY(-2px); }

/* ── SERVICES ── */
#services { background: var(--dark2); text-align: center; padding: 90px 8%; }
#services .section-title { color: var(--white); margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 900px; margin: 0 auto 2.5rem; }
.service-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--light-gray); font-size: 0.92rem; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.service-item:hover { background: rgba(123, 47, 190, 0.15); color: #fff; }
.service-item .si-plus {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(123, 47, 190, 0.35);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--purple-l); flex-shrink: 0;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--purple);
  color: var(--purple-l); padding: 0.7rem 1.8rem; border-radius: 6px; font-size: 0.9rem;
  text-decoration: none; transition: background 0.2s, color 0.2s; cursor: pointer; background: transparent;
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ── FEATURE ROWS ── */
#features { padding: 0; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feat-img { overflow: hidden; position: relative; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75); transition: transform 0.6s; }
.feat-img:hover img { transform: scale(1.04); }
.feat-text { background: var(--white); padding: 60px 7%; display: flex; flex-direction: column; justify-content: center; }
.feat-text .section-tag { margin-bottom: 0.5rem; }
.feat-text .section-title { margin-bottom: 1.2rem; }
.feat-text p { color: #555; line-height: 1.75; font-size: 0.93rem; margin-bottom: 1.6rem; }
.btn-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--purple); color: #fff;
  padding: 0.65rem 1.6rem; border-radius: 6px; font-size: 0.88rem; text-decoration: none;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; width: fit-content;
}
.btn-arrow:hover { background: var(--purple-d); transform: translateX(3px); }
.btn-arrow svg { width: 14px; height: 14px; }

/* ── TESTIMONIALS — 3-column grid ── */
#testimonials { background: var(--dark3); padding: 90px 8%; text-align: center; }
#testimonials .section-title { color: var(--white); margin-bottom: 3rem; }
#testimonials .section-title em { color: var(--purple-l); }

.testi-track-wrap { overflow: visible; }
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  transform: none !important;
  transition: none;
}
.testi-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 2rem; text-align: left;
  transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover { border-color: rgba(123, 47, 190, 0.5); transform: translateY(-4px); }
.testi-card .stars { color: #f5a623; font-size: 0.85rem; margin-bottom: 1rem; }
.testi-card .quote { color: var(--light-gray); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testi-card .author { display: flex; align-items: center; gap: 0.8rem; }
.testi-card .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-l));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.testi-card .author-info .name { color: #fff; font-weight: 600; font-size: 0.88rem; }
.testi-card .author-info .role { color: var(--gray); font-size: 0.78rem; }
.testi-dots { display: none; }

/* ── PARTNERS ── */
#partners { background: var(--off-white); padding: 70px 8%; text-align: center; }
#partners h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
#partners h2 em { font-style: normal; color: var(--purple); }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; }
.partner-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; color: #555; opacity: 0.65; transition: opacity 0.25s; text-decoration: none; }
.partner-logo:hover { opacity: 1; }
.partner-logo svg { height: 28px; width: auto; }

/* ── FOOTER ── */
footer { background: var(--dark); color: var(--gray); padding: 70px 8% 30px; }
.footer-cta { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 2rem 0; display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; margin-bottom: 2rem; }
.footer-cta-left { flex: 1; min-width: 220px; }
.footer-cta-left p { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--white); line-height: 1.4; margin-bottom: 1.2rem; }
.footer-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1.2rem; color: #fff; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--white); margin-bottom: 1.2rem; letter-spacing: 0.04em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul a { color: var(--gray); text-decoration: none; font-size: 0.87rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; font-size: 0.85rem; align-items: flex-start; }
.footer-contact li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--purple-l); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; }
.social-icons { display: flex; gap: 0.8rem; }
.social-icon { width: 32px; height: 32px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); display: flex; align-items: center; justify-content: center; color: var(--gray); transition: background 0.2s, color 0.2s; cursor: pointer; text-decoration: none; }
.social-icon:hover { background: var(--purple); color: #fff; }
.social-icon svg { width: 15px; height: 15px; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: none; }

/* ── ACCORDION ── */
.accordion {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.acc-item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .25s;
}
.acc-item.open {
  border-color: rgba(123,47,190,.6);
}

.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: rgba(255,255,255,.04);
  border: none;
  cursor: pointer;
  color: var(--light-gray);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  text-align: left;
  transition: background .2s, color .2s;
  gap: 1rem;
}
.acc-header:hover,
.acc-item.open .acc-header {
  background: rgba(123,47,190,.18);
  color: #fff;
}

.acc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(123,47,190,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--purple-l);
  flex-shrink: 0;
  transition: transform .3s, background .2s;
  line-height: 1;
}
.acc-item.open .acc-icon {
  transform: rotate(45deg);
  background: var(--purple);
  color: #fff;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.5rem;
  background: rgba(0,0,0,.2);
}
.acc-item.open .acc-body {
  max-height: 500px;
  padding: 1.2rem 1.5rem 1.4rem;
}

.acc-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.acc-body ul li {
  color: var(--light-gray);
  font-size: .88rem;
  line-height: 1.6;
  padding-left: 0;
  position: relative;
}
.acc-body ul li::before {
  content: '';
}
.acc-body ul li strong {
  color: #fff;
  font-weight: 600;
}

/* ════════════════════════════════════
   TABLET  ≤ 900px
════════════════════════════════════ */
/* ── MOBILE PANEL (global, not inside media query) ── */
.mobile-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(280px, 80vw);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 80px 0 2rem;
  background: #0d0a14;
  border-left: 2px solid rgba(123, 47, 190, 0.5);
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: -12px 0 50px rgba(0,0,0,0.9);
}
.mobile-panel.open { transform: translateX(0); pointer-events: auto; }
.mobile-panel a {
  display: block; width: 100%;
  padding: 1rem 1.8rem; font-size: 1rem;
  color: #c8c4d4; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
.mobile-panel a:hover { color: #fff; background: rgba(123,47,190,0.15); }

/* X button hidden on desktop, shown in panel on mobile */
.menu-close { display: none; }

@media (max-width: 900px) {
  nav { padding: 0 4%; height: 68px; }
  .nav-logo span { display: none; }
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .menu-close {
    display: flex;
    position: absolute;
    top: 18px; right: 18px;
    width: 38px; height: 38px;
    background: rgba(123, 47, 190, 0.25);
    border: 1px solid rgba(123, 47, 190, 0.4);
    border-radius: 8px;
    color: #fff; font-size: 1.2rem;
    cursor: pointer;
    align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 1001;
  }
  .menu-close:hover { background: var(--purple); }

  #hero { padding: 100px 5% 60px; }
  .hero-cards { grid-template-columns: 1fr 1fr; max-width: 540px; gap: 1.2rem; }
  .diamond-wrap:nth-child(3) { grid-column: 1 / -1; width: 260px; margin: 0 auto; }

  #about { grid-template-columns: 1fr; gap: 2.5rem; padding: 60px 6%; }
  .services-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feat-img { min-height: 260px; }
  .feat-text { padding: 40px 6%; }
  .testi-track { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-cta { flex-direction: column; gap: 1.5rem; }
}

/* ════════════════════════════════════
   MOBILE  ≤ 560px
════════════════════════════════════ */
@media (max-width: 560px) {
  nav { padding: 0 12px; height: 64px; }
  /* nav-links: full height right panel, no override needed */
  .nav-right { gap: 0.5rem; }
  .btn-contact { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
  .lang-badge { padding: 0.25rem 0.5rem; font-size: 0.7rem; }
  .nav-logo .logo-icon { width: 30px; height: 30px; }

  #hero { padding: 90px 5% 50px; }
  .hero-title { font-size: clamp(1.9rem, 10vw, 2.6rem); }
  .hero-sub { font-size: 0.9rem; }
  .hero-cards { grid-template-columns: 1fr; max-width: 340px; gap: 1.2rem; }
  .diamond-wrap:nth-child(3) { grid-column: auto; width: 100%; }
  .diamond { height: 200px; }

  #about { padding: 50px 5%; }
  section { padding: 60px 5%; }
  .acc-header { font-size: 0.85rem; padding: 0.9rem 1rem; }
  .feat-img { min-height: 210px; }
  .feat-text { padding: 32px 5%; }

  /* Testimonials: 1 column on mobile */
  .testi-track { grid-template-columns: 1fr; gap: 1rem; }
  .testi-card { padding: 1.4rem; }

  .partner-logos { gap: 1.5rem; }
  .partner-logo { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 50px 5% 24px; }
  .footer-cta-btns { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* force mobile menu links to stay white */
.nav-links a,
.nav-links a:visited,
.nav-links a:active {
  color: #ffffff !important;
}
.footer-contact a,
.footer-contact a:visited,
.footer-contact a:active {
  color: #ffffff;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--purple-l);
}