@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:          #07090C;
  --surface:     #0D1118;
  --surface-2:   #141B26;
  --border:      rgba(255, 255, 255, 0.06);
  --border-h:    rgba(232, 146, 74, 0.3);

  --text:        #E0DBD4;
  --text-subtle: #A39D96;
  --text-dim:    #5A554F;

  --amber:       #E8924A;
  --amber-dim:   rgba(232, 146, 74, 0.08);
  --amber-glow:  rgba(232, 146, 74, 0.18);

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --container:   1100px;
  --header-h:    72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.05;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   BACKGROUND
   ============================================================ */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.mono-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 500;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 9, 12, 0.82);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid rgba(232, 146, 74, 0.35);
  padding: 0.4rem 1.1rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: var(--amber-dim);
  border-color: var(--amber);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(ellipse at center, rgba(232, 146, 74, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Hero meta row */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-up 0.6s var(--ease) 0.05s forwards;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Hero name */
.hero-headline h1 {
  font-size: clamp(3.8rem, 11vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.name-first {
  display: block;
  color: var(--text);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.2s forwards;
}

.name-last {
  display: block;
  color: var(--amber);
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.35s forwards;
}

/* Divider */
.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--amber);
  animation: draw-line 1.2s var(--ease) 0.6s forwards;
}

@keyframes draw-line {
  to { width: 28%; }
}

/* Hero sub columns */
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 820px;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.5s forwards;
}

.hero-sub p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.hero-detail {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--text-dim) !important;
  margin-top: 0.3rem;
}

.next-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--amber) !important;
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  align-items: center;
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.65s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fade-in 0.6s ease 1.2s forwards;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--amber);
  animation: scroll-down 2s ease-in-out 1.4s infinite;
}

@keyframes scroll-down {
  0%   { top: -100%; }
  100% { top: 110%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.85rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.btn-primary {
  background: var(--amber);
  color: #0A0804;
}

.btn-primary:hover {
  background: #F09E5A;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--amber-glow);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--border-h);
  color: var(--amber);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about-quote blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  font-style: normal;
  padding-left: 1.5rem;
  border-left: 2px solid var(--amber);
}

.about-details p {
  color: var(--text-subtle);
  font-size: 0.975rem;
  line-height: 1.85;
}

.about-details p + p {
  margin-top: 1rem;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.fact span:last-child {
  color: var(--text);
  font-weight: 500;
}

.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.skill-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-subtle);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--border-h);
  color: var(--amber);
}

/* ============================================================
   TIMELINE (EXPERIENCE)
   ============================================================ */
.timeline {
  max-width: 820px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline-item.current::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber) 60%, transparent);
  border-radius: 2px;
}

.tl-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
}

.tl-date {
  display: block;
  color: var(--text-dim) !important;
  line-height: 1.5;
}

.current-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232, 146, 74, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  width: fit-content;
}

.tl-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.tl-company {
  display: block;
  font-size: 0.875rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.company-link {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-left: 0.2rem;
  transition: color 0.2s;
}

.company-link:hover { color: var(--amber); }

.tl-content p {
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.tl-tags,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--bg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s ease;
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber-dim);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover { background: var(--surface); }
.project-card:hover::after { opacity: 1; }

.project-num {
  font-size: 0.62rem !important;
  color: var(--amber) !important;
}

.project-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.project-type {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.project-body p {
  color: var(--text-subtle);
  font-size: 0.9rem;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.project-link:hover { opacity: 0.65; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 820px;
}

.edu-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.3s ease;
}

.edu-card:hover { background: var(--surface); }

.edu-card.featured {
  background: var(--surface);
  border-left: 2px solid var(--amber);
}

.edu-card.featured:hover { background: var(--surface-2); }

.edu-badge {
  display: inline-flex;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(232, 146, 74, 0.35);
  padding: 0.18rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.edu-date {
  display: block;
  margin-bottom: 0.5rem;
}

.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.edu-inst {
  display: block;
  font-size: 0.875rem;
  color: var(--amber);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.edu-card p {
  color: var(--text-subtle);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 120px 0 60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-top h2 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.footer-top p {
  color: var(--text-subtle);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.7;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--surface-2);
}

/* Footer links */
.footer-links {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--amber); }

.copyright {
  color: var(--text-dim) !important;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HERO KEYFRAMES
   ============================================================ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline-item.current::before { display: none; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 720px) {
  .hero-sub {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .section { padding: 80px 0; }
  footer   { padding: 80px 0 48px; }
}
