/* ===================================
   CSS Variables
   =================================== */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --text: #ffffff;
  --muted: #888888;
  --line: #2a2a2a;
  --accent: #ffffff;
  --max: 1120px;
}

/* ===================================
   Base Styles
   =================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: start;
  justify-content: center;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover,
.socials a:hover,
.footer a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 0.9rem;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  padding-block: 80px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(4.6rem, 10vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  margin: 0;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 36px 0 28px;
}

.intro-quote {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 8px 0 28px;
}

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

.button {
  display: inline-flex;
  padding: 12px 18px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.secondary:hover {
  border-color: var(--text);
}

.socials {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px;
  transform: rotate(2deg);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.card-grid > div {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-grid span {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 600;
}

.card-grid strong {
  font-size: 1.2rem;
}

.card-grid small {
  color: var(--muted);
}

/* ===================================
   Section Styles
   =================================== */
.section {
  padding-block: 100px;
}

.section-alt {
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: end;
  margin-bottom: 60px;
}

.section-number {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0;
}

/* ===================================
   Experience (Timeline)
   =================================== */
.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 70px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.85rem;
  gap: 6px;
}

.timeline-meta strong {
  color: var(--text);
}

.timeline-content h3 {
  font-size: 1.65rem;
  margin: 0;
}

.timeline-content h3 span {
  color: var(--muted);
  font-weight: 500;
}

.role {
  color: var(--text);
  margin: 0.35rem 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.timeline-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline-content li {
  margin: 0 0 13px;
}

/* ===================================
   Projects
   =================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.project-top {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.project h3 {
  font-size: 2rem;
  margin: 50px 0 0;
  letter-spacing: -0.04em;
}

.project-type {
  color: var(--muted);
  margin: 0.2rem 0 20px;
  font-weight: 500;
}

.project > p:not(.project-type) {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 24px;
}

.tags span {
  border: 1px solid var(--line);
  padding: 5px 9px;
  font-size: 0.72rem;
  color: var(--muted);
}

.project > a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===================================
   Education
   =================================== */
.education-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.education-card h3 {
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.degree-mark {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
}

/* ===================================
   Skills
   =================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill-group {
  background: var(--surface);
  padding: 32px;
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.skill-group p {
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}

.skill-group em {
  font-style: normal;
  color: var(--text);
  font-size: 0.82rem;
}

.skill-group.wide {
  grid-column: 1 / -1;
}

/* ===================================
   Footer
   =================================== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ai-disclaimer {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 60px;
  }
  
  .hero-card {
    transform: none;
  }
  
  .section {
    padding-block: 70px;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-group.wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  
  h1 {
    font-size: 4.2rem;
  }
  
  .card-grid > div {
    min-height: 150px;
    padding: 18px;
  }
  
  .socials {
    flex-wrap: wrap;
  }
  
  .section-heading {
    grid-template-columns: 45px 1fr;
  }
  
  .project {
    padding: 24px;
  }
}
