@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #F4F0EA;           /* Premium Cream / Warm Sand */
  --panel: #FFFFFF;        /* Soft White Panel */
  --panel-hover: #FCFAF7;  /* Hover Panel */
  --ink: #1C1A17;          /* Deep Charcoal */
  --muted: #7E7873;        /* Clay / Muted Earth */
  --accent: #E27D60;       /* Rust Accent */
  --accent-hover: #C36850; /* Deep Rust */
  --accent-light: #F0D5CE; /* Soft Rose/Terracotta */
  --line: #E5DFD5;         /* Thin warm border */
  --tag-bg: #EAE3D9;       /* Clay-tinted Grey Tag */
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: rgba(244, 240, 234, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(226, 125, 96, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar:hover {
  transform: scale(1.05) rotate(2deg);
}

.profile h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.profile .role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-light);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  width: fit-content;
  font-weight: 700;
}

nav.sections {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav.sections a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

nav.sections a:hover, nav.sections a.active {
  color: var(--ink);
  background: var(--tag-bg);
  border-left-color: var(--accent);
  padding-left: 18px;
}

.links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 125, 96, 0.08);
}

.links a .arrow {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.links a:hover .arrow {
  transform: translateX(4px);
}

.links .docs {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.links .docs a {
  flex: 1;
  justify-content: center;
  font-weight: 700;
}

/* MAIN CONTENT AREA */
main {
  flex: 1;
  padding: 56px 64px;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.full-width-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* HERO */
header.hero h2 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink);
}

header.hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 640px;
}

/* TIMELINE */
.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 40px 0 0;
  position: relative;
}

.timeline .stop {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline .stop:first-child { text-align: left; }
.timeline .stop:last-child { text-align: right; }

.timeline .stop .label {
  font-weight: 700;
  font-size: 13.5px;
}

.timeline .stop .sub {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.timeline .track {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-light);
  z-index: 0;
}

.timeline .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px rgba(226, 125, 96, 0.4);
}

.timeline .stop:first-child .dot { margin-left: 0; }
.timeline .stop:last-child .dot { margin-right: 0; margin-left: auto; }

/* SECTIONS */
section h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.8px;
}

section .section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.015);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(226, 125, 96, 0.06);
}

.skill-card h4 {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.skill-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* CARDS */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.015);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(226, 125, 96, 0.06);
}

.card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.card h4 {
  font-size: 19px;
  font-weight: 800;
}

.card .place {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card .place a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.card .place a:hover {
  color: var(--accent-hover);
}

.card .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.card ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card li {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3e3b37;
}

.card .stack {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  width: fit-content;
}

.card .project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 14px;
  transition: background-color 0.2s ease;
}

.card .project-link-btn:hover {
  background: var(--accent-hover);
}

/* REDESIGNED CERTIFICATIONS & INTERESTS */
.fancy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fancy-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.fancy-card:hover {
  border-color: var(--accent);
  background: var(--panel-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226, 125, 96, 0.05);
}

.fancy-icon {
  background: var(--accent-light);
  color: var(--accent);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 800;
}

.fancy-content h5 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}

.fancy-content p {
  font-size: 13px;
  color: var(--muted);
}

/* PHYSICAL-LOOKING MAIL COMPONENT */
.mail-container {
  max-width: 580px;
  background: #FFFDFC;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.mail-header {
  border-bottom: 2px dashed var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mail-stamp {
  width: 64px;
  height: 72px;
  border: 2px dashed var(--accent);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.mail-stamp span {
  font-size: 18px;
}

.mail-field {
  margin-bottom: 16px;
}

.mail-field label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.mail-field input, .mail-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #FAF8F5;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.mail-field input:focus, .mail-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(226, 125, 96, 0.1);
}

.mail-send-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.mail-send-btn:hover {
  background: var(--accent-hover);
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* PROJECT MD-LIKE DETAIL CONTENT */
.readme-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 48px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.readme-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}

.readme-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--ink);
}

.readme-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #3e3b37;
  margin-bottom: 18px;
}

.readme-content ul {
  padding-left: 24px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.readme-content li {
  font-size: 14.5px;
  color: #3e3b37;
}

.readme-content pre {
  background: #FAF8F5;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.readme-content code {
  font-family: var(--mono);
  background: var(--tag-bg);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
  }
  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 32px 24px;
    gap: 20px;
  }
  .profile {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  .avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  nav.sections {
    display: none;
  }
  .links {
    margin-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .links a {
    flex: 1;
    min-width: 130px;
    justify-content: center;
  }
  main {
    padding: 32px 24px 80px;
  }
  .content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .readme-content {
    padding: 24px 28px;
  }
}

/* VERTICAL STEPPER TIMELINE */
.stepper-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin: 28px 0;
}

.stepper-vertical::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}

.step-item {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.step-item:hover .step-badge {
  border-color: var(--accent);
  color: var(--accent);
}

.step-item.active .step-badge {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 0 12px rgba(226, 125, 96, 0.25);
}

.step-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  flex-grow: 1;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.step-item:hover .step-panel {
  border-color: var(--accent);
}

.step-item.active .step-panel {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(226, 125, 96, 0.05);
  background: var(--panel-hover);
}

.step-panel h5 {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-item.active .step-panel h5 {
  color: var(--accent);
}

.step-panel .step-short {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.step-panel .step-full {
  font-size: 13.5px;
  color: #3e3b37;
  display: none;
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.step-item.active .step-panel .step-full {
  display: block;
}
