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

:root {
  --navy:       #08111F;
  --navy-mid:   #0F1E35;
  --navy-card:  #152845;
  --navy-light: #1D3557;
  --gold:       #C8A951;
  --gold-light: #E2C97E;
  --teal:       #38BFA1;
  --text:       #DCE4F0;
  --text-muted: #7A90AA;
  --border:     rgba(255,255,255,0.07);
  --radius:     10px;
  --radius-lg:  18px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--navy);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}
a { text-decoration: none; color: inherit; }

h1, h2 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(8,17,31,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.87rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.nav-cta {
  background: var(--gold); color: var(--navy);
  padding: 0.4rem 1rem; border-radius: 6px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--gold-light); }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* BUTTONS */
.btn { display: inline-block; padding: 0.72rem 1.6rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 8rem 2.5rem 5rem;
  max-width: 1200px; margin: 0 auto;
}
.hero-eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero-title { color: #fff; margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 1.02rem; color: var(--text-muted); max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* CHART CARD */
.chart-card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.chart-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1.25rem; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.bar-group { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; height: var(--h);
  background: linear-gradient(180deg, var(--teal), rgba(56,191,161,0.25));
  border-radius: 5px 5px 0 0; position: relative;
  display: flex; align-items: flex-start; justify-content: center;
}
.bar span { position: absolute; top: -20px; font-size: 0.7rem; font-weight: 600; color: var(--teal); }
.bar-name { font-size: 0.68rem; color: var(--text-muted); margin-top: 6px; text-align: center; }
.chart-trend { margin-top: 1.2rem; font-size: 0.82rem; font-weight: 600; color: var(--teal); border-top: 1px solid var(--border); padding-top: 0.85rem; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; align-items: center; padding: 2rem 1rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; text-align: center; }

/* SECTIONS */
.section-eyebrow { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 0.5rem; }
.section-header { margin-bottom: 2.5rem; }
.featured { max-width: 1200px; margin: 0 auto; padding: 5rem 2.5rem; }
.project-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.25rem; }
.project-card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: rgba(200,169,81,0.4); transform: translateY(-3px); }
.featured-card { background: var(--navy-light); }
.project-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); background: rgba(56,191,161,0.12);
  padding: 0.25rem 0.7rem; border-radius: 4px; margin-bottom: 0.9rem;
}
.project-card h3 { margin-bottom: 0.6rem; color: #fff; }
.project-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-meta span { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.06); padding: 0.2rem 0.6rem; border-radius: 4px; }
.see-all { text-align: center; margin-top: 2.5rem; }

/* CTA */
.cta-strip { background: var(--navy-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 2.5rem; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 1.5rem; }

/* FOOTER */
.footer { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2.5rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--gold); }

/* PAGE HERO */
.page-hero { padding: 8rem 2.5rem 3rem; max-width: 1200px; margin: 0 auto; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.02rem; color: var(--text-muted); max-width: 600px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; max-width: 1200px; margin: 0 auto; padding: 0 2.5rem 5rem; align-items: start; }
.about-avatar { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; position: sticky; top: 100px; }
.avatar-initials {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700;
  color: var(--navy); margin: 0 auto 1.25rem;
}
.about-avatar h3 { color: #fff; margin-bottom: 0.25rem; }
.about-avatar .title { font-size: 0.88rem; color: var(--teal); margin-bottom: 1.25rem; }
.about-contact-info { text-align: left; margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.contact-row { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.contact-row a { color: var(--gold); }
.about-body p { color: var(--text-muted); margin-bottom: 1.2rem; }
.about-body .subsection-title { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); font-family: 'Sora', sans-serif; margin: 2rem 0 1rem; }
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.54rem; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.timeline-item h4 { font-weight: 600; color: #fff; font-size: 1rem; }
.timeline-item .org { color: var(--teal); font-size: 0.88rem; font-weight: 600; }
.timeline-item .dates { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.9rem; color: var(--text-muted); }

/* PROJECTS */
.projects-section { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem 5rem; }
.projects-full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card-full {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card-full:hover { border-color: rgba(200,169,81,0.35); transform: translateY(-2px); }
.project-card-full h3 { color: #fff; margin: 0.75rem 0 0.6rem; }
.project-card-full p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.project-bullets { list-style: none; margin-bottom: 1.2rem; }
.project-bullets li { font-size: 0.88rem; color: var(--text-muted); padding: 0.2rem 0 0.2rem 1.2rem; position: relative; }
.project-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--teal); }

/* SKILLS */
.skills-section { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem 5rem; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-card { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.skill-card-icon { font-size: 1.4rem; margin-bottom: 0.75rem; }
.skill-card h3 { color: #fff; margin-bottom: 1rem; font-size: 0.95rem; font-weight: 600; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill { font-size: 0.73rem; font-weight: 600; padding: 0.28rem 0.7rem; border-radius: 100px; background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.pill.gold { background: rgba(200,169,81,0.12); color: var(--gold); border-color: rgba(200,169,81,0.25); }
.pill.teal { background: rgba(56,191,161,0.1); color: var(--teal); border-color: rgba(56,191,161,0.2); }

/* RESUME */
.resume-section { max-width: 860px; margin: 0 auto; padding: 0 2.5rem 5rem; }
.download-bar { text-align: right; margin-bottom: 1.75rem; }
.resume-block { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 2.5rem; margin-bottom: 1.5rem; }
.resume-block-title { font-size: 0.73rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); font-family: 'Sora', sans-serif; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.resume-entry { margin-bottom: 1.75rem; }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.15rem; }
.resume-entry h4 { color: #fff; font-weight: 600; font-size: 1rem; }
.resume-entry .co { color: var(--teal); font-size: 0.88rem; font-weight: 600; }
.resume-dates { font-size: 0.8rem; color: var(--text-muted); }
.resume-bullets { list-style: none; margin-top: 0.6rem; }
.resume-bullets li { font-size: 0.9rem; color: var(--text-muted); padding: 0.22rem 0 0.22rem 1.2rem; position: relative; }
.resume-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); top: 0.35rem; font-size: 0.7rem; }

/* CONTACT */
.contact-layout { max-width: 900px; margin: 0 auto; padding: 0 2.5rem 5rem; display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.contact-info-block h3 { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); font-family: 'Sora', sans-serif; margin-bottom: 1.25rem; }
.contact-detail { margin-bottom: 1.4rem; }
.contact-detail span { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail a { color: var(--text); font-weight: 500; }
.contact-detail a:hover { color: var(--gold); }
.contact-form-card { background: var(--navy-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.68rem 1rem; color: var(--text);
  font-family: 'Sora', sans-serif; font-size: 0.92rem;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 0.85rem; border: none; font-family: 'Sora', sans-serif; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; text-align: center; }

/* ANIM */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeUp 0.7s both; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .hero-visual { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .project-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .about-avatar { position: static; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-full-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .nav { padding: 1rem 1.25rem; }
}
