@import url("https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f3eee6;
  --text: #28231e;
  --cream: rgba(232, 219, 201, 0.78);
  --orange: #ff7a00;
  --blue: #233f7c;
  --about-blue: #062b68;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 222, 169, 0.6), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(255, 157, 0, 0.12), transparent 30%),
    linear-gradient(135deg, #fbf7ef 0%, var(--bg) 48%, #eee4d7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 50%, black, transparent 65%);
  opacity: 0.35;
  z-index: 0;
}

/* HEADER */
.header {
  position: fixed;
  top: 22px;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
}

.nav {
  background: rgba(232, 219, 201, 0.7);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 12px 46px;
  display: flex;
  gap: 62px;
  box-shadow:
    0 18px 50px rgba(80, 55, 24, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 22px;
}

.contact-btn {
  position: absolute;
  right: 88px;
  top: -4px;
  border: none;
  background: linear-gradient(180deg, #ff9418 0%, #ff7900 100%);
  color: white;
  padding: 18px 35px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 18px 35px rgba(255, 122, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sound-btn {
  position: absolute;
  right: 28px;
  top: -4px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #eadfcf, #d6c7b1);
  font-size: 22px;
  cursor: pointer;
  box-shadow:
    0 16px 35px rgba(80, 55, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* HERO COMO CARTÃO */
.hero {
  height: 200vh;
  position: relative;
  z-index: 5;
  background: transparent;
  pointer-events: none;
}

.hero-card {
  position: fixed;
  inset: 0;
  background: var(--bg);
  border-radius: 0 0 42px 42px;
  transform-origin: center top;
  z-index: 10;
  will-change: transform, opacity;
  pointer-events: auto;
  transition: opacity 0.18s linear, visibility 0.18s linear;
}
.hero-text {
  position: absolute;
  left: 8.8vw;
  top: 33vh;
  z-index: 10;
}

.hero-text h1 {
  font-size: clamp(72px, 8vw, 142px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -6px;
  color: #28231e;
}

.tag {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  margin-left: 215px;
  background: linear-gradient(135deg, #264a93, var(--blue));
  color: white;
  padding: 10px 20px;
  font-size: clamp(18px, 1.4vw, 28px);
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-3deg);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: 2;
}

/* ÁREA DE TRANSIÇÃO */


/* ABOUT FUTURISTA */
.about-3d {
  position: relative;
  z-index: 1;
  min-height: 120vh;
  margin-top: -100vh;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 210, 255, 0.34), transparent 26%),
    linear-gradient(180deg, var(--about-blue) 0%, #031330 100%);
  overflow: hidden;
}

.about-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 200, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(600px) rotateX(55deg) translateY(120px);
  opacity: 0.55;
  z-index: 0;
}



#about-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


.about-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* BASE DOS CARDS */
.about-card {
  position: absolute;
  background: rgba(10, 30, 80, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  color: white;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  max-width: 260px;
}

/* POSIÇÕES ORGANIZADAS */

.about-card.left {
  top: 35%;
  left: 10%;
}

.about-card.center {
  bottom: 25%;
  left: 12%;
  max-width: 300px;
}

.about-card.right {
  top: 35%;
  right: 10%;
}

/* CARDS GRANDES AJUSTADOS */
.about-card.extra.ai {
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  text-align: center;
}

.about-card.extra.exp {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  text-align: center;
}
.about-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.about-card li {
  margin: 8px 0;
}

.about-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #21d8ff, transparent);
  box-shadow: 0 0 14px #21d8ff;
  z-index: 2;
  transform-origin: left center;
  animation: linePulse 2s ease-in-out infinite alternate;
}

.about-line.line-1 {
  width: 180px;
  top: 38%;
  left: 34%;
}

.about-line.line-2 {
  width: 160px;
  top: 47%;
  right: 35%;
}

.about-line.line-3 {
  width: 150px;
  bottom: 36%;
  left: 33%;
}

@keyframes cardGlow {
  from {
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.18);
  }

  to {
    box-shadow: 0 0 36px rgba(0, 220, 255, 0.45);
  }
}

@keyframes linePulse {
  from {
    opacity: 0.35;
    transform: scaleX(0.82);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
@media (max-width: 768px) {
  .header {
    top: 12px;
    padding: 0 10px;
  }

  .nav {
    width: calc(100vw - 24px);
    justify-content: center;
    gap: 18px;
    padding: 10px 12px;
  }

  .nav a {
    font-size: 12px;
  }

  .contact-btn,
  .sound-btn {
    display: none !important;
  }

  .hero {
    height: 175vh;
  }

  .hero-card {
    border-radius: 0 0 28px 28px;
  }

  .hero-text {
    top: 115px;
    left: 0;
    width: 100%;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 52px;
    line-height: 0.9;
    letter-spacing: -3px;
  }

  .tag {
    margin-left: 0;
    margin-top: 18px;
    font-size: 14px;
    padding: 8px 16px;
  }

  #hero-canvas {
    height: 100vh;
  }

  .about-3d {
    margin-top: -85vh;
    min-height: 190vh;
    overflow: hidden;
  }

  .about-container {
    height: 190vh;
    padding-top: 95px;
  }

  .about-card {
    position: absolute;
    width: min(86vw, 330px);
    max-width: 330px;
    padding: 16px 18px;
    z-index: 4;
  }

  .about-card h3 {
    font-size: 24px;
  }

  .about-card.left {
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-card.center {
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-card.right {
    top: 43%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .about-card.extra.ai {
    top: 63%;
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    text-align: left;
  }

  .about-card.extra.exp {
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
  }

  .about-line {
    display: none;
  }
}
.projects-section {
  min-height: 100vh;
  background: #f3eee6;
  padding: 120px 8vw;
  position: relative;
  z-index: 3;
  border-radius: 42px 42px 0 0;
}

.projects-container {
  max-width: 1180px;
  margin: 0 auto;
}

.projects-label {
  display: inline-block;
  background: #233f7c;
  color: #fff;
  font-weight: 900;
  padding: 6px 12px;
  transform: rotate(-5deg);
  margin-left: -8px;
  margin-bottom: 6px;
}

.projects-section h2 {
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.9;
  margin-bottom: 55px;
  color: #28231e;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 28px;
}
.gradient-barest {
  background:
    radial-gradient(circle at top left, #d4a63a 0%, transparent 35%),
    linear-gradient(135deg, #0b1f1a, #16352d);
}
.gradient-checker {
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.25), transparent 35%),
    linear-gradient(135deg, #0b4f4a, #0f766e);
}

.project-card {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}
.contact-icons {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  gap: 18px;
  margin-top: 38px;
}

.contact-link {
  height: 72px;
  border-radius: 22px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-decoration: none;
  font-weight: 900;
  color: #28231e;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 35px rgba(80, 55, 24, 0.12);
}

.contact-link i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #fff;
}

.contact-link strong {
  font-size: 17px;
}

.contact-link:hover {
  transform: translateY(-6px);
}

/* cores só no ícone, não no botão inteiro */
.contact-link.whatsapp i {
  color: #25d366;
}

.contact-link.github i {
  color: #111;
}

.contact-link.linkedin i {
  color: #0a66c2;
}

.contact-link.email i {
  color: #28231e;
}
.project-thumb {
  height: 190px;
  border-radius: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 22px 35px rgba(50, 35, 15, 0.12);
}

.project-card h3 {
  font-size: 22px;
  color: #28231e;
}

.project-card p {
  color: rgba(40, 35, 30, 0.7);
  font-size: 15px;
  margin-top: 4px;
}

.gradient-ai {
  background: radial-gradient(circle, #00eaff, #153f8f);
}

.gradient-game {
  background: linear-gradient(135deg, #ff8a00, #6b35ff);
}

.gradient-access {
  background: linear-gradient(135deg, #00c2ff, #005f73);
}

.gradient-web {
  background: linear-gradient(135deg, #111827, #2563eb);
}

.gradient-shop {
  background: linear-gradient(135deg, #16a34a, #f59e0b);
}

.new-project {
  border-radius: 14px;
}

.new-project .plus {
  height: 190px;
  border-radius: 14px;
  border: 2px dashed rgba(40, 35, 30, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  color: rgba(40, 35, 30, 0.55);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .projects-section {
    padding: 90px 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-thumb,
  .new-project .plus {
    height: 170px;
  }
}
.contact-section {
  min-height: 100vh;
  background: #eadfce;
  padding: 130px 8vw;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.contact-content h2 {
  font-size: clamp(56px, 6vw, 100px);
  line-height: 1;
  letter-spacing: -4px;
  color: #28231e;
}




.contact-avatar {
  position: absolute;
  left: 34%;
  top: 10%;
  width: 220px;
  height: 430px;
}


.contact-visual {
  position: relative;
  height: 620px;
  border-radius: 42px;
  overflow: hidden;

  background:
    radial-gradient(circle at top right, rgba(255,122,0,0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(35,63,124,0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.04));

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.4);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 30px 60px rgba(80,55,24,0.12);
}

#contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;

  padding: 16px 22px;

  border-radius: 18px;

  background: rgba(255,255,255,0.72);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.5);

  font-weight: 800;

  color: #28231e;

  box-shadow:
    0 18px 40px rgba(80,55,24,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);

  animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
  top: 90px;
  right: 70px;
}
.lang-btn {
  position: absolute;
  right: 28px;
  top: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: rgba(232,219,201,.8);
  backdrop-filter: blur(14px);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(80,55,24,.12);
  z-index: 60;
}

.lang-option {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  opacity: .45;
  transition: .25s ease;
}

.lang-option.active {
  opacity: 1;
  background: rgba(255,255,255,.78);
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(80,55,24,.16);
}

.lang-divider {
  width: 1px;
  height: 22px;
  background: rgba(40,35,30,.15);
}

.lang-btn:focus-visible,
.sound-btn:focus-visible,
.contact-btn:focus-visible,
.nav a:focus-visible,
.contact-link:focus-visible {
  outline: 4px solid #ff7a00;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .lang-btn {
    top: 62px;
    right: 12px;
    transform: scale(.9);
  }
}

.card-2 {
  bottom: 120px;
  left: 70px;
  animation-delay: 1s;
}

.card-3 {
  top: 240px;
  left: 120px;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%,100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.paper {
  position: absolute;
  width: 90px;
  height: 52px;
  background: #f8f8f8;
  border-radius: 4px;
  transform: rotate(-12deg);
  box-shadow: 0 10px 18px rgba(80, 55, 24, 0.12);
}

.paper-1 {
  left: 16%;
  bottom: 15%;
}

.paper-2 {
  right: 17%;
  top: 48%;
}

.contact-avatar {
  animation: avatarFloat 3.5s ease-in-out infinite;
}

.avatar-arms {
  animation: armsMove 2.6s ease-in-out infinite;
  transform-origin: center;
}

.box {
  animation: boxFloat 4s ease-in-out infinite;
}

.box-2 {
  animation-delay: 0.5s;
}

.box-3 {
  animation-delay: 1s;
}

.paper {
  animation: paperFloat 3s ease-in-out infinite;
}

.paper-2 {
  animation-delay: 0.7s;
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes armsMove {
  0%, 100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-4deg);
  }
}

@keyframes boxFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes paperFloat {
  0%, 100% {
    transform: translateY(0) rotate(-12deg);
  }

  50% {
    transform: translateY(-12px) rotate(-4deg);
  }
}

@keyframes walk {
  0% {
    left: 5%;
    transform: scaleX(1);
  }

  45% {
    left: 70%;
    transform: scaleX(1);
  }

  50% {
    transform: scaleX(-1);
  }

  95% {
    left: 5%;
    transform: scaleX(-1);
  }

  100% {
    transform: scaleX(1);
  }
}.boxes-left {
  position: absolute;
  bottom: 0;
  left: 5%;
}

.box {
  width: 80px;
  height: 60px;
  background: #d9bd98;
  border-radius: 6px;
  margin-top: 10px;
}.boxes-right {
  position: absolute;
  bottom: 0;
  right: 10%;
  display: flex;
  flex-direction: column-reverse;
}
@media (max-width: 768px) {
  .contact-section {
    padding: 90px 24px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-content h2 {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .contact-visual {
    height: 520px;
    transform: scale(0.85);
    transform-origin: top center;
  }

 .contact-icons {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-link {
    width: 100%;
  }
}