@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Inter:wght@400;500&display=swap');

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

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

:root {
  --orange: #F97316;
  --orange-dark: #C2650A;
  --red: #DC2626;
  --red-dark: #A51C1C;
  --brown: #A0522D;
  --brown-light: #C2703F;
  --yellow: #CAFF00;
  --yellow-dark: #A3CC00;
  --bg: #111111;
  --surface: #FFFFFF;
  --surface-2: #555555;
  --text: #F5F0E8;
  --text-dark: #111111;
  --muted: #B8AD9E;
  --light: #7A7268;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
}

/* ── Pill nav ── */

.pill-nav {
  position: fixed;
  top: 20px;
  left: calc(68px + ((100vw - 68px) / 2));
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 2px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pill-nav a {
  display: flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 40px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.pill-nav a i {
  font-size: 14px;
  flex-shrink: 0;
}

.pill-nav a span {
  margin-left: 7px;
}

.pill-nav a:hover {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.15);
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.pill-nav a.active {
  color: #111111;
  background: var(--yellow);
}

/* ── Layout ── */

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 24px;
  bottom: 100px;
  width: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -100px;
  top: -160px;
  width: 2px;
  background: linear-gradient(to top, transparent, rgba(255,255,255,0.45) 12%);
  pointer-events: none;
  z-index: 0;
}

.sidebar::-webkit-scrollbar { display: none; }

.sidebar-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.sidebar-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 52px;
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  background: var(--bg);
  transition: color 0.2s ease;
}

.sidebar-icon:hover {
  color: var(--orange);
}

.sidebar-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: rgba(20, 20, 20, 0.95);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-icon[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.main-content {
  margin-left: 68px;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: 20px;
}

#progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 0%;
  background: var(--red);
  z-index: 1000;
  transition: height 0.1s linear;
}


/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.accent {
  color: var(--orange);
}

/* ── Hero ── */

.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18vh 64px 0;
  position: relative;
}

.hero-name {
  line-height: 0.88;
  will-change: transform, opacity;
}

.hero-first {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 110px;
  font-weight: 800;
  letter-spacing: -5px;
  color: #ffffff;
}

.hero-last {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 110px;
  font-weight: 800;
  letter-spacing: -5px;
  color: #252525;
}

.hero-sub {
  margin-top: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  min-height: 1.5em;
}

.hero-cursor {
  color: var(--red);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-scroll {
  position: absolute;
  bottom: 52px;
  right: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
}

.hero-scroll-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-scroll:hover .hero-scroll-label {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll i {
  font-size: 18px;
  animation: heroBounce 2s ease-in-out infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Sections ── */

section {
  padding: 140px 64px;
  position: relative;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 0.88;
  display: block;
  margin-bottom: 56px;
}

.h2-main {
  display: block;
  color: #FFFFFF;
}

.h2-ghost {
  display: block;
  color: #252525;
}

h2.h2-right {
  text-align: right;
}

h2.reveal {
  opacity: 0;
  transition: opacity 0.5s ease;
}

h2.reveal.revealed {
  opacity: 1;
}

p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

/* ── About ── */

.about-card {
  display: flex;
  gap: 48px;
  align-items: center;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.about-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.05);
  color: var(--muted);
}

/* ── Project cards ── */

.projects-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.projects-scroll::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 260px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.project-card-top {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.project-card-body {
  padding: 20px;
}

.project-card-status {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.project-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card-stack span {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #252525;
  color: var(--muted);
}

/* ── Timeline (centered alternating) ── */

.timeline-center {
  position: relative;
}

.timeline-center::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), transparent);
  z-index: 0;
}

.tc-item {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  padding-bottom: 52px;
  position: relative;
}

.tc-item:last-child {
  padding-bottom: 0;
}

.tc-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  justify-self: center;
  position: relative;
  z-index: 1;
}

.tc-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  align-self: center;
}

.tc-left .tc-card  { grid-column: 1; padding-right: 28px; }
.tc-left .tc-dot   { grid-column: 2; }
.tc-left .tc-date  { grid-column: 3; padding-left: 28px; }

.tc-right .tc-date { grid-column: 1; padding-right: 28px; text-align: right; }
.tc-right .tc-dot  { grid-column: 2; }
.tc-right .tc-card { grid-column: 3; padding-left: 28px; }

.tc-card {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 20px 24px;
}

.tc-left .tc-card  { border-right: 3px solid var(--red); }
.tc-right .tc-card { border-left: 3px solid var(--red); }

/* ── Resume entry content ── */

.resume-entry-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.resume-entry-org {
  font-size: 14px;
  color: var(--orange);
  margin-top: 2px;
  margin-bottom: 12px;
}

.resume-entry-body {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-entry-body li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.resume-entry-body li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* ── About photo ── */

.about-photo {
  flex: 0 0 260px;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s ease;
}

.about-photo:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}

.headshot-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about-photo:hover .headshot-photo {
  transform: scale(1.04);
}

/* ── Skills marquee ── */

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  overflow: hidden;
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-row:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  min-width: max-content;
  gap: 64px;
  padding: 20px 32px;
  flex-shrink: 0;
  align-items: center;
  animation: marquee-left 40s linear infinite;
}

.marquee-row-r .marquee-content {
  animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@keyframes marquee-right {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  color: var(--muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.marquee-item iconify-icon,
.marquee-item i {
  flex-shrink: 0;
}

.marquee-item i {
  font-size: 32px;
  color: var(--muted);
}

.marquee-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2A2A2A;
  flex-shrink: 0;
}

.contact-card iconify-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.icon-on-dark {
  filter: invert(1);
}

.skill-icon-card span {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Education entries ── */

.edu-entry {
  padding-left: 28px;
  border-left: 3px solid var(--red);
  margin-bottom: 48px;
}

.edu-entry-hs {
  border-left-color: #2A2A2A;
  margin-bottom: 0;
}

.edu-entry-header {
  margin-bottom: 16px;
}

.edu-entry-degree {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.edu-entry-school {
  font-size: 14px;
  color: var(--orange);
  font-weight: 500;
}

.edu-card-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.edu-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-card-meta i {
  font-size: 11px;
  color: var(--light);
}

.edu-card-divider {
  height: 1px;
  background: #2A2A2A;
  margin: 24px 0;
}

.edu-card-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-card-section-title i {
  color: var(--orange);
}

.edu-disciplines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.edu-discipline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #222222;
  border: 1px solid #2E2E2E;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.edu-discipline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

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

.edu-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #222222;
  border: 1px solid #333333;
  color: var(--muted);
}

/* ── Contact ── */

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: var(--orange);
  transform: translateX(6px);
}

.contact-card i {
  font-size: 22px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  color: var(--red);
}

.contact-card-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-card-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* ── Mobile ── */

@media (max-width: 768px) {

  .sidebar { display: none; }

  .main-content { margin-left: 0; }

  .pill-nav {
    left: 50%;
    top: 12px;
    gap: 0;
    padding: 6px 8px;
  }

  .pill-nav a span { display: none; }

  .pill-nav a {
    padding: 10px 10px;
  }

  .hero-section { padding: 22vh 24px 0; }

  .hero-first,
  .hero-last {
    font-size: clamp(52px, 16vw, 110px);
    letter-spacing: -3px;
  }

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

  .hero-scroll { right: 24px; }

  section { padding: 80px 24px; }

  h2 {
    font-size: clamp(52px, 14vw, 88px);
    letter-spacing: -2px;
    margin-bottom: 40px;
  }

  .about-card { flex-direction: column; gap: 32px; }

  .about-photo { flex: none; width: 200px; align-self: center; }

  .timeline-center::before { left: 7px; transform: none; }

  .tc-item {
    display: block;
    padding-left: 36px;
    padding-bottom: 40px;
    position: relative;
  }

  .tc-dot {
    position: absolute;
    left: 0;
    top: 4px;
    justify-self: unset;
  }

  .tc-date {
    display: block;
    margin-bottom: 8px;
    text-align: left !important;
    padding: 0 !important;
    color: var(--orange);
  }

  .tc-right .tc-date { color: var(--red); }

  .tc-left .tc-card,
  .tc-right .tc-card {
    padding: 20px !important;
    border-right: none !important;
    border-left: 3px solid var(--red) !important;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }

  .edu-disciplines-grid { grid-template-columns: 1fr; }

  .contact-cards { grid-template-columns: 1fr; }

  .edu-entry { padding-left: 20px; }

  .site-footer { padding: 24px; }
}

/* ── Footer ── */

.site-footer {
  padding: 32px 64px;
  border-top: 1px solid #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--light);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--orange);
}
