/* ============================================================
   PORTFOLIO — style.css
   Guilherme Moraes Franco · @ognistie
   Paleta: #F4F4F4 / #2D2D2D / #E0E0E0
   Estética: Clean · Glassmorphism · Minimalista
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  /* Cores */
  --bg:          #F4F4F4;
  --bg-alt:      #EEEEEE;
  --txt:         #2D2D2D;
  --txt2:        #666666;
  --txt3:        #999999;
  --border:      #E0E0E0;

  /* Glass */
  --glass:       rgba(255, 255, 255, 0.58);
  --glass-b:     rgba(255, 255, 255, 0.88);
  --glass-blur:  blur(20px);

  /* Sombras */
  --sh-sm:  0 2px 12px rgba(0, 0, 0, 0.05);
  --sh-md:  0 6px 28px rgba(0, 0, 0, 0.08);
  --sh-lg:  0 16px 56px rgba(0, 0, 0, 0.11);

  /* Raios */
  --r:     14px;
  --r-sm:   8px;
  --r-xs:   6px;

  /* Transições */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  color: var(--txt);
  font-weight: 700;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::selection {
  background: var(--txt);
  color: #fff;
}

/* ── BACKGROUND MESH ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 5%  15%, rgba(215,215,215,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 95% 85%, rgba(200,200,200,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 5%,  rgba(230,230,230,0.45) 0%, transparent 60%);
}

/* ── LAYOUT HELPERS ─────────────────────────────────────────── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── GLASS CARD BASE ────────────────────────────────────────── */
.gc {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: var(--r);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-md);
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* ── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--txt3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sec-h {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -1px;
  margin-bottom: 52px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-fill {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 13px 28px;
  background: var(--txt);
  color: #fff;
  border-radius: var(--r-sm);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.btn-fill:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.btn-line {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 13px 28px;
  border: 1.5px solid var(--border);
  color: var(--txt);
  border-radius: var(--r-sm);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.btn-line:hover {
  border-color: #ababab;
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(244, 244, 244, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s var(--ease);
}
.nav.scrolled {
  box-shadow: var(--sh-md);
}

.nav-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--txt);
  letter-spacing: -0.3px;
}
.logo-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--txt);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #bbb;
  flex-shrink: 0;
}

/* Nav links */
.nav-ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-ul a {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--txt2);
  padding: 7px 13px;
  border-radius: var(--r-xs);
  transition: color 0.2s, background 0.2s;
}
.nav-ul a:hover,
.nav-ul a.on {
  color: var(--txt);
  background: rgba(45, 45, 45, 0.07);
}

/* Nav CTA */
.nav-btn {
  color: var(--txt) !important;
  border: 1px solid var(--border) !important;
  background: var(--glass) !important;
  backdrop-filter: blur(8px);
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #bbb !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-ul.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(244, 244, 244, 0.97);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 4px;
  box-shadow: var(--sh-md);
}
.nav-ul.mobile-open a {
  padding: 10px 14px;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 60px;
  align-items: center;
}

/* ── Hero Left ── */
.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--txt2);
  background: var(--glass);
  border: 1px solid var(--glass-b);
  padding: 5px 14px 5px 10px;
  border-radius: 99px;
  backdrop-filter: var(--glass-blur);
  margin-bottom: 28px;
}
.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50%       { opacity: 0.3; box-shadow: 0 0 0 4px rgba(76,175,80,0); }
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--txt);
  margin-bottom: 8px;
}
.hero-name .dim {
  color: var(--txt3);
}

.hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--txt3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-p {
  font-size: 0.94rem;
  color: var(--txt2);
  max-width: 440px;
  line-height: 1.9;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.8px;
  color: var(--txt2);
  background: var(--glass);
  border: 1px solid var(--glass-b);
  padding: 5px 13px;
  border-radius: 99px;
  backdrop-filter: var(--glass-blur);
}

/* ── Hero Right — GitHub profile card ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  width: 100%;
}

/* Floating stat pills */
.fp {
  position: absolute;
  background: var(--glass-b);
  border: 1px solid var(--glass-b);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  box-shadow: var(--sh-md);
  backdrop-filter: var(--glass-blur);
  z-index: 5;
  min-width: 80px;
}
.fp-1 { top: 20px;  left: -72px; animation: float 4s ease-in-out infinite; }
.fp-2 { bottom: 90px; right: -62px; animation: float 4s ease-in-out infinite 0.9s; }
.fp-3 { top: 145px; left: -78px; animation: float 4s ease-in-out infinite 1.8s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.fp-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt);
}
.fp-l {
  font-size: 0.58rem;
  color: var(--txt3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Inner card */
.hc-inner {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-lg);
}

.hc-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(10%) brightness(1.03);
  display: block;
}
.hc-banner-fb {
  display: none;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #ddd, #c4c4c4);
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #aaa;
  letter-spacing: 3px;
}

.hc-av-row {
  padding: 0 22px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.hc-av {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--bg-alt);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.hc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-body {
  padding: 10px 22px 22px;
}
.hc-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 2px;
}
.hc-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--txt3);
  margin-bottom: 10px;
}
.hc-bio {
  font-size: 0.77rem;
  color: var(--txt2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.hc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hc-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--txt3);
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS (SOBRE / STACK / PROJETOS / CURSOS / CONTATO)
══════════════════════════════════════════════════════════════ */
.sec {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}
.sec-alt {
  background: var(--bg-alt);
}

/* ── SOBRE ──────────────────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 52px;
  align-items: start;
}

.sobre-txt p {
  font-size: 0.93rem;
  color: var(--txt2);
  line-height: 1.95;
  margin-bottom: 16px;
}

/* info card */
.info-card {
  padding: 26px;
  position: sticky;
  top: 76px;
}
.irow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.irow:last-child {
  border-bottom: none;
}
.ik {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--txt3);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.iv {
  font-size: 0.8rem;
  color: var(--txt);
  font-weight: 600;
  text-align: right;
}
.iv a:hover {
  text-decoration: underline;
}

/* ── STACK ──────────────────────────────────────────────────── */
.sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.sk-card {
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: default;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}
.sk-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(255,255,255,1);
}
.sk-card.dim {
  opacity: 0.38;
  border-style: dashed;
}
.sk-card.dim:hover {
  opacity: 0.76;
  border-style: solid;
}
.sk-ico  { font-size: 1.65rem; }
.sk-name { font-size: 0.8rem; font-weight: 700; color: var(--txt); }
.sk-cat  { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: var(--txt3); letter-spacing: 1px; }

/* ── PROJETOS ───────────────────────────────────────────────── */
.pj-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pj-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.pj-card:hover {
  transform: translateX(7px);
  box-shadow: var(--sh-lg);
}

.pj-ico {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pj-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
}
.pj-info p {
  font-size: 0.78rem;
  color: var(--txt2);
  line-height: 1.65;
}
.pj-info p strong {
  color: var(--txt);
  font-weight: 600;
}

.pj-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.pj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}
.pj-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--txt3);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 99px;
}
.pj-arr {
  font-size: 0.88rem;
  color: var(--txt3);
  transition: transform 0.2s var(--ease), color 0.2s;
}
.pj-card:hover .pj-arr {
  color: var(--txt);
  transform: translateX(5px);
}

/* ── CURSOS ─────────────────────────────────────────────────── */
.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 14px;
}

.cr-card {
  padding: 20px 22px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.cr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.cr-card.cr-new {
  border-color: rgba(255,255,255,0.95);
  box-shadow: var(--sh-md), inset 0 0 0 1px rgba(255,255,255,0.6);
}

.cr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}
.cr-inst {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--txt3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.cr-inst.ibm  { color: #4a8fcf; border-color: rgba(74,143,207,0.3); }
.cr-inst.aws  { color: #b87333; border-color: rgba(184,115,51,0.3); }
.cr-inst.ghb  { color: #777; }

.badge-new {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: var(--txt);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
}

.cr-card h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.4;
  margin-bottom: 6px;
}
.cr-card p {
  font-size: 0.76rem;
  color: var(--txt2);
  line-height: 1.7;
}
.cr-ext {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.cr-ext span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  color: var(--txt3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 99px;
}

/* ── CONTATO ────────────────────────────────────────────────── */
.ct-wrap {
  max-width: 600px;
}
.ct-intro {
  font-size: 0.93rem;
  color: var(--txt2);
  line-height: 1.9;
  margin-bottom: 38px;
}
.ct-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}
.ct-item:hover {
  transform: translateX(7px);
  box-shadow: var(--sh-lg);
  border-color: rgba(255,255,255,1);
}
.ct-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--txt);
  flex-shrink: 0;
}
.ct-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--txt3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ct-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--txt);
}
.ct-arr {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--txt3);
  transition: transform 0.2s var(--ease), color 0.2s;
}
.ct-item:hover .ct-arr {
  color: var(--txt);
  transform: translateX(5px);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.foot-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt);
}
.foot-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--txt3);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-grid   { grid-template-columns: 1fr; text-align: center; }
  .hero-left   { align-items: center; }
  .hero-p      { text-align: left; }
  .hero-right  { display: none; }
  .sobre-grid  { grid-template-columns: 1fr; }
  .info-card   { position: static; }
}

@media (max-width: 720px) {
  .pj-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .pj-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .sec         { padding: 68px 0; }
  .wrap        { padding: 0 18px; }
  .nav-inner   { padding: 0 18px; }
  .nav-ul      { display: none; }
  .nav-hamburger { display: flex; }
  .sk-grid     { grid-template-columns: repeat(2, 1fr); }
  .pj-card     { grid-template-columns: 1fr; }
  .pj-ico      { display: none; }
  .cr-grid     { grid-template-columns: 1fr; }
  .foot-inner  { flex-direction: column; text-align: center; }
}