/* =========================
   VARIÁVEIS DE CORES
========================= */
:root {
  --pink: #9b0d70;
  --purple: #7a4fff;
  --text: #e673a3;
  --card: #ffffff;
  --max-width: 1100px;

  /* Espaçamentos globais */
  --section-space: 110px;
}

/* =========================
   BODY / FUNDO
========================= */
body {
  background-image: url("images/background-final2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
  color: #f6f7f6;
  margin: 0;
}

/* =========================
   WRAPPER CENTRAL
========================= */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* =========================
   NAVBAR
========================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

nav .logo img {
  height: 60px;
}

nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
}

nav ul a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav ul a:hover {
  color: var(--pink);
}

/* =========================
   HERO
========================= */
.hero {
  padding: 40px 0;
}

.hero-left h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

.hero-left h1 span {
  color: var(--pink);
}

.hero-left p {
  color: #ddd;
  margin-bottom: 20px;
}

/* Botão */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border-radius: 28px;
  text-decoration: none;
}

/* =========================
   SEÇÕES
========================= */
.section {
  padding: var(--section-space) 0;
}

/* box branco de fundo */
.card-section {
  background: #ffffffd9;
  border-radius: 12px;
  padding: 50px;
  margin-top: 110px; /* separação moderna entre blocos */
  color: #8d0354;
}


.section h2 {
  color: var(--purple);
  border-left: 6px solid var(--pink);
  padding-left: 12px;
  margin-bottom: 25px;
}


/* SOBRE MIM */
.about .section-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.media img {
  height: 65px; /* reduzido — elegância */
}


/* PROJETOS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
   margin-top: auto;
  display: inline-block;
}

/* FORMULÁRIO */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-wrapper input,
.input-wrapper textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
}

.btn-primary {
  padding: 12px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  border: none;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 10px 0;
  color: #ffffff;
}

.social-links img {
  width: 30px;
  margin: 0 10px;
}

/* =========================
   CARROSSEL
========================= */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 450px;
  margin: 40px auto 120px auto; /* distância moderna do SOBRE MIM */
  overflow: hidden;
  border-radius: 15px;
}
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 28px;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

.carousel-dots {
  position: absolute;
  bottom: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.carousel-dots button {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: #bbb;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots .active {
  background: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }
  .prev, .next {
    font-size: 22px;
    padding: 8px 12px;
  }
}

/* ========== MENU HAMBURGUER ========== */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
}

/* Menu escondido por padrão em telas pequenas */
/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .about .section-inner {
    flex-direction: column;
    text-align: center;
  }

  .media img {
    height: 55px;
  }

  .carousel {
    height: 300px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    color: var(--pink);
    padding: 20px;
    border-radius: 12px;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  }

  .nav-list.active {
    display: flex;
  }

  nav ul a {
    color: var(--pink);
  }
}

.carousel-slide {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 0.8s ease-in-out;
z-index: 1;
}

.carousel-slide.active {
opacity: 1;
z-index: 2;
}

/* MENU MOBILE — CORREÇÃO */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text);
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {

  nav {
    position: relative;
    z-index: 9999;
  }

    .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 70px;
    right: 0;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    z-index: 9999;
    width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list a {
    color: var(--pink);
    font-size: 18px;
  }

    .nav-list a {
    color: var(--pink);
    font-size: 18px;
  }
}