:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #edf3ff;
  --text: #0f172a;
  --muted: #5b6478;
  --line: #dfe8f4;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --shadow: 0 24px 70px rgba(15, 23, 42, .12);
  --radius: 24px;
}
body.dark {
  --bg: #050b14;
  --surface: #0d1724;
  --surface-2: #111d2f;
  --text: #eaf2ff;
  --muted: #aab8cf;
  --line: #27364a;
  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --shadow: 0 24px 70px rgba(2, 6, 23, .52);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.brand { font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 600; transition: .25s; }
nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-btn {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 999px; cursor: pointer;
}
.theme-toggle { padding: 9px 14px; display: flex; gap: 7px; align-items: center; font-weight: 700; }
.menu-btn { display: none; width: 42px; height: 42px; font-size: 20px; }
.section { width: min(1180px, 88%); margin: auto; padding: 105px 0; }
.hero { min-height: 760px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; padding-top: 75px; }
.eyebrow, .section-tag, .project-type, .timeline-date {
  color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: 1.8px;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 7px rgba(47,191,113,.12); }
h1 { max-width: 760px; font-size: clamp(48px, 6.2vw, 82px); line-height: .98; letter-spacing: -4px; }
h1 span, h2 span { color: var(--accent); }
.hero-text { color: var(--muted); max-width: 620px; font-size: 18px; margin: 26px 0 30px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; border-radius: 12px; font-weight: 700; transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); }
.primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 30px rgba(99,91,255,.25); }
.secondary { background: var(--surface); border: 1px solid var(--line); }
.quick-links { display: flex; gap: 20px; margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.quick-links a:hover { color: var(--accent); }
.hero-photo { position: relative; justify-self: end; width: min(460px, 100%); }
.photo-card { position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(2deg); }
.photo-card img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; object-position: center; filter: saturate(.92); }
.photo-caption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 15px 18px; border-radius: 15px; background: rgba(10,12,18,.72); color: #fff; backdrop-filter: blur(10px); }
.photo-caption span { display: block; font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.photo-caption small { color: #d5d9e4; font-size: 10px; letter-spacing: 1.4px; }
.photo-glow { position: absolute; width: 230px; height: 230px; right: -40px; top: -40px; border-radius: 50%; background: var(--accent); filter: blur(70px); opacity: .22; }
.stats { padding-top: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.stat strong { display: block; font-size: 25px; }
.stat span { color: var(--muted); font-size: 13px; }
.section-heading { max-width: 800px; margin-bottom: 45px; }
.section-heading h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -2px; margin-top: 10px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.about-image { border-radius: 25px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-image img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.about-points { display: grid; gap: 12px; margin-top: 28px; }
.about-points div { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-points span { grid-row: span 2; color: var(--accent); font-weight: 800; }
.about-points b { font-size: 14px; }
.about-points small { color: var(--muted); }
.education-box {
  margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(14,165,233,.05));
}
.education-box .section-tag { display: inline-block; margin-bottom: 8px; }
.education-content {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center;
}
.education-text { display: grid; gap: 10px; }
.education-text a {
  color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.education-box p { color: var(--muted); line-height: 1.6; }
.education-box strong { color: var(--text); letter-spacing: .04em; }
.must-link {
  display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}
.must-link img {
  display: block; width: 100%; height: 180px; object-fit: cover;
  transition: transform .25s ease;
}
.must-link:hover img { transform: scale(1.02); }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.skill-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: transform .25s, border-color .25s; }
.skill-card:hover, .project-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.skill-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; font-size: 20px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.skill-icon.python { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.skill-icon.ai { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; }
.skill-icon.django { background: linear-gradient(135deg, #0f172a, #1e293b); color: #7dd3fc; }
.skill-icon.django svg { width: 26px; height: 26px; fill: currentColor; }
.skill-icon.fastapi { background: linear-gradient(135deg, #14b8a6, #0ea5e9); color: #fff; }
.skill-icon.repair { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.skill-icon.database { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.skill-card h3 { margin-bottom: 6px; }
.skill-card p, .project-card p { color: var(--muted); font-size: 14px; }
.project-feature { display: grid; grid-template-columns: 70px 1.1fr .9fr; gap: 25px; align-items: center; padding: 35px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-number { color: var(--accent); font-size: 14px; font-weight: 900; }
.project-content h3 { font-size: 40px; letter-spacing: -1.5px; margin: 7px 0 12px; }
.project-content p { color: var(--muted); max-width: 600px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.tech-list span { padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.project-link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 24px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 14px 30px rgba(37,99,235,.24);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-link:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(37,99,235,.28); }
.mock-browser { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.browser-top { height: 35px; padding: 10px 13px; display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.browser-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .6; }
.browser-body { min-height: 250px; display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.browser-body span { color: var(--accent); font-size: 28px; font-weight: 900; }
.browser-body b { font-size: 35px; letter-spacing: -2px; }
.browser-body small { color: var(--muted); margin-top: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
.project-card { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: .25s; }
.project-card h3 { font-size: 25px; margin: 13px 0 8px; }
.timeline { max-width: 850px; border-left: 1px solid var(--line); margin-left: 10px; }
.timeline-item { position: relative; display: flex; gap: 30px; padding: 0 0 48px 38px; }
.timeline-dot { position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.timeline-item h3 { margin: 5px 0; font-size: 22px; }
.timeline-item p { color: var(--muted); }
.contact-box { padding: 55px; border-radius: 30px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); }
.contact-box h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -2px; margin: 12px 0; }
.contact-box > p { color: var(--muted); max-width: 650px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 35px; }
.contact-grid a { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: .25s; }
.contact-grid a:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-grid small { display: block; color: var(--accent); font-weight: 800; letter-spacing: 1.5px; font-size: 10px; }
.contact-grid strong { font-size: 14px; overflow-wrap: anywhere; }
footer { width: 88%; margin: auto; padding: 30px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.back-top { position: fixed; right: 25px; bottom: 25px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; opacity: 0; transform: translateY(15px); transition: .25s; pointer-events: none; }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .linkedin-posts { grid-template-columns: 1fr 1fr; }
  .linkedin-intro { align-items: flex-start; flex-direction: column; }

  nav { display: none; position: absolute; top: 73px; left: 6%; right: 6%; flex-direction: column; gap: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 12px; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; min-height: auto; }
  .hero-photo { justify-self: center; max-width: 430px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-image { max-width: 500px; }
  .skills-grid, .project-grid { grid-template-columns: 1fr 1fr; }
  .project-feature { grid-template-columns: 50px 1fr; }
  .project-visual { grid-column: 2; }
}
@media (max-width: 600px) {
  .linkedin-posts { grid-template-columns: 1fr; }

  .navbar { padding: 15px 5%; }
  .section { width: 90%; padding: 75px 0; }
  h1 { letter-spacing: -2.5px; font-size: 50px; }
  .hero-text { font-size: 16px; }
  .quick-links { flex-wrap: wrap; }
  .stats, .skills-grid, .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-feature { grid-template-columns: 1fr; padding: 25px; }
  .project-visual { grid-column: auto; }
  .project-content h3 { font-size: 32px; }
  .contact-box { padding: 30px 22px; }
  footer { flex-direction: column; gap: 7px; }
}

/* Brand icon and LinkedIn feed styles */
.quick-links i, .contact-grid small i, .section-tag i { font-size: 1.05em; }
.jmj-brand { align-items: center; text-align: center; gap: 14px; padding: 18px 12px; }
.jmj-logo-wrap {
 width: min(100%, 380px); display: flex; align-items: center; justify-content: center;
 border-radius: 20px; background: radial-gradient(circle at top, rgba(39,125,255,0.18), rgba(15,23,42,0.02) 55%);
 padding: 10px;
}
.jmj-logo-wrap img {
 display: block; width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 15px 32px rgba(37,99,235,0.35));
}
.jmj-logo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.jmj-mark {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 28px; font-weight: 900; letter-spacing: -1px;
  box-shadow: 0 15px 35px rgba(99,91,255,.25);
}
.jmj-logo-placeholder strong { font-size: 25px; letter-spacing: -1px; }
.jmj-brand em { color: var(--muted); font-size: 9px; margin-top: 18px; font-style: normal; }
.linkedin-intro {
  display: flex; justify-content: space-between; align-items: center; gap: 25px;
  padding: 24px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 20px; margin-bottom: 16px;
}
.linkedin-intro p { color: var(--muted); max-width: 700px; }
.linkedin-profile-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px;
  border-radius: 12px; background: #0a66c2; color: white; font-weight: 800; white-space: nowrap;
}
.linkedin-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.linkedin-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.linkedin-card-head { display: flex; align-items: center; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); }
.social-logo {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  color: #fff; background: #0a66c2; font-size: 20px;
}
.linkedin-card-head strong, .linkedin-card-head small { display: block; }
.linkedin-card-head strong { font-size: 13px; }
.linkedin-card-head small { color: var(--muted); font-size: 11px; }
.linkedin-placeholder {
  min-height: 270px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 25px;
}
.linkedin-placeholder > i { font-size: 38px; color: #0a66c2; margin-bottom: 13px; }
.linkedin-placeholder h3 { font-size: 18px; margin-bottom: 6px; }
.linkedin-placeholder p { color: var(--muted); font-size: 12px; max-width: 260px; }
.linkedin-placeholder a { margin-top: 15px; color: #0a66c2; font-weight: 800; font-size: 12px; }
.linkedin-image-card {
  display: flex; flex-direction: column; min-height: 270px;
  background: var(--surface);
}
.linkedin-image-card img {
  display: block; width: 100%; height: 230px; object-fit: cover;
}
.linkedin-image-caption {
  padding: 18px 16px 20px;
}
.linkedin-image-caption h3 {
  font-size: 18px; margin-bottom: 6px;
}
.linkedin-image-caption p {
  color: var(--muted); font-size: 12px; line-height: 1.6;
}
