﻿:root {
  --bg-1: #0b1225;
  --bg-2: #121c34;
  --card: rgba(15, 23, 42, 0.8);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #14b8a6;
  --line: #334155;
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 10%, #1d4ed8 0%, transparent 30%),
              radial-gradient(circle at 88% 0%, #0f766e 0%, transparent 30%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-size: 120% 120%;
  animation: bgShift 16s ease-in-out infinite alternate;
}

@keyframes bgShift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

.hero {
  min-height: 74vh;
  padding: 24px;
}

.nav {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 1.1rem;
}

.menu {
  display: flex;
  gap: 16px;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.menu a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.hero-content {
  max-width: 1040px;
  margin: 88px auto 0;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(30, 41, 59, 0.5);
}

h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
}

.subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #001018;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.25);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  box-shadow: none;
  border-color: var(--accent);
}

.btn-whatsapp {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #052e16;
}

.btn-whatsapp:hover {
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.28);
}

.btn-cv {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #1f1300;
}

.btn-cv:hover {
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 52px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 14px;
}

h3 {
  margin: 0 0 10px;
}

p {
  line-height: 1.75;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chips span:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.exp-toggle {
  display: none;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.55);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.exp-toggle:hover {
  border-color: var(--accent);
}

.project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.project p,
.project li {
  color: var(--muted);
}

.project ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project a,
.card a {
  color: var(--accent);
  text-decoration: none;
}

.project a:hover,
.card a:hover {
  text-decoration: underline;
}

.availability {
  border-color: #475569;
}

.status-pill {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #0f766e;
  background: rgba(15, 118, 110, 0.15);
  color: #99f6e4;
  font-weight: 600;
}

.foot {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 11px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #052e16;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(22, 163, 74, 0.4);
}

@media (max-width: 900px) {
  .menu {
    gap: 12px;
  }

  .menu a {
    font-size: 0.9rem;
  }

  .container,
  .hero,
  .foot {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .menu {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .menu a {
    white-space: nowrap;
  }

  .hero-content {
    margin-top: 52px;
  }

  .card {
    padding: 18px;
    border-radius: 14px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .exp-details {
    position: relative;
    max-height: 240px;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-bottom: 2px;
  }

  .exp-details::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.96));
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .experience-item.is-expanded .exp-details {
    max-height: 1600px;
  }

  .experience-item.is-expanded .exp-details::after {
    opacity: 0;
  }

  .exp-toggle {
    display: inline-block;
  }
}

@media (max-width: 420px) {
  .subtitle {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .wa-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
