:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-alt: #111111;
  --border: #262626;
  --gold: #D4A857;
  --white: #f5f5f5;
  --gray: #9a9a9a;
  --radius: 14px;
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
  width: 100%;
}

.eyebrow, .eyebrow-pill {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow-pill {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 40px;
}

h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 48px;
}

.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 0.9rem;
  color: var(--white);
  transition: color 0.2s;
}

.nav-links a.active,
.nav-links a:hover { color: var(--gold); }

.hero { padding-top: 40px; padding-bottom: 80px; }

/* Cover photo shown at top of the page (Twitter-style) */
.cover {
  width: 100%;
  height: min(500px, 60vw);
  min-height: 280px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.cover-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0.44));
  pointer-events: none;
}

.avatar-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  margin-top: -100px; /* overlap the cover */
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 60px rgba(212,168,87,0.18);
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
  z-index: 10;
}

.avatar { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero .subtitle {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero .lead {
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.socials a:hover { border-color: var(--gold); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
  margin-top: 40px;
}

.about-left, .about-right {
  display: grid;
  gap: 16px;
}

.about-right { grid-template-columns: 1fr 1fr; }

.info-card, .feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* Make about & skill cards match heights and alignment */
.about-grid { align-items: stretch; }

.about-left {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
}

.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 16px;
}

.info-card, .feature-card, .skill-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
}

.info-card h3, .feature-card h4 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.info-card p, .feature-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}

.skill-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.skill-card h4 {
  color: var(--gold);
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

.work-grid {
  columns: 2;
  column-gap: 20px;
  margin-top: 40px;
  width: 100%;
}

.work-grid .tweet-card {
  break-inside: avoid;
  margin: 0 0 20px !important;
  width: 100% !important;
  display: block;
}

.tweet-card {
  background: #f8fafc;
  border: 1px solid rgba(29, 161, 242, 0.18);
  border-radius: 28px;
  padding: 24px;
  display: block;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.tweet-card:hover {
  border-color: rgba(29, 161, 242, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

.tweet-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.tweet-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tweet-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.verified {
  color: #1d9bf0;
  font-size: 0.8rem;
}

.tweet-handle {
  color: #536471;
  font-size: 0.85rem;
}

.follow-btn {
  margin-left: auto;
  background: #0f1419;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.x-icon {
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1rem;
  color: #0f1419;
}

.tweet-text {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #0f1419;
}

.tweet-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #e1e1e1;
}

.tweet-media img {
  width: 100%;
  display: block;
}

.tweet-body p,
.tweet-body ul {
  margin: 0 0 12px;
  color: #14171a;
  font-size: 0.94rem;
  line-height: 1.7;
}

.tweet-body ul {
  padding-left: 18px;
}

.tweet-body li {
  margin-bottom: 8px;
  list-style-type: disc;
  color: #14171a;
}

.tweet-more {
  color: #1d9bf0;
  font-weight: 700;
}

.tweet-footer {
  border-top: 1px solid #e1e1e1;
  padding-top: 10px;
}

.tweet-time {
  color: #536471;
  font-size: 0.78rem;
  display: block;
  margin-bottom: 10px;
}

.tweet-actions {
  display: flex;
  gap: 16px;
  color: #536471;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.read-replies {
  display: block;
  text-align: center;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f1419;
}

.tweet-replies {
  color: #1d9bf0;
}

.tweet-card:hover .tweet-action {
  color: #1d9bf0;
  border-color: rgba(29, 161, 242, 0.35);
}

.tweet-cta {
  color: #1d9bf0;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Make skill cards behave like work cards */
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.15s;
  height: 100%;
}

.skill-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tweet-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 12px;
}

.tweet-name { font-weight: 700; }
.tweet-handle { color: var(--gray); font-size: 0.88rem; }

.tweet-text {
  color: #d0d0d0;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.tweet-cta {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--gold); }

.contact-card h4 { color: var(--gold); margin-bottom: 6px; }
.contact-card p { color: var(--gray); font-size: 0.88rem; }

.footer-text {
  color: #555;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-right { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .nav-links { gap: 16px; font-size: 0.85rem; }
}

@media (max-width: 800px) {
  section { padding: 80px 18px; }
  .nav-inner { padding: 16px 18px; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .cover { height: 320px; min-height: 240px; }
  .avatar-wrap { width: 150px; height: 150px; margin-top: -75px; }
  .hero { padding-top: 24px; padding-bottom: 60px; }
  .cta-row { flex-direction: column; align-items: center; }
  .btn { width: min(100%, 280px); text-align: center; }
  .work-grid { columns: 1; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero .subtitle { font-size: 1rem; }
  .socials { gap: 12px; }
  .socials a { width: 36px; height: 36px; }
  .tweet-card { padding: 18px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}