/* ─────────────────────────────────────────
   sokolonski.com.br — Design System
   ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --bg:      #0b0f1a;
  --surface: #121826;
  --card:    #182035;
  --border:  rgba(255,255,255,0.07);
  --accent:  #5b8dee;
  --accent2: #a78bfa;
  --text:    #e8edf5;
  --muted:   #7a8aaa;
  --serif:   'DM Serif Display', serif;
  --sans:    'DM Sans', sans-serif;
  --radius:  14px;
  --max:     1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(11,15,26,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--text); text-decoration: none;
}

.nav-links { display: flex; gap: 1.6rem; list-style: none; }

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

/* dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; min-width: 230px; padding: 0.5rem 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown li { list-style: none; }
.nav-dropdown a {
  display: block; padding: 0.5rem 1.2rem;
  color: var(--muted); font-size: 0.82rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.nav-dropdown a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-dropdown a::after { display: none; }

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding: 8rem 2rem 3rem;
  max-width: var(--max); margin: 0 auto;
  animation: fadeUp 0.8s ease both;
}
.page-hero .breadcrumb {
  font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.page-hero .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero .breadcrumb span { opacity: 0.4; }
.page-hero .page-tag {
  display: inline-block; padding: 0.25rem 0.9rem;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(91,141,238,0.06); margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--accent2); }
.page-hero .lead {
  color: var(--muted); font-size: 1rem; max-width: 700px;
  font-weight: 300; margin-bottom: 1.5rem;
}

/* ── CONTENT AREA ── */
.content {
  max-width: var(--max); margin: 0 auto;
  padding: 0 2rem 6rem;
}

.content-block { margin-bottom: 3rem; }

.section-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; font-weight: 600;
}

.content-block h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem; line-height: 1.2;
}
.content-block h3 {
  font-family: var(--serif);
  font-size: 1.3rem; margin-bottom: 0.7rem; color: var(--text);
}
.content-block p {
  color: var(--muted); margin-bottom: 0.9rem;
  font-size: 0.96rem; line-height: 1.75; font-weight: 300; max-width: 760px;
}

/* ── CARDS ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  transition: height 0.4s;
}
.card:hover { border-color: rgba(91,141,238,0.3); transform: translateY(-4px); }
.card:hover::before { height: 100%; }
.card .card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(91,141,238,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.card h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; margin: 0; }
.card a.card-link {
  display: inline-block; margin-top: 1rem;
  color: var(--accent); font-size: 0.84rem; text-decoration: none; font-weight: 500;
}
.card a.card-link:hover { text-decoration: underline; }

/* ── INFO BOX ── */
.info-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  border-left: 3px solid var(--accent);
}
.info-box p { max-width: none; }

/* ── LINKS LIST ── */
.link-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.link-list li a {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  padding: 0.75rem 1rem; border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.9rem; transition: all 0.25s;
}
.link-list li a:hover { background: var(--card); border-color: var(--border); color: var(--accent); }
.link-list li a::before { content: '→'; color: var(--accent); font-size: 0.9rem; }

/* ── ORDERED LIST ── */
.content-block ol {
  counter-reset: step;
  list-style: none; display: flex; flex-direction: column; gap: 0.7rem;
}
.content-block ol li {
  counter-increment: step;
  display: flex; gap: 0.9rem; align-items: flex-start;
  color: var(--muted); font-size: 0.93rem; line-height: 1.65;
}
.content-block ol li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px;
  background: rgba(91,141,238,0.12); color: var(--accent);
  border-radius: 50%; font-size: 0.75rem; font-weight: 600;
  flex-shrink: 0; margin-top: 2px;
}

/* ── TAG ── */
.tag {
  display: inline-block; padding: 0.2rem 0.7rem;
  border-radius: 100px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-green  { background: rgba(52,211,153,0.12);  color: #34d399; }
.tag-blue   { background: rgba(91,141,238,0.12);  color: var(--accent); }
.tag-purple { background: rgba(167,139,250,0.12); color: var(--accent2); }
.tag-orange { background: rgba(251,146,60,0.12);  color: #fb923c; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.8rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: all 0.25s; border: none; cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a7de8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,141,238,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-accent2 { background: rgba(167,139,250,0.15); color: var(--accent2); border: 1px solid rgba(167,139,250,0.25); }
.btn-accent2:hover { background: rgba(167,139,250,0.25); transform: translateY(-2px); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 2.5rem 0; }

/* ── PUB LIST ── */
.pub-year { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.pub-item { padding: 0.9rem 1rem; border-radius: 8px; border: 1px solid transparent; margin-bottom: 0.4rem; transition: all 0.25s; }
.pub-item:hover { background: var(--card); border-color: var(--border); }
.pub-item a { color: var(--text); text-decoration: none; font-size: 0.88rem; line-height: 1.6; display: block; }
.pub-item a:hover { color: var(--accent); }

/* ── HERO (main index) ── */
#inicio { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 2rem 4rem; overflow: hidden; }
.hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(91,141,238,0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-glow-2 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,0.1) 0%, transparent 70%); top: 30%; right: 10%; pointer-events: none; }
.hero-inner { position: relative; max-width: 900px; text-align: center; animation: fadeUp 0.9s ease both; }
.hero-badge { display: inline-block; padding: 0.3rem 1rem; border: 1px solid var(--border); border-radius: 100px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; background: rgba(91,141,238,0.06); }
.hero-title { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; color: var(--accent2); }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto 2.5rem; font-weight: 300; }
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── SECTIONS (index) ── */
section { padding: 5.5rem 2rem; max-width: var(--max); margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.section-desc { color: var(--muted); margin-top: 0.8rem; max-width: 560px; font-size: 0.96rem; }

.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.sobre-text p { color: var(--muted); margin-bottom: 1rem; font-weight: 300; font-size: 0.97rem; }
.sobre-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; transition: border-color 0.3s, transform 0.3s; }
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.project-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.3s; }
.project-card:hover { border-color: rgba(91,141,238,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.project-card h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.6rem; }
.project-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 1rem; }
.project-card a.link { color: var(--accent); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.project-card a.link:hover { text-decoration: underline; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.lab-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: all 0.3s; }
.lab-card:hover { border-color: rgba(167,139,250,0.35); transform: translateY(-4px); }
.lab-icon { font-size: 2rem; }
.lab-card h3 { font-family: var(--serif); font-size: 1.15rem; }
.lab-card p { color: var(--muted); font-size: 0.87rem; }
.lab-card a { color: var(--accent2); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.lab-card a:hover { text-decoration: underline; }
.labs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.soft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.soft-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.soft-box h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border); }
.soft-box p { color: var(--muted); font-size: 0.9rem; }
.soft-box a { display: block; color: var(--text); font-size: 0.88rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: color 0.2s; }
.soft-box a:hover { color: var(--accent); }

.full-divider { height: 1px; background: var(--border); max-width: var(--max); margin: 0 auto; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── SOFTWARE PAGE ── */
.soft-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.soft-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.soft-item:hover { border-color: rgba(91,141,238,0.35); transform: translateY(-4px); }
.soft-item .soft-name { font-family: var(--serif); font-size: 1.2rem; }
.soft-item p { color: var(--muted); font-size: 0.87rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; background: var(--bg); padding: 5rem 2rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--border); z-index: 99; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .soft-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.2rem; }
  .page-hero { padding: 7rem 1.2rem 2rem; }
  .content { padding: 0 1.2rem 4rem; }
  .nav-dropdown { position: static; border: none; background: transparent; box-shadow: none; padding: 0 0 0 1rem; }
}
