/* ===== Tokens (light / cream theme) ===== */
:root {
  --primary: #2665F9;
  --primary-dark: #1a49c4;
  --primary-soft: rgba(38, 101, 249, .10);
  --bg: #FAF7F0;
  --bg-alt: #F2EDE1;
  --card: #FFFFFF;
  --text: #0A0A0A;
  --muted: #55555F;
  --border: rgba(0, 0, 0, .10);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(20, 20, 40, .07);
  --ease: .3s cubic-bezier(.2, .7, .2, 1);
  --nav-h: 68px;
}

.project .thumb { overflow: hidden; }
.project .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-width: 320px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.7rem, 5vw, 2.75rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
p { overflow-wrap: break-word; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); max-width: 60ch; }
.center .muted { margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 100px) 0; }
.alt { background: var(--bg-alt); }
.head { margin-bottom: clamp(28px, 5vw, 48px); }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; text-align: center; transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(38, 101, 249, .3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 14px 30px rgba(38, 101, 249, .4); }
.btn-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--text); color: #fff; }
.btn-small { padding: 9px 18px; font-size: .9rem; background: var(--primary-soft); color: var(--primary-dark); }
.btn-small:hover { background: var(--primary); color: #fff; }

/* ===== Navbar ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(250, 247, 240, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.menu { display: flex; gap: 4px; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color var(--ease), background var(--ease); }
.menu a:hover, .menu a.active { color: var(--text); background: var(--primary-soft); }
.menu a.active { color: var(--primary-dark); font-weight: 600; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: transform var(--ease), opacity var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: calc(var(--nav-h) + 70px) 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 800; }
.role { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 600; color: var(--primary); margin: 10px 0 20px; }
.lead { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.1rem); max-width: 56ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.badges li { padding: 8px 16px; border-radius: 999px; background: var(--primary-soft); border: 1px solid rgba(38, 101, 249, .3); color: var(--primary-dark); font-weight: 600; font-size: .9rem; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; display: grid; place-items: center; padding: 30px; min-width: 0; }
.frame { width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 8px; background: linear-gradient(145deg, var(--primary), rgba(38, 101, 249, .2)); box-shadow: 0 20px 60px rgba(38, 101, 249, .28); animation: float 6s ease-in-out infinite; }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); }
.orbit { position: absolute; inset: 8px; border: 1px dashed rgba(38, 101, 249, .5); border-radius: 50%; animation: spin 30s linear infinite; pointer-events: none; }
.chip { position: absolute; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; color: var(--primary); animation: float 5s ease-in-out infinite; }
.chip-a { top: 6%; right: 4%; }
.chip-b { bottom: 8%; left: 4%; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Stack ===== */
.stack { padding: 20px 0 clamp(40px, 7vw, 70px); }
.stack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.stack-list li { padding: 12px 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); font-weight: 600; box-shadow: var(--shadow); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.stack-list li:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 12px 26px rgba(38, 101, 249, .18); }

/* ===== Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 30px); box-shadow: var(--shadow); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(38, 101, 249, .5); box-shadow: 0 16px 36px rgba(38, 101, 249, .12); }
.card p { color: var(--muted); font-size: .96rem; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; }
.edu { display: flex; align-items: center; gap: 20px; color: var(--primary); }
.edu svg { flex: none; }
.edu h3 { margin: 0; }

/* ===== Timelines ===== */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), rgba(38, 101, 249, .1)); }
.timeline li { position: relative; margin-bottom: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 4vw, 26px) clamp(18px, 4vw, 28px); box-shadow: var(--shadow); }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.timeline p:last-child { color: var(--muted); }
.meta { color: var(--primary-dark) !important; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.journey h3 { color: var(--primary); font-size: 1.5rem; }

/* ===== Projects ===== */
.project { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease); }
.project:hover { transform: translateY(-6px); border-color: rgba(38, 101, 249, .5); box-shadow: 0 16px 36px rgba(38, 101, 249, .12); }
.thumb { flex: none; height: 180px; display: grid; place-items: center; overflow: hidden; transition: transform .5s ease; }
.thumb span { font-size: 2.2rem; font-weight: 800; letter-spacing: .06em; color: #fff; }
.project:hover .thumb { transform: scale(1.06); }
.t1 { background: linear-gradient(135deg, #2665F9, #1e3a8a); }
.t2 { background: linear-gradient(135deg, #0891b2, #164e63); }
.t3 { background: linear-gradient(135deg, #6366f1, #312e81); }
.t4 { background: linear-gradient(135deg, #0ea5e9, #075985); }
.t5 { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.t6 { background: linear-gradient(135deg, #2563eb, #172554); }
.project .body { padding: 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.project p { color: var(--muted); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.tags li { padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: .8rem; color: #33333c; }
.project .btn { align-self: flex-start; margin-top: auto; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}
/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-list { margin-top: 28px; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.contact-list strong { font-size: .8rem; color: var(--primary-dark); }
.contact-list a { color: var(--text); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--primary); }
.form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .18); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; resize: vertical; transition: border-color var(--ease), box-shadow var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.err { display: block; min-height: 1.1em; color: #dc2626; font-size: .8rem; margin-top: 4px; }
.status { margin-top: 14px; font-weight: 600; color: #15803d; }

/* ===== Footer ===== */
.footer { background: var(--text); color: #d5d5dc; padding: 28px 0; font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.social { display: flex; gap: 20px; }
.social a:hover { color: #fff; text-decoration: underline; }

/* ===== Scroll reveal ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.show { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 32px; }
}
@media (max-width: 900px) {
  .burger { display: flex; margin-left: auto; margin-right: -10px; }
  .menu { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 10px 20px 16px; background: rgba(250, 247, 240, .98); border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(0, 0, 0, .08); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 14px 12px; border-radius: 12px; font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .lead { margin-inline: auto; }
  .badges, .cta { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 50px; }
  .hero-visual { padding: 22px; }
  .frame { width: min(280px, 100%); }
  .chip { padding: 6px 10px; font-size: .85rem; }
  .cta { flex-direction: column; }
  .cta .btn, .form .btn { width: 100%; }
  .badges li { font-size: .82rem; padding: 7px 13px; }
  .stack-list li { padding: 10px 20px; }
  .thumb { height: 160px; }
  .edu { flex-direction: column; text-align: center; }
  .foot-inner { flex-direction: column; text-align: center; }
  .timeline { padding-left: 28px; }
  .timeline li::before { left: -28px; }
}
@media (max-width: 380px) {
  .logo { font-size: 1rem; }
  .container, .narrow { width: min(1120px, 100% - 28px); }
  .journey h3 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Skills & Technologies ===== */
.sk-eyebrow { display: flex; align-items: center; gap: 12px; }
.sk-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--primary); }
.sk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sk-title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--border); margin: 0 0 22px; }
.sk-list { margin-bottom: 40px; display: grid; gap: 18px; }
.sk-list li { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 42px; align-items: center; gap: 16px; }
.sk-name { font-size: .98rem; }
.sk-track { height: 5px; border-radius: 99px; background: rgba(0, 0, 0, .07); overflow: hidden; }
.sk-fill { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--text); transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .2s; }
.sk-fill.hl { background: var(--primary); }
.js .sk-fill { width: 0; }
.js .show .sk-fill { width: var(--w); }
.sk-pct { font-size: .8rem; color: var(--muted); text-align: right; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.sk-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.sk-cloud li { padding: 8px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); font-size: .85rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; transition: transform var(--ease), border-color var(--ease); }
.sk-cloud li:hover { transform: translateY(-3px); border-color: var(--primary); }
.sk-cloud li.hl { background: var(--primary-soft); border-color: rgba(38, 101, 249, .3); color: var(--primary-dark); }
@media (max-width: 900px) { .sk-grid { grid-template-columns: 1fr; gap: 12px; } .sk-list { margin-bottom: 32px; } }
@media (max-width: 480px) {
  .sk-list li { grid-template-columns: 1fr 40px; gap: 6px 12px; }
  .sk-name { grid-column: 1 / -1; }
  .sk-cloud li { padding: 7px 12px; font-size: .8rem; }
}



