:root {
  --primary-color: #4B0082;   /* Deep Indigo / Roxo */
  --primary-dark: #2D1B4E;    /* Darker Indigo */
  --accent-color: #32CD32;    /* Lime Green */
  --accent-hover: #28a428;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f9f9f9;
  --bg-dark: #1a1a1a;
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   HEADER + NAVEGAÇÃO (DESKTOP)
========================================= */

header {
  background-color: transparent;
  padding: 1.5rem 5%;
  position: absolute;              /* sobre a hero */
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--primary-color);
}

/* botão nav padrão (se usar) */
.nav-btn {
  background-color: var(--primary-color);
  color: white !important;
  padding: 10px 25px;
  border-radius: 30px;
}

.nav-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* botão CONTACT roxo */
.btn-contact {
  background: #7425f5;
  color: #fff;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn-contact:hover {
  background: #5c1dc5;
  transform: translateY(-2px);
}

/* BOTÃO HAMBÚRGUER (BASE – escondido no desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  height: 100vh;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03);
  text-transform: uppercase;
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
}

.hero-main-content {
  position: absolute;
  top: 50%;
  left: 12%;
  transform: translateY(-50%);
  text-align: left;
}

.hello-text {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 6px;
  text-align: left;
}

.main-name {
  font-size: 5rem;
  font-weight: 900;
  color: #222;
  line-height: 1.05;
  margin: 0 0 10px 0;
  text-align: left;
}

.sub-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  margin-top: 6px;
  line-height: 1.35;
  text-align: left;
}

/* HIRE ME – círculo girando */
.hire-me-wrapper {
  position: absolute;
  left: 68%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 20;
  cursor: pointer;
}

.hire-me-circle {
  position: relative;
  width: 160px;
  height: 160px;
  animation: spin 10s linear infinite;
  transition: transform 0.3s ease;
}

.hire-me-svg {
  width: 100%;
  height: 100%;
}

.hire-me-svg text {
  letter-spacing: 0.6px;
}

.hire-me-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #22c55e;
}

.hire-me-wrapper:hover .hire-me-circle {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(108, 33, 237, 0.28));
}

.hire-me-wrapper:hover .hire-me-icon {
  color: #16a34a;
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* FOTO DA HERO */
.hero-image-container {
  position: absolute;
  bottom: -86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: flex-end;
}

.hero-profile-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* MARQUEE ROXA (SPECIALTIES) */
.specialties-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 14px 0;
  overflow: hidden;
  z-index: 10;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  white-space: nowrap;
}

.marquee-group span {
  padding: 0 2.5rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   SEÇÕES GERAIS
========================================= */

section {
  padding: 80px 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* =========================================
   SERVICES
========================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* =========================================
   ABOUT
========================================= */

#about {
  padding: 40px 0 80px;
}

.about-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.about-img img {
  width: 500px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}

.about-text {
  max-width: 550px;
  text-align: left;
  margin-top: -60px;
}

.about-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.about-subtitle {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1.1rem;
  line-height: 1.4;
}

.about-text p {
  margin-bottom: 1.3rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #333;
}

.about-text .btn {
  margin-top: 0.5rem;
}

/* estado "visível" da animação (JS adiciona .about-visible na container) */
.about-container.about-visible .about-img,
.about-container.about-visible .about-text {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   BOTÕES GERAIS
========================================= */

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 30px;
  margin-top: 2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark);
}

/* =========================================
   EDUCATION & WORK
========================================= */

.resume-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 20px;
}

.resume-column h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.timeline-item {
  margin-bottom: 1.7rem;
  padding-left: 20px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* coluna de work com scroll */
.resume-column.work-column {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
}

.resume-column.work-column::-webkit-scrollbar {
  width: 6px;
}

.resume-column.work-column::-webkit-scrollbar-thumb {
  background-color: #c7c7c7;
  border-radius: 4px;
}

.resume-column.work-column::-webkit-scrollbar-track {
  background: transparent;
}

/* botão do certificado centralizado */
.resume-cta {
  text-align: center;
  margin-top: 2rem;
}

.resume-cta .btn {
  margin: 0 auto;
}

/* =========================================
   SKILLS MARQUEE
========================================= */

.skills-section {
  margin-top: -2rem;
  overflow: hidden;
  padding: 2rem 0;
  background: var(--bg-light);
}

.skills-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.skill-logo {
  height: 50px;
  filter: grayscale(100%);
  opacity: 0.7;
}

.skill-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================
   PROJECTS
========================================= */

#projects {
  margin-top: 5rem;
  padding: 4rem 2rem 4rem;
}

#projects .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
}

/* header (não está usando muito, mas mantive) */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.projects-subtitle {
  font-size: 1rem;
  color: #777;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.view-all-btn .plus {
  background: white;
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
}

.view-all-btn:hover {
  transform: translateY(-3px);
}

/* cards */
.project-card {
  background: #f6f4ff;
  border-radius: 30px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card.reverse {
  flex-direction: row-reverse;
}

.project-image {
  flex: 0 0 45%;
}

.project-image img {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  object-fit: cover;
}

.project-content {
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background: #d7d0ff;
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.project-content p {
  color: #555;
  margin-bottom: 1.5rem;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #d0f7d6;
  color: #1b8a34;
  font-weight: 600;
  border-radius: 50px;
}

.details-btn .plus {
  background: white;
  color: #1b8a34;
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
}

.details-btn:hover {
  transform: translateY(-2px);
}

/* =========================================
   CONTACT
========================================= */

#contact {
  padding: 6rem 0 5rem;
}

#contact .contact-section {
  text-align: center;
}

#contact .section-title {
  font-size: 2.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

#contact .contact-intro {
  max-width: 520px;
  margin: 0 auto 3rem;
  color: #555;
  line-height: 1.6;
}

#contact .contact-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

#contact .contact-item {
  background: #f7f4ff;
  border-radius: 20px;
  padding: 2rem 2.4rem;
  min-width: 230px;
  max-width: 280px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.04);
  text-align: center;
}

#contact .contact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

#contact .contact-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4ffe9;
  color: #18b63c;
  font-size: 1.3rem;
}

#contact .contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

#contact .contact-item p,
#contact .contact-item a {
  font-size: 0.98rem;
  color: #444;
}

#contact .contact-item a {
  font-weight: 500;
}

#contact .contact-item a:hover {
  text-decoration: underline;
}

#contact .contact-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

#contact .contact-social-label {
  font-size: 0.95rem;
  color: #777;
}

#contact .social-links {
  display: flex;
  gap: 1rem;
}

#contact .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1ecff;
  color: var(--primary-color);
  font-size: 1.1rem;
}

#contact .social-icon:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* =========================================
   FOOTER
========================================= */

footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* =========================================
   GALERIA (PÁGINAS SECUNDÁRIAS)
========================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 5%;
}

.gallery-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* MODAL GENÉRICO (compartilhado) */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* =========================================
   DESIGN PAGE / CARROSSEL
========================================= */

/* página de design mantendo footer no fim */
.design-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.design-page main {
  flex: 1;
}

.design-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* seção do carrossel */
.design-carousel-section {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 0;
  position: relative;
}

.design-carousel-section .section-title {
  margin-bottom: 3rem;
}

.carousel-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* trilho */
.carousel-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  will-change: transform;
  transition: transform 0.45s ease;
}

/* cards */
.carousel-item {
  width: 280px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  flex: 0 0 auto;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* setas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 22px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }

/* dots */
.carousel-dots {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #ddd;
  cursor: pointer;
}

.carousel-dot.active {
  width: 22px;
  background: var(--primary-color);
}

/* modal específico do design (mesmo modal genérico, só centralização) */
#mediaModal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
}

#mediaModal img,
#mediaModal video {
  max-width: 80vw;
  max-height: 80vh;
}

/* =========================================
   RESPONSIVO
========================================= */

/* projetos em coluna no mobile médio */
@media (max-width: 900px) {
  .project-card,
  .project-card.reverse {
    flex-direction: column;
    text-align: center;
  }

  .projects-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* MOBILE GERAL */
@media (max-width: 768px) {

  /* ===== HEADER + MENU MOBILE ===== */
  header {
    padding: 1.2rem 1.5rem;
    position: absolute;  /* continua sobre a hero */
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
  }

  /* esconde a nav em linha e transforma em painel lateral */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: rgba(250, 249, 255, 0.98);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1100;
    padding: 5rem 1.75rem 2rem;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  /* animação X */
  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* ===== HERO MOBILE ===== */
  .hero {
    height: auto;
    padding: 6.5rem 1.5rem 0;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-bg-text {
    font-size: 25vw;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
  }

  .hero-main-content {
    position: static;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 0.4rem;
  }

  .hello-text {
    font-size: 0.95rem;
  }

  .main-name {
    font-size: 2.6rem;
  }

  .sub-title {
    font-size: 1.1rem;
  }

  /* hire me mais perto da cabeça */
  .hire-me-wrapper {
    position: absolute;
    right: 12%;
    top: 52%;
    transform: translateY(-50%);
  }

  .hire-me-circle {
    width: 120px;
    height: 120px;
  }

  .hero-image-container {
    position: static;
    transform: none;
    margin: 0.3rem auto 0;
    max-width: 360px;
    height: auto;
  }

  .hero-profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .specialties-marquee {
    position: static;
    margin-top: 0;
  }

  /* ===== ABOUT MOBILE ===== */
  #about {
    padding: 48px 1.5rem 64px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
  }

  .about-img img {
    width: 260px;
  }

  .about-text {
    margin-top: 0;
    max-width: 100%;
  }

  .about-title {
    font-size: 2.2rem;
  }

  /* ===== RESUME / GRID MOBILE ===== */
  .resume-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* ===== PROJECTS MOBILE ===== */
  #projects {
    padding: 3rem 1.5rem 3.5rem;
  }

  /* ===== CONTACT MOBILE ===== */
  #contact .contact-section {
    padding: 4rem 1.5rem 3.5rem;
  }

  #contact .contact-grid {
    gap: 1.5rem;
  }

  #contact .contact-item {
    width: 100%;
    max-width: 320px;
  }

  /* ===== CARROSSEL DESIGN MOBILE ===== */
  .design-carousel-section {
    min-height: auto;
    padding: 5rem 0 3rem;
  }

  .carousel-item {
    width: 220px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
}
