/* ===================================
   ALI RAZA — PUBLIC PORTFOLIO
   =================================== */

:root {
  --bg: #0a0d10;
  --bg-elev: #11161b;
  --bg-card: #131a20;
  --bg-card-2: #1c242c;
  --border: #232c36;
  --border-strong: #2e3a45;
  --text: #e6ecf2;
  --text-dim: #97a3b1;
  --text-mute: #6a7682;
  --accent: #19d97e;
  --accent-soft: rgba(25, 217, 126, 0.12);
  --accent-glow: rgba(25, 217, 126, 0.35);
  --danger: #ef4444;
  --warn: #f59e0b;
  --info: #3b82f6;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.4);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 60px rgba(0,0,0,0.6);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;
}
 
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--accent); }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===================================
   PUBLIC PORTFOLIO
   =================================== */

.portfolio-shell {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(25, 217, 126, 0.06), transparent 60%),
              radial-gradient(900px 600px at -10% 30%, rgba(25, 217, 126, 0.03), transparent 60%),
              var(--bg);
}

/* Top nav */
.p-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 16, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.p-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0eb869);
  display: grid;
  place-items: center;
  color: #051a10;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
}
.p-nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.p-nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.p-nav-links a.active { color: var(--accent); }

.p-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-nav-cta .availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.p-nav-cta .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  transition: all 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent);
  color: #051a10;
  border-color: var(--accent);
}
.btn-primary:hover { background: #0eb869; border-color: #0eb869; color: #051a10; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); border-color: transparent; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

/* Hero */
.p-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}
.p-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.p-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.p-hero h1 {
  font-size: 84px;
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 24px;
}
.p-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.p-hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.55;
  margin: 0 0 36px;
}
.p-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
}
.p-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.p-hero-meta i { color: var(--accent); }

.p-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.p-hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.p-hero-photo {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: linear-gradient(135deg, #1f2a32, #11181f);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.p-hero-photo::before {
  content: 'AR';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 180px;
  font-style: italic;
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: -0.04em;
}
.p-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(25, 217, 126, 0.15), transparent 50%);
}
.p-hero-card {
  position: absolute;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow-1);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-hero-card.c1 { top: 12%; left: -8%; }
.p-hero-card.c2 { bottom: 16%; right: -6%; }
.p-hero-card .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
}
.p-hero-card .label { color: var(--text-mute); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.p-hero-card .val { color: var(--text); font-weight: 500; }

/* Section base */
.p-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.p-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
  flex-wrap: wrap;
}
.p-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.p-section h2 {
  font-size: 48px;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: 600px;
  line-height: 1.05;
}
.p-section h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.p-section-desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 380px;
  line-height: 1.55;
}

/* About */
.p-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.p-about-image {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1f2a32, #11181f);
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.p-about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(25, 217, 126, 0.12), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.02) 20px 21px);
}
.p-about-image::after {
  content: 'workspace photo';
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}
.p-about-body p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 20px;
}
.p-about-body p strong { color: var(--text); font-weight: 500; }

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.p-tags li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-card);
  transition: all 0.15s;
}
.p-tags li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Stats row */
.p-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 32px;
  overflow: hidden;
}
.p-stat {
  background: var(--bg-card);
  padding: 24px;
}
.p-stat-num {
  font-size: 36px;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.p-stat-num em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.p-stat-label {
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Services */
.p-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.p-service {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.p-service:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.p-service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.p-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin: 24px 0 20px;
}
.p-service h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 12px;
}
.p-service p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* Skills */
.p-skills-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.p-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.p-skill-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.p-prof-skills { display: flex; flex-direction: column; gap: 22px; }
.p-prof-skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.p-prof-skill-head .pct {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
}
.p-prof-bar {
  height: 6px;
  background: var(--bg-card);
  border-radius: 999px;
  overflow: hidden;
}
.p-prof-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0eb869);
  border-radius: 999px;
  transition: width 1s ease-out;
}

/* Portfolio */
.p-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.p-project {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.p-project:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.p-project-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gcolor1, #1f2a32), var(--gcolor2, #0e151b));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.p-project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06), transparent 60%);
}
.p-project-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-card-2);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
  z-index: 1;
}
.p-project-body {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.p-project-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.p-project h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.p-project-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-2);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.15s;
}
.p-project:hover .p-project-link {
  background: var(--accent);
  color: #051a10;
  transform: rotate(-45deg);
}

/* Testimonials */
.p-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.p-test {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.p-test-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-style: italic;
  flex: 1;
}
.p-test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.p-test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0eb869);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  color: #051a10;
  flex-shrink: 0;
}
.p-test-name { font-weight: 500; font-size: 14px; }
.p-test-rating { color: var(--accent); font-size: 12px; }

/* Contact */
.p-contact {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 32px;
}
.p-contact-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.p-contact-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.p-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
}
.p-contact-info h2 {
  font-size: 56px;
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 20px;
}
.p-contact-info h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.p-contact-info p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 360px;
  line-height: 1.6;
}
.p-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.p-contact-list i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--border);
}

.p-form { display: flex; flex-direction: column; gap: 14px; }
.p-form .field { display: flex; flex-direction: column; gap: 6px; }
.p-form label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p-form input,
.p-form textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s;
}
.p-form input:focus,
.p-form textarea:focus { border-color: var(--accent); }
.p-form textarea { resize: vertical; min-height: 110px; }

.p-form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 2px;
}
.p-form-success {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 8px;
}

/* Footer */
.p-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.p-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
}
.p-socials { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.p-socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.15s;
  color: var(--text-dim);
}
.p-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* Responsive */
@media (max-width: 980px) {
  .p-hero h1 { font-size: 56px; }
  .p-hero-grid, .p-about-grid, .p-skills-grid, .p-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .p-services, .p-portfolio-grid, .p-testimonials { grid-template-columns: 1fr 1fr; }
  .p-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .p-services, .p-portfolio-grid, .p-testimonials { grid-template-columns: 1fr; }
  .p-section, .p-hero { padding-left: 20px; padding-right: 20px; }
  .p-contact-card { padding: 32px 20px; }
  .p-nav-links { display: none; }
}
