/* ============================================================
   NEXSEZ — Portfolio Design System
   Signature motif: a glowing "stitch line" — a dashed thread that
   draws itself between nodes (shops/customers/orders), echoing
   tailoring craft translated into a connected SaaS network.
   ============================================================ */

:root{
  /* Color */
  --bg:            #0B0D10;   /* base charcoal */
  --bg-panel:      #14171C;   /* raised panel */
  --bg-panel-2:    #1A1E24;   /* deeper raised panel */
  --line:          rgba(255,255,255,0.08);
  --line-strong:   rgba(255,255,255,0.14);
  --text:          #EDEFF2;
  --text-dim:      #9AA1AC;
  --text-faint:    #6B7280;
  --orange:        #FF7A29;
  --orange-2:      #FFB27A;
  --blue:          #2FA8FF;
  --blue-2:        #8FD1FF;

  /* Type */
  --f-display: "Space Grotesk", "Segoe UI", sans-serif;
  --f-body:    "Inter", "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Layout — truly edge-to-edge: no max-width cap, and padding is
     a small FIXED-feeling clamp that stops growing well before it
     could ever look like a big empty margin on a wide monitor. */
  --maxw: none;
  --pad: clamp(20px, 2vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;

  color-scheme: dark;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--text-dim); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); }
.eyebrow{
  font-family:var(--f-mono); font-size:.78rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--orange-2); display:inline-flex;
  align-items:center; gap:.6em; margin-bottom:1em;
}
.eyebrow::before{
  content:""; width:22px; height:1px;
  background:linear-gradient(90deg,var(--orange),transparent);
}

/* ---------- Ambient background: slow drifting glow field ---------- */
.ambient{
  position:fixed; inset:0; z-index:-2; overflow:hidden; pointer-events:none;
  background:var(--bg);
}
.ambient::before,.ambient::after{
  content:""; position:absolute; width:60vw; height:60vw; border-radius:50%;
  filter:blur(120px); opacity:.28; will-change:transform;
}
.ambient::before{
  background:var(--orange); top:-15%; left:-10%;
  animation:driftA 26s ease-in-out infinite alternate;
}
.ambient::after{
  background:var(--blue); bottom:-20%; right:-10%;
  animation:driftB 32s ease-in-out infinite alternate;
}
@keyframes driftA{
  0%{ transform:translate(0,0) scale(1); }
  100%{ transform:translate(6vw,8vw) scale(1.15); }
}
@keyframes driftB{
  0%{ transform:translate(0,0) scale(1); }
  100%{ transform:translate(-7vw,-5vw) scale(1.1); }
}
.grain{
  position:fixed; inset:0; z-index:-1; opacity:.035; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(14px) saturate(140%);
  background:rgba(11,13,16,0.72);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:16px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--f-display); font-weight:700; font-size:1.1rem; }
.brand-mark{
  width:var(--logo-size, 30px); height:var(--logo-size, 30px); border-radius:8px;
  background:conic-gradient(from 210deg,var(--orange),var(--blue),var(--orange));
  position:relative; flex:none;
}
.brand-mark::after{
  content:""; position:absolute; inset:2px; border-radius:6px; background:var(--bg-panel); z-index:0;
}
.brand-text{ line-height:1; }

/* ---------- Brand animations (logo mark) ---------- */
.brand-anim-pulse{ animation:brandPulse 2.1s ease-in-out infinite; }
@keyframes brandPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.1); } }

.brand-anim-glow{ animation:brandGlow 2.4s ease-in-out infinite; }
@keyframes brandGlow{
  0%,100%{ box-shadow:0 0 0 rgba(255,122,41,0); }
  50%{ box-shadow:0 0 16px 2px rgba(255,122,41,.65); }
}

.brand-anim-spin{ animation:spin 5s linear infinite; }

.brand-anim-bounce{ animation:brandBounce 1.5s ease-in-out infinite; }
@keyframes brandBounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-4px); } }
.nav-links{ display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:.92rem; color:var(--text-dim); position:relative; padding:4px 0;
  transition:color .25s;
}
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background:linear-gradient(90deg,var(--orange),var(--blue)); border-radius:2px;
}
.nav-cta{
  padding:10px 18px; border-radius:100px; font-size:.88rem; font-weight:600;
  background:linear-gradient(90deg,var(--orange),#ff9955); color:#1a0e05;
  box-shadow:0 0 24px -4px rgba(255,122,41,.55);
  transition:transform .2s, box-shadow .2s;
}
.nav-cta:hover{ transform:translateY(-1px); box-shadow:0 0 34px -2px rgba(255,122,41,.75); }
.nav-cta-app{
  background:transparent; color:var(--blue-2); border:1px solid var(--line-strong); box-shadow:none;
}
.nav-cta-app:hover{ border-color:var(--blue); color:var(--blue-2); transform:translateY(-1px); box-shadow:none; }
.nav-toggle{
  display:none; align-items:center; justify-content:center; width:42px; height:42px; padding:0;
  background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:12px;
  color:var(--text); font-size:1.25rem; line-height:1; cursor:pointer;
  transition:border-color .2s, background .2s;
}
.nav-toggle:hover{ border-color:var(--blue); background:rgba(47,168,255,.08); }
.nav-menu-extra{ display:none; }

/* Mobile / tablet menu: a dropdown under the header (the header uses
   backdrop-filter, which would trap a position:fixed panel inside it). */
@media (max-width:1080px){
  .nav-inner{ position:relative; }
  .nav-toggle{ display:inline-flex; }
  .nav-cta{ display:none; }
  .nav-actions{ margin-inline-start:auto; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; z-index:40;
    flex-direction:column; align-items:stretch; gap:0;
    padding:6px var(--pad) 22px; margin:0;
    background:var(--bg); border-bottom:1px solid var(--line-strong);
    box-shadow:0 28px 48px -16px rgba(0,0,0,.65);
    max-height:calc(100vh - 110px); max-height:calc(100dvh - 110px); overflow-y:auto;
    opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav-links.open{ opacity:1; visibility:visible; transform:none; transition-delay:0s; }
  .nav-links li{ border-bottom:1px solid var(--line); }
  .nav-links a{ display:block; padding:16px 4px; font-size:1.05rem; }
  .nav-links a.active{ color:var(--text); border-inline-start:3px solid var(--orange); padding-inline-start:14px; }
  .nav-links a.active::after{ display:none; }
  .nav-links li.nav-menu-extra{ display:block; border-bottom:0; padding-top:18px; }
  .nav-links .nav-menu-app{
    display:flex; align-items:center; justify-content:center; padding:14px 22px; border-radius:100px;
    font-weight:600; color:var(--blue-2); border:1px solid var(--blue); background:rgba(47,168,255,.08);
  }
  .nav-links .nav-menu-app:hover{ background:rgba(47,168,255,.16); }
}
@media (min-width:1081px) and (max-width:1280px){
  .nav-links{ gap:22px; }
  .nav-inner{ gap:16px; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px; padding:14px 26px;
  border-radius:100px; font-weight:600; font-size:.95rem; cursor:pointer;
  border:1px solid transparent; transition:transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary{
  background:linear-gradient(90deg,var(--orange),#ff9955); color:#1a0e05;
  box-shadow:0 0 30px -6px rgba(255,122,41,.6);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 0 40px -4px rgba(255,122,41,.8); }
.btn-ghost{
  background:transparent; color:var(--text); border-color:var(--line-strong);
}
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue-2); }
.btn:focus-visible{ outline:2px solid var(--blue-2); outline-offset:3px; }

/* ---------- Section rhythm ---------- */
section{ padding:clamp(64px,10vw,120px) 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Reveal-on-scroll ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.in > *:nth-child(1){ transition-delay:.03s; }
.reveal-stagger.in > *:nth-child(2){ transition-delay:.10s; }
.reveal-stagger.in > *:nth-child(3){ transition-delay:.17s; }
.reveal-stagger.in > *:nth-child(4){ transition-delay:.24s; }
.reveal-stagger.in > *:nth-child(5){ transition-delay:.31s; }
.reveal-stagger.in > *:nth-child(6){ transition-delay:.38s; }
.reveal-stagger.in > *:nth-child(7){ transition-delay:.45s; }
.reveal-stagger.in > *:nth-child(8){ transition-delay:.52s; }
@media (prefers-reduced-motion:reduce){
  .reveal,.reveal-stagger>*{ opacity:1 !important; transform:none !important; transition:none !important; }
  .ambient::before,.ambient::after{ animation:none !important; }
  .brand-anim-pulse,.brand-anim-glow,.brand-anim-spin,.brand-anim-bounce{ animation:none !important; }
}

/* ---------- Hero ---------- */
.hero{ padding-top:clamp(56px,9vw,96px); }
.hero-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; gap:40px; } }
.hero-photo-wrap{ position:relative; justify-self:center; display:flex; align-items:center; justify-content:center; }
.hero-photo{
  width:min(340px,80vw); aspect-ratio:1/1.05; border-radius:26px; position:relative;
  overflow:hidden; background:linear-gradient(160deg,#20242b,#0f1114);
  border:1px solid var(--line-strong);
  box-shadow:0 0 0 1px rgba(255,255,255,.03), 0 30px 60px -20px rgba(0,0,0,.6);
}
.hero-photo::before{
  content:""; position:absolute; inset:-40%; background:conic-gradient(from 0deg,var(--orange),transparent 30%,var(--blue),transparent 70%,var(--orange));
  animation:spin 10s linear infinite; opacity:.55; filter:blur(2px);
}
.hero-photo::after{
  content:""; position:absolute; inset:3px; border-radius:23px; background:var(--bg-panel);
}
.hero-photo-fig{
  position:absolute; inset:3px; border-radius:23px; z-index:2; display:flex; align-items:center;
  justify-content:center; overflow:hidden;
}
.hero-photo-fig svg{ width:100%; height:100%; }
.hero-photo-wrap .reveal-wipe{
  position:absolute; inset:3px; z-index:3; border-radius:23px; background:var(--bg);
  transform-origin:top; animation:wipeReveal 1.1s .3s cubic-bezier(.7,0,.2,1) forwards;
}

/* Plain, borderless hero media — used once a real photo/video is
   uploaded, so it blends straight into the page background instead
   of sitting inside a framed card. Size is admin-controlled via the
   --hero-media-size custom property set inline on this element. */
.hero-media-plain{
  width:var(--hero-media-size, 380px); max-width:92vw; position:relative;
  background:transparent; border:0; box-shadow:none; margin:0 auto;
}
.hero-media-plain img, .hero-media-plain video{
  width:100%; height:auto; display:block; background:transparent;
}

@keyframes wipeReveal{ to{ transform:scaleY(0); } }
@keyframes spin{ to{ transform:rotate(360deg); } }
.hero-kicker{ font-family:var(--f-mono); font-size:.82rem; letter-spacing:.12em; color:var(--blue-2); text-transform:uppercase; margin-bottom:14px; }
.hero-title{ font-size:clamp(2.2rem,4.6vw,3.6rem); }
.hero-title .grad{
  background:linear-gradient(90deg,var(--orange),var(--orange-2) 45%,var(--blue));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-tagline{ font-size:1.15rem; max-width:46ch; color:var(--text-dim); margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Stats ---------- */
.stats-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden;
}
@media (max-width:760px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }
.stat{ background:var(--bg-panel); padding:32px 20px; text-align:center; }
.stat-num{
  font-family:var(--f-display); font-size:clamp(1.8rem,4vw,2.6rem); font-weight:700;
  background:linear-gradient(90deg,var(--orange-2),var(--blue-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-label{ font-size:.86rem; color:var(--text-dim); margin-top:6px; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:22px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:960px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--bg-panel); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:28px; transition:transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover{
  transform:translateY(-6px); border-color:rgba(255,122,41,.4);
  box-shadow:0 20px 50px -20px rgba(255,122,41,.25), 0 0 0 1px rgba(47,168,255,.08);
}
.card-icon{
  width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,rgba(255,122,41,.18),rgba(47,168,255,.18)); margin-bottom:18px;
}
.card-icon svg{ width:22px; height:22px; stroke:var(--orange-2); }
.card h3{ font-size:1.08rem; margin-bottom:8px; }
.card p{ font-size:.92rem; margin:0; }

/* ---------- Feature thumb / gallery ---------- */
.thumb{
  border-radius:var(--radius-lg); overflow:hidden; position:relative; aspect-ratio:4/3;
  background:linear-gradient(135deg,#1b2027,#0f1114); border:1px solid var(--line); cursor:pointer;
}
.thumb svg{ width:100%; height:100%; transition:transform .5s ease; }
.thumb:hover svg{ transform:scale(1.08); }
.thumb-tag{
  position:absolute; top:12px; left:12px; font-family:var(--f-mono); font-size:.7rem;
  padding:5px 10px; border-radius:100px; background:rgba(11,13,16,.7); color:var(--blue-2);
  border:1px solid var(--line-strong); backdrop-filter:blur(6px);
}
.thumb-caption{ padding:16px 4px 0; }
.thumb-caption h4{ font-size:.98rem; margin-bottom:4px; }
.thumb-caption p{ font-size:.85rem; margin:0; }

/* ---------- Marquee ---------- */
.marquee-wrap{ overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; }
.marquee-track{ display:flex; gap:56px; width:max-content; animation:scrollM 26s linear infinite; }
.marquee-track span{ font-family:var(--f-mono); font-size:.95rem; color:var(--text-dim); white-space:nowrap; display:flex; align-items:center; gap:16px; }
.marquee-track span::after{ content:"◆"; color:var(--orange); font-size:.6rem; }
@keyframes scrollM{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- Testimonials ---------- */
.testi-track{ display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; scrollbar-width:none; }
.testi-track::-webkit-scrollbar{ display:none; }
.testi-card{
  min-width:min(420px,86vw); scroll-snap-align:start; background:var(--bg-panel);
  border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px;
}
.testi-quote{ font-size:1.02rem; color:var(--text); margin-bottom:18px; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar{ width:38px; height:38px; border-radius:50%; background:linear-gradient(135deg,var(--orange),var(--blue)); flex:none; }
.testi-name{ font-size:.9rem; font-weight:600; }
.testi-role{ font-size:.8rem; color:var(--text-faint); }
.testi-dots{ display:flex; gap:8px; margin-top:18px; justify-content:center; }
.testi-dots button{ width:8px; height:8px; border-radius:50%; background:var(--line-strong); border:0; cursor:pointer; padding:0; }
.testi-dots button.active{ background:var(--orange); }

/* ---------- Timeline ---------- */
.timeline{ position:relative; padding-left:36px; }
.timeline::before{ content:""; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:linear-gradient(var(--orange),var(--blue)); opacity:.5; }
.tl-item{ position:relative; padding-bottom:40px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-dot{ position:absolute; left:-36px; top:2px; width:14px; height:14px; border-radius:50%; background:var(--bg); border:2px solid var(--orange); box-shadow:0 0 14px rgba(255,122,41,.6); }
.tl-year{ font-family:var(--f-mono); font-size:.78rem; color:var(--blue-2); margin-bottom:4px; display:block; }
.tl-item h3{ font-size:1.05rem; margin-bottom:6px; }
.tl-item p{ font-size:.92rem; margin:0; }

/* ---------- Skill meters ---------- */
.skill{ margin-bottom:20px; }
.skill-top{ display:flex; justify-content:space-between; font-size:.9rem; margin-bottom:8px; }
.skill-track{ height:8px; border-radius:100px; background:var(--bg-panel-2); overflow:hidden; border:1px solid var(--line); }
.skill-fill{ height:100%; border-radius:100px; width:0%; background:linear-gradient(90deg,var(--orange),var(--blue)); transition:width 1.1s cubic-bezier(.2,.7,.2,1); }

/* ---------- Filter tabs ---------- */
.tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.tab{
  padding:10px 18px; border-radius:100px; border:1px solid var(--line-strong); background:transparent;
  color:var(--text-dim); font-size:.88rem; cursor:pointer; transition:all .25s;
}
.tab:hover{ color:var(--text); }
.tab.active{ background:linear-gradient(90deg,var(--orange),#ff9955); color:#1a0e05; border-color:transparent; font-weight:600; }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(6,7,9,.86); backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center; padding:24px; opacity:0; pointer-events:none; transition:opacity .3s;
}
.lightbox.open{ opacity:1; pointer-events:all; }
.lightbox-box{
  max-width:720px; width:100%; background:var(--bg-panel); border:1px solid var(--line-strong); border-radius:var(--radius-lg);
  overflow:hidden; transform:scale(.94); transition:transform .3s;
}
.lightbox.open .lightbox-box{ transform:scale(1); }
.lightbox-media{ aspect-ratio:16/10; }
.lightbox-media svg{ width:100%; height:100%; }
.lightbox-body{ padding:24px; }
.lightbox-close{
  position:absolute; top:20px; right:20px; width:40px; height:40px; border-radius:50%;
  background:var(--bg-panel); border:1px solid var(--line-strong); color:var(--text); font-size:1.2rem; cursor:pointer;
}

/* ---------- Forms ---------- */
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:.86rem; color:var(--text-dim); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid var(--line-strong);
  background:var(--bg-panel); color:var(--text); font-family:inherit; font-size:.95rem;
  transition:border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--orange); background:var(--bg-panel-2);
  box-shadow:0 0 0 4px rgba(255,122,41,.14);
}
.field textarea{ resize:vertical; min-height:130px; }
.form-note{
  display:none; padding:14px 18px; border-radius:12px; margin-top:18px; font-size:.9rem;
  background:rgba(47,168,255,.1); border:1px solid rgba(47,168,255,.35); color:var(--blue-2);
}
.form-note.show{ display:block; }

/* ---------- Contact info list ---------- */
.contact-list{ display:grid; gap:14px; margin-top:28px; }
.contact-item{ display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:14px; background:var(--bg-panel); border:1px solid var(--line); }
.contact-item .card-icon{ margin:0; width:38px; height:38px; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:28px; padding:clamp(40px,7vw,72px); text-align:center; position:relative; overflow:hidden;
  background:linear-gradient(135deg,#191308,#0d1a22); border:1px solid var(--line-strong);
}
.cta-band::before{
  content:""; position:absolute; width:70%; height:140%; top:-20%; left:-10%;
  background:radial-gradient(circle,rgba(255,122,41,.22),transparent 60%); filter:blur(10px);
}
.cta-band::after{
  content:""; position:absolute; width:60%; height:140%; bottom:-30%; right:-10%;
  background:radial-gradient(circle,rgba(47,168,255,.2),transparent 60%); filter:blur(10px);
}
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ font-size:clamp(1.6rem,4vw,2.4rem); max-width:24ch; margin:0 auto .5em; }
.cta-band p{ max-width:44ch; margin:0 auto 28px; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--line); padding:56px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:40px; }
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); margin-bottom:16px; }
.footer-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer-links a{ color:var(--text-dim); font-size:.9rem; transition:color .2s; }
.footer-links a:hover{ color:var(--orange-2); }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line-strong); display:flex;
  align-items:center; justify-content:center; transition:border-color .2s, color .2s;
}
.social-row a:hover{ border-color:var(--orange); color:var(--orange-2); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem; color:var(--text-faint); border-top:1px solid var(--line); padding-top:24px; }

/* ---------- Achievement / awards ---------- */
.award-card{ display:flex; gap:20px; }
.award-badge{
  flex:none; width:56px; height:56px; border-radius:16px;
  background:conic-gradient(from 210deg,var(--orange),var(--blue),var(--orange));
  display:flex; align-items:center; justify-content:center; position:relative;
}
.award-badge::after{ content:""; position:absolute; inset:2px; border-radius:14px; background:var(--bg-panel); }
.award-badge svg{ width:24px; height:24px; z-index:1; stroke:var(--orange-2); }
.award-year{ font-family:var(--f-mono); font-size:.76rem; color:var(--blue-2); }

/* ---------- Utility ---------- */
.mt-0{ margin-top:0; }
.text-center{ text-align:center; }
.badge{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:.78rem;
  padding:6px 12px; border-radius:100px; border:1px solid var(--line-strong); color:var(--text-dim);
}

/* ---------- Pricing (Pricing page plan cards) ---------- */
.price-card{
  display:flex; flex-direction:column; position:relative; overflow:visible;
}
.price-card.is-highlighted{
  border-color:var(--orange); box-shadow:0 20px 60px -20px rgba(255,122,41,.35);
}
.price-badge{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:linear-gradient(90deg,var(--orange),#ff9955); color:#1a0e05;
  font-family:var(--f-mono); font-size:.72rem; font-weight:600; letter-spacing:.06em;
  padding:6px 16px; border-radius:100px; text-transform:uppercase; white-space:nowrap;
  box-shadow:0 8px 20px -6px rgba(255,122,41,.6);
}
.price-plan-name{ font-size:1.1rem; margin-bottom:4px; }
.price-desc{ font-size:.88rem; margin-bottom:20px; min-height:2.6em; }
.price-value-row{ display:flex; align-items:baseline; gap:6px; margin-bottom:24px; flex-wrap:wrap; }
.price-value{
  font-family:var(--f-display); font-size:clamp(2rem,4vw,2.6rem); font-weight:700;
  background:linear-gradient(90deg,var(--orange-2),var(--blue-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.price-currency{ font-family:var(--f-mono); font-size:.9rem; color:var(--text-dim); }
.price-period{ font-size:.88rem; color:var(--text-faint); }
.price-features{ list-style:none; margin:0 0 28px; padding:0; display:grid; gap:12px; flex:1; }
.price-features li{ display:flex; align-items:flex-start; gap:10px; font-size:.9rem; color:var(--text-dim); }
.price-features li::before{
  content:"✓"; flex:none; width:20px; height:20px; border-radius:50%;
  background:rgba(255,122,41,.16); color:var(--orange-2); font-size:.72rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; margin-top:2px;
}
.price-card .btn{ justify-content:center; width:100%; }

/* ============================================================
   Language switch + Arabic (right-to-left) version of the site
   ============================================================ */
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-lang{
  display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border-radius:100px;
  font-size:.85rem; font-weight:600; line-height:1; white-space:nowrap;
  color:var(--text-dim); border:1px solid var(--line); background:rgba(255,255,255,.03);
  transition:color .2s, border-color .2s, background .2s;
}
.nav-lang-icon{ flex:none; display:block; opacity:.85; transition:transform .45s ease, opacity .2s; }
.nav-lang-label{ font-family:"Tajawal","Segoe UI",Tahoma,sans-serif; }
.nav-lang:hover{ color:var(--text); border-color:var(--blue); background:rgba(47,168,255,.08); }
.nav-lang:hover .nav-lang-icon{ opacity:1; transform:rotate(25deg); }
.nav-lang:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
@media (max-width:1080px){ .nav-lang{ padding:7px 11px; font-size:.8rem; } .nav-inner{ gap:14px; } }

/* Arabic needs its own font, and letters must never be spaced out
   (letter-spacing breaks Arabic letter joining). */
[dir="rtl"]{ --f-display:"Tajawal","Segoe UI",Tahoma,sans-serif; --f-body:"Tajawal","Segoe UI",Tahoma,sans-serif; --f-mono:"Tajawal","Segoe UI",Tahoma,sans-serif; }
[dir="rtl"] *,
[dir="rtl"] *::before,
[dir="rtl"] *::after{ letter-spacing:0 !important; text-transform:none !important; }
[dir="rtl"] body{ line-height:1.75; }

/* Things that were pinned to the left/right edge */
[dir="rtl"] .thumb-tag{ left:auto; right:12px; }
[dir="rtl"] .lightbox-close{ right:auto; left:20px; }
[dir="rtl"] .timeline{ padding-left:0; padding-right:36px; }
[dir="rtl"] .timeline::before{ left:auto; right:6px; }
[dir="rtl"] .tl-dot{ left:auto; right:-36px; }

/* The testimonial slider and the marquee scroll sideways with
   scrollLeft / translateX, which only behave in a left-to-right box.
   The box stays LTR; the text inside is still right-to-left. */
[dir="rtl"] .testi-track,
[dir="rtl"] .marquee-track{ direction:ltr; }
[dir="rtl"] .testi-card,
[dir="rtl"] .marquee-track span{ direction:rtl; }
[dir="rtl"] .testi-card{ text-align:right; }

/* (Mobile menu: it slides in from the right in both directions. In RTL the
   right edge is the "start" side, where nothing can overflow into a
   sideways scroll, so no override is needed.) */

/* ---------- Admin panel: "Arabic" tab ---------- */
.ar-group{ margin-bottom:14px; }
.ar-item{ font-size:.8rem; color:var(--orange-2); margin:14px 0 8px; }
.ar-row{ display:grid; grid-template-columns:1fr 1.3fr 150px; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); align-items:start; }
.ar-row:last-child{ border-bottom:0; }
.ar-field{ display:block; font-size:.72rem; color:var(--text-faint); margin-bottom:3px; }
.ar-english{ font-size:.84rem; color:var(--text); white-space:pre-line; word-break:break-word; }
.ar-row textarea{ min-height:0; direction:rtl; text-align:right; font-family:"Tajawal","Segoe UI",Tahoma,sans-serif; }
.ar-status{ font-size:.72rem; padding-top:6px; }
.ar-status-auto{ color:var(--blue-2); }
.ar-status-manual{ color:#7ee8a8; }
.ar-status-missing,.ar-status-outdated{ color:#ffb27a; }
.ar-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:14px; }
@media (max-width:820px){ .ar-row{ grid-template-columns:1fr; } }
