/* ─────────────────────────────────────────
   hannanshaik.com
   ───────────────────────────────────────── */

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

:root {
  --bg:           #080e1a;
  --border:       #111d30;
  --accent:       #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft:  #818cf8;
  --text:         #f8fafc;
  --text-mid:     #94a3b8;
  --text-dim:     #3d5170;
  --text-muted:   #1e2d47;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── LAYOUT ── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 64px;
  background: rgba(8, 14, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 29, 48, 0.8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #1a2d47;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* ── HERO ── */
#hero {
  padding: 160px 0 108px;
  border-bottom: 1px solid var(--border);
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 36px;
  border: 2px solid #1a2d47;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-headline {
  font-size: 52px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-headline em {
  color: var(--accent-soft);
  font-style: normal;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.hero-tag:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* ── SECTIONS ── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 52px;
}

.section-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 4px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1.15;
}

/* ── BELIEFS ── */
.beliefs-list {
  display: flex;
  flex-direction: column;
}

.belief-row {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.belief-row:first-child { padding-top: 0; }
.belief-row:last-child { border-bottom: none; padding-bottom: 0; }

.belief-icon {
  font-size: 22px;
  width: 36px;
  flex-shrink: 0;
  padding-top: 2px;
}

.belief-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.belief-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.72;
}

.belief-content p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── WRITING ── */
.writing-group {
  margin-bottom: 44px;
}

.writing-group:last-child { margin-bottom: 0; }

.writing-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.15s;
}

/* Article thumbnails */
.article-thumb {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s;
  background: #0f1a2e;
}
.article-item:hover .article-thumb { transform: scale(1.03); }

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, #0d1b2e 0%, #1e3a5f 40%, #4338ca 100%);
}

.thumb-icon {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-item:hover { opacity: 0.6; }

.article-body { flex: 1; }

.article-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.article-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  max-width: 520px;
}

.article-arrow {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 4px;
  transition: color 0.15s, transform 0.15s;
}

.article-item:hover .article-arrow {
  color: var(--accent-soft);
  transform: translate(3px, -3px);
}

/* ── ABOUT ── */
.about-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 44px;
}

.about-body strong {
  color: var(--text);
  font-weight: 500;
}

.about-body p {
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.stat {
  padding-right: 24px;
  border-right: 1px solid var(--border);
  margin-right: 24px;
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.stat-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── CONTACT ── */
.contact-headline {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 480px;
}

.contact-headline em {
  color: var(--accent-soft);
  font-style: normal;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.cta-primary:hover { background: var(--accent-hover); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.cta-secondary:hover {
  border-color: #2d3f5e;
  color: var(--text);
}

/* ── FOOTER ── */
footer {
  padding: 36px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav {
    padding: 18px 24px;
  }

  .nav-links { display: none; }

  .nav-toggle { display: block; }

  .container {
    padding: 0 24px;
  }

  #hero {
    padding: 120px 0 72px;
  }

  .hero-headline {
    font-size: 36px;
    letter-spacing: -1.2px;
  }

  .hero-sub { font-size: 15px; }

  .section { padding: 64px 0; }

  .section-title { font-size: 22px; }

  .belief-row { gap: 18px; }

  .article-title { font-size: 15px; }

  .article-thumb { width: 76px; height: 54px; font-size: 22px; }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .stat {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 4px;
  }

  .stat:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--border); }

  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .contact-headline { font-size: 22px; }

  .about-body { font-size: 15px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 30px; letter-spacing: -1px; }
  .hero-eyebrow { font-size: 11px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .article-thumb { display: none; }
}
