/* =====================================================================
   Asif IT Consultancy — End-User Portfolio
   Vibe: cyber-minimalist, corporate-grade executive
   Palette: deep slate / navy + electric blue & gold accents
   ===================================================================== */

:root {
  --bg:        #0A0E17;   /* near-black slate */
  --bg-2:      #0F1626;   /* panel slate */
  --bg-3:      #161F33;   /* raised surface */
  --line:      rgba(120,150,210,0.12);
  --fg:        #E8EDF7;   /* primary text */
  --muted:     #8A97B5;   /* secondary text */
  --electric:  #2E7BFF;   /* electric blue accent */
  --electric-2:#5AA0FF;
  --gold:      #E6B450;   /* gold accent */
  --glow:      rgba(46,123,255,0.45);

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* --- 3D canvas (fixed background) --- */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.shell { position: relative; z-index: 1; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* --- Eyebrow / labels --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--electric-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: var(--electric);
}

/* --- Navigation --- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  backdrop-filter: blur(12px);
  background: rgba(10,14,23,0.55);
  border-bottom: 1px solid var(--line);
}
.nav .brand {
  font-family: var(--mono);
  font-weight: 600; font-size: 16px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.nav .brand .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--electric); box-shadow: 0 0 12px var(--glow); }
.nav .brand b { color: var(--gold); }
.nav nav { display: flex; gap: 30px; }
.nav nav a {
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.02em; transition: color .25s;
}
.nav nav a:hover { color: var(--fg); }
.nav .cta-sm {
  font-size: 13px; font-weight: 500;
  padding: 9px 18px; border: 1px solid var(--electric);
  border-radius: 4px; color: var(--electric-2);
  transition: background .25s, color .25s;
}
.nav .cta-sm:hover { background: var(--electric); color: #fff; }
.nav .burger { display: none; background: none; border: none; color: var(--fg); cursor: pointer; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
}
.hero .container { width: 100%; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 82px);
  font-weight: 700; line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 22px 0 24px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--electric-2), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted); max-width: 56ch; margin-bottom: 38px;
}
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  padding: 15px 30px; border-radius: 6px;
  cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--electric); color: #fff;
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--electric); color: var(--electric-2); }

/* trust strip */
.trust {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Turn hero “trust” items into glassy tags so they stay readable over 3D */
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 22, 38, 0.40);
  border: 1px solid rgba(120,150,210,0.22);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.trust span::before {
  content:'';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold) 45%, rgba(230,180,80,0.2) 70%);
  box-shadow: 0 0 18px rgba(230,180,80,0.35);
}

/* --- Section frame --- */
section.block { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 16px 0 14px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* --- Services grid --- */
.services-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.service {
  background: var(--bg-2);
  padding: 40px 32px;
  transition: background .3s;
  position: relative;
}
.service:hover { background: var(--bg-3); }
.service .ico {
  width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(46,123,255,0.12);
  border: 1px solid rgba(46,123,255,0.25);
  margin-bottom: 22px;
  color: var(--electric-2);
}
.service .ico svg { width: 24px; height: 24px; }
.service h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.service .tag { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-bottom: 14px; display:block; }
.service p { color: var(--muted); font-size: 15px; }

/* --- Metrics / live status --- */
.metrics-wrap {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px;
}
.status-bar {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px;
  color: var(--muted); margin-bottom: 36px;
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2ecc71; box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}
.metrics-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.metric { padding: 22px 8px; text-align: center; }
.metric .num {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700; line-height: 1;
  font-family: var(--mono);
  background: linear-gradient(180deg, var(--fg), var(--electric-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.metric .num .suffix { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.metric .lbl { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }

/* --- About founder --- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 36px;
}
.about-card .role { font-family: var(--mono); font-size: 13px; color: var(--electric-2); margin-bottom: 8px; }
.about-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.about-card .contact-list { margin-top: 24px; display: grid; gap: 12px; }
.about-card .contact-list div { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.about-card .contact-list b { color: var(--gold); font-weight: 500; }
.about-body p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cred {
  font-family: var(--mono); font-size: 12px;
  padding: 7px 13px; border-radius: 20px;
  background: rgba(230,180,80,0.1); border: 1px solid rgba(230,180,80,0.25);
  color: var(--gold);
}

/* --- Contact form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(28px,3.6vw,44px); font-weight:700; letter-spacing:-0.02em; margin:16px 0 16px; }
.contact-info p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.contact-chan { display: grid; gap: 16px; }
.contact-chan a { display: flex; gap: 14px; align-items: center; color: var(--fg); font-size: 15px; }
.contact-chan .ico { width:40px; height:40px; border-radius:8px; display:grid; place-items:center; background: var(--bg-3); border:1px solid var(--line); color: var(--electric-2); }

form.lead-form { background: var(--bg-2); border:1px solid var(--line); border-radius:16px; padding:36px; }
.field { margin-bottom: 18px; }
.field label { display:block; font-size:13px; color: var(--muted); margin-bottom:7px; font-family: var(--mono); letter-spacing:0.04em; }
.field input, .field textarea, .field select {
  width:100%; background: var(--bg); color: var(--fg);
  border:1px solid var(--line); border-radius:8px;
  padding:13px 15px; font-family: var(--sans); font-size:15px;
  outline: none; transition: border .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--electric); box-shadow: 0 0 0 3px rgba(46,123,255,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-msg.ok { color: #2ecc71; }
.form-msg.err { color: #ff6b6b; }

/* --- Footer --- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0; background: var(--bg-2);
}
footer.site .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site .brand { font-family: var(--mono); font-weight: 600; }
footer.site .brand b { color: var(--gold); }
footer.site p { color: var(--muted); font-size: 13px; }

/* --- Reveal animation base state (GSAP toggles) --- */
.reveal { opacity: 0; transform: translateY(34px); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav nav { display: none; }
  .nav .burger { display: block; }
  .metrics-wrap { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .status-dot { animation: none; }
}

/* Visible keyboard focus */
:focus-visible { outline: 2px solid var(--electric-2); outline-offset: 3px; }
