/* ============================================================
   João Soares — portfolio.inclui.me
   Single stylesheet: structure, components, responsive rules.
   ============================================================ */

/* 1. Design tokens and base rules */
:root {
  color-scheme: dark;
  --bg: #0b1321;
  --surface: #111e2c;
  --surface-raised: #142636;
  --text: #edf4f7;
  --muted: #a5b7c6;
  --accent: #7ee3c2;
  --accent-blue: #88bcec;
  --border: #2b4152;
  --max-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; }
.container { width: min(var(--max-width), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 50;
  background: var(--accent);
  color: #071922;
  padding: 8px 14px;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* 2. Header */
.site-header { background: #0c1623; border-bottom: 1px solid #213444; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 85px; gap: 24px; }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; }
.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
  font-size: 16px;
  background: var(--accent);
  color: #0b1b24;
}
.brand-text { display: grid; font-size: 15px; font-weight: 800; line-height: 1.25; }
.brand-sub { color: #9fb9c6; font-size: 11px; font-weight: 500; letter-spacing: .04em; margin-top: 4px; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-header nav a { font-size: 14px; font-weight: 650; text-decoration: none; color: #c5d2de; }
.site-header nav a:hover { color: var(--accent); }

/* 3. Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 82% 38%, #173c48 0, transparent 47%),
              linear-gradient(125deg, #101f2e 0%, #091320 77%);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-block: 115px 120px; }
.eyebrow, .kicker { color: var(--accent); font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 21px; }
.status-dot { display: inline-block; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #7ee3c21b; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { font-size: clamp(43px, 5.5vw, 74px); line-height: 1.08; letter-spacing: -.052em; margin: 0 0 24px; }
h1 span { color: var(--accent); }
.hero-lead { max-width: 610px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; color: #c5d4df; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 19px; border-radius: 9px; font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #071a23; background: var(--accent); }
.button-primary:hover { background: #a5f6db; }
.button-secondary { color: #deedf2; border: 1px solid #4a6572; background: #10243375; }
.button-secondary:hover { background: #1b3443; }
.hero-footnote { color: #809cac; font-size: 12px; margin-top: 34px; }

/* 4. Abstract decorative data illustration (no JavaScript) */
.hero-visual { height: 370px; position: relative; border: 1px solid #365166; border-radius: 20px; background: radial-gradient(circle at 76% 32%, #254c54a0, transparent 55%), #0e2031; box-shadow: 0 28px 80px #02070b7d; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(#5994a326 1px, transparent 1px), linear-gradient(90deg, #5994a326 1px, transparent 1px); background-size: 34px 34px; }
.visual-label { position: absolute; z-index: 2; top: 22px; left: 23px; font-size: 10px; letter-spacing: .17em; font-weight: 800; color: #9bc1cd; }
.plot { position: absolute; top: 80px; left: 50px; width: 70%; height: 170px; transform: rotate(-11deg); border-bottom: 2px solid #88bcdd99; }
.plot::before { content: ""; position: absolute; width: 105%; height: 2px; top: 52%; left: -5%; transform: rotate(-24deg); background: linear-gradient(90deg, transparent, #80e2c4 20%, #7aabe2 85%, transparent); box-shadow: 0 0 16px #74cddb; }
.plot span { position: absolute; display: block; width: 12px; height: 12px; background: #8ce6d0; border-radius: 50%; box-shadow: 0 0 0 6px #7ee3c219; }
.plot span:nth-child(1) { left: 5%; top: 79%; }
.plot span:nth-child(2) { left: 21%; top: 67%; background: #e7b379; }
.plot span:nth-child(3) { left: 37%; top: 61%; }
.plot span:nth-child(4) { left: 49%; top: 30%; background: #7aafe5; }
.plot span:nth-child(5) { left: 63%; top: 48%; }
.plot span:nth-child(6) { left: 75%; top: 19%; background: #e9b37c; }
.plot span:nth-child(7) { left: 94%; top: 8%; }
.float-panel { position: absolute; z-index: 3; width: 175px; border: 1px solid #477481a6; border-radius: 13px; background: #172e40ec; padding: 13px 16px; box-shadow: 0 14px 25px #030b1680; display: grid; gap: 1px; }
.float-panel small { color: #81b4c1; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.float-panel strong { font-size: 14px; }
.float-panel em { color: #adc1d0; font-style: normal; font-size: 11px; }
.panel-one { bottom: 37px; left: 27px; }
.panel-two { right: 24px; top: 95px; }
.visual-footer { position: absolute; right: 25px; bottom: 28px; color: #9cb5c2; font-size: 10px; letter-spacing: .1em; }
.visual-footer b { color: var(--accent); padding-inline: 5px; }

/* 5. Sections and project cards */
.section { padding-block: 100px; }
.kicker { margin: 0 0 12px; }
h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.04em; line-height: 1.12; margin: 0 0 19px; }
.period { color: var(--accent); }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 40px; }
.section-summary { max-width: 650px; color: var(--muted); font-size: 16px; margin: 0; }
.section-count { white-space: nowrap; border: 1px solid var(--border); padding: 6px 13px; font-size: 12px; color: #b9c8d3; border-radius: 99px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.project-card { min-width: 0; display: flex; flex-direction: column; background: linear-gradient(140deg, #152636, #101d2b); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: transform .2s, border-color .2s; }
.project-card:hover { transform: translateY(-3px); border-color: #4a827f; }
.card-visual { position: relative; height: 225px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #2d4758; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-accessibility { background: radial-gradient(circle at 70% 30%, #38677d, transparent 55%), #152a39; }
.visual-symbol { font: 700 clamp(64px, 8vw, 110px)/1 ui-monospace, monospace; letter-spacing: -.1em; color: #80e2c4; text-shadow: 0 5px 36px #2da99958; }
.visual-caption { position: absolute; left: 23px; bottom: 18px; color: #c7dfdf; letter-spacing: .12em; font-weight: 800; font-size: 10px; }
.visual-pai { background: #0d1a29; }
.image-pill { position: absolute; top: 15px; right: 15px; border-radius: 99px; background: #0b1d2ce8; color: #baf8e4; font-size: 10px; font-weight: 800; padding: 6px 11px; border: 1px solid #508c84; }
.visual-inclui { background: radial-gradient(circle at 50% 50%, #174f53, #0e2638 67%); }
.symbol-ring { width: 200px; height: 200px; border: 1px solid #6fa5a369; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 22px #39858b12, 0 0 0 24px #3d849012; }
.symbol-ring span { font-size: 32px; font-weight: 850; letter-spacing: -.07em; }
.highlight-dot { color: var(--accent); }
.visual-blog { background: radial-gradient(circle at 30% 30%, #8d6f70a8, transparent 55%), linear-gradient(140deg, #362c42, #1b2a3b); }
.blog-art { display: flex; align-items: center; gap: 18px; color: #f9eddf; font: 400 32px/1.1 Georgia, serif; }
.blog-art strong { font-weight: 700; font-size: 41px; }
.blog-icon { font-size: 65px; color: #f0cba9; }
.card-content { padding: 27px 30px 28px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; color: #91dcca; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.project-card h3 { margin: 13px 0 10px; font-size: 25px; letter-spacing: -.035em; line-height: 1.2; }
.project-card p { color: #b7c7d3; margin: 0 0 23px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; margin-bottom: 26px; }
.chips span { border: 1px solid #3a5364; border-radius: 6px; padding: 5px 9px; color: #b5c9d4; font-size: 11px; font-weight: 600; }
.card-links { border-top: 1px solid #2c4354; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.card-links a { color: var(--accent); text-decoration: none; font-weight: 800; font-size: 13px; }
.card-links a:hover { text-decoration: underline; }
.work-note { font-size: 12px; color: #849eaf; margin-top: 25px; }


/* 6. Other work */
.other-work-section {
  background: #0b1623;
  border-top: 1px solid var(--border);
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.other-card {
  display: flex;
  gap: 23px;
  padding: 30px;
  background: linear-gradient(145deg, #142536, #101e2d);
  border: 1px solid var(--border);
  border-radius: 17px;
}
.other-symbol {
  flex: 0 0 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #21443f;
  color: var(--accent);
  font: 800 20px/1 ui-monospace, monospace;
}
.other-card h3 { margin: 0 0 11px; font-size: 20px; }
.other-card p { margin: 0 0 18px; color: #b7c7d3; font-size: 14px; }
.other-status { color: var(--accent); font-size: 12px; font-weight: 700; }

/* 8. GitHub and social network cards */
.connect-summary {
  max-width: 680px;
  color: var(--muted);
  margin: 0 0 34px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.social-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #142638;
  text-decoration: none;
}
.social-card-active { transition: background .2s, border-color .2s; }
.social-card-active:hover { background: #193243; border-color: #61968d; }
.social-card-pending { opacity: .7; }
.social-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #254b48;
  border-radius: 11px;
  color: #b5f3df;
  font-size: 14px;
  font-weight: 800;
}
.social-copy { display: grid; gap: 4px; min-width: 0; }
.social-copy strong { color: #eaf3f7; }
.social-copy small { font-size: 12px; color: #a5bdc9; }
.social-arrow, .social-pending-label {
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
  font-weight: 700;
}
.social-pending-label { color: #91a6b4; font-size: 11px; }

/* 7. About / skills */
.about-section { background: #101d2b; border-top: 1px solid #273d4c; border-bottom: 1px solid #273d4c; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-grid p:not(.kicker) { color: #b4c7d2; max-width: 510px; margin: 0 0 17px; }
.skills-panel { background: #142636; border: 1px solid #314a5b; border-radius: 16px; padding: 28px 30px; }
.skills-panel h3 { margin: 0 0 20px; font-size: 17px; }
.skill-row { border-top: 1px solid #2b4355; display: grid; gap: 4px; padding: 13px 0; }
.skill-row span { font-size: 11px; color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.skill-row strong { font-size: 13px; font-weight: 600; color: #d3e0e8; }

/* 9. Contact and footer */
.contact-section { padding-block: 80px; background: radial-gradient(ellipse at 15% 15%, #173743 0, transparent 55%), #0b1724; }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.contact-inner h2 { margin-bottom: 12px; }
.contact-inner p:not(.kicker) { color: var(--muted); max-width: 700px; margin: 0; }
.site-footer { border-top: 1px solid #2b4152; padding: 26px 0 36px; font-size: 12px; color: #99adba; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-inner a { color: #b6d9d6; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* 10. Responsive adjustments */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 74px 84px; gap: 40px; }
  .hero-visual { max-width: 600px; width: 100%; height: 320px; }
  .about-grid { gap: 35px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 36px, var(--max-width)); }
  .header-inner { min-height: 74px; }
  .project-grid, .about-grid, .other-grid, .social-grid { grid-template-columns: 1fr; }
  .section { padding-block: 70px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .card-visual { height: 200px; }
  .card-content { padding: 24px; }
  .other-card { padding: 23px; }
  .contact-inner { align-items: start; flex-direction: column; }
  .hero-visual { height: 300px; }
}
@media (max-width: 450px) {
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: 12px; }
  .brand-sub { font-size: 10px; }
  h1 { font-size: 43px; }
  .hero-visual { height: 260px; }
  .panel-two { top: 65px; right: 10px; }
  .panel-one { bottom: 24px; left: 10px; }
  .float-panel { width: 150px; padding: 9px 11px; }
  .visual-footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card, .button, .social-card-active { transition: none; }
}