/* Daniel Paiva — Solutions Architect | dark modern theme */

:root {
  --bg: #0a0f1c;
  --bg-alt: #0d1526;
  --panel: #111b30;
  --line: #1e2a44;
  --text: #e6ecf7;
  --muted: #96a3bd;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; }

a { color: var(--accent); text-decoration: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover { background: var(--accent); color: #06202a; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.hero-inner { position: relative; }

.kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}

.hero-sub {
  color: var(--muted);
  font-weight: 500;
  margin-top: 14px;
  font-size: 1.05rem;
}

.hero-lede {
  max-width: 640px;
  margin-top: 22px;
  color: var(--text);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #06202a;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(34, 211, 238, 0.35); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 42px;
}

.hero-tags li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.index {
  color: var(--accent);
  font-size: 0.9em;
  margin-right: 10px;
  font-weight: 600;
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 46px;
  font-size: 1.08rem;
}

/* ---------- expertise cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  stroke: var(--accent);
}

.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- timeline ---------- */
.timeline {
  border-left: 2px solid var(--line);
  margin-left: 6px;
  padding-left: 0;
}

.t-item {
  position: relative;
  padding: 0 0 44px 34px;
}
.t-item:last-child { padding-bottom: 0; }

.t-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.t-when {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.t-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.t-body h3 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}

.t-body ul { list-style: none; }
.t-body li {
  color: var(--muted);
  font-size: 0.99rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.t-body li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ---------- credentials ---------- */
.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cred {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.cred h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cred p { color: var(--muted); font-size: 0.95rem; }

/* ---------- contact ---------- */
.section-contact {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(34, 211, 238, 0.12), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact-inner .section-lede { margin-left: auto; margin-right: auto; }
.contact-inner .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
}
.footer p { color: var(--muted); font-size: 0.9rem; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 64px 0; }
}
