/* Taimoor Riaz — portfolio styles */
:root {
  --ink: #0f1628;
  --panel: #172036;
  --panel-2: #1e2944;
  --line: #2b3754;
  --paper: #ece6da;
  --muted: #9aa4bb;
  --gold: #ffc53d;
  --gold-deep: #e0a51a;
  --go: #43d6a6;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 22, 40, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--paper); }
.nav__links a.btn--gold, .nav__links a.btn--gold:hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--paper); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-deep); }
.btn--line { border-color: var(--line); color: var(--paper); }
.btn--line:hover { border-color: var(--muted); }
.btn--small { padding: 9px 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--muted); font-size: 0.95rem; }
.status img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 4px rgba(67, 214, 166, 0.18); }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero__lede { font-size: 1.22rem; color: var(--paper); max-width: 34ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { color: var(--muted); font-size: 0.95rem; }
.facts strong { display: block; color: var(--paper); font-family: var(--display); font-size: 1.25rem; font-weight: 700; }

/* Showreel viewport — the signature element */
.viewport { position: relative; padding: 14px; }
.viewport::before, .viewport::after, .viewport__frame::before, .viewport__frame::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); pointer-events: none;
}
.viewport::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewport::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewport__frame::before { bottom: -14px; left: -14px; border-right: 0; border-top: 0; }
.viewport__frame::after { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
.viewport__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.reel { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #000; cursor: pointer; border-radius: 10px; overflow: hidden; }
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; transition: opacity 0.2s; }
.reel:hover img { opacity: 1; }
.reel__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink); font-weight: 800; padding: 14px 22px; border-radius: 999px; font-family: var(--body); font-size: 1rem;
}
.reel__play svg { width: 16px; height: 16px; }
.viewport__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.viewport__hud { display: flex; justify-content: space-between; margin-top: 30px; padding: 0 4px; color: var(--muted); font-size: 0.9rem; }
.viewport__hud b { color: var(--gold); font-weight: 700; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.section__intro { color: var(--muted); max-width: 52ch; margin: 12px 0 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.service { padding: 28px 0; border-top: 1px solid var(--line); }
.service h3 { font-size: 1.25rem; margin: 0 0 8px; }
.service p { margin: 0 0 14px; color: var(--muted); max-width: 48ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 0.85rem; padding: 4px 11px; border-radius: 999px; background: var(--panel-2); color: var(--paper); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project { display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius-lg); overflow: hidden; }
.project--wide { grid-column: 1 / -1; flex-direction: row; }
.project--wide .art { flex: 0 0 46%; aspect-ratio: auto; min-height: 320px; }
.art {
  position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden;
  background-color: var(--c1);
  background-image:
    radial-gradient(circle at 84% 24%, var(--c2) 0 9%, transparent 9.5%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 16px);
}
.art span { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 5.5rem); color: rgba(255,255,255,0.92); letter-spacing: -0.04em; text-shadow: 0 6px 0 rgba(0,0,0,0.18); }
.art--cards { --c1: #0f6b4f; --c2: #d9463b; }
.art--kiosk { --c1: #3b2d8f; --c2: #4fd1ff; }
.art--defense { --c1: #7a2e1f; --c2: #ffc53d; }
.art--runner { --c1: #1a5fb4; --c2: #ff8a3d; }
.art--pc { --c1: #2a2a3a; --c2: #9b7bff; }
.art--hide { --c1: #22614a; --c2: #f2e35b; }
.art--pizza { --c1: #b8401f; --c2: #ffd166; }
.art--bolts { --c1: #6b4a2b; --c2: #c9d1d9; }
.project__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 0.85rem; color: var(--muted); }
.project__meta span + span::before { content: "/"; margin-right: 8px; color: var(--line); }
.badge { color: var(--gold); font-weight: 700; }
.project h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 10px; }
.project p { margin: 0 0 18px; color: #cfd5e2; }
.project .chips { margin-bottom: 22px; }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.more { margin-top: 64px; }
.more h3 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 20px; }
.tools { list-style: none; margin: 0; padding: 0; }
.tools li { border-top: 1px solid var(--line); }
.tools li:last-child { border-bottom: 1px solid var(--line); }
.tools a { display: grid; grid-template-columns: 240px 1fr auto; gap: 24px; align-items: center; padding: 18px 4px; text-decoration: none; }
.tools a:hover .tools__name { color: var(--gold); }
.tools__name { font-weight: 700; }
.tools__desc { color: var(--muted); }
.tools__go { color: var(--muted); font-size: 0.9rem; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.skills h3 { font-size: 1rem; margin: 0 0 12px; color: var(--muted); font-weight: 600; }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.job { position: relative; padding: 0 0 40px 44px; display: grid; grid-template-columns: 200px 1fr; gap: 8px 32px; }
.job::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--muted); }
.job--now::before { border-color: var(--gold); background: var(--gold); }
.job__when { color: var(--muted); font-size: 0.95rem; padding-top: 2px; }
.job h3 { font-size: 1.2rem; margin: 0; }
.job__org { color: var(--gold); font-weight: 600; margin: 2px 0 10px; }
.job ul { margin: 0; padding-left: 18px; color: #cfd5e2; list-style: disc; }
.job li { margin-bottom: 4px; }
.edu { margin-top: 24px; padding: 24px 28px; background: var(--panel); border-radius: var(--radius-lg); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.edu h3 { margin: 0 0 4px; font-size: 1.1rem; }
.edu p { margin: 0; color: var(--muted); }

/* Contact */
.contact { padding: 110px 0 96px; border-top: 1px solid var(--line); }
.contact h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 20px; }
.contact p { color: var(--muted); max-width: 50ch; margin: 0 0 32px; font-size: 1.15rem; }
.contact__mail { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.8rem); color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-all; margin-bottom: 36px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (min-width: 761px) {
  .facts { grid-template-columns: repeat(4, auto); justify-content: start; }
}
@media (min-width: 961px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .project--wide { flex-direction: column; }
  .project--wide .art { flex: none; min-height: 0; aspect-ratio: 16 / 8; }
  .job { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .services, .projects { grid-template-columns: 1fr; }
  .tools a { grid-template-columns: 1fr; gap: 4px; }
  .tools__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
