@import url("https://fonts.googleapis.com/css2?family=Inria+Serif:wght@300;400;700&family=Merriweather:wght@400;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

:root {
  --font-title: "Merriweather", serif;
  --font-ui: "Press Start 2P", cursive;
  --font-body: "Inria Serif", serif;

  --color-white: #ffffff;
  --color-link: #d4a57a;
  --color-title: #3e1b1b;

  --panel-strong: linear-gradient(to right, #1f1815b0, #27191469, #41342e42, #a5857813);
  --panel-soft: linear-gradient(to right, #201a18d8, #3a302c48, #72625a18, #a5857813);
  --nav-bg: linear-gradient(to right, #332419b9, #1d19168e, #3d312b18, #a58578a4);
  --shadow-soft: 0 10px 26px #0000002b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ ANIMACOES ============ */
.animate-scroll,
.animate-hero {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1000ms ease-out, transform 1000ms ease-out;
}

.animate-scroll.visible,
.animate-hero.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ ESTRUTURA GERAL ============ */
.page-section {
  width: 100%;
}

.page-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px 40px;
}

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-list {
  padding-left: 24px;
}

.page-list li {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-white);
  font-size: 20px;
  line-height: 90px;
}

.page-box1,
.page-box2 {
  padding: 20px 30px;
  background: var(--panel-strong);
  border-radius: 26px;
  align-self: flex-start;
  margin-top: 150px;
  margin-right: 40px;
}

.page-box1 {
  margin-left: 30px;
}

.page-box2 .page-list li {
  font-size: 20px;
  line-height: 60px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 10px;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
}

.navbar-logo {
  position: absolute;
  left: 30px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 24px;
  color: #fff7f7;
  letter-spacing: 2px;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 90px;
}

.navbar-links a {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

.navbar-links a:hover {
  color: #c9a98a;
  opacity: 0.92;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  position: relative;
  background: url("imagens/teste4.png") center/cover no-repeat;
}

.meu-nome {
  width: 794px;
  height: 97px;
}

.meu-nome .text-wrapper {
  position: absolute;
  top: 88px;
  left: 69px;
  width: 794px;
  font-family: var(--font-title);
  font-weight: 900;
  color: #463d3d00;
  font-size: 70px;
}

.sobre-mim {
  height: 91px;
}

.sobre-mim .text-wrapper {
  position: absolute;
  top: 150px;
  left: 100px;
  font-family: var(--font-ui);
  font-weight: 300;
  color: #7a746b;
  font-size: 50px;
}

.meu-nome2 {
  position: absolute;
  top: 400px;
  left: 90px;
  width: 782px;
  padding: 30px 34px;
  border-radius: 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 40px;
  color: #ffffffb9;
  background: var(--panel-soft);
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  position: absolute;
  top: 650px;
  left: 90px;
  display: flex;
  gap: 14px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a57a, #b88658);
  color: #2a1c15;
  box-shadow: 0 8px 18px #20130d52;
}

.btn-secondary {
  border: 1px solid #d4a57a9c;
  background: #2017158a;
  color: #f6ece1;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* ============ HABILIDADES ============ */
.skills-section {
  height: 100vh;
  overflow: hidden;
  background: url("imagens/curriculo-baixo-3.png") center/cover no-repeat;
}

/* ============ PROJETOS ============ */
.projects-section {
  min-height: 100vh;
  width: 100%;
  padding: 120px 40px 60px;
  background: url("imagens/imagem.baixo.png") top/cover no-repeat;
}

.projects-title {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 48px;
  color: var(--color-title);
  margin-bottom: 42px;
}

.projects-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 30px 24px;
  border-radius: 18px;
  background: linear-gradient(to right, #2b201aa3, #241a1594, #3a2a225c);
  border: 1px solid #d4a57a36;
  box-shadow: var(--shadow-soft);
}

.project-card h3 {
  font-family: var(--font-title);
  color: #fff8f1;
  font-size: 28px;
  margin-bottom: 14px;
}

.project-card p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 30px;
  color: #f0e2d4;
  margin-bottom: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #d4a57a2b;
  border: 1px solid #d4a57a61;
  color: #f7ece0;
  font-family: var(--font-body);
  font-size: 14px;
}

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

.project-links a {
  color: #f3c79f;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 10px;
}

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

.habilidades1 {
  position: absolute;
}

.habilidades1 .text-wrapper {
  position: relative;
  top: 47px;
  left: 550px;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--color-title);
  font-size: 50px;
}

.skill-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.tech-icon {
  position: relative;
  object-fit: contain;
}

.tech-icon[alt="HTML5"] {
  width: 120px;
  height: 120px;
  top: 0;
  left: 10px;
}

.tech-icon[alt="CSS3"] {
  width: 120px;
  height: 120px;
  top: 0;
  left: 30px;
}

.tech-icon[alt="JavaScript"] {
  width: 220px;
  height: 120px;
  top: 0;
  left: 0;
}

.tech-icon[alt="Java"] {
  width: 220px;
  height: 120px;
  top: 0;
  right: 0;
}

.tech-icon[alt="Figma"] {
  width: 230px;
  height: 150px;
  top: 10px;
  right: 60px;
}

/* ============ EDUCACAO ============ */
.education-section {
  height: 100vh;
  width: 100vw;
  background: url("imagens/imagem.baixo.png") top/cover no-repeat;
}

.education-layout {
  justify-content: center;
  gap: 80px;
  align-items: flex-end;
  padding-bottom: 160px;
}

.education-title,
.contato1 {
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 60px;
  color: var(--color-title);
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
}

.education-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 550px;
  padding: 40px 60px;
  border-radius: 26px;
  background: linear-gradient(to right, #332c29b0, #27191469, #41342e42, #a5857813);
  color: var(--color-white);
  font-family: var(--font-body);
}

.page-left .education-box {
  width: 630px;
  padding-top: 110px;
}

.education-logo {
  width: 280px;
  height: 180px;
  object-fit: contain;
  border-radius: 26px;
}

.education-logo[alt="Colégio Objetivo"] {
  position: relative;
  top: -30px;
  width: 350px;
  height: 210px;
  object-fit: cover;
}

.education-logo[alt="Universidade São Judas Tadeu"] {
  width: 400px;
  height: 280px;
  border-radius: 30%;
}

.education-text p,
.education-text li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-white);
  text-align: center;
  line-height: 34px;
  list-style: none;
}

.education-text ul {
  padding-left: 0;
}

.education-text li::before {
  content: "• ";
}

.education-text li.education-note {
  color: #c4c4c4;
  font-size: 14px;
}

/* ============ CONTATO ============ */
.contact-section {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("imagens/imagem.baixo.png") top/cover no-repeat;
}

.contact-section .page-layout {
  justify-content: center;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 50px;
  border-radius: 20px;
  background: var(--panel-strong);
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-white);
}

.contact-item a {
  color: var(--color-link);
  text-decoration: none;
  word-break: break-word;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ============ BOTAO HAMBURGER ============ */
.hamburger {
  display: none;
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s;
}

@media (max-width: 1366px) {
  .navbar {
    padding: 16px 14px;
  }

  .navbar-logo {
    font-size: 18px;
  }

  .navbar-links {
    gap: 48px;
  }

  .navbar-links a {
    font-size: 12px;
  }

  .hero-actions {
    top: 610px;
    left: 60px;
  }

  .projects-title {
    font-size: 40px;
  }

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

  .project-card h3 {
    font-size: 24px;
  }

  .project-card p {
    font-size: 16px;
    line-height: 28px;
  }

  .hero {
    min-height: 100vh;
  }

  .meu-nome .text-wrapper {
    top: 80px;
    left: 48px;
    width: min(680px, calc(100% - 60px));
    font-size: 56px;
  }

  .sobre-mim .text-wrapper {
    top: 142px;
    left: 72px;
    font-size: 38px;
  }

  .meu-nome2 {
    top: 330px;
    left: 60px;
    width: min(680px, calc(100% - 60px));
    padding: 24px 26px;
    font-size: 18px;
    line-height: 32px;
  }

  .skills-section,
  .education-section,
  .contact-section {
    min-height: 100vh;
    height: auto;
  }

  .page-layout {
    max-width: 1240px;
    margin: 0 auto;
    gap: 26px;
  }

  .page-list li {
    font-size: 18px;
    line-height: 68px;
  }

  .page-box1,
  .page-box2 {
    margin-top: 120px;
    margin-right: 18px;
  }

  .page-box2 .page-list li {
    font-size: 18px;
    line-height: 52px;
  }

  .habilidades1 .text-wrapper {
    left: 50%;
    transform: translateX(-50%);
    top: 28px;
    font-size: 40px;
  }

  .tech-icon[alt="HTML5"],
  .tech-icon[alt="CSS3"] {
    width: 90px;
    height: 90px;
  }

  .tech-icon[alt="JavaScript"],
  .tech-icon[alt="Java"] {
    width: 170px;
    height: 90px;
  }

  .tech-icon[alt="Figma"] {
    width: 180px;
    height: 112px;
    right: 30px;
  }

  .education-layout {
    gap: 36px;
    padding-bottom: 110px;
  }

  .education-box {
    width: min(500px, 100%);
    padding: 30px 34px;
  }

  .page-left .education-box {
    width: min(560px, 100%);
    padding-top: 80px;
  }
}

@media (max-width: 1366px) and (max-height: 800px) and (min-width: 1101px) {
  .hero {
    min-height: 760px;
  }

  .meu-nome .text-wrapper {
    top: 74px;
    font-size: 52px;
  }

  .sobre-mim .text-wrapper {
    top: 132px;
    font-size: 34px;
  }

  .meu-nome2 {
    top: 296px;
  }

  .page-box1,
  .page-box2 {
    margin-top: 108px;
  }

  .education-layout {
    padding-bottom: 92px;
  }
}

@media (max-width: 1100px) {
  .navbar {
    padding: 16px 20px;
  }

  .navbar-links {
    gap: 24px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 96px 20px 32px;
  }

  .meu-nome .text-wrapper,
  .sobre-mim .text-wrapper,
  .meu-nome2 {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .meu-nome {
    height: auto;
  }

  .meu-nome .text-wrapper,
  .sobre-mim .text-wrapper {
    text-align: center;
  }

  .sobre-mim .text-wrapper {
    padding-top: 10px;
  }

  .meu-nome2 {
    margin-top: 12px;
    padding: 22px 20px;
  }

  .hero-actions {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .skills-section,
  .projects-section,
  .education-section,
  .contact-section {
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .habilidades1,
  .education-title,
  .contato1 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .habilidades1 .text-wrapper,
  .education-title,
  .contato1 {
    transform: none;
    font-size: 32px;
    padding: 0 16px 18px;
  }

  .page-layout,
  .education-layout,
  .contact-section .page-layout {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 24px;
    padding: 0 20px;
  }

  .page-box1,
  .page-box2 {
    width: min(720px, 100%);
    margin: 0;
    align-self: center;
  }

  .skill-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .tech-icon {
    top: auto;
    left: auto;
    right: auto;
  }

  .education-box,
  .page-left .education-box {
    width: min(720px, 100%);
    padding-top: 32px;
  }

  .projects-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    min-height: auto;
  }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 768px) {
  .navbar {
    justify-content: flex-start;
    padding: 14px 20px;
  }

  .navbar-logo {
    position: static;
    flex: 1;
    font-size: 13px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 998;

    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    padding: 0 20px;

    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    background: #2a1e1ae0;
    backdrop-filter: blur(10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, gap 0.35s ease;
  }

  .navbar-links.open {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
    padding: 24px 20px;
    gap: 22px;
  }

  .navbar-links a {
    font-size: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 42px;
    font-size: 9px;
    padding: 10px 14px;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 16px 36px;
  }

  .meu-nome {
    width: 100%;
    height: auto;
  }

  .meu-nome .text-wrapper {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 0;
    text-align: center;
    font-size: 28px;
  }

  .sobre-mim {
    height: auto;
  }

  .sobre-mim .text-wrapper {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    padding: 16px 0 0;
    text-align: center;
    font-size: 22px;
  }

  .meu-nome2 {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    margin: 12px 0 0;
    padding: 20px 18px;
    font-size: 15px;
    line-height: 28px;
    backdrop-filter: blur(6px);
    background: linear-gradient(to right, #201a18e0, #3a302c80, #72625a30, #a5857820);
  }

  .skills-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .projects-section {
    min-height: 100vh;
    min-height: 100svh;
    padding: 80px 16px 40px;
  }

  .projects-title {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .project-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .project-card h3 {
    font-size: 20px;
  }

  .project-card p {
    font-size: 15px;
    line-height: 24px;
  }

  .project-tags span {
    font-size: 12px;
  }

  .project-links a {
    font-size: 9px;
  }

  .habilidades1 {
    position: relative;
    width: 100%;
    height: auto;
  }

  .habilidades1 .text-wrapper {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 20px 16px 0;
    text-align: center;
    font-size: 20px;
    white-space: normal;
  }

  .page-layout {
    height: auto;
    padding: 20px 16px;
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }

  .page-box1,
  .page-box2 {
    width: 100%;
    max-width: 380px;
    margin: 0;
    align-self: center;
  }

  .page-list li {
    font-size: 15px;
    line-height: 44px;
  }

  .page-box2 .page-list li {
    font-size: 15px;
    line-height: 36px;
  }

  .skill-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tech-icon[alt="HTML5"],
  .tech-icon[alt="CSS3"] {
    width: 64px;
    height: 64px;
  }

  .tech-icon[alt="JavaScript"],
  .tech-icon[alt="Java"] {
    width: 120px;
    height: 64px;
  }

  .tech-icon[alt="Figma"] {
    width: 120px;
    height: 72px;
  }

  .education-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .education-title {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 16px 16px 20px;
    text-align: center;
    font-size: 20px;
    white-space: normal;
  }

  .education-layout {
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding-bottom: 40px;
    flex-direction: column;
  }

  .education-box,
  .page-left .education-box {
    width: calc(100% - 32px);
    max-width: 380px;
    padding: 24px 16px;
  }

  .education-logo[alt="Colégio Objetivo"] {
    top: 0;
    width: 180px;
    height: 110px;
  }

  .education-logo[alt="Universidade São Judas Tadeu"] {
    width: 180px;
    height: 130px;
  }

  .contact-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .contato1 {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 0 16px;
    text-align: center;
    font-size: 22px;
    white-space: normal;
  }

  .contact-section .page-layout {
    height: auto;
    padding: 0 16px 40px;
    flex-direction: column;
    align-items: center;
  }

  .contact-box {
    width: 100%;
    max-width: 380px;
    padding: 24px 18px;
  }

  .contact-item {
    font-size: 14px;
    flex-wrap: wrap;
  }
}
