/* ============================================================
   syedyousha.com — Minimal portfolio
   ============================================================ */

:root {
  --bg: #fafafa;
  --text: #0d0d0d;
  --muted: #999999;
  --soft: #6b6b6b;
  --accent: #0a1628;
  --card: #ffffff;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;

  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1100px;
  --gutter: clamp(20px, 4vw, 40px);

  --radius: 8px;
  --shadow-hover: 0 12px 32px -12px rgba(10, 22, 40, 0.18);
  --transition: 220ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img, svg { display: block; max-width: 100%; }

.icon {
  width: 1em;
  height: 1em;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow { max-width: 760px; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14px;
}

.nav-links a {
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  gap: 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.is-open { display: flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
}

.hero-inner {
  max-width: 820px;
  width: 100%;
  text-align: left;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 24px;
}

.hero-location .icon { width: 14px; height: 14px; color: var(--accent); }

.hero-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.hero-subline {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--soft);
  max-width: 620px;
  margin: 0 0 40px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  background: var(--accent);
  color: #fafafa;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.cta:hover {
  background: #060e1c;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(10, 22, 40, 0.5);
}

.cta .icon { width: 16px; height: 16px; }

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 48px;
}

/* ============================================================
   WORK CARDS
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card-tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.card-desc {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

.card-link {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.card-link .icon { width: 14px; height: 14px; transition: transform var(--transition); }

.card:hover .card-link .icon { transform: translate(2px, -2px); }

/* ============================================================
   SPEAKING
   ============================================================ */

.talk {
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.talk:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.talk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.talk-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text);
}

.talk-event {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.talk-line {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}

.speaking-cta {
  margin: 40px 0 0;
  font-size: 15px;
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.speaking-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.speaking-cta a:hover { border-bottom-color: var(--accent); }

.speaking-cta a .icon { width: 14px; height: 14px; transition: transform var(--transition); }
.speaking-cta a:hover .icon { transform: translateX(3px); }

/* ============================================================
   ABOUT
   ============================================================ */

.about-copy {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */

.section-contact { padding-bottom: 80px; }

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.contact-list li { border-bottom: 1px solid var(--border); }

.contact-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  transition: color var(--transition), padding var(--transition);
}

.contact-list a:hover {
  color: var(--accent);
  padding-left: 12px;
}

.contact-key {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 110px;
}

.contact-val {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-align: right;
  word-break: break-word;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   404
   ============================================================ */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  text-align: center;
}

.notfound h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 120px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}

.notfound p {
  color: var(--soft);
  margin: 0 0 32px;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta:hover, .card:hover { transform: none; }
}
