:root {
  --bg: #05070f;
  --surface: rgba(12, 18, 32, 0.94);
  --surface-strong: rgba(10, 14, 24, 0.95);
  --text: #e8effe;
  --muted: #8fa5c1;
  --accent: #45d4ff;
  --accent-soft: #3f92ff;
  --border: rgba(69, 214, 255, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 12% 12%, rgba(69, 214, 255, 0.12), transparent 18%),
              radial-gradient(circle at 92% 8%, rgba(22, 112, 220, 0.10), transparent 16%),
              linear-gradient(180deg, #06101a 0%, #04060d 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: 96px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 12%, rgba(69, 214, 255, 0.12), transparent 20%),
    radial-gradient(circle at 75% 15%, rgba(29, 144, 255, 0.08), transparent 16%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 8, 18, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(69, 214, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 700;
  color: var(--accent);
}

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

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: rgba(232, 239, 254, 0.86);
  font-weight: 500;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Section base */
section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  padding: 5rem 0;
}

section.visible {
  opacity: 1;
  transform: none;
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

section h2 {
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: #76d9ff;
  font-size: 0.92rem;
}

.content-section p,
.content-section ul {
  max-width: 760px;
}

.experience-highlight {
  max-width: 900px;

  margin: 3rem auto;

  padding: 2.8rem;

  text-align: center;

  background: rgba(8, 14, 28, 0.88);

  border: 1px solid rgba(69, 214, 255, 0.14);

  border-radius: 28px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.experience-highlight p {
  color: #d7e5f7;

  font-size: 1.05rem;

  line-height: 2;

  margin-bottom: 1.8rem;
}

.experience-highlight p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  list-style: disc inside;
  margin-top: 1rem;
  color: #b1c2db;
}

.content-section ul li {
  margin-bottom: 0.75rem;
}

.typing-panel {
  margin: 2.8rem auto;
  padding: 2.4rem;
  border: 1px solid rgba(69, 214, 255, 0.16);
  border-radius: 28px;
  background: rgba(8, 14, 28, 0.92);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
  max-width: 720px;
  text-align: center;
}

.typing-intro {
  color: #d8e5f7;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.typing-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  min-height: 90px;
}

.typing-dot {
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;

  background: #45d4ff;

  box-shadow:
    0 0 12px rgba(69, 214, 255, 0.55),
    0 0 30px rgba(69, 214, 255, 0.18);

  flex-shrink: 0;

  transform: translateY(2px);
}

.typing-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.15em;
  color: #45d4ff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow: hidden;
  white-space: nowrap;
  white-space: nowrap;
  overflow: hidden; 
}

.typing-highlight {
  background: linear-gradient(
    135deg,
    rgba(69, 214, 255, 0.12),
    rgba(31, 123, 255, 0.08)
  );
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

.typing-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.typing-image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(69, 214, 255, 0.08), rgba(22, 112, 220, 0.08));
  border: 1px solid rgba(69, 214, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(69, 214, 255, 0.04);
  isolation: isolate;
  backdrop-filter: blur(12px);
}

.typing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  transform: translateY(0);
 transition:
  opacity 0.8s ease,
  transform 0.8s ease,
  filter 0.8s ease;
}
/* IMAGEM BASE */
.typing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* SAINDO */
.carousel-out {
  animation: carouselFadeOut 0.7s forwards;
}

/* ENTRANDO */
.carousel-in {
  animation: carouselFadeIn 0.7s forwards;
}

/* ANIMAÇÃO DE SAÍDA */
@keyframes carouselFadeOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }

  100% {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
    filter: blur(6px);
  }
}

/* ANIMAÇÃO DE ENTRADA */
@keyframes carouselFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.04) translateY(-18px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}
.typing-image-label {
  color: #a8bfd8;
  font-size: 1rem;
  text-align: center;
}
.typing-display {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

h1,
h2,
h3 {
  color: #eef7ff;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: 1.18rem;
}

/* Hero */
.hero {
  padding-top: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(69, 214, 255, 0.12);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 860px;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 760px;
  color: #d5deeb;
  margin-bottom: 1.1rem;
}

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

/* Portfolio cards */
#portifolio .cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.8rem;
}

#portifolio .projeto {
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

#portifolio .projeto:hover {
  transform: translateY(-8px);
  border-color: rgba(69, 214, 255, 0.24);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.32);
}

#portifolio .projeto p {
  color: #c1cadd;
}

#portifolio .projeto a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
}

#portifolio .projeto a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(69,214,255,0.95), rgba(28, 128, 255, 0.82));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

#portifolio .projeto a:hover::after {
  transform: scaleX(1);
}

.projeto-imagem {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(69, 214, 255, 0.14);
  margin-bottom: 1rem;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* efeito elegante */
.projeto:hover .projeto-imagem {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Section accent */
.section-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: #89c2ff;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.82rem;
}

.section-meta::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(69, 214, 255, 0.4);
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 88px;
  }

  .nav-links {
    gap: 1rem;
  }

  section {
    padding: 3.5rem 0;
  }

  #portifolio .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 15px;
  }

  .nav-inner {
    padding: 0.95rem 0;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    padding: 0.45rem 0.85rem;
  }

  .section-meta {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* portfolio-profile-refresh */
.experience-highlight h3 { color: #a5e5ff; margin-top: 1.5rem; }
.experience-highlight h3:first-child { margin-top: 0; }
.project-meta { display: block; color: #89c2ff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.projeto-imagem--icon { object-fit: contain; padding: 2rem; background: linear-gradient(135deg, rgba(69,214,255,.12), rgba(22,112,220,.06)); }
.contact-link { color: #45d4ff; display: inline-block; font-weight: 700; padding: .7rem 0; text-decoration: underline; text-underline-offset: .3rem; }

/* Navigation and narrow screens */
section { scroll-margin-top: 120px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (max-width: 520px) {
  .typing-panel, .experience-highlight { padding: 1.4rem; }
  .typing-text { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-badge { max-width: 100%; }
  .nav-links { gap: .5rem 1rem; }
}
