:root {
  --bg: #050816;
  --bg-soft: rgba(15, 23, 42, 0.75);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --transition-fast: 0.18s ease-out;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

.background-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.14), transparent 60%);
  opacity: 0.9;
  z-index: -1;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.88),
    rgba(15, 23, 42, 0.65),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #38bdf8, #0ea5e9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b1220;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-right a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.1rem;
  transition: color var(--transition-fast);
}

.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width var(--transition-fast);
}

.nav-right a:hover {
  color: #e5e7eb;
}

.nav-right a:hover::after {
  width: 100%;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.1), transparent);
  color: var(--text-soft);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.12s ease-out;
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent);
  transform: translateY(-1px);
}

/* SECTIONS BASE */
.section {
  padding: 4.5rem 6vw 0;
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.accent {
  color: var(--accent);
}

.glass {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.45)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding-top: 3.25rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent);
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.hero h1 {
  font-size: clamp(2.2rem, 3.3vw, 3rem);
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #020617;
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: var(--text-soft);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-meta div {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.meta-value {
  font-size: 0.85rem;
}

.hero-card-container {
  display: grid;
  gap: 1.4rem;
}

.hero-card {
  padding: 1.3rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: radial-gradient(
    circle at 0 0,
    rgba(56, 189, 248, 0.2),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.hero-card:hover::before {
  opacity: 1;
}

.hero-card-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.hero-card-metric {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.hero-card-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.7;
}

/* CHIPS / FILTRES */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform 0.12s ease-out;
}

.chip-active,
.chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

/* CARDS PROJETS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  position: relative;
  padding: 1.4rem 1.5rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.55)
  );
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: -80%;
  background: radial-gradient(
    circle at 0 0,
    rgba(56, 189, 248, 0.22),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0.7rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.card-list li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.pill {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-soft);
}

/* STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.stack-column {
  padding: 1.2rem 1.3rem;
}

.stack-column h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.stack-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.stack-column li {
  margin-bottom: 0.3rem;
}

/* ABOUT */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.about-text {
  padding: 1.3rem 1.4rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.about-text p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.about-meta {
  padding: 1.3rem 1.4rem;
  font-size: 0.88rem;
}

.about-meta h3 {
  margin: 0 0 0.6rem;
}

.about-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
}

.about-meta li {
  margin-bottom: 0.4rem;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.contact-card {
  padding: 1.4rem 1.5rem 1.5rem;
}

.contact-card h3 {
  margin: 0 0 0.6rem;
}

.contact-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.form-row input,
.form-row textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow 0.2s ease-out,
    background 0.2s ease-out;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.contact-meta {
  display: grid;
  gap: 1rem;
}

.contact-meta-item {
  padding: 1rem 1.1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.contact-meta-item h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

/* FOOTER */
.footer {
  max-width: 1120px;
  margin: 3.5rem auto 1.8rem;
  padding: 1.5rem 6vw 0;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-meta {
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-container {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .navbar {
    padding-inline: 5vw;
  }

  .nav-right {
    gap: 0.6rem;
    font-size: 0.8rem;
  }

  .section {
    padding-inline: 5vw;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

