@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #18212f;
  --muted: #697386;
  --line: #e6eaf0;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --accent: #246bfe;
  --accent-dark: #174eca;
  --accent-soft: #eaf1ff;
  --sidebar: #f8f9fb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #eef1f5; color: var(--ink); font-family: "Manrope", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
.dashboard-shell { background: var(--surface); display: flex; min-height: 100vh; overflow: hidden; width: 100%; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex: 0 0 245px; flex-direction: column; height: 100vh; padding: 2rem 1.25rem 1.5rem; position: sticky; top: 0; }
.sidebar-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; display: none; font-size: 1.8rem; line-height: 1; padding: .25rem; position: absolute; right: 1rem; top: 1rem; }
.sidebar-close:hover { color: var(--accent); }
.brand { align-items: center; color: var(--ink); display: flex; font-size: .9rem; font-weight: 800; gap: .65rem; text-decoration: none; }
.brand-mark, .avatar { align-items: center; background: var(--accent); border-radius: .65rem; color: white; display: inline-flex; font-size: .72rem; font-weight: 800; height: 2.1rem; justify-content: center; width: 2.1rem; }
.brand-mark { object-fit: cover; object-position: center 25%; }
.profile-mini { border-bottom: 1px solid var(--line); margin: 3rem .5rem 2rem; padding-bottom: 1.5rem; }
.avatar { border-radius: 50%; height: 3.25rem; margin-bottom: .8rem; object-fit: cover; object-position: center 25%; width: 3.25rem; }
.profile-mini-name { font-size: .92rem; font-weight: 800; }
.profile-mini-role { color: var(--muted); font-size: .75rem; }
.nav-label, .section-kicker { color: #9aa3b2; font-family: "DM Mono", monospace; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-label { margin: 0 .65rem 1rem; }
.nav-links { list-style: none; }
.nav-links a { align-items: center; border-radius: .55rem; color: var(--muted); display: flex; font-size: .82rem; gap: .8rem; margin: .25rem 0; padding: .7rem .65rem; text-decoration: none; transition: .2s ease; }
.nav-links a span { color: #a6afbc; font-size: 1rem; width: 1rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-links a[aria-current="page"] span { color: var(--accent); }
.sidebar-footer { margin-top: auto; }
.github-link, .theme-toggle { align-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; display: flex; font: inherit; font-size: .75rem; gap: .65rem; padding: .65rem; text-decoration: none; width: 100%; }
.github-link svg { fill: currentColor; height: 1rem; width: 1rem; }
.github-link:hover, .theme-toggle:hover { color: var(--accent); }
.theme-toggle { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; }
.main-content { flex: 1; min-width: 0; }
.hero-section { align-items: center; background: linear-gradient(115deg, #f7faff, #fff); display: flex; gap: 3rem; justify-content: space-between; min-height: 425px; padding: 5rem clamp(2rem, 6vw, 6rem); }
.hero-copy { max-width: 640px; }
.eyebrow { color: var(--accent); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .08em; margin-bottom: 1.25rem; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); letter-spacing: -.06em; line-height: 1.08; }
h1 span { color: var(--accent); }
.hero-description { color: var(--muted); font-size: 1rem; margin: 1.5rem 0 2rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { border: 0; border-radius: .45rem; cursor: pointer; display: inline-flex; font: inherit; font-size: .8rem; font-weight: 700; gap: 1rem; justify-content: center; padding: .85rem 1.25rem; text-decoration: none; transition: .2s ease; }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.button-secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-card { background: var(--ink); border-radius: 1rem; box-shadow: 0 1.5rem 3rem #18212f20; color: white; flex: 0 0 225px; padding: 1.5rem; text-align: center; transform: rotate(2deg); }
.availability { color: #9dbaff; font-family: "DM Mono", monospace; font-size: .6rem; margin-bottom: 1.5rem; text-transform: uppercase; }
.availability span { background: #66d79e; border-radius: 50%; display: inline-block; height: .45rem; margin-right: .35rem; width: .45rem; }
.hero-avatar { align-items: center; background: linear-gradient(135deg, #4e88ff, #8c5bff); border: 3px solid #ffffff33; border-radius: 50%; display: flex; height: 6.25rem; justify-content: center; margin: auto; object-fit: cover; object-position: center 25%; width: 6.25rem; }
.hero-card-name { font-weight: 800; margin-top: 1rem; }
.hero-card-role, .hero-card-note { color: #aeb9ce; font-size: .7rem; }
.hero-card-line { background: #3b4659; height: 1px; margin: 1.4rem 0; }
.hero-card-note { font-style: italic; }
.section-block, .contact-section { border-top: 1px solid var(--line); padding: 4rem clamp(2rem, 6vw, 6rem); }
.section-heading { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.04em; margin-top: .3rem; }
.section-number { color: #d2d8e2; font-family: "DM Mono", monospace; font-size: .8rem; }
.about-grid { display: grid; gap: 4rem; grid-template-columns: 1fr 1fr; }
.lead-text { color: var(--muted); font-size: 1.1rem; }
.goal-text { font-size: .85rem; margin-top: 1rem; }
.info-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
.info-grid div { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.info-grid span, .timeline-date { color: #9aa3b2; display: block; font-family: "DM Mono", monospace; font-size: .62rem; text-transform: uppercase; }
.info-grid strong { display: block; font-size: .77rem; margin-top: .25rem; overflow-wrap: anywhere; }
.skills-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.skill-card { border: 1px solid var(--line); border-radius: .7rem; padding: 1.3rem; transition: .2s ease; }
.skill-card:hover { border-color: var(--accent); box-shadow: 0 .7rem 1.5rem #246bfe12; transform: translateY(-4px); }
.skill-icon { align-items: center; background: var(--accent-soft); border-radius: .4rem; color: var(--accent); display: flex; font-family: "DM Mono", monospace; font-size: .7rem; font-weight: 500; height: 2.2rem; justify-content: center; margin-bottom: 1rem; width: 2.2rem; }
.skill-card h3, .timeline h3, .projects-empty h3 { font-size: .9rem; }
.skill-card p, .timeline p, .projects-empty p { color: var(--muted); font-size: .72rem; margin-top: .4rem; }
.timeline { border-left: 1px solid #cdd4df; margin-left: .45rem; padding-left: 2rem; }
.timeline-item { padding: 0 0 2rem; position: relative; }
.timeline-dot { background: white; border: 3px solid #cbd3df; border-radius: 50%; height: .9rem; left: -2.47rem; position: absolute; top: .2rem; width: .9rem; }
.timeline-item.current .timeline-dot { border-color: var(--accent); }
.timeline-status { background: var(--accent-soft); border-radius: 999px; color: var(--accent); display: inline-block; font-size: .6rem; margin-top: .7rem; padding: .25rem .6rem; }
.projects-empty { align-items: center; background: var(--soft); border: 1px dashed #cbd4e0; border-radius: .8rem; display: flex; gap: 1rem; padding: 1.5rem; }
.project-symbol { align-items: center; background: white; border-radius: .5rem; color: var(--accent); display: flex; font-size: 1.4rem; height: 3rem; justify-content: center; width: 3rem; }
.text-link { color: var(--accent); font-size: .75rem; font-weight: 700; margin-left: auto; text-decoration: none; white-space: nowrap; }
.contact-section { background: var(--ink); color: white; }
.contact-section .section-kicker { color: #8494b1; }
.contact-section h2 { color: white; }
.contact-grid { display: grid; gap: 5rem; grid-template-columns: .8fr 1.2fr; }
.contact-intro { color: #aeb9ce; max-width: 330px; }
.email-copy { background: transparent; border: 0; color: #9dbaff; cursor: pointer; font-family: "DM Mono", monospace; font-size: .7rem; margin-top: 1.5rem; padding: 0; }
.email-copy span { border: 1px solid #51617b; border-radius: .3rem; color: #aeb9ce; font-family: "Manrope", sans-serif; font-size: .6rem; margin-left: .4rem; padding: .2rem .35rem; }
.copy-status { color: #75dda4 !important; font-size: .7rem !important; margin: .5rem 0 0 !important; }
form { display: grid; gap: .45rem; }
label { color: #aeb9ce; font-size: .72rem; margin-top: .5rem; }
input, textarea { background: #253042; border: 1px solid #36445a; border-radius: .4rem; color: white; font: inherit; font-size: .8rem; padding: .75rem; resize: vertical; }
input:focus, textarea:focus { border-color: #78a1ff; outline: 2px solid #246bfe55; }
input::placeholder, textarea::placeholder { color: #7d8ba3; }
.submit-button { justify-self: start; margin-top: .7rem; }
.form-note { color: #8494b1; font-size: .65rem; }
.footer-bottom { border-top: 1px solid #36445a; color: #8494b1; display: flex; font-size: .65rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.2rem; }
.footer-bottom a { color: #9dbaff; text-decoration: none; }
.menu-toggle, .nav-backdrop { display: none; }
body.dark { --ink: #e9edf5; --muted: #a6b0c2; --line: #2d394b; --surface: #151d29; --soft: #1b2635; --sidebar: #111925; }
body.dark .hero-section { background: #172232; }
body.dark .button-secondary, body.dark .project-symbol { background: #1d2939; color: var(--ink); }
@media (max-width: 900px) { .hero-section { padding: 4rem 2.5rem; } .section-block, .contact-section { padding-left: 2.5rem; padding-right: 2.5rem; } .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .menu-toggle { align-items: center; background: var(--accent); border: 0; border-radius: .5rem; display: flex; flex-direction: column; gap: .25rem; height: 2.8rem; justify-content: center; position: fixed; right: 1rem; top: 1rem; transition: .2s ease; width: 2.8rem; z-index: 12; } .menu-toggle span { background: white; height: 2px; transition: .2s ease; width: 1.1rem; } body.menu-open .menu-toggle { background: var(--accent-dark); } body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); } body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; } body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); } .nav-backdrop { background: #10182899; border: 0; inset: 0; position: fixed; z-index: 8; } body.menu-open .nav-backdrop { display: block; } .sidebar { border-left: 1px solid var(--line); border-right: 0; bottom: 0; height: 100vh; position: fixed; right: 0; top: 0; transform: translateX(100%); transition: transform .25s ease; width: min(82vw, 300px); z-index: 11; } .sidebar-close { display: block; } body.menu-open .sidebar { box-shadow: -1rem 0 3rem #0003; transform: translateX(0); } .hero-section { align-items: flex-start; flex-direction: column; padding: 4rem 1.5rem 3rem; } .hero-card { align-self: center; } .section-block, .contact-section { padding: 3rem 1.5rem; } .about-grid, .contact-grid { gap: 2rem; grid-template-columns: 1fr; } .skills-grid { grid-template-columns: 1fr 1fr; } .projects-empty { align-items: flex-start; flex-wrap: wrap; } .text-link { margin-left: 4rem; } .footer-bottom { flex-direction: column; gap: .5rem; } }
@media (max-width: 680px) { body.menu-open { overflow: hidden; } }

/* Keep the portfolio navigation visible on every device. */
@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .dashboard-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    border-left: 0;
    border-right: 1px solid var(--line);
    bottom: 0;
    display: flex;
    height: 100vh;
    left: 0;
    padding: 1.5rem 1rem;
    position: fixed;
    right: auto;
    top: 0;
    transform: none;
    width: min(78vw, 295px);
    z-index: 11;
  }

  .sidebar-close,
  .menu-toggle,
  .nav-backdrop {
    display: none;
  }

  .main-content {
    margin-left: min(78vw, 295px);
    width: calc(100% - min(78vw, 295px));
  }

  .hero-section,
  .section-block,
  .contact-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-section {
    padding-top: 3rem;
  }

  .hero-card {
    display: none;
  }

  .about-grid,
  .contact-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
  }
}

/* Keep navigation fixed to the viewport while the portfolio content scrolls. */
.dashboard-shell {
  display: block;
  min-height: 100vh;
  overflow: visible;
  width: 100%;
}

.sidebar {
  bottom: 0;
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  z-index: 10;
}

.main-content {
  margin-left: 245px;
  width: calc(100% - 245px);
}

@media (max-width: 680px) {
  .sidebar {
    width: min(78vw, 295px);
  }

  .main-content {
    margin-left: min(78vw, 295px);
    width: calc(100% - min(78vw, 295px));
  }
}
@media (max-width: 400px) { .skills-grid, .info-grid { grid-template-columns: 1fr; } h1 { font-size: 2.6rem; } }

@media (max-width: 680px) {
  .sidebar {
    background: var(--surface);
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    bottom: 0;
    height: 4.5rem;
    left: 0;
    padding: .35rem .25rem;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
  }

  .brand,
  .profile-mini,
  .sidebar-footer,
  .nav-label {
    display: none;
  }

  .sidebar nav,
  .nav-links {
    width: 100%;
  }

  .nav-links {
    display: flex;
    justify-content: space-around;
  }

  .nav-links li {
    flex: 1;
  }

  .nav-links a {
    align-items: center;
    flex-direction: column;
    font-size: .58rem;
    gap: .15rem;
    justify-content: center;
    margin: 0;
    min-height: 3.75rem;
    padding: .35rem .1rem;
    text-align: center;
  }

  .nav-links a span {
    font-size: .95rem;
    width: auto;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: 4.5rem;
    width: 100%;
  }
}
