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

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #101321;
  --muted: #667085;
  --line: #e7e9ef;
  --dark: #0b1020;
  --dark2: #11182b;
  --accent: #7c5cff;
  --accent2: #20d3a5;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Manrope, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(11,16,32,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; color: white; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--accent); font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; color: #c8cede; }
.nav-links a:hover { color: white; }
.nav-cta { padding: 9px 16px; border: 1px solid #39415a; border-radius: 9px; color: white !important; }
.menu-btn { display: none; border: 0; background: none; color: white; font-size: 25px; }
.hero { position: relative; overflow: hidden; background: var(--dark); color: white; padding: 105px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; position: relative; z-index: 2; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .22; }
.glow-one { width: 420px; height: 420px; background: var(--accent); right: -120px; top: -180px; }
.glow-two { width: 300px; height: 300px; background: var(--accent2); left: -180px; bottom: -190px; }
.eyebrow, .section-label, .project-type { font-family: "DM Mono", monospace; letter-spacing: .12em; font-size: 11px; color: #8e9ab6; }
.eyebrow { color: #a7b0c8; margin-bottom: 20px; }
.hero h1 { font-size: clamp(45px, 6vw, 76px); line-height: 1.05; letter-spacing: -.055em; max-width: 760px; }
.hero h1 span, h2 span { color: var(--accent2); }
.hero-text { color: #aeb7cb; max-width: 660px; font-size: 17px; margin: 27px 0 30px; }
.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 19px; border-radius: 10px; font-weight: 700; font-size: 13px; transition: .2s ease; border: 1px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { border-color: #3a425b; color: white; background: transparent; }
.quick-links { display: flex; gap: 22px; margin-top: 27px; font-size: 12px; color: #929bb0; flex-wrap: wrap; }
.quick-links a:hover { color: white; }
.hero-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.terminal-bar { height: 43px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #7e89a5; font: 11px "DM Mono", monospace; }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #566078; }
.terminal-bar span { margin-left: 8px; }
.code { padding: 28px; font: 12px/2 "DM Mono", monospace; color: #e4e8f2; }
.code .muted { color: #8f9ab6; }
.code .key { color: #71d7bf; }
.code .string { color: #c9a8ff; }
.indent { padding-left: 24px; }
.cursor-line { margin-top: 12px; }
.cursor-line b { color: var(--accent2); }
.stats { background: white; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 27px 18px; border-right: 1px solid var(--line); text-align: center; }
.stats-grid div:first-child { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 29px; letter-spacing: -.04em; }
.stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.section { padding: 110px 0; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.section h2 { font-size: clamp(37px, 5vw, 55px); line-height: 1.05; letter-spacing: -.045em; margin-top: 18px; }
.about-copy { padding-top: 42px; font-size: 17px; color: #596275; }
.about-copy p + p { margin-top: 20px; }
.section-dark { background: var(--dark); color: white; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading-row p { max-width: 420px; color: #8993ab; font-size: 14px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-card { background: var(--dark2); border: 1px solid #202a42; padding: 27px; border-radius: 15px; }
.skill-card:hover { border-color: #3b4a70; transform: translateY(-3px); transition: .2s; }
.skill-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #1b2540; color: var(--accent2); font: 12px "DM Mono", monospace; margin-bottom: 19px; }
.skill-card h3 { font-size: 16px; margin-bottom: 8px; }
.skill-card p { color: #8993ab; font-size: 12px; line-height: 1.8; }
.timeline { margin-top: 48px; border-left: 1px solid #dfe2ea; }
.job { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 50px; padding: 0 0 70px 45px; }
.job:before { content: ""; position: absolute; width: 9px; height: 9px; background: white; border: 2px solid var(--accent); border-radius: 50%; left: -6px; top: 5px; }
.job.active:before { background: var(--accent); box-shadow: 0 0 0 7px #eeeaff; }
.job-meta { color: #7a8397; font: 11px "DM Mono", monospace; display: flex; flex-direction: column; gap: 4px; }
.job-content h3 { font-size: 23px; letter-spacing: -.02em; }
.job-content h4 { color: var(--accent); font-size: 13px; margin: 3px 0 18px; }
.job-content ul { padding-left: 18px; color: #5d6679; font-size: 13px; }
.job-content li { margin-bottom: 9px; padding-left: 5px; }
.job-content b { color: var(--ink); }
.project-card { margin-top: 45px; display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid #222c45; background: var(--dark2); border-radius: 18px; overflow: hidden; }
.project-main { padding: 50px; border-right: 1px solid #222c45; }
.project-main h2 { margin: 12px 0 13px; font-size: 45px; }
.project-main p { color: #939db4; max-width: 560px; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 25px; }
.tags span { border: 1px solid #303b58; border-radius: 100px; padding: 5px 10px; font: 10px "DM Mono", monospace; color: #aab3c8; }
.project-details { padding: 32px; display: grid; align-content: center; gap: 20px; }
.project-details div { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 10px; }
.project-details strong { color: var(--accent2); font: 11px "DM Mono", monospace; }
.project-details span { color: #aab3c8; font-size: 12px; }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 45px; }
.edu-grid h2 { font-size: 30px; margin-bottom: 30px; }
.edu-item { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.edu-item > span { font: 10px "DM Mono", monospace; color: #8992a6; padding-top: 5px; }
.edu-item h3 { font-size: 15px; }
.edu-item p { color: #737c8f; font-size: 12px; margin-top: 3px; }
.cert-list { list-style: none; }
.cert-list li { padding: 18px 0 18px 28px; border-top: 1px solid var(--line); font-size: 13px; position: relative; }
.cert-list li:before { content: "↗"; position: absolute; left: 0; color: var(--accent); }
.contact-section { background: var(--dark); color: white; padding: 105px 0 85px; }
.contact { text-align: center; }
.contact .section-label { margin-bottom: 15px; }
.contact h2 { font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -.05em; }
.contact > p:not(.section-label) { max-width: 560px; margin: 22px auto 30px; color: #909ab0; }
.contact-actions { justify-content: center; }
.contact-line { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 35px; color: #7f8aa2; font-size: 11px; }
.contact-line a:hover { color: white; }
footer { background: #080c18; color: #69738a; font-size: 10px; }
.footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
@media (max-width: 850px) {
  .projects-grid { grid-template-columns: 1fr; }
  .portfolio-project.featured { grid-column: auto; }
  .project-points { grid-template-columns: 1fr; }
  .github-banner { flex-direction: column; align-items: flex-start; }

  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 20px; background: #0b1020; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .hero { padding: 75px 0 65px; }
  .hero-grid, .two-col, .project-card, .edu-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero-card { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 1px solid var(--line); }
  .stats-grid div { border-bottom: 1px solid var(--line); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .job { grid-template-columns: 1fr; gap: 9px; padding-left: 30px; }
  .project-main { border-right: 0; border-bottom: 1px solid #222c45; }
  .about-copy { padding-top: 0; }
}
@media (max-width: 540px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .hero h1 { font-size: 44px; }
  .hero-text { font-size: 15px; }
  .skills-grid { grid-template-columns: 1fr; }
  .section { padding: 75px 0; }
  .project-main { padding: 30px; }
  .project-main h2 { font-size: 36px; }
  .footer-inner { flex-direction: column; justify-content: center; padding: 18px 0; text-align: center; }
}

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 42px; }
.portfolio-project { background: var(--dark2); border: 1px solid #202a42; border-radius: 15px; padding: 30px; }
.portfolio-project.featured { grid-column: span 2; padding: 38px; }
.portfolio-project:hover { border-color: #3b4a70; transform: translateY(-3px); transition: .2s; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.project-link { color: var(--accent2); font: 11px "DM Mono", monospace; }
.project-badge { color: #8f9ab6; font: 10px "DM Mono", monospace; border: 1px solid #303b58; border-radius: 100px; padding: 5px 9px; }
.portfolio-project h3 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 9px; }
.portfolio-project p { color: #939db4; font-size: 12px; max-width: 700px; }
.portfolio-project .tags { margin-top: 20px; }
.project-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #222c45; color: #aab3c8; font: 10px "DM Mono", monospace; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #222c45; }
.impact-grid div { display: flex; flex-direction: column; }
.impact-grid strong { font-size: 22px; color: var(--accent2); }
.impact-grid small { color: #7f8aa2; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.integration-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.integration-list span { color: #aab3c8; background: #151e34; border: 1px solid #29344f; border-radius: 7px; padding: 6px 9px; font-size: 10px; }
.github-banner { margin-top: 35px; padding: 25px 28px; border: 1px solid #26314a; background: #0e1527; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.github-banner h3 { margin-top: 6px; font-size: 18px; }
