/* ===== Tokens ===== */
:root{
  --bg:#12172B;
  --bg-alt:#161c37;
  --surface:#1c234a;
  --surface-2:#242c58;
  --border:rgba(237,239,247,.09);
  --text:#EDEFF7;
  --text-muted:#A6ACC9;
  --gold:#E3B23C;
  --gold-soft:#F4D98A;
  --teal:#3FA796;
  --teal-soft:#8fd9c9;
  --radius-sm:10px;
  --radius-md:18px;
  --radius-lg:30px;
  --shadow:0 24px 60px -24px rgba(0,0,0,.6);
  --font:'Vazirmatn', Tahoma, sans-serif;
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  margin:0;
  line-height:1.85;
  font-size:16px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--font);margin:0 0 .5em;line-height:1.35}
p{margin:0 0 1em;color:var(--text-muted)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media (prefers-reduced-motion: reduce){*{animation:none !important;transition:none !important;scroll-behavior:auto !important}}

.container-c{max-width:var(--container);margin:0 auto;padding:0 24px;width:100%}
.section{padding:88px 0}
.section-tight{padding:56px 0}
.section-head{max-width:640px;margin-bottom:48px}
.section-head h2{font-size:clamp(28px,4vw,40px);font-weight:800}
.section-head p{font-size:17px}

/* ===== Decorative tile pattern ===== */
.tile-pattern{
  position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:
    linear-gradient(135deg, rgba(227,178,60,.09) 1px, transparent 1px),
    linear-gradient(45deg, rgba(63,167,150,.09) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom, black, transparent 85%);
}

/* ===== Navbar ===== */
.site-header{position:sticky;top:0;z-index:50;backdrop-filter:blur(10px);background:rgba(18,23,43,.82);border-bottom:1px solid var(--border)}
.navbar{padding:16px 0}
.navbar > .container-c{gap:16px}
.brand{display:flex;align-items:center;gap:10px;color:var(--text)}
.brand-logo{width:42px;height:42px;transition:.25s}
.brand:hover .brand-logo{transform:rotate(-6deg) scale(1.05)}
.navbar-nav .nav-link{color:var(--text-muted) !important;font-weight:500;padding:8px 16px !important;border-radius:999px;transition:.2s}
.navbar-nav .nav-link:hover{color:var(--text) !important}
.navbar-nav .nav-link.active{color:var(--bg) !important;background:var(--gold-soft)}
.navbar-toggler{border-color:var(--border) !important;box-shadow:none !important}
.navbar-toggler-icon{filter:invert(1)}
.btn-cta{background:var(--gold);color:#181206;font-weight:700;border-radius:999px;padding:10px 26px;display:inline-flex;align-items:center;gap:8px;transition:.2s;border:1px solid var(--gold)}
.btn-cta:hover{background:transparent;color:var(--gold-soft)}
.btn-ghost{border:1px solid var(--border);color:var(--text);border-radius:999px;padding:10px 26px;display:inline-flex;align-items:center;gap:8px;transition:.2s}
.btn-ghost:hover{border-color:var(--gold);color:var(--gold-soft)}

/* ===== Hero ===== */
.hero{position:relative;overflow:hidden;padding:70px 0 100px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;position:relative;z-index:2}
.hero-kicker{color:var(--teal-soft);font-weight:600;font-size:15px;margin-bottom:14px}
.hero h1{font-size:clamp(34px,5vw,58px);font-weight:900;letter-spacing:-.5px}
.hero h1 span{color:var(--gold)}
.hero p.lead{font-size:19px;color:var(--text-muted);max-width:520px}
.hero-actions{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}
.hero-photo-wrap{position:relative;justify-self:center}
.hero-photo-frame{
  width:min(340px,80vw);aspect-ratio:4/5;border-radius:36px;overflow:hidden;
  border:1px solid var(--border);box-shadow:var(--shadow);position:relative;z-index:2;
}
.hero-photo-frame img{width:100%;height:100%;object-fit:cover}
.hero-photo-frame svg{width:100%;height:100%;display:block}
.hero-blob{position:absolute;width:88%;height:88%;border-radius:40px;background:linear-gradient(150deg,var(--teal),var(--gold));top:6%;right:-8%;opacity:.35;filter:blur(2px);z-index:1}
.hero-stats{display:flex;gap:28px;margin-top:36px;flex-wrap:wrap}
.hero-stat b{font-size:26px;display:block;color:var(--gold-soft)}
.hero-stat span{font-size:14px;color:var(--text-muted)}

/* ===== Skills row ===== */
.skill-chip{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);padding:9px 18px;border-radius:999px;font-size:14.5px;color:var(--text-muted)}
.skill-chip i{color:var(--teal-soft)}

/* ===== Cards ===== */
.card-c{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:28px;height:100%}
.project-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;height:100%;display:flex;flex-direction:column;transition:.25s}
.project-card:hover{border-color:var(--gold);transform:translateY(-4px)}
.project-thumb{aspect-ratio:16/10;position:relative;display:flex;align-items:center;justify-content:center;font-size:44px;font-weight:900;color:#12172B}
.project-thumb .dots{position:absolute;top:14px;inset-inline-start:16px;display:flex;gap:6px}
.project-thumb .dots span{width:9px;height:9px;border-radius:50%;background:rgba(18,23,43,.35)}
.project-thumb-logo{background:#f4f5f9}
.project-thumb-logo img{max-width:60%;max-height:60%;object-fit:contain}
.project-thumb-logo.fit-cover{background:var(--surface-2)}
.project-thumb-logo.fit-cover img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover}
.project-body{padding:22px;display:flex;flex-direction:column;gap:10px;flex:1}
.project-tag{font-size:12.5px;color:var(--teal-soft);font-weight:600}
.project-body h3{font-size:19px;font-weight:700}
.project-body p{font-size:14.5px;margin-bottom:0;flex:1}
.project-link{font-size:14px;font-weight:600;color:var(--gold-soft);display:inline-flex;align-items:center;gap:6px}

.news-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:26px;display:flex;flex-direction:column;gap:10px;height:100%}
.news-date{font-size:13px;color:var(--teal-soft);font-weight:600}
.news-card h3{font-size:18.5px;font-weight:700}
.news-card p{font-size:14.5px;margin-bottom:0}

.process-step{display:flex;gap:18px;align-items:flex-start;padding:22px 0;border-bottom:1px solid var(--border)}
.process-step:last-child{border-bottom:none}
.process-num{width:44px;height:44px;flex:none;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--gold-soft)}
.process-step h3{font-size:18px;margin-bottom:4px}
.process-step p{margin-bottom:0}

/* ===== Contact ===== */
.contact-info-item{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--border)}
.contact-info-item:last-child{border-bottom:none}
.contact-icon{width:46px;height:46px;border-radius:13px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;color:var(--gold-soft);flex:none}
.form-control-c{width:100%;background:var(--bg-alt);border:1px solid var(--border);border-radius:var(--radius-sm);padding:13px 16px;color:var(--text);font-family:var(--font);font-size:15px;margin-bottom:16px}
.form-control-c:focus{outline:none;border-color:var(--gold)}
.form-note{font-size:13.5px;color:var(--text-muted);margin-top:6px}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--border);padding:44px 0;color:var(--text-muted);font-size:14.5px}
.footer-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer-links{display:flex;gap:22px;flex-wrap:wrap}

/* ===== Page hero (inner pages) ===== */
.page-hero{padding:56px 0 20px;position:relative;overflow:hidden}
.page-hero h1{font-size:clamp(30px,4.2vw,44px);font-weight:900}
.page-hero p{max-width:560px;font-size:17px}

/* ===== Responsive ===== */
@media (max-width:991px){
  .hero-grid{grid-template-columns:1fr;text-align:center}
  .hero p.lead{margin-inline:auto}
  .hero-actions{justify-content:center}
  .hero-stats{justify-content:center}
  .hero-photo-wrap{order:-1}
}
@media (max-width:767px){
  .section{padding:64px 0}
  .footer-row{flex-direction:column;text-align:center}
}
