* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html, body {
  scroll-behavior: smooth;
  background-color: #fff;
  color: #333;
  height: 100%;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: transparent;
  padding: 1rem;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #cab28c;
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
  color: #cab28c;
  transform: scale(1.05);
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 2rem 2rem;
  height: 100vh;
  max-width: 1200px;
  margin: auto;
}

.text-section {
  max-width: 600px;
  flex: 1;
}

.text-section small {
  color: #555;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

.text-section h1 {
  font-size: 2.8rem;
  color: #cab28c;
  margin-bottom: 1rem;
}

.text-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.btn {
  padding: 0.8rem 1.5rem;
  background-color: #cab28c;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background-color: #b09b7a;
}

.profile-box {
  position: relative;
  flex: 1;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.profile-info {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #cab28ca1;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 20px 0 20px 0;
  text-align: left;
  font-size: 0.9rem;
}

.profile-name {
  font-weight: bold;
}

.profile-handle {
  font-size: 0.85rem;
  color: #e0e0e0;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
  width: 100%;
  height: 100vh;
  max-width: 1200px;
  margin: auto;
}

.full-height-section {
  height: 100vh;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #f0f0f0;
}

/* Sobre Mim */
.sobre-section {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  height: 100vh;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.sobre-imagem {
  flex: 1;
}

.sobre-imagem img {
  width: 100%;
  border-radius: 10px;
  max-width: 650px;
  height: auto;
  display: block;
}

.sobre-texto {
  flex: 1;
}

.sobre-texto h2 {
  font-size: 2.2rem;
  color: #cab28c;
  margin-bottom: 1rem;
}

.sobre-texto p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* Animações ao rolar */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsivo */
@media (max-width: 900px) {
  header,
  .sobre-section {
    flex-direction: column;
    height: auto;
    padding-top: 8rem;
  }

  .image-wrapper,
  .sobre-imagem img {
    max-width: 100%;
  }

  .text-section,
  .profile-box,
  .sobre-imagem,
  .sobre-texto {
    width: 100%;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  section {
    height: auto;
  }
}

/* ===== ANIMAÇÕES DO HEADER ===== */
.from-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: none;
}

.from-top {
  opacity: 0;
  transform: translateY(-50px);
  transition: none;
}

.from-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: none;
}

.from-right {
  opacity: 0;
  transform: translateX(50px);
  transition: none;
}

.animate .from-left {
  animation: fromLeft 1s forwards;
}

.animate .from-top {
  animation: fromTop 1s forwards;
}

.animate .from-bottom {
  animation: fromBottom 1s forwards;
}

.animate .from-right {
  animation: fromRight 1s forwards;
}

.animate .group-left small {
  animation: fromLeft 1s forwards;
  animation-delay: 0s;
}

.animate .group-left h1 {
  animation: fromLeft 1s forwards;
  animation-delay: 0.3s;
}

@keyframes fromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fromTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fromBottom {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
