/* Premium refinement: clearer type, theme support, professional timeline and contact. */
:root {
  --font: 'Inter', 'DM Sans', Arial, sans-serif;
}
html { text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; font-optical-sizing: auto; font-synthesis: none; }
body, body * { -webkit-font-smoothing: antialiased; }
.hero-lede, .section-intro, .about-lede, .about-body, .project-card > p,
.service-card > p, .process-step p, .contact-heading > p:not(.section-index) {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.85;
}
.section-index, .eyebrow, .hero-kicker, .project-type, .art-label,
.art-index, .toolkit-head, .toolkit-bottom small, .process-step > span,
.footer-bottom, .cta-decoration, .service-line, .upwork-verified {
  font-size: 10px;
  letter-spacing: 1.35px;
}
.nav-links > a:not(.nav-cta) { font-size: 13px; }
.button, .text-link { font-size: 12px; }
.hero-proof strong { font-size: 12px; }
.hero-proof small { font-size: 10px; }
.brand-copy strong { font-size: 11px; }
.brand-copy small { font-size: 9px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text); background: transparent; cursor: pointer;
  font: 600 9px var(--mono); letter-spacing: 1px; white-space: nowrap;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.theme-toggle:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-1px); }
.theme-icon { display: inline-grid; place-items: center; width: 17px; height: 17px; font: 18px/1 var(--font); }
.theme-label { font-size: 9px; }

.hero-social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.hero-social-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 600 10px var(--mono); letter-spacing: 1.1px; transition: color .2s, transform .2s; }
.hero-social-links a span { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--lime); font: 11px var(--font); }
.hero-social-links a:hover { color: var(--lime); transform: translateY(-2px); }

.experience-section { position: relative; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(125,155,136,.035), transparent); }
.experience-section::before { content: ''; position: absolute; width: 520px; height: 520px; right: -250px; top: 5%; border: 1px solid rgba(197,255,112,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(197,255,112,.018), 0 0 0 110px rgba(197,255,112,.012); pointer-events: none; }
.experience-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: start; position: relative; }
.experience-timeline { position: relative; padding-left: 28px; }
.experience-timeline::before { content: ''; position: absolute; left: 7px; top: 11px; bottom: 35px; width: 1px; background: linear-gradient(var(--lime), var(--line), transparent); }
.experience-item { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 20px; padding: 0 0 36px; position: relative; }
.experience-marker { position: absolute; left: -28px; top: 5px; width: 16px; height: 16px; border: 1px solid rgba(197,255,112,.5); background: var(--bg); border-radius: 50%; display: grid; place-items: center; z-index: 1; }
.experience-marker span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(197,255,112,.6); }
.experience-main { padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.experience-item:last-child .experience-main { border-bottom: 0; }
.experience-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font: 10px var(--mono); letter-spacing: 1px; }
.experience-meta b { padding: 4px 8px; border: 1px solid rgba(197,255,112,.3); color: var(--lime); border-radius: 999px; font-size: 8px; font-weight: 500; }
.experience-main h3 { margin: 13px 0 4px; color: var(--text); font: 700 clamp(20px,2vw,25px)/1.25 var(--display); letter-spacing: -.7px; }
.experience-company { margin: 0 0 12px !important; color: var(--lime) !important; font-size: 13px !important; font-weight: 600; }
.experience-company span { color: var(--muted); padding: 0 5px; }
.experience-main > p:not(.experience-company) { max-width: 620px; margin: 0 0 15px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.experience-main .tag-row { margin-bottom: 0; }
.education-card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(22,33,42,.94), rgba(12,19,26,.96)); box-shadow: 0 24px 70px rgba(0,0,0,.18); position: sticky; top: 110px; }
.education-card > .section-index { color: var(--lime); margin: 0 0 24px; }
.education-degree { display: flex; align-items: flex-start; gap: 15px; }
.education-symbol { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid rgba(197,255,112,.28); border-radius: 10px; color: var(--lime); background: var(--lime-soft); font: 700 18px var(--display); }
.education-degree h3 { margin: 0 0 5px; font: 700 17px var(--display); color: var(--text); }
.education-degree p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.education-degree small { color: var(--muted-2); font: 10px var(--mono); }
.education-divider { height: 1px; background: var(--line); margin: 25px 0 20px; }
.education-label { margin: 0 0 13px; color: var(--muted); font: 10px var(--mono); letter-spacing: 1.2px; }
.credential-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 11px; }
.credential-list li { display: grid; grid-template-columns: 17px 1fr; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.credential-list li span { color: var(--lime); font-weight: 700; }
.education-footnote { margin: 20px 0 18px; color: var(--muted-2); font-size: 10px; line-height: 1.7; }
.education-link { display: inline-flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; color: var(--lime); font: 10px var(--mono); letter-spacing: 1px; }
.education-link span { font-size: 15px; }

.contact-shell { position: relative; z-index: 1; }
.contact-heading { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.contact-heading .section-index { margin-bottom: 18px; }
.contact-heading h2 { margin: 0; color: var(--text); font: 800 clamp(45px,6vw,76px)/1.05 var(--display); letter-spacing: -3.5px; }
.contact-heading h2 em { color: var(--lime); font-style: normal; }
.contact-heading > p:not(.section-index) { max-width: 590px; margin: 20px auto 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.contact-card { min-height: 130px; padding: 22px 24px; display: grid; grid-template-columns: 38px 1fr 22px; grid-template-rows: auto auto; align-items: center; column-gap: 14px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(140deg, var(--panel), var(--bg-soft)); position: relative; overflow: hidden; transition: transform .28s, border-color .28s, box-shadow .28s; }
.contact-card::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 0 0, rgba(197,255,112,.12), transparent 65%); transition: opacity .3s; pointer-events: none; }
.contact-card:hover { transform: translateY(-5px); border-color: rgba(197,255,112,.42); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.contact-card:hover::before { opacity: 1; }
.contact-icon { grid-row: 1 / span 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(197,255,112,.25); background: var(--lime-soft); color: var(--lime); font: 700 17px var(--display); position: relative; }
.contact-card small { color: var(--muted-2); font: 10px var(--mono); letter-spacing: 1.4px; position: relative; }
.contact-card strong { color: var(--text); font: 650 14px/1.35 var(--font); overflow-wrap: anywhere; position: relative; }
.contact-arrow { grid-column: 3; grid-row: 1 / span 2; color: var(--lime); font-size: 20px; justify-self: end; position: relative; }
.contact-bottom { max-width: 900px; margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font: 10px var(--mono); letter-spacing: 1px; }
.contact-bottom i { color: var(--lime); font-style: normal; padding: 0 4px; }
.share-button { padding: 12px 17px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: transparent; cursor: pointer; font: 600 10px var(--mono); letter-spacing: 1px; transition: .25s; }
.share-button span { color: var(--lime); font-size: 16px; margin-right: 7px; }
.share-button:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.floating-whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; color: #10200e; background: #b9f36e; border-radius: 999px; box-shadow: 0 10px 32px rgba(0,0,0,.25), 0 0 0 5px rgba(185,243,110,.1); font: 700 12px var(--font); transition: transform .25s, box-shadow .25s; }
.floating-whatsapp > span { font: 700 9px var(--mono); letter-spacing: 1px; }
.floating-whatsapp:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.3), 0 0 0 8px rgba(185,243,110,.1); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 17px; }
.footer-socials a { color: var(--muted); font: 10px var(--mono); letter-spacing: 1px; transition: color .2s; }
.footer-socials a:hover { color: var(--lime); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%,18px); opacity: 0; visibility: hidden; z-index: 1001; max-width: calc(100% - 36px); padding: 13px 18px; border: 1px solid rgba(197,255,112,.35); border-radius: 9px; color: var(--text); background: var(--panel); box-shadow: 0 15px 50px rgba(0,0,0,.28); font-size: 13px; line-height: 1.5; transition: opacity .25s, transform .25s, visibility .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }

/* Light mode: a complete, high-contrast palette, not a simple inversion. */
body[data-theme="light"] {
  --bg: #f4f7f5; --bg-soft: #edf2ef; --panel: #ffffff; --panel-2: #f7faf8;
  --line: rgba(23,44,34,.12); --line-strong: rgba(23,44,34,.22);
  --text: #14251d; --muted: #586a61; --muted-2: #75857d;
  --lime: #507b18; --lime-soft: rgba(91,137,28,.10); --purple: #765fbe; --cyan: #167e8a;
  background: var(--bg);
}
body[data-theme="light"]::before { background: radial-gradient(ellipse at 75% 0%,rgba(93,151,101,.12),transparent 35%), radial-gradient(ellipse at 7% 40%,rgba(118,95,190,.07),transparent 32%), linear-gradient(180deg,#f7faf8 0%,#f2f6f3 55%,#f7faf8 100%); }
body[data-theme="light"] .noise { opacity: .012; }
body[data-theme="light"] .site-header.scrolled, body[data-theme="light"] .site-header:has(.nav-links.open) { background: rgba(249,252,250,.9); border-color: var(--line); }
body[data-theme="light"] .nav-links > a:not(.nav-cta) { color: #52645a; }
body[data-theme="light"] .nav-links > a:not(.nav-cta):hover { color: var(--lime); }
body[data-theme="light"] .nav-cta { border-color: rgba(80,123,24,.4); color: var(--lime); }
body[data-theme="light"] .nav-cta:hover { background: var(--lime); color: #fff; }
body[data-theme="light"] .hero-lede, body[data-theme="light"] .section-intro,
body[data-theme="light"] .about-body, body[data-theme="light"] .project-card > p,
body[data-theme="light"] .service-card > p, body[data-theme="light"] .process-step p,
body[data-theme="light"] .contact-heading > p:not(.section-index) { color: var(--muted); }
body[data-theme="light"] .eyebrow, body[data-theme="light"] .hero-proof small,
body[data-theme="light"] .text-link { color: #52645a; }
body[data-theme="light"] .hero-proof .proof-check { border-color: var(--bg); }
body[data-theme="light"] .hero-art:before { opacity: .3; }
body[data-theme="light"] .flow-card { background: linear-gradient(145deg,rgba(255,255,255,.97),rgba(239,245,241,.98)); border-color: rgba(33,65,47,.17); box-shadow: 0 20px 50px rgba(41,63,50,.13); }
body[data-theme="light"] .flow-card-top, body[data-theme="light"] .flow-card-foot,
body[data-theme="light"] .api-card small, body[data-theme="light"] .creator-foot small { color: #65786d; }
body[data-theme="light"] .flow-card-title, body[data-theme="light"] .api-card strong { color: #20372a; }
body[data-theme="light"] .art-label { color: #5a6d62; }
body[data-theme="light"] .art-index { color: #71847a; }
body[data-theme="light"] .project-card, body[data-theme="light"] .service-card,
body[data-theme="light"] .toolkit-panel, body[data-theme="light"] .process-step,
body[data-theme="light"] .profile-card { background-color: rgba(255,255,255,.82); border-color: var(--line); box-shadow: 0 14px 40px rgba(38,57,45,.06); }
body[data-theme="light"] .project-card h3, body[data-theme="light"] .service-card h3,
body[data-theme="light"] .process-step h3, body[data-theme="light"] .toolkit-bottom strong { color: var(--text); }
body[data-theme="light"] .project-visual { background: linear-gradient(145deg,#e8f0eb,#dfe9e2); }
body[data-theme="light"] .visual-window, body[data-theme="light"] .woo-board,
body[data-theme="light"] .sync-scene { background: rgba(255,255,255,.76); border-color: rgba(35,70,48,.16); }
body[data-theme="light"] .about-sticky h2, body[data-theme="light"] .section-heading h2,
body[data-theme="light"] .profile-copy h2 { color: var(--text); }
body[data-theme="light"] .about-lede { color: #263b2e; }
body[data-theme="light"] .cert-item strong { color: var(--text); }
body[data-theme="light"] .cert-item small, body[data-theme="light"] .cert-note { color: var(--muted); }
body[data-theme="light"] .education-card { background: linear-gradient(145deg,#fff,#edf4ef); border-color: var(--line); box-shadow: 0 24px 70px rgba(38,57,45,.09); }
body[data-theme="light"] .education-degree h3 { color: var(--text); }
body[data-theme="light"] .education-degree p, body[data-theme="light"] .credential-list li { color: var(--muted); }
body[data-theme="light"] .contact-card { background: linear-gradient(140deg,#fff,#f0f5f1); border-color: var(--line); box-shadow: 0 12px 35px rgba(38,57,45,.05); }
body[data-theme="light"] .contact-card strong { color: var(--text); }
body[data-theme="light"] .footer { background: rgba(255,255,255,.65); }
body[data-theme="light"] .footer-bottom, body[data-theme="light"] .footer-socials a,
body[data-theme="light"] .footer-top > p { color: var(--muted); }
body[data-theme="light"] .modal-panel { color: var(--text); background: linear-gradient(145deg,#fff,#edf4ef); border-color: rgba(80,123,24,.3); }
body[data-theme="light"] .modal-panel h2 { color: var(--text); }
body[data-theme="light"] .modal-panel > p:not(.section-index), body[data-theme="light"] .modal-detail { color: var(--muted); }
body[data-theme="light"] .modal-close { color: #52645a; }
body[data-theme="light"] .toast { background: #fff; color: var(--text); box-shadow: 0 15px 50px rgba(38,57,45,.18); }
body[data-theme="light"] .experience-section { background: linear-gradient(180deg,transparent,rgba(91,137,28,.035),transparent); }

@media (max-width: 1050px) {
  .experience-layout { gap: 38px; }
  .education-card { padding: 24px; }
  .footer-socials { gap: 12px; }
}
@media (max-width: 800px) {
  .experience-layout { grid-template-columns: 1fr; gap: 26px; }
  .education-card { position: relative; top: auto; }
  .theme-toggle { justify-content: flex-start; align-self: flex-start; margin-top: 14px; }
  .nav-links .nav-cta { margin-top: 14px; }
  .hero-social-links { margin-top: 19px; }
  .footer-top { flex-wrap: wrap; }
  .footer-socials { width: 100%; padding-top: 15px; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .hero-lede, .section-intro, .about-body, .project-card > p,
  .service-card > p, .process-step p { font-size: 13px; }
  .hero-social-links { gap: 12px; }
  .hero-social-links a { font-size: 9px; }
  .experience-layout { gap: 16px; }
  .experience-main > p:not(.experience-company) { font-size: 12px; }
  .education-card { padding: 21px; }
  .contact-heading h2 { font-size: 48px; letter-spacing: -2.5px; }
  .contact-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-card { min-height: 98px; padding: 17px 18px; }
  .contact-card strong { font-size: 13px; }
  .contact-bottom { flex-direction: column; align-items: flex-start; gap: 16px; font-size: 8px; }
  .share-button { width: 100%; }
  .floating-whatsapp { right: 14px; bottom: 14px; padding: 11px 14px; }
  .footer-socials { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-card, .floating-whatsapp, .share-button, .theme-toggle { transition: none; }
}
@media (min-width: 801px) {
  body[data-theme="light"] .project-card { background: linear-gradient(145deg, #fff, #f3f7f4); }
  body[data-theme="light"] .service-card { background: linear-gradient(140deg, #fff, #f1f6f2); }
  body[data-theme="light"] .toolkit-panel { background: linear-gradient(135deg, #fff, #f0f5f1); }
  body[data-theme="light"] .profile-card { background: linear-gradient(120deg, #fff, #edf4ef 70%); border-color: rgba(80,123,24,.2); }
}
body[data-theme="light"] .work-section { background: linear-gradient(180deg, rgba(227,238,230,.6), transparent 22%, rgba(255,255,255,.25) 100%); }
body[data-theme="light"] .footer { background: rgba(255,255,255,.8); }
body[data-theme="light"] .nav-links.open { background: rgba(249,252,250,.98); }
