/* Gilson Braggion — Professional profile site
   Design próprio, responsivo, foco executivo (tech & cybersecurity). */

:root {
  --navy: #0b2239;
  --navy-2: #10304f;
  --accent: #2f7fdc;
  --accent-soft: #e8f0fb;
  --ink: #1c2b3a;
  --muted: #5b6b7b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 34, 57, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .4em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}
.section-title { font-size: 2rem; margin-bottom: 28px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 34, 57, 0.96);
  backdrop-filter: blur(6px);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cdd9e6; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 92px 0 84px;
}
.hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 10px; }
.hero .role { color: #9ec3ef; font-weight: 600; font-size: 1.15rem; margin: 0 0 18px; }
.hero p.lead { color: #d4e0ec; font-size: 1.05rem; max-width: 620px; }
.hero .location { color: #8fa6bd; font-size: .95rem; margin-top: 6px; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo {
  width: 230px; height: 230px; border-radius: 50%;
  object-fit: cover; margin: 0 auto;
  border: 6px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background: #14263b;
}

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #2569bd; border-color: #2569bd; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow);
}
.metric .num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.metric .label { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- About ---------- */
.about p { color: var(--muted); max-width: 820px; }
.about p + p { margin-top: 16px; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.skill-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--accent-soft); color: #1d4e86; font-size: .82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Experience timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -37px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; }
.tl-role { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.tl-period { color: var(--muted); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.tl-company { color: var(--accent); font-weight: 600; font-size: .95rem; margin: 2px 0 10px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--muted); }
.tl-item ul li { margin-bottom: 6px; }

/* ---------- Education / languages / certs ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); height: 100%;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.info-card ul li { margin-bottom: 10px; }
.info-card strong { color: var(--ink); }
.lang-row { margin-bottom: 14px; }
.lang-row .name { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.lang-row .name strong { color: var(--ink); }
.lang-row .name span { color: var(--muted); }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Contact ---------- */
.contact-box { text-align: center; }
.contact-box p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy); color: #9fb3c8; text-align: center;
  padding: 28px 0; font-size: .9rem;
}
.footer a { color: #cdd9e6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { order: -1; }
  .hero p.lead { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--navy); padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 12px; }
  .nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .section { padding: 60px 0; }
  .metrics { grid-template-columns: 1fr; }
}
