* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f6cfd5;
  --shape-1: #f0b9c1;
  --shape-2: #f8dde2;
  --shape-3: #efdfe0;

  --container: rgba(248, 239, 233, 0.96);
  --sidebar: rgba(238, 240, 223, 0.95);
  --card: #fdf9f8;

  --border: #e5c2cb;
  --text-main: #7b4959;
  --text-soft: #866972;
  --text-light: #a46a7d;

  --pink: #ef86ad;
  --pink-dark: #d96e95;
  --pink-soft: #fde7ee;

  --shadow-soft: rgba(157, 106, 125, 0.08);
  --shadow-strong: rgba(157, 106, 125, 0.16);

  --white: #ffffff;
  --green-soft: #f2f3e8;
}

body {
  font-family: "Quicksand", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* FUNDO */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: var(--shape-1);
  top: 40px;
  left: -40px;
}

.shape-2 {
  width: 240px;
  height: 240px;
  background: var(--shape-2);
  right: -30px;
  top: 120px;
}

.shape-3 {
  width: 220px;
  height: 220px;
  background: var(--shape-3);
  bottom: 40px;
  left: 10%;
}

/* CONTAINER GERAL */
.page {
  position: relative;
  z-index: 1;
  width: min(1280px, 92%);
  min-height: 88vh;
  margin: 30px auto;
  display: flex;
  background: var(--container);
  border: 1.5px solid var(--border);
  border-radius: 36px;
  box-shadow: 0 20px 45px var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* SIDEBAR */
.sidebar {
  width: 245px;
  background: var(--sidebar);
  border-right: 1.5px solid var(--border);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.logo-img {
  width: 76px;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: center;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-nav a {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  padding: 13px 16px 13px 18px;
  border-radius: 14px;
  transition: 0.25s ease;
  position: relative;
}

.sidebar-nav a:hover {
  background: var(--pink-soft);
  color: var(--pink-dark);
  transform: translateX(4px);
}

.sidebar-nav a.active {
  background: var(--pink-soft);
  color: var(--pink-dark);
  box-shadow: inset 0 0 0 1px rgba(217, 110, 149, 0.12);
}

.sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--pink);
  border-radius: 10px;
}

/* CONTEÚDO */
.main-content {
  flex: 1;
  padding: 34px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* SEÇÕES APP */
.app-section {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.app-section.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #fcf4f6 0%, #f8efe9 100%);
  border: 1.5px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 14px 30px rgba(157, 106, 125, 0.06);
}

.hero-tag,
.section-badge,
.mini-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-tag,
.section-badge {
  margin-bottom: 18px;
}

.mini-tag {
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 10px;
  color: var(--text-main);
}

.hero-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 14px;
}

.hero-description {
  max-width: 720px;
  line-height: 1.85;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.hero-buttons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  box-shadow: 0 10px 18px rgba(217, 110, 149, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--pink-dark);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--pink-soft);
}

.btn-small {
  padding: 10px 16px;
  font-size: 0.92rem;
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}

.btn-small:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--pink-dark);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--pink-soft);
}

/* HOME CARDS */
.home-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mini-card,
.section-card,
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(157, 106, 125, 0.05);
}

.mini-card {
  padding: 22px;
}

.mini-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.mini-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

/* PAINÉIS */
.section-card {
  padding: 28px;
}

.app-panel {
  min-height: 440px;
}

.section-header {
  margin-bottom: 18px;
}

.section-card h2 {
  font-size: 1.9rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.section-card p {
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1rem;
}

/* SKILLS */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pink-soft);
  border: 1px solid var(--border);
  color: var(--pink-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

/* CARDS GERAIS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px var(--shadow-strong);
}

.card h3 {
  color: var(--text-main);
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.card p {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}

.card small {
  display: block;
  color: var(--pink-dark);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* PROJETOS */
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  display: block;
}

.project-body {
  flex: 1;
}

.card-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* CONTATO */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-item {
  background: var(--green-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contact-item a,
.contact-item span:last-child {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--pink-dark);
}

/* FOOTER */
.footer {
  padding: 18px 4px 4px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: auto;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.4rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  z-index: 99;
  transition: 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
}

/* MODAL */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.image-modal.active {
  display: block;
}

.image-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 20, 28, 0.82);
  backdrop-filter: blur(8px);
}

.image-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-image {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  background: white;
  display: block;
  margin: 0 auto;
}

.modal-close,
.modal-nav {
  position: absolute;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  transition: 0.25s ease;
}

.modal-close:hover,
.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-close {
  top: 32px;
  right: 20px;
}

.modal-prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .home-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid var(--border);
    padding: 20px;
  }

  .logo-box {
    margin-bottom: 18px;
  }

  .sidebar-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-content {
    padding: 24px;
  }

  .sidebar-nav a.active::before {
    left: 50%;
    top: auto;
    bottom: -6px;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
  }
}

@media (max-width: 640px) {
  .page {
    width: 95%;
    margin: 16px auto 90px;
    border-radius: 24px;
  }

  .hero,
  .section-card,
  .card,
  .mini-card {
    border-radius: 20px;
    padding: 18px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-card h2 {
    font-size: 1.45rem;
  }

  .main-content {
    padding: 18px;
  }

  .btn,
  .btn-small {
    width: 100%;
  }

  .hero-buttons,
  .card-buttons {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .modal-close,
  .modal-nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .image-modal-content {
    padding: 24px 16px;
  }
}