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

:root {
  --bg:          #0b0e14;
  --bg-card:     #111520;
  --bg-hover:    #161b27;
  --border:      #1e2435;
  --gold:        #FDB515;
  --gold-dim:    rgba(253, 181, 21, 0.15);
  --gold-muted:  rgba(253, 181, 21, 0.6);
  --blue:        #003262;
  --text:        #c9d1d9;
  --text-bright: #e6edf3;
  --text-dim:    #8b949e;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'Fira Code', 'Courier New', monospace;
  --nav-h:       70px;
  --radius:      8px;
  --transition:  0.25s ease;
  --max-w:       1000px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #ffc93c; }

ul { list-style: none; }

.gold { color: var(--gold); }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-muted); }

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

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #0b0e14;
}
.btn-primary:hover {
  background: #ffc93c;
  color: #0b0e14;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 181, 21, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ============================================================
   NAV
============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: calc(var(--max-w) + 4rem);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.nav-logo:hover { color: #ffc93c; }

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  counter-increment: nav-item;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-links .nav-resume {
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.nav-links .nav-resume:hover {
  background: var(--gold);
  color: #0b0e14;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(11, 14, 20, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   SECTION TITLES
============================================================ */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.section-title::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  flex: 1;
  min-width: 40px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
}

section {
  padding: 6rem 0;
}

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  position: relative;
  max-width: calc(var(--max-w) + 4rem);
  margin: 0 auto;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-builder {
  font-size: 1.15rem;
  color: var(--gold);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s forwards;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.75s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.2s forwards;
}
.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  writing-mode: vertical-lr;
  letter-spacing: 0.15em;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ============================================================
   ABOUT
============================================================ */
#about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { order: -1; }
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-col h4 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.skill-col li {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}
.skill-col li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 1rem;
}

.about-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.about-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.card-badge {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.badge-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-school {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ============================================================
   EXPERIENCE
============================================================ */
#experience { background: var(--bg); }

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  margin-top: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition), box-shadow var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-muted);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover {
  border-color: var(--gold-muted);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.tc-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
}
.tc-company {
  font-size: 0.875rem;
  color: var(--gold);
  margin-top: 0.15rem;
}
.tc-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.tc-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tc-bullets {
  list-style: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tc-bullets li {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
}
.tc-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.35em;
}

.tc-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.tc-badge.incoming {
  background: rgba(253, 181, 21, 0.12);
  color: var(--gold);
  border: 1px solid var(--gold-muted);
}

.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tc-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ============================================================
   PROJECTS
============================================================ */
#projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  border-color: var(--gold-muted);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.project-card.featured {
  border-color: rgba(253,181,21,0.25);
}

.pc-top { flex: 1; }

.pc-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.pc-folder {
  width: 36px;
  height: 36px;
  color: var(--gold);
}
.pc-link {
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
}
.pc-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.pc-link svg {
  width: 20px;
  height: 20px;
}

.pc-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.project-card:hover .pc-title { color: var(--gold); }

.pc-date-small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.pc-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pc-bullets {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pc-bullets li {
  font-size: 0.825rem;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 1.1rem;
  position: relative;
}
.pc-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.65rem;
  top: 0.38em;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.pc-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}
.pc-tags span::before { content: '#'; color: var(--gold); }

/* ============================================================
   FOOTER / CONTACT
============================================================ */
footer {
  border-top: 1px solid var(--border);
  scroll-margin-top: var(--nav-h);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
}
.footer-links a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-bottom: 2rem;
}

@media (max-width: 480px) {
  .footer-links { gap: 1.25rem 1.5rem; }
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   SELECTION
============================================================ */
::selection {
  background: var(--gold-dim);
  color: var(--gold);
}
