/* ===== Attique Naseer — shared styles ===== */

:root{
  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
  --radius:16px;
  --radius-sm:10px;
  --max:1180px;
}

html[data-theme="dark"]{
  --bg:#0A0E17;
  --bg-soft:#0D1220;
  --surface:#121826;
  --surface-2:#0E1422;
  --surface-glass: rgba(18,24,38,0.62);
  --text:#E9EDF6;
  --text-muted:#8B94A8;
  --border: rgba(233,237,246,0.09);
  --border-strong: rgba(233,237,246,0.18);
  --accent:#34D399;
  --accent-rgb:52,211,153;
  --accent-soft: rgba(52,211,153,0.12);
  --accent-2:#F5A623;
  --accent-2-rgb:245,166,35;
  --accent-2-soft: rgba(245,166,35,0.14);
  --shadow: 0 24px 70px rgba(0,0,0,0.5);
}

html[data-theme="light"]{
  --bg:#F6F4EF;
  --bg-soft:#EFEBE2;
  --surface:#FFFFFF;
  --surface-2:#F1EEE6;
  --surface-glass: rgba(255,255,255,0.66);
  --text:#14171F;
  --text-muted:#616A78;
  --border: rgba(20,23,31,0.10);
  --border-strong: rgba(20,23,31,0.18);
  --accent:#0E9C74;
  --accent-rgb:14,156,116;
  --accent-soft: rgba(14,156,116,0.10);
  --accent-2:#C2760A;
  --accent-2-rgb:194,118,10;
  --accent-2-soft: rgba(194,118,10,0.12);
  --shadow: 0 20px 50px rgba(20,23,31,0.10);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition:background .35s ease, color .35s ease;
  overflow-x:hidden;
  position:relative;
}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
img{max-width:100%; display:block;}
section{padding:120px 24px; position:relative;}
.wrap{max-width:var(--max); margin:0 auto; position:relative; z-index:1;}
h1,h2,h3{font-family:var(--font-display); letter-spacing:-0.01em;}
::selection{background:var(--accent); color:#06110C;}

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

/* ---- Ambient background blobs ---- */
.glow{
  position:fixed; z-index:0; border-radius:50%;
  filter:blur(90px); pointer-events:none;
  opacity:0.5;
}
.glow-1{ width:520px; height:520px; top:-160px; right:-140px; background:radial-gradient(circle, rgba(var(--accent-rgb),0.28), transparent 70%); }
.glow-2{ width:460px; height:460px; bottom:-180px; left:-160px; background:radial-gradient(circle, rgba(var(--accent-2-rgb),0.20), transparent 70%); }

.eyebrow{
  font-family:var(--font-mono);
  font-size:0.74rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}

/* ---------- Header ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.nav{
  max-width:var(--max); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px;
}
.logo{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  display:flex; align-items:center; gap:8px;
}
.logo span{
  width:9px; height:9px; border-radius:50%;
  background:var(--accent-2);
  display:inline-block;
  box-shadow:0 0 0 4px var(--accent-2-soft);
}
.nav-links{
  display:flex; gap:8px;
  font-size:0.92rem;
  font-weight:500;
  color:var(--text-muted);
}
.nav-links a{
  transition:color .2s ease, background .2s ease;
  padding:9px 15px;
  border-radius:100px;
  position:relative;
}
.nav-links a:hover{ color:var(--text); background:var(--surface-2); }
.nav-links a.active{ color:var(--text); background:var(--accent-soft); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:15px; right:15px; bottom:4px;
  height:2px; border-radius:2px;
  background:var(--accent);
}
.nav-right{display:flex; align-items:center; gap:14px;}

.theme-toggle{
  width:52px; height:30px;
  border-radius:30px;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  position:relative;
  cursor:pointer;
  flex-shrink:0;
}
.theme-toggle .knob{
  position:absolute; top:3px; left:3px;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size:12px;
  transition:transform .3s ease, background .3s ease;
}
html[data-theme="light"] .theme-toggle .knob{ transform:translateX(22px); background:var(--accent-2); }

.hamburger{
  display:none;
  width:38px; height:38px;
  border-radius:10px;
  border:1px solid var(--border-strong);
  background:var(--surface-2);
  cursor:pointer;
  align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
}
.hamburger span{ width:16px; height:2px; background:var(--text); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
.hamburger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  display:none;
  position:fixed; top:66px; left:16px; right:16px; z-index:99;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); padding:12px;
  box-shadow:var(--shadow);
  flex-direction:column;
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{
  padding:14px 16px; border-radius:10px; font-weight:500;
}
.mobile-menu a.active{ color:var(--accent); background:var(--accent-soft); }
.mobile-menu a:hover{ background:var(--surface-2); }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 22px;
  border-radius:10px;
  font-weight:600;
  font-size:0.92rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .2s ease, border-color .2s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--accent); color:#06170F; }
.btn-primary:hover{ box-shadow:0 12px 30px var(--accent-soft); }
.btn-ghost{ border-color:var(--border-strong); color:var(--text); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-sm{ padding:10px 18px; font-size:0.86rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding:168px 24px 80px;
  text-align:left;
}
.page-hero h1{
  font-size:clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight:700;
  margin:16px 0 14px;
}
.page-hero p{ color:var(--text-muted); max-width:600px; font-size:1.05rem; }
.crumb{
  font-family:var(--font-mono);
  font-size:0.78rem;
  color:var(--text-muted);
  margin-top:18px;
}
.crumb .accent{ color:var(--accent); }

/* ---------- Hero (home) ---------- */
.hero{ padding:170px 24px 100px; }
.hero .wrap{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:60px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.6rem, 5vw, 4rem);
  font-weight:700;
  margin:18px 0 14px;
  line-height:1.05;
}
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero p.lead{ font-size:1.08rem; color:var(--text-muted); max-width:520px; margin-bottom:32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:40px; }
.hero-meta{ display:flex; gap:28px; flex-wrap:wrap; font-family:var(--font-mono); font-size:0.82rem; color:var(--text-muted); }
.hero-meta strong{ color:var(--text); font-weight:600; }

/* ---- Dashboard signature card ---- */
.dash-card{
  background:var(--surface-glass);
  backdrop-filter: blur(18px);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.dash-head{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--border); }
.dash-dots{ display:flex; gap:6px; }
.dash-dots span{ width:9px; height:9px; border-radius:50%; background:var(--border-strong); }
.dash-title{ font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted); display:flex; align-items:center; gap:8px; }
.pulse{ width:7px; height:7px; border-radius:50%; background:var(--accent); animation:pulse 2s infinite; }
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 var(--accent-soft); }
  70%{ box-shadow:0 0 0 8px transparent; }
  100%{ box-shadow:0 0 0 0 transparent; }
}
.dash-body{ padding:22px 20px 26px; }
.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:22px; }
.stat{ background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:14px 12px; transition:transform .2s ease, border-color .2s ease; }
.stat:hover{ transform:translateY(-3px); border-color:var(--accent); }
.stat .num{ font-family:var(--font-mono); font-size:1.35rem; font-weight:600; color:var(--accent); }
.stat .label{ font-size:0.72rem; color:var(--text-muted); margin-top:4px; text-transform:uppercase; letter-spacing:0.04em; }
.chart-wrap{ background:var(--surface-2); border:1px solid var(--border); border-radius:12px; padding:16px 16px 8px; }
.chart-legend{ display:flex; gap:16px; font-family:var(--font-mono); font-size:0.72rem; color:var(--text-muted); margin-top:8px; }
.chart-legend span{ display:flex; align-items:center; gap:6px; }
.dot{ width:7px; height:7px; border-radius:50%; }
.caption-note{ font-size:0.7rem; color:var(--text-muted); text-align:right; margin-top:10px; font-style:italic; }
.chart-path{ fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-dasharray:520; stroke-dashoffset:520; transition:stroke-dashoffset 1.6s cubic-bezier(.22,1,.36,1); }
.chart-path.drawn{ stroke-dashoffset:0; }
.chart-fill{ opacity:0; transition:opacity 1s ease .4s; }
.chart-fill.drawn{ opacity:1; }

/* ---------- Section headings ---------- */
.sec-head{ margin-bottom:48px; max-width:640px; }
.sec-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); margin-top:12px; font-weight:600; }
.sec-head p{ color:var(--text-muted); margin-top:12px; }
.sec-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Quick highlight strip (home) ---------- */
.highlight-strip{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.highlight-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.highlight-card:hover{ transform:translateY(-6px); border-color:var(--accent); box-shadow:0 16px 40px rgba(0,0,0,0.12); }
.hi-icon{
  width:44px; height:44px; border-radius:12px;
  background:var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.highlight-card h3{ font-size:1.08rem; margin-bottom:8px; font-weight:600; }
.highlight-card p{ color:var(--text-muted); font-size:0.92rem; }
.highlight-card a.more{ display:inline-block; margin-top:14px; font-size:0.86rem; font-weight:600; color:var(--accent); }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:50px; align-items:start; }
.about-grid p{ color:var(--text-muted); font-size:1.02rem; }
.about-grid p + p{ margin-top:16px; }
.info-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; }
.info-card .row{ display:flex; gap:14px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--border); font-size:0.92rem; }
.info-card .row:last-child{ border-bottom:none; }
.info-card .row svg{ flex-shrink:0; margin-top:2px; color:var(--accent); }
.info-card .row .k{ color:var(--text-muted); display:block; font-size:0.74rem; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:2px;}

/* ---------- Timeline ---------- */
.timeline{ position:relative; padding-left:34px; }
.timeline::before{ content:""; position:absolute; left:6px; top:6px; bottom:6px; width:1px; background:var(--border-strong); }
.t-item{ position:relative; padding-bottom:44px; }
.t-item:last-child{ padding-bottom:0; }
.t-item::before{ content:""; position:absolute; left:-34px; top:4px; width:13px; height:13px; border-radius:50%; background:var(--bg); border:2px solid var(--accent); }
.t-item .date{ font-family:var(--font-mono); font-size:0.76rem; color:var(--accent); text-transform:uppercase; letter-spacing:0.05em; }
.t-item h3{ font-size:1.15rem; margin:8px 0 2px; font-weight:600; }
.t-item .company{ color:var(--text-muted); font-size:0.9rem; margin-bottom:10px; }
.t-item p.desc{ color:var(--text-muted); max-width:600px; }

/* ---------- Skills ---------- */
.skill-groups{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.skill-group h3{ font-family:var(--font-mono); font-size:0.8rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted); margin-bottom:14px; font-weight:500; }
.chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{ padding:9px 15px; border-radius:100px; border:1px solid var(--border-strong); background:var(--surface); font-size:0.86rem; font-weight:500; transition:border-color .2s ease, color .2s ease; }
.chip:hover{ border-color:var(--accent); color:var(--accent); }

/* ---------- Cards grid (edu / certs) ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; transition:transform .2s ease, border-color .2s ease; }
.card.link-card:hover{ transform:translateY(-4px); border-color:var(--accent); }
.card .date{ font-family:var(--font-mono); font-size:0.74rem; color:var(--accent); text-transform:uppercase; }
.card h3{ font-size:1.05rem; margin:10px 0 4px; }
.card .sub{ color:var(--text-muted); font-size:0.88rem; }
.cert-badge{ width:38px; height:38px; border-radius:10px; background:var(--accent-2-soft); color:var(--accent-2); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }

/* ---------- Languages / Hobbies strip ---------- */
.strip{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.strip .card ul{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.strip .card li{ font-size:0.86rem; padding:8px 14px; border-radius:100px; background:var(--surface-2); border:1px solid var(--border); }

/* ---------- Services page ---------- */
.service-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display:flex; flex-direction:column;
}
.service-card:hover{ transform:translateY(-6px); border-color:var(--accent); box-shadow:0 18px 44px rgba(0,0,0,0.14); }
.service-icon{ width:48px; height:48px; border-radius:13px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.service-card h3{ font-size:1.15rem; margin-bottom:10px; font-weight:600; }
.service-card p{ color:var(--text-muted); font-size:0.92rem; flex-grow:1; }
.service-card ul{ margin-top:16px; display:flex; flex-direction:column; gap:8px; }
.service-card ul li{ font-size:0.86rem; color:var(--text-muted); display:flex; gap:8px; align-items:flex-start; }
.service-card ul li svg{ color:var(--accent); flex-shrink:0; margin-top:3px; }

.process-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; }
.process-step{ text-align:left; position:relative; padding-top:8px; }
.process-num{ font-family:var(--font-mono); font-size:0.78rem; color:var(--accent); margin-bottom:10px; display:block; }
.process-step h4{ font-size:1rem; margin-bottom:6px; font-weight:600; }
.process-step p{ font-size:0.85rem; color:var(--text-muted); }
.process-row .process-step:not(:last-child)::after{
  content:"→"; position:absolute; right:-14px; top:8px; color:var(--border-strong); font-size:1.1rem;
}

/* ---------- Contact page ---------- */
.contact-layout{ display:grid; grid-template-columns:1fr 1.1fr; gap:44px; align-items:start; }
.contact-list .row{ display:flex; gap:14px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--border); }
.contact-list .row:last-child{ border-bottom:none; }
.contact-list svg{ color:var(--accent); flex-shrink:0; margin-top:3px; }
.contact-list .k{ display:block; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); margin-bottom:2px; }
.contact-list .v{ font-size:0.95rem; font-weight:500; }
.map-frame{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); margin-top:24px; filter:grayscale(0.15); }
.map-frame iframe{ width:100%; height:220px; border:0; display:block; }

.form-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:32px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:0.8rem; font-weight:600; margin-bottom:8px; color:var(--text-muted); }
.field input, .field textarea{
  width:100%; padding:13px 15px; border-radius:10px;
  border:1px solid var(--border-strong); background:var(--surface-2); color:var(--text);
  font-family:var(--font-body); font-size:0.94rem;
  transition:border-color .2s ease;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--accent); }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:0.8rem; color:var(--text-muted); margin-top:10px; }

/* ---------- Contact CTA banner (used on home/services) ---------- */
.cta-panel{
  background:linear-gradient(160deg, var(--surface), var(--surface-2));
  border:1px solid var(--border);
  border-radius:20px;
  padding:56px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-panel h2{ font-size:clamp(1.5rem,2.6vw,2rem); margin-bottom:8px; }
.cta-panel p{ color:var(--text-muted); }

footer{ padding:40px 24px; border-top:1px solid var(--border); }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; font-size:0.84rem; color:var(--text-muted); }
footer .f-links{ display:flex; gap:20px; flex-wrap:wrap; }
footer a:hover{ color:var(--accent); }

[data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
[data-reveal].visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

@media (max-width:920px){
  .hero .wrap{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .skill-groups{ grid-template-columns:1fr; }
  .grid-2, .grid-3, .strip{ grid-template-columns:1fr; }
  .highlight-strip{ grid-template-columns:1fr; }
  .service-grid{ grid-template-columns:1fr; }
  .process-row{ grid-template-columns:1fr; }
  .process-row .process-step:not(:last-child)::after{ display:none; }
  .contact-layout{ grid-template-columns:1fr; }
  .cta-panel{ padding:32px 24px; flex-direction:column; align-items:flex-start; }
  .nav-links{ display:none; }
  .hamburger{ display:flex; }
  section{ padding:80px 20px; }
  .hero, .page-hero{ padding-top:120px; }
}
