:root {
  --bg-color: #ffffff;
  --dark-banner: #332B36;
  --text-dark: #111111;
  --text-muted: #777777;
  --pill-bg: #332B36;
  --pill-hover: #221c24;
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Evita rolagem horizontal indesejada no mobile */
}

/* HERO */
.hero {
  text-align: center;
  padding-top: 4rem;
  width: 100%;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-top: 0.3rem;
  margin-bottom: 4.5rem;
}

/* CONTAINER CENTRADO */
.banner-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 2rem auto;
  padding: 0 3rem;
  position: relative;
}

.banner-dark-card {
  background-color: var(--dark-banner);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 4rem 5rem;
  position: relative;
  min-height: 280px;
}

/* PHOTO BOOTH OVERLAY */
.photo-window {
  width: 500px;
  position: absolute;
  left: -50px;
  top: 40%;
  transform: translateY(-50%) rotate(-3.5deg);
  transform-origin: center center;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.photo-window img {
  width: 100%;
  display: block;
  pointer-events: auto;
}

.photo-window:hover {
  transform: translateY(-50%) rotate(0deg) scale(1.02);
}

/* BIO TEXT */
.bio-text {
  margin-left: 440px;
  color: #e2dfd2;
  font-size: 1.15rem;
  line-height: 1.75;
  text-align: left;
  max-width: 720px;
}

.bio-text p + p {
  margin-top: 1.2rem;
}

/* TAB NAV */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 4.5rem;
  margin: 5rem 0 4.5rem 0;
  position: relative;
  z-index: 30;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 2.6rem;
  font-weight: 400;
  color: #a0a0a0;
  cursor: pointer;
  transition: color 0.2s ease, font-weight 0.2s ease;
  position: relative;
  z-index: 35;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* TABS CONTENT */
.content-area {
  flex: 1;
}

.tab-content {
  display: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.tab-content.active {
  display: block;
}

/* PORTFOLIO PILLS */
.pills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.8rem;
  max-width: 980px;
  margin: 0 auto;
}

.pill-btn {
  background-color: var(--pill-bg);
  color: #ffffff;
  padding: 1.2rem 3rem;
  border-radius: 60px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill-btn:hover {
  background-color: var(--pill-hover);
  transform: translateY(-3px);
}

/* ABOUT SECTION */
.about-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-dark);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.about-text p + p {
  margin-top: 1.8rem;
}

/* CONTACT SECTION */
.contact-box {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.email-img {
  max-width: 520px;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}

.email-img:hover {
  transform: translateY(-2px);
}

.social-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.social-btn-img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.social-btn-img:hover {
  transform: scale(1.08);
}

/* GALERIAS E INTERNAS */
.project-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 3rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text-dark);
}

.category-title {
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gallery-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
  flex: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 2.5rem;
}

.project-card {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f2f2f2;
  border-radius: 6px;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-info h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.card-info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* FOOTER COPYRIGHT */
.site-footer {
  text-align: center;
  padding: 6rem 0 3rem 0;
  width: 100%;
}

.site-footer p {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* REGRAS RESPONSIVAS (TABLET E MOBILE) */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .tab-btn { font-size: 2.2rem; }
  .photo-window { width: 400px; left: -20px; top: 40%; }
  .bio-text { margin-left: 350px; font-size: 1rem; }
  .about-text { font-size: 1.05rem; }
  .pill-btn { font-size: 1.05rem; padding: 1rem 2.2rem; }
}

@media (max-width: 768px) {
  .hero { padding-top: 2.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero .subtitle { font-size: 1.1rem; margin-bottom: 2.5rem; }

  .banner-container {
    padding: 0 1.25rem;
    margin-bottom: 1rem;
  }

  .banner-dark-card {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }

  .photo-window {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: -50px auto 1.5rem auto;
    width: 100%;
    max-width: 300px;
    pointer-events: auto;
  }

  .photo-window:hover {
    transform: scale(1.02);
  }

  .bio-text {
    margin-left: 0;
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
  }

  .tab-nav {
    gap: 1.8rem;
    margin: 3rem 0 2.5rem 0;
  }

  .tab-btn {
    font-size: 1.5rem;
  }

  .tab-content {
    padding: 0 1.25rem;
  }

  .pills-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .pill-btn {
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  .about-text {
    font-size: 1rem;
    text-align: left;
  }

  .contact-box {
    margin-top: 2rem;
    gap: 2rem;
  }

  .social-buttons {
    gap: 1.5rem;
  }

  .social-btn-img {
    height: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-header, .gallery-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .category-title {
    font-size: 2.2rem;
  }

  .site-footer {
    padding: 4rem 0 2rem 0;
  }
}
