/* =========================================================
   ACOM — Design tokens
   Background: deep navy/black · Accents: blue → purple → cyan
   ========================================================= */
:root{
  --bg:            #070b16;
  --bg-alt:        #0a0f1e;
  --surface:       #0d1526;
  --surface-2:     #101a30;
  --border:        rgba(255,255,255,0.08);
  --border-soft:   rgba(255,255,255,0.05);

  --blue:          #3b82f6;
  --purple:        #8b5cf6;
  --cyan:          #22d3ee;
  --grad:          linear-gradient(90deg, var(--blue), var(--purple));
  --grad-2:        linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--purple));

  --text:          #eef1f8;
  --text-muted:    #93a0bb;
  --text-faint:    #5c6884;

  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;

  --shadow-glow:   0 0 40px rgba(59,130,246,0.15);
  --font-body:     'Vazirmatn', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; scroll-padding-top:90px; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.75;
  overflow-x:hidden;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(59,130,246,0.10), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139,92,246,0.08), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(34,211,238,0.07), transparent 40%);
  background-attachment:fixed;
  background-repeat:no-repeat;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea{ font-family:inherit; }

.container{
  width:100%;
  max-width:1200px;
  margin-inline:auto;
  padding-inline:24px;
}

/* ---------- Unified background layering ---------- */
/* Every section shares the single body background instead of
   alternating panel colors, so the page reads as one seamless
   surface. Sections just need to sit above the fixed particle
   layer below. */
.hero, .about, .skills, .portfolio, .timeline-section,
.services, .why-us, .testimonials, .cta-banner, .site-footer{
  position:relative;
  z-index:1;
}

/* =========================================================
   Light theme override
   ========================================================= */
:root[data-theme="light"]{
  --bg:            #f4f6fb;
  --bg-alt:        #eef1f8;
  --surface:       #ffffff;
  --surface-2:     #f1f4f9;
  --border:        rgba(15,23,42,0.10);
  --border-soft:   rgba(15,23,42,0.06);
  --text:          #0f172a;
  --text-muted:    #4b5875;
  --text-faint:    #8792a8;
}
:root[data-theme="light"] body{
  background-image:
    radial-gradient(circle at 15% 8%, rgba(59,130,246,0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(139,92,246,0.06), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(34,211,238,0.05), transparent 40%);
}
:root[data-theme="light"] .site-header{ background:rgba(244,246,251,0.7); }
:root[data-theme="light"] .site-header.scrolled{ background:rgba(244,246,251,0.9); }
:root[data-theme="light"] .preloader{ background:var(--bg); }
:root[data-theme="light"] .main-nav{ background:var(--bg); }

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle{
  width:38px;height:38px;
  flex-shrink:0;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
  font-size:0.95rem;
  transition:border-color .25s ease, transform .25s ease;
}
.theme-toggle:hover{ border-color:var(--cyan); transform:translateY(-2px) rotate(12deg); }
.theme-toggle .icon-moon{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display:inline-block; }

/* =========================================================
   Nav sliding indicator
   ========================================================= */
.main-nav{ position:relative; }
.nav-indicator{
  position:absolute;
  bottom:-6px;
  height:2px;
  border-radius:2px;
  background:var(--grad);
  opacity:0;
  transition:transform .35s cubic-bezier(.25,.8,.25,1), width .35s cubic-bezier(.25,.8,.25,1), opacity .3s ease;
  pointer-events:none;
}
@media (max-width:760px){
  .nav-indicator{ display:none; }
}

/* =========================================================
   Mobile nav overlay
   ========================================================= */
.nav-overlay{
  position:fixed;
  inset:0;
  z-index:90;
  background:rgba(3,6,14,0.55);
  backdrop-filter:blur(2px);
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
}
.nav-overlay.show{ opacity:1; visibility:visible; }
@media (min-width:761px){
  .nav-overlay{ display:none; }
}

/* =========================================================
   Scroll progress bar
   ========================================================= */
.scroll-progress{
  position:fixed;
  top:0; left:0; right:0;
  height:3px;
  z-index:200;
  pointer-events:none;
}
.scroll-progress-fill{
  height:100%;
  width:0%;
  background:var(--grad-2);
  box-shadow:0 0 10px rgba(34,211,238,0.6);
}

/* =========================================================
   Custom cursor (desktop / fine pointers only)
   ========================================================= */
@media (pointer:fine){
  a, button, .btn, .social-btn, .icon-btn, .nav-toggle{ cursor:none; }
  .custom-cursor-dot{
    position:fixed;
    top:0; left:0;
    width:7px; height:7px;
    border-radius:50%;
    background:var(--cyan);
    z-index:9997;
    pointer-events:none;
    transform:translate(-50%,-50%);
  }
  .custom-cursor-ring{
    position:fixed;
    top:0; left:0;
    width:32px; height:32px;
    border-radius:50%;
    border:1.5px solid var(--cyan);
    z-index:9997;
    pointer-events:none;
    transform:translate(-50%,-50%);
    transition:width .25s ease, height .25s ease, border-color .25s ease, opacity .25s ease;
    opacity:0.55;
  }
  .custom-cursor-ring.grow{
    width:52px; height:52px;
    border-color:var(--purple);
    opacity:0.85;
  }
}
@media (pointer:coarse), (hover:none){
  .custom-cursor-dot, .custom-cursor-ring{ display:none; }
}

/* =========================================================
   Card hover spotlight glow
   ========================================================= */
.glow-card{ position:relative; overflow:hidden; isolation:isolate; }
.glow-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(96,165,250,0.16), transparent 65%);
  opacity:0;
  transition:opacity .35s ease;
  pointer-events:none;
}
.glow-card:hover::before{ opacity:1; }

/* =========================================================
   Hero laptop mouse-tilt
   ========================================================= */
.laptop-mock{ transform-style:preserve-3d; }
.hero-visual.tilting .laptop-mock{
  animation:none;
  transform:
    rotateX(var(--tilt-y,0deg))
    rotateY(var(--tilt-x,0deg))
    translateY(-6px);
  transition:transform .1s ease-out;
}

/* =========================================================
   Styled scrollbar
   ========================================================= */
html{ scrollbar-width:thin; scrollbar-color:var(--blue) transparent; }
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, var(--blue), var(--purple));
  border-radius:99px;
  border:2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover{ background:linear-gradient(180deg, var(--cyan), var(--purple)); }

/* =========================================================
   Animated background particles
   ========================================================= */
.particles-bg{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.particle{
  position:absolute;
  bottom:-12px;
  border-radius:50%;
  opacity:0;
  animation-name:particleRise;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
  will-change:transform,opacity;
}
@keyframes particleRise{
  0%{   transform:translate(0,0) scale(1);   opacity:0; }
  10%{  opacity:var(--p-opacity,0.5); }
  50%{  transform:translate(var(--p-drift,20px), -55vh) scale(1.15); }
  90%{  opacity:var(--p-opacity,0.5); }
  100%{ transform:translate(calc(var(--p-drift,20px) * 2), -110vh) scale(0.75); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .particle{ display:none; }
}

.gradient-text{
  background:var(--grad-2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------- Focus ---------- */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
  border-radius:4px;
}

/* =========================================================
   Preloader
   ========================================================= */
.preloader{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.16), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(139,92,246,0.14), transparent 45%);
  transition:opacity .6s ease, visibility .6s ease;
}
.preloader.loaded{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.preloader-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
}
.preloader-orbit{
  position:relative;
  width:150px;
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pl-orbit-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  animation:orbitSpin linear infinite;
}
.pl-orbit-ring-1{ inset:14px; animation-duration:2.4s; }
.pl-orbit-ring-2{ inset:0; animation-duration:3.6s; animation-direction:reverse; }
.pl-orbit-ring-3{ inset:-14px; animation-duration:5.2s; }
.pl-orbit-dot{
  position:absolute;
  top:0;
  left:50%;
  width:9px;
  height:9px;
  margin-left:-4.5px;
  border-radius:50%;
}
.pl-orbit-ring-1 .pl-orbit-dot{ background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
.pl-orbit-ring-2 .pl-orbit-dot{ background:var(--purple); box-shadow:0 0 12px var(--purple); }
.pl-orbit-ring-3 .pl-orbit-dot{ background:var(--blue); box-shadow:0 0 12px var(--blue); }
@keyframes orbitSpin{ to{ transform:rotate(360deg); } }

.preloader-core{
  width:80px;
  height:80px;
  border-radius:50%;
  overflow:hidden;
  background:var(--surface);
  box-shadow:0 0 26px rgba(59,130,246,0.4), inset 0 0 0 1px var(--border);
  animation:corePulse 2s ease-in-out infinite;
}
.preloader-logo{
  width:100%;
  height:100%;
  object-fit:cover;
}
@keyframes corePulse{
  0%,100%{ box-shadow:0 0 22px rgba(59,130,246,0.4), inset 0 0 0 1px var(--border); }
  50%{ box-shadow:0 0 42px rgba(139,92,246,0.55), inset 0 0 0 1px var(--border); }
}
.preloader-text{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-top:26px;
}
.preloader-brand{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:1.15rem;
  letter-spacing:1px;
  background:var(--grad-2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.preloader-percent{
  font-family:var(--font-mono);
  font-size:0.82rem;
  letter-spacing:1px;
  color:var(--text-faint);
}

/* ---------- Scroll reveal ---------- */
.reveal-up{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal-up.in-view{ opacity:1; transform:translateY(0); }
.delay-1.in-view{ transition-delay:0.1s; }
.delay-2.in-view{ transition-delay:0.2s; }
.delay-3.in-view{ transition-delay:0.3s; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 26px;
  border-radius:999px;
  font-size:0.95rem;
  font-weight:600;
  border:1px solid transparent;
  transition:transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  white-space:nowrap;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.btn i{ font-size:0.85em; transition:transform .25s ease; }
.btn:hover i{ transform:translateX(-3px); }
[dir="rtl"] .btn:hover i{ transform:translateX(3px); }

/* shine sweep on hover */
.btn::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 48%, rgba(255,255,255,0.35) 52%, transparent 70%);
  transform:translateX(-120%);
  transition:transform .65s ease;
}
.btn:hover::before{ transform:translateX(120%); }
.btn-outline::before{ background:linear-gradient(115deg, transparent 30%, rgba(34,211,238,0.18) 48%, rgba(34,211,238,0.18) 52%, transparent 70%); }

.btn-gradient{
  background:var(--grad);
  color:#fff;
  box-shadow:0 8px 24px rgba(59,130,246,0.35);
}
.btn-gradient:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(139,92,246,0.45); }

.btn-outline{
  background:transparent;
  color:var(--text);
  border-color:var(--border);
}
.btn-outline:hover{ border-color:var(--cyan); background:rgba(34,211,238,0.06); transform:translateY(-2px); }

.btn-white{
  background:#fff;
  color:#0a0f1e;
}
.btn-white:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(255,255,255,0.25); }

.btn-sm{ padding:10px 20px; font-size:0.85rem; }

.icon-btn{
  width:42px;height:42px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text-muted);
  transition:all .3s ease;
}
.icon-btn:hover{ color:var(--cyan); border-color:var(--cyan); transform:rotate(180deg); }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:fixed;
  top:0; right:0; left:0;
  z-index:100;
  padding:16px 0;
  background:rgba(7,11,22,0.6);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.scrolled{
  padding:10px 0;
  background:rgba(7,11,22,0.85);
  border-bottom-color:var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:1.2rem; }
.logo-mark{
  width:34px;height:34px;
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:var(--grad);
  color:#fff;
  font-family:var(--font-mono);
  box-shadow:0 0 20px rgba(59,130,246,0.5);
  flex-shrink:0;
}
.logo-mark-img{
  border-radius:50%;
  object-fit:cover;
  background:#fff;
  box-shadow:0 0 16px rgba(59,130,246,0.45);
  padding:2px;
}

.main-nav{ display:flex; align-items:center; gap:28px; margin-inline:auto; }
.main-nav a{
  position:relative;
  font-size:0.92rem;
  color:var(--text-muted);
  padding-block:4px;
  transition:color .25s ease;
}
.main-nav a::after{
  content:'';
  position:absolute; right:0; bottom:0;
  width:0; height:2px;
  background:var(--grad);
  transition:width .3s ease;
}
.main-nav a:hover,.main-nav a.active{ color:var(--text); }
.main-nav a:hover::after,.main-nav a.active::after{ width:100%; }

.header-cta{ flex-shrink:0; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
}
.nav-toggle span{ width:22px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  padding:150px 0 60px;
  overflow:hidden;
}
.hero-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(90px);
  pointer-events:none;
  opacity:0.5;
}
.hero-glow-1{ width:420px; height:420px; background:var(--blue); top:-100px; right:-100px; }
.hero-glow-2{ width:380px; height:380px; background:var(--purple); bottom:0; left:-120px; }

.hero-inner{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:48px;
  align-items:center;
  position:relative;
  z-index:2;
}

.hero-hello{ color:var(--text-muted); font-size:1.05rem; margin-bottom:10px; }
.wave{ display:inline-block; animation:wave 2.4s ease-in-out infinite; transform-origin:70% 70%; }
@keyframes wave{
  0%,60%,100%{ transform:rotate(0deg); }
  10%{ transform:rotate(14deg); }
  20%{ transform:rotate(-8deg); }
  30%{ transform:rotate(14deg); }
  40%{ transform:rotate(-4deg); }
  50%{ transform:rotate(10deg); }
}

.hero-title{
  font-size:clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight:800;
  line-height:1.25;
  margin-bottom:18px;
}

.hero-desc{
  color:var(--text-muted);
  font-size:1.05rem;
  max-width:520px;
  margin-bottom:30px;
}

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:28px; }

.social-row{ display:flex; gap:12px; }
.social-btn{
  width:40px;height:40px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text-muted);
  transition:all .3s ease;
}
.social-btn:hover{ color:#fff; border-color:transparent; background:var(--grad); transform:translateY(-3px); }

/* ---- laptop mock ---- */
.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; min-height:380px; }

.laptop-mock{
  width:min(440px, 90%);
  position:relative;
  z-index:3;
  animation:floaty 6s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-14px) rotate(-0.6deg); }
}

.laptop-screen{
  background:#0b1120;
  border:1px solid var(--border);
  border-radius:14px 14px 4px 4px;
  overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,0.55), 0 0 60px rgba(139,92,246,0.18);
}
.editor-topbar{
  display:flex; gap:6px;
  padding:10px 14px;
  background:#0f1729;
  border-bottom:1px solid var(--border-soft);
}
.editor-topbar .dot{ width:9px;height:9px;border-radius:50%; }
.dot.red{ background:#ff5f56; } .dot.yellow{ background:#ffbd2e; } .dot.green{ background:#27c93f; }

.editor-code{
  font-family:var(--font-mono);
  font-size:0.72rem;
  line-height:1.7;
  padding:18px;
  min-height:230px;
  color:#8fa2c9;
  direction:ltr;
  text-align:left;
  white-space:pre-wrap;
}
.editor-code .tok-kw{ color:#c084fc; }
.editor-code .tok-fn{ color:#60a5fa; }
.editor-code .tok-str{ color:#4ade80; }
.editor-code .tok-com{ color:#4b5875; }
.editor-code .cursor{
  display:inline-block; width:6px; height:13px;
  background:var(--cyan); vertical-align:middle;
  animation:blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

.laptop-base{
  height:14px;
  background:linear-gradient(180deg,#1c2740,#0b1120);
  border-radius:0 0 10px 10px;
  margin-top:2px;
  position:relative;
}
.laptop-base::after{
  content:'';
  position:absolute; left:50%; top:0;
  transform:translateX(-50%);
  width:70px; height:5px;
  background:#0b1120;
  border-radius:0 0 6px 6px;
}

.float-badge{
  position:absolute;
  width:54px;height:54px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(13,21,38,0.85);
  border:1px solid var(--border);
  backdrop-filter:blur(6px);
  font-family:var(--font-mono);
  font-weight:700;
  font-size:0.8rem;
  color:var(--text);
  box-shadow:0 10px 30px rgba(0,0,0,0.4);
  animation:float-badge 5s ease-in-out infinite;
  animation-delay:var(--delay,0s);
  z-index:4;
}
@keyframes float-badge{
  0%{ transform:translate(0,0) rotate(0deg); }
  25%{ transform:translate(4px,-9px) rotate(4deg); }
  50%{ transform:translate(0,-15px) rotate(0deg); }
  75%{ transform:translate(-4px,-9px) rotate(-4deg); }
  100%{ transform:translate(0,0) rotate(0deg); }
}
.badge-js{ top:6%; left:2%; color:#facc15; }
.badge-wp{ top:0; right:8%; color:#60a5fa; font-size:1.3rem; }
.badge-woo{ bottom:14%; right:0%; color:#c084fc; }
.badge-html{ bottom:2%; left:14%; color:#fb923c; font-size:1.3rem; }
.badge-a{ top:42%; left:-4%; background:var(--grad); color:#fff; border:none; box-shadow:0 0 24px rgba(139,92,246,0.6); }

.orbit-ring{
  position:absolute;
  border:1px dashed var(--border);
  border-radius:50%;
  z-index:1;
  animation:spin 40s linear infinite;
}
.ring-1{ width:340px; height:340px; }
.ring-2{ width:460px; height:460px; border-style:solid; border-color:var(--border-soft); animation-duration:60s; animation-direction:reverse; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---- stats bar ---- */
.stats-bar{
  margin-top:64px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:26px 20px;
}
.stat-item{ display:flex; align-items:center; gap:14px; }
.stat-icon{
  width:46px;height:46px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(59,130,246,0.12);
  color:var(--cyan);
  font-size:1.1rem;
  flex-shrink:0;
}
.stat-num{ font-size:1.5rem; font-weight:800; font-family:var(--font-mono); }
.stat-label{ color:var(--text-muted); font-size:0.85rem; }

/* =========================================================
   Section head helpers
   ========================================================= */
section{ padding:100px 0; position:relative; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--cyan);
  font-weight:600;
  font-size:0.95rem;
}

.section-head.center{
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-bottom:52px;
}
.section-head.center h2{ font-size:clamp(1.5rem,3vw,2.1rem); font-weight:800; }
.eyebrow-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--grad);
  box-shadow:0 0 12px rgba(139,92,246,0.7);
}
.section-sub{
  width:100%;
  color:var(--text-muted);
  font-size:0.95rem;
  margin-top:6px;
}

/* =========================================================
   About
   ========================================================= */

.about .section-head{ margin-bottom:40px; }

.about-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:56px;
  align-items:center;
}

.about-photo{ position:relative; max-width:340px; }
.photo-frame{
  aspect-ratio:1/1.1;
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg, var(--surface), var(--surface-2));
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-glow);
}
.photo-frame::before{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 30% 20%, rgba(34,211,238,0.18), transparent 55%);
}
.photo-placeholder{ font-size:6rem; color:var(--text-faint); }
.photo-badge{
  position:absolute; bottom:-18px; left:-18px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px 18px;
  text-align:center;
  box-shadow:0 20px 40px rgba(0,0,0,0.5);
}
.photo-badge-num{ display:block; font-size:1.3rem; font-weight:800; color:var(--cyan); font-family:var(--font-mono); }
.photo-badge-label{ font-size:0.75rem; color:var(--text-muted); }
.photo-signature{
  position:absolute; top:18px; right:18px;
  font-family:'Segoe Script','Brush Script MT',cursive;
  font-size:1.4rem;
  color:var(--cyan);
  opacity:0.8;
  transform:rotate(-6deg);
}

.about-text h2{ font-size:clamp(1.4rem,2.6vw,1.9rem); font-weight:800; margin-bottom:16px; }
.about-text p{ color:var(--text-muted); margin-bottom:22px; }

.about-features{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:28px;
}
.about-features li{
  display:flex; align-items:center; gap:10px;
  font-size:0.92rem;
  color:var(--text);
}
.about-features i{
  width:22px;height:22px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(34,211,238,0.15);
  color:var(--cyan);
  font-size:0.7rem;
  flex-shrink:0;
}

.about-mini-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  padding-top:22px;
  border-top:1px solid var(--border);
}
.about-mini-stats span{ font-size:1.25rem; font-weight:800; color:var(--text); font-family:var(--font-mono); }
.about-mini-stats p{ font-size:0.75rem; color:var(--text-muted); margin:0; }

/* =========================================================
   Skills
   ========================================================= */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px,1fr));
  gap:18px;
}
.skill-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:22px 18px;
  text-align:center;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.skill-card:hover{ transform:translateY(-6px); border-color:rgba(139,92,246,0.4); box-shadow:0 18px 40px rgba(0,0,0,0.35); }
.skill-icon{
  width:32px;height:32px;
  margin-inline:auto;
  margin-bottom:10px;
  border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:0.95rem;
  background:var(--surface-2);
}
.skill-card h4{ font-size:0.9rem; font-weight:600; margin-top:12px; }

/* radial progress ring */
@property --pct{
  syntax:'<number>';
  inherits:false;
  initial-value:0;
}
.skill-ring{
  --pct:0;
  --ring-color:var(--cyan);
  width:84px;
  height:84px;
  margin-inline:auto;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:conic-gradient(var(--ring-color) calc(var(--pct)*3.6deg), var(--surface-2) 0deg);
  transition:--pct 1.4s cubic-bezier(.2,.7,.2,1);
}
.skill-ring::before{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:50%;
  background:var(--surface);
}
.skill-pct{
  position:relative;
  z-index:1;
  font-size:0.78rem;
  font-weight:700;
  font-family:var(--font-mono);
  color:var(--text);
}

/* =========================================================
   Portfolio
   ========================================================= */

.portfolio-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:36px;
  gap:16px;
  flex-wrap:wrap;
}
.portfolio-head h2{ font-size:clamp(1.4rem,2.8vw,1.9rem); font-weight:800; }

.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
  gap:22px;
}
.portfolio-card{
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--surface);
  transition:transform .35s ease, box-shadow .35s ease;
}
.portfolio-card:hover{ transform:translateY(-6px); box-shadow:0 24px 50px rgba(0,0,0,0.45); }
.portfolio-thumb{
  aspect-ratio:4/3;
  background:linear-gradient(150deg, var(--surface-2), #060a14);
  display:flex;align-items:center;justify-content:center;
  position:relative;
  overflow:hidden;
}
.portfolio-thumb i{ font-size:2.4rem; color:var(--text-faint); }
.portfolio-thumb img{ width:100%; height:100%; object-fit:cover; }
.portfolio-tag{
  position:absolute; top:12px; right:12px;
  background:rgba(7,11,22,0.75);
  backdrop-filter:blur(6px);
  border:1px solid var(--border);
  padding:4px 12px;
  border-radius:99px;
  font-size:0.72rem;
  color:var(--cyan);
}
.portfolio-body{ padding:18px; }
.portfolio-body h3{ font-size:1.02rem; font-weight:700; margin-bottom:6px; }
.portfolio-body p{ font-size:0.85rem; color:var(--text-muted); margin-bottom:12px; }
.portfolio-stack{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.portfolio-stack span{
  font-size:0.68rem;
  padding:3px 9px;
  border-radius:99px;
  background:var(--surface-2);
  color:var(--text-muted);
  border:1px solid var(--border-soft);
}
.portfolio-body a{
  font-size:0.85rem;
  color:var(--cyan);
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* =========================================================
   Timeline
   ========================================================= */
.timeline{ position:relative; }
.timeline-line{
  position:absolute; top:19px; right:8%; left:8%;
  height:1px;
  background:repeating-linear-gradient(to left, var(--border) 0 8px, transparent 8px 16px);
  z-index:0;
}
.timeline{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.timeline-item{ text-align:center; position:relative; z-index:1; }
.timeline-dot{
  width:40px;height:40px;
  margin-inline:auto;
  margin-bottom:14px;
  border-radius:50%;
  background:var(--bg);
  border:2px solid var(--purple);
  display:flex;align-items:center;justify-content:center;
  color:var(--cyan);
  box-shadow:0 0 0 6px var(--bg);
}
.timeline-year{ display:block; font-family:var(--font-mono); font-weight:700; color:var(--cyan); margin-bottom:8px; }
.timeline-item p{ font-size:0.88rem; color:var(--text-muted); }

/* =========================================================
   Services
   ========================================================= */

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
  gap:20px;
}
.service-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px 22px;
  transition:transform .3s ease, border-color .3s ease;
}
.service-card:hover{ transform:translateY(-6px); border-color:rgba(59,130,246,0.4); }
.service-icon{
  width:52px;height:52px;
  border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:var(--grad);
  color:#fff;
  font-size:1.3rem;
  margin-bottom:18px;
  box-shadow:0 8px 22px rgba(59,130,246,0.35);
}
.service-card h3{ font-size:1.05rem; font-weight:700; margin-bottom:10px; }
.service-card p{ font-size:0.88rem; color:var(--text-muted); margin-bottom:16px; }
.service-card a{ font-size:0.85rem; color:var(--cyan); display:inline-flex; align-items:center; gap:6px; }

/* =========================================================
   Why us
   ========================================================= */
.why-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:20px;
}
.why-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:26px 22px;
  transition:transform .3s ease, border-color .3s ease;
}
.why-card:hover{ transform:translateY(-6px); border-color:rgba(34,211,238,0.35); }
.why-icon{
  width:46px;height:46px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(139,92,246,0.14);
  color:var(--purple);
  font-size:1.15rem;
  margin-bottom:16px;
}
.why-card h3{ font-size:0.98rem; font-weight:700; margin-bottom:8px; }
.why-card p{ font-size:0.85rem; color:var(--text-muted); }

/* =========================================================
   Testimonials
   ========================================================= */

.testi-track-wrap{ overflow:hidden; }
.testi-track{
  display:flex;
  gap:22px;
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.testi-card{
  flex:0 0 100%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
  position:relative;
}
.stars{ color:#facc15; letter-spacing:3px; margin-bottom:14px; }
.quote-icon{ position:absolute; top:28px; left:28px; font-size:1.6rem; color:var(--border); }
.testi-card p{ color:var(--text-muted); margin-bottom:22px; font-size:0.96rem; }
.testi-author{ display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:44px;height:44px;
  border-radius:50%;
  background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;
  color:var(--text-faint);
}
.testi-author strong{ display:block; font-size:0.92rem; }
.testi-author span{ font-size:0.78rem; color:var(--text-muted); }

.testi-dots{ display:flex; justify-content:center; gap:8px; margin-top:26px; }
.testi-dots button{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--border);
  border:none;
  transition:all .3s ease;
}
.testi-dots button.active{ width:24px; border-radius:99px; background:var(--grad); }

@media (min-width:760px){
  .testi-card{ flex-basis:calc(33.333% - 15px); }
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner{
  padding:0;
}
.cta-inner{
  background:var(--grad);
  border-radius:var(--radius-lg);
  padding:44px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  position:relative;
  overflow:hidden;
}
.cta-inner::after{
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 90% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.cta-inner h2{ font-size:clamp(1.3rem,2.6vw,1.7rem); font-weight:800; color:#fff; margin-bottom:6px; }
.cta-inner p{ color:rgba(255,255,255,0.85); }
.cta-inner .btn-white{ position:relative; z-index:1; flex-shrink:0; }

/* =========================================================
   Footer / Contact
   ========================================================= */
.site-footer{
  border-top:1px solid var(--border);
  padding-top:90px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:60px;
  padding-bottom:60px;
}

.footer-form-wrap h2{ font-size:clamp(1.4rem,2.6vw,1.8rem); font-weight:800; margin-bottom:8px; }
.footer-form-sub{ color:var(--text-muted); margin-bottom:28px; font-size:0.92rem; }

.contact-form{ display:flex; flex-direction:column; gap:18px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field label{ font-size:0.85rem; color:var(--text-muted); }
.form-field input,.form-field textarea{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:13px 16px;
  color:var(--text);
  font-size:0.92rem;
  resize:vertical;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.form-field input:focus,.form-field textarea:focus{
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(34,211,238,0.15);
  outline:none;
}
.form-submit{ align-self:flex-start; margin-top:4px; }
.form-status{ font-size:0.85rem; min-height:1.2em; color:var(--cyan); }

.footer-logo{ margin-bottom:16px; }
.footer-info > p{ color:var(--text-muted); font-size:0.9rem; margin-bottom:22px; max-width:320px; }
.footer-contact-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:24px; }
.footer-contact-list li{ display:flex; align-items:center; gap:10px; font-size:0.88rem; color:var(--text-muted); }
.footer-contact-list i{ color:var(--cyan); width:16px; }

.footer-bottom{
  border-top:1px solid var(--border);
  padding:22px 0;
  text-align:center;
  color:var(--text-faint);
  font-size:0.82rem;
}

/* =========================================================
   Scroll-to-top
   ========================================================= */
.scroll-top{
  position:fixed;
  bottom:26px;
  left:26px;
  width:46px;height:46px;
  border-radius:50%;
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--text);
  display:flex;align-items:center;justify-content:center;
  z-index:60;
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
  transition:all .3s ease;
}
.scroll-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top:hover{ background:var(--grad); border-color:transparent; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; min-height:300px; }
  .about-grid{ grid-template-columns:1fr; }
  .about-photo{ margin-inline:auto; }
  .footer-grid{ grid-template-columns:1fr; gap:44px; }
  .stats-bar{ grid-template-columns:repeat(2,1fr); }
  .timeline{ grid-template-columns:1fr; gap:40px; }
  .timeline-line{ display:none; }
}

@media (max-width:760px){
  .main-nav{ position:fixed; top:64px; right:0; left:0; background:var(--bg); flex-direction:column; padding:24px; border-bottom:1px solid var(--border); transform:translateY(-130%); opacity:0; transition:.3s ease; gap:18px; }
  .main-nav.open{ transform:translateY(0); opacity:1; }
  .nav-toggle{ display:flex; }
  .header-cta{ display:none; }
  section{ padding:70px 0; }
  .hero{ padding-top:120px; }
  .about-features{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-inner{ flex-direction:column; text-align:center; }
  .portfolio-head{ flex-direction:column; align-items:flex-start; }
}


/* =========================================================
   Portfolio Project Details Page
   فقط برای صفحه project.php
   ========================================================= */
.project-page{
  min-height:100vh;
  padding:120px 0 70px;
  position:relative;
  z-index:1;
}
.project-shell{
  max-width:1100px;
  margin-inline:auto;
}
.project-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:38px;
}
.project-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text-muted);
  font-size:.9rem;
  transition:color .25s ease, transform .25s ease;
}
.project-back:hover{ color:var(--cyan); transform:translateX(4px); }
[dir="rtl"] .project-back:hover{ transform:translateX(-4px); }

.project-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--cyan);
  font-size:.8rem;
  font-weight:700;
  margin-bottom:12px;
}
.project-kicker::before{
  content:"";
  width:28px;
  height:2px;
  border-radius:99px;
  background:var(--grad-2);
}
.project-title{
  font-size:clamp(2rem,5vw,3.5rem);
  line-height:1.25;
  font-weight:900;
  margin-bottom:14px;
}
.project-summary{
  max-width:780px;
  color:var(--text-muted);
  font-size:1rem;
  line-height:2;
}
.project-hero{
  margin-top:32px;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  background:var(--surface);
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
}
.project-hero img{
  width:100%;
  max-height:620px;
  object-fit:cover;
}
.project-hero-placeholder{
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,var(--surface-2),#060a14);
}
.project-hero-placeholder i{
  font-size:4rem;
  color:var(--text-faint);
}
.project-content-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);
  gap:26px;
  margin-top:28px;
}
.project-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:26px;
}
.project-panel h2{
  font-size:1.15rem;
  margin-bottom:14px;
}
.project-panel p{
  color:var(--text-muted);
  line-height:2;
}
.project-work-list{
  display:grid;
  gap:12px;
}
.project-work-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--text);
  font-size:.9rem;
}
.project-work-list i{
  color:var(--cyan);
  margin-top:5px;
}
.project-tech{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.project-tech span{
  padding:5px 11px;
  border-radius:999px;
  background:var(--surface-2);
  border:1px solid var(--border-soft);
  color:var(--text-muted);
  font-size:.72rem;
}
.project-gallery{
  margin-top:28px;
}
.project-gallery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.project-gallery-head h2{
  font-size:1.35rem;
}
.project-gallery-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.project-gallery-item{
  min-height:260px;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--surface);
  position:relative;
}
.project-gallery-item img{
  width:100%;
  height:100%;
  min-height:260px;
  object-fit:cover;
  transition:transform .45s ease;
}
.project-gallery-item:hover img{ transform:scale(1.035); }
.project-gallery-placeholder{
  width:100%;
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,var(--surface-2),#060a14);
}
.project-gallery-placeholder i{
  font-size:2.6rem;
  color:var(--text-faint);
}
.project-bottom{
  display:flex;
  justify-content:center;
  margin-top:34px;
}

@media (max-width:760px){
  .project-page{ padding:100px 0 45px; }
  .project-topbar{ margin-bottom:28px; }
  .project-content-grid,
  .project-gallery-grid{ grid-template-columns:1fr; }
  .project-panel{ padding:20px; }
  .project-hero-placeholder{ min-height:240px; }
  .project-gallery-item,
  .project-gallery-item img,
  .project-gallery-placeholder{ min-height:220px; }
}
