:root {
  --background: #000000;
  --foreground: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Outfit", Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.portfolio-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: visible;
  background: #000000;
  color: #ffffff;
  isolation: isolate;
}

section[id] {
  scroll-margin-top: 150px;
}

/* Luzes coloridas do fundo */
.ambient {
  position: absolute;
  z-index: -1;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 0, 82, 0.26) 0%,
    rgba(121, 0, 66, 0.13) 31%,
    rgba(4, 0, 88, 0.12) 54%,
    transparent 71%
  );
  filter: blur(24px);
}

.ambient-one {
  top: 190px;
  right: -220px;
}

.ambient-two {
  top: 1120px;
  left: -230px;
}

.ambient-three {
  top: 2500px;
  right: -240px;
}

.ambient-four {
  top: 4050px;
  left: -200px;
}

/* Cabeçalho */
.site-header {
  width: min(1385px, calc(100% - 48px));
  min-height: 94px;

  position: fixed;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  margin: 0;
  padding: 8px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border-radius: 24px;

  background: rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);

  box-sizing: border-box;
}

.Icone {
  display: block;
  width: 75px;
  height: 77px;
  flex: 0 0 auto;
}

.Icone img,
.portrait-wrap img,
.language-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  padding: 8px 16px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #000000;
  background-color: #ffffff;
  border-radius: 8px;
}

.main-nav .linkedin:hover,
.main-nav .linkedin:focus-visible {
  color: #ffffff;
  background-color: #0A66C2;
  border-radius: 8px;
}

.main-nav .contact-link {
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
}

.main-nav .contact-link:hover,
.main-nav .contact-link:focus-visible {
  background: #e9e9e9;
  color: #000000;
}

.language-selector {
  position: relative;
}

.language-button {
  width: 70px;
  height: 35px;
  background: transparent;
  padding: 5px 8px;
  flex: 0 0 auto;
  overflow: hidden;

  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.language-button.open {
  background: white;
}

.language-button.open span {
  color: black;
}

.language-button img {
  width: 25px;
  height: 17px;
}

.language-button span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  gap: 0;

  background: white;
  border-radius: 5px;
  padding: 8px;
}

.language-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-menu img {
  width: 25px;
  height: 17px;
  margin-right: 8px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.language-option span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #000000;
}

.language-option:hover {
  background: #e2e1e1;
  border-radius: 5px;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-button {
  display: none;
}

/* Apresentação */
.hero {
  width: min(1278px, calc(100% - 64px));
  margin: 185px auto 0;
  display: grid;
  grid-template-columns: 347px minmax(0, 1fr);
  align-items: stretch;
  gap: 21px;
}

.portrait-wrap {
  min-height: 289px;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.5s ease;
}

.portrait-wrap:hover{
  transform: scale(1.05);
  transition: transform 0.5s ease;  
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 300;
}

.eyebrow strong {
  font-weight: 600;
}

.hero h1 {
  max-width: 910px;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 700;
}

.specialties-label {
  margin: 30px 0px 26px 35px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  font-weight: 200;
}

.specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.specialties span {
  padding: 8px 16px;
  border: 1px solid #848484;
  border-radius: 16px;
  font-size: 1.25rem;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.specialties span:hover {
  border-color: #ffffff;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.45),
    0 0 25px rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

/* Projetos */

.projects-section {
  width: min(1257px, calc(100% - 80px));
  margin: 385px auto 0;
}

.projects-sticky {
  position: sticky;
  top: 110px;
}

.projects-section h2 {
  margin: 0 0 45px;
  padding-inline: 60px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.projects-viewport {
  width: 100%;
  overflow: hidden;
  padding: 30px;
  box-sizing: border-box;
}

.projects-track {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 100px;
  transform: translateX(0);
  will-change: transform;
  transition: transform 0.6s ease;
}

.project-slide {
  min-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
}

.project-slide img {
  width: 100%;
  height: clamp(380px, 55vh, 600px);
  display: block;
  object-fit: cover;
  border-radius: 24px;
  cursor: pointer;
  transition: box-shadow 0.6s ease;
}

.project-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-slide img:hover {
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.85),
    0 0 24px rgba(255, 255, 255, 0.55),
    0 0 35px rgba(255, 255, 255, 0.30);
  transition: box-shadow 0.3s ease;
}

/* Habilidades */
.skills-section {
  width: min(1164px, calc(100% - 96px));
  margin: 350px auto 0;
}

.section-heading h2 {
  margin: 0 0 22px;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
}

.section-heading p {
  max-width: 1164px;
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 2.1875rem);
  line-height: 1.35;
  font-weight: 200;
}

.skills-list {
  width: 387px;
  margin-top: 75px;
}

.skills-list li {
  font-size: 1.60rem;
  line-height: 1.5;
}

.skill-item button {
  width: 345px;
  padding: 12px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  border: 0;
  border-bottom: 1px solid #ffffff;

  background: transparent;
  color: #ffffff;

  text-align: left;
  cursor: pointer;
}

.skill-item button > span:first-child {
  font-size: 2.25rem;
  line-height: 1.2;
  font-weight: 700;
}

.skill-arrow {
  width: 0;
  height: 0;

  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #ffffff;

  transition: transform 0.3s ease;
}

.skill-arrow.is-open {
  transform: rotate(180deg);
}

.skill-item ul {
  width: 345px;

  margin: 0;
  padding-left: 28px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;

  color: rgba(255, 255, 255, 0.7);

  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin 0.4s ease;
}

.skill-item ul.open {
  max-height: 300px;
  opacity: 1;

  margin: 12px 0 8px;
}


/* Contato */
.contact-section {
  width: min(1062px, calc(100% - 64px));
  margin: 350px auto 280px;
}

.contact-card {
  padding: 90px;
  border-radius: 32px;
  background: rgba(217, 217, 217, 0.2);
  backdrop-filter: blur(3px);
}

.contact-heading {
  margin-bottom: 55px;
}

.contact-heading h2 {
  margin: 0 0 17px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
}

.contact-heading p {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 200;
}

form,
fieldset {
  display: flex;
  flex-direction: column;
}

form {
  gap: 40px;
}

fieldset {
  min-width: 0;
  padding: 0;
  gap: 25px;
  border: 0;
}

legend {
  margin-bottom: 25px;
  padding: 0;
  font-size: 2.1875rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 95px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 1.5rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
  background: rgba(217, 217, 217, 0.5);
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
}

input,
select {
  height: 60px;
  padding: 8px 25px;
}

textarea {
  min-height: 220px;
  padding: 16px 25px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.submit-button {
  min-height: 60px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #000000;
  font-size: 1.25rem;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #efefef;
}

.form-feedback {
  margin: -20px 0 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
}

.field-error {
  min-height: 20px;
  color: #ff6b6b;
  font-size: 1.2rem;
}

/* Rodapé */
.footer {
  width: 100%;
  border-top: 1px solid #555;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 50px 200px;
}

.footer-content p {
  margin: 0;
  color: white;
  font-size: 24px;
}

/* Ajustes para tablets */
@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 32px);
    padding-inline: 8px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 8px;
    font-size: 0.95rem;
  }

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

  .projects-section,
  .skills-section,
  .contact-section {
    margin-top: 260px;
  }

  .project-slide {
    height: min(56vw, 520px);
  }

  .contact-card {
    padding: 60px 48px;
  }

  .form-grid {
    gap: 32px;
  }
}

/* Ajustes para celulares */
@media (max-width: 680px) {
  .ambient {
    width: 115vw;
  }

  .site-header {
  margin-top: 12px;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 12px;
  overflow: visible;
}

.Icone {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.Icone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-left: auto;
  width: fit-content;
  flex-shrink: 0;
}

.language-selector {
  width: fit-content;
  margin: 0;
  flex: 0 0 auto;
}

.language-button {
  width: 65px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
}

.mobile-menu-button {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  background: white;
  border-radius: 10px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
}

.main-nav.active {
  display: flex;
}

.main-nav a {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  text-align: left;
  white-space: nowrap;
}

.main-nav a:last-child {
  display: block;
}

.hero {
  width: calc(100% - 32px);
  margin-top: 98px;
  grid-template-columns: 1fr;
  gap: 36px;
}

  .portrait-wrap {
    width: min(100%, 347px);
    min-height: auto;
    aspect-ratio: 347 / 289;
    margin-inline: auto;
  }

  .eyebrow {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .specialties {
    gap: 10px;
  }

  .specialties span {
    padding: 7px 12px;
    font-size: 1rem;
  }

  .projects-section {
    width: calc(100% - 32px);
    margin-top: 220px;
  }

  .projects-section h2 {
    padding-inline: 8px;
    font-size: 2.25rem;
  }

  .project-slide {
    height: 78vw;
    max-height: 440px;
  }

  .skills-section {
    width: calc(100% - 40px);
    margin-top: 240px;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .section-heading p {
    font-size: 1.25rem;
  }

  .skills-list,
  .skill-item button,
  .skill-item p {
    width: 100%;
  }

  .skill-item button > span:first-child {
    font-size: 1.8rem;
  }

  .contact-section {
    width: calc(100% - 32px);
    margin-top: 300px;
    margin-bottom: 380px;
  }

  .contact-card {
    padding: 40px 20px;
    border-radius: 24px;
  }

  .contact-heading h2 {
    font-size: 2.7rem;
  }

  .contact-heading p {
    font-size: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

 .footer-content {
    padding: 30px 20px;
  }

  .footer-content p {
    font-size: 14px;
  }

  legend {
    font-size: 1.8rem;
  }

  label {
    font-size: 1.1rem;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
