/* =========================================================
   DESIGN SYSTEM — Portfólio Kawaii/Y2K
   Cores, tipografia e componentes replicados da referência
   ========================================================= */

:root {
  --cream:        #FFF6E8;
  --pink:         #FF5FA8;
  --pink-deep:    #E8388B;
  --pink-soft:    #FFD3EA;
  --purple:       #6B3CF0;
  --purple-soft:  #C9B8FF;
  --yellow:       #FFE156;
  --green:        #A6E58F;
  --green-deep:   #4FAE6B;
  --blue:         #5AC8E0;
  --wine:         #7A1F45;
  --ink:          #241933;
  --white:        #FFFFFF;

  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body:    'Quicksand', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  overflow-x: hidden;
}

h1, h2 {
  font-family: var(--font-display);
  margin: 0;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  z-index: 1000;
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1001;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--pink-deep);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--pink);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cursor-ring.cursor-hover {
  width: 64px;
  height: 64px;
  background: rgba(255, 95, 168, 0.15);
  border-color: var(--purple);
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  .cursor-dot,
  .cursor-ring { display: block; }
  a, img, video, button, .cloud, .tool-tile { cursor: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--purple);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 90s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  white-space: nowrap;
  padding-right: 32px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

p { line-height: 1.6; }

/* ---------- Dashed divider ---------- */
.divider {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--pink) 0 10px,
    transparent 10px 20px
  );
  background-position: center;
  margin: 0 auto;
  max-width: 1100px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--pink);
  padding: 70px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  color: var(--white);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow:
    -3px -3px 0 var(--pink-deep),
     3px -3px 0 var(--pink-deep),
    -3px  3px 0 var(--pink-deep),
     3px  3px 0 var(--pink-deep),
     0    5px 0 var(--pink-deep),
     6px  8px 0 var(--pink-deep);
}

.hero-emoji {
  text-shadow: none;
  font-size: 0.5em;
  vertical-align: middle;
}

.hero-sub {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
}

.sparkle {
  position: absolute;
  color: var(--yellow);
  font-size: 32px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15));
}
.s1 { top: 24px; left: 12%; font-size: 26px; }
.s2 { top: 60%; right: 10%; font-size: 40px; }
.s3 { bottom: 18px; left: 30%; font-size: 22px; }

/* ---------- ABOUT ---------- */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 40px;
  color: var(--pink-deep);
  margin-bottom: 18px;
}

.about-text .hl {
  background: var(--yellow);
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 700;
}

.contact-chip {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-chip span {
  background: var(--white);
  border: 2px dashed var(--pink);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.about-photo {
  position: relative;
  justify-self: center;
}

.photo-frame {
  position: relative;
  width: 280px;
  height: 340px;
  background: linear-gradient(160deg, var(--purple-soft), var(--pink-soft));
  border: 6px solid var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 0 rgba(107, 60, 240, 0.15);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}

/* Hover: leve zoom + inclinação */
.about-photo:hover .photo-frame {
  transform: rotate(2deg) scale(1.05);
  box-shadow: 0 16px 0 rgba(107, 60, 240, 0.18);
}

.photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cross-fade: foto original visível; a nova só aparece no hover */
.photo-hover {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-photo:hover .photo-hover { opacity: 1; }

.washi-tape {
  position: absolute;
  top: -14px;
  left: 20px;
  width: 90px;
  height: 30px;
  background: repeating-linear-gradient(45deg, var(--yellow), var(--yellow) 8px, #fff2b0 8px, #fff2b0 16px);
  opacity: 0.9;
  transform: rotate(-8deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge-sticker {
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(10deg);
}

.badge-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-hover { opacity: 0; }

.about-photo:hover .badge-default { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
.about-photo:hover .badge-hover  { opacity: 1; transform: translate(-50%, -50%) rotate(8deg); }

/* Selo de câmera que surge no hover */
.camera-sticker {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 52px;
  height: 52px;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg) scale(0);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  pointer-events: none;
}
.camera-sticker img {
  width: 32px;
  height: 32px;
  display: block;
}
.about-photo:hover .camera-sticker {
  opacity: 1;
  transform: rotate(-12deg) scale(1);
}

/* ---------- TRAITS (cloud tags) ---------- */
.traits {
  max-width: 900px;
  margin: 40px auto 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 20px;
  padding: 0 24px;
}

.cloud {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  padding: 16px 32px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  white-space: nowrap;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border: 3px solid var(--ink);
  border-radius: 50%;
  z-index: -1;
}

.cloud::before { width: 26px; height: 26px; top: -14px; left: 18%; }
.cloud::after  { width: 20px; height: 20px; top: -10px; right: 22%; }

.cloud-pink   { background: var(--pink-soft); }
.cloud-yellow { background: var(--yellow); }
.cloud-green  { background: var(--green); }
.cloud-purple { background: var(--purple-soft); }
.cloud-blue   { background: var(--blue); }

.offset-up   { transform: translateY(-8px) rotate(-2deg); }
.offset-down { transform: translateY(8px) rotate(2deg); }

/* Hover interativo dos bullets: zoom, estrelinha e tooltip */
.traits .cloud {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.traits .cloud:hover { z-index: 6; }
.traits .offset-up:hover   { transform: translateY(-18px) scale(1.09) rotate(-2deg); }
.traits .offset-down:hover { transform: translateY(-2px) scale(1.09) rotate(2deg); }

.cloud-star {
  position: absolute;
  top: -20px;
  right: -12px;
  font-size: 22px;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink);
  opacity: 0;
  transform: scale(0) rotate(-40deg);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 3;
}
.traits .cloud:hover .cloud-star,
.tool-tile:hover .cloud-star {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: star-twinkle 1.4s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { filter: brightness(1); transform: scale(1) rotate(0deg); }
  50%      { filter: brightness(1.3); transform: scale(1.18) rotate(12deg); }
}

.cloud-tip {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  width: max-content;
  max-width: 210px;
  white-space: normal;
  text-align: center;
  box-shadow: 0 6px 16px rgba(36, 25, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 4;
}
.cloud-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--ink);
}
.traits .cloud:hover .cloud-tip,
.tool-tile:hover .cloud-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- TOOLS ---------- */
.tools {
  background: var(--purple);
  padding: 56px 24px;
  text-align: center;
}

.tools h2 {
  color: var(--white);
  font-size: 44px;
  text-shadow:
    -2px -2px 0 var(--ink),
     2px -2px 0 var(--ink),
    -2px  2px 0 var(--ink),
     2px  2px 0 var(--ink);
  margin-bottom: 32px;
}

.tools-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.tool-tile {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  border: 4px dashed var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  transform: rotate(-2deg);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tool-tile:nth-child(even) { transform: rotate(2deg); }

.tool-tile:hover { transform: scale(1.1) rotate(-2deg); z-index: 6; }
.tool-tile:nth-child(even):hover { transform: scale(1.1) rotate(2deg); }

.tile-pink    { background: var(--pink); }
.tile-lime    { background: var(--green-deep); }
.tile-outline { background: transparent; color: var(--white); }
.tile-blue    { background: var(--blue); }

.skills-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.skills-row span {
  background: var(--white);
  color: var(--purple);
  border: 2px dashed var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-body);
}

/* ---------- CHAMADA DOS TRABALHOS ---------- */
.works-intro {
  position: relative;
  text-align: center;
  padding: 72px 24px 40px;
  overflow: hidden;
}

.works-intro-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.05;
  color: var(--pink-deep);
  text-shadow: 3px 3px 0 var(--pink-soft);
}

.works-intro-sub {
  max-width: 480px;
  margin: 18px auto 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.works-spark {
  position: absolute;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink);
  pointer-events: none;
}
.works-spark-1 { top: 40px; left: 14%; font-size: 40px; }
.works-spark-2 { bottom: 30px; right: 16%; font-size: 30px; }

/* ---------- PORTFOLIO ---------- */
.portfolio {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio-section {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.cloud-title {
  font-size: 22px;
  padding: 18px 40px;
}

/* ---------- Brand rows (faixas horizontais por empresa) ---------- */
.brand-row {
  margin-bottom: 32px;
}

.brand-label {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--pink-deep);
  margin: 0 0 14px 4px;
}

/* Ticker/marquee — inspirado no .hero-ticker-wrapper do Rheva.
   Auto-scroll contínuo via JS (scrollLeft), o que permite conviver com
   as setas de navegação. O wrapper posiciona as setas sobre a faixa. */
.brand-strip {
  position: relative;
  padding: 0;
}

.brand-viewport {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  /* espaço vertical DENTRO do container de recorte para a sombra
     dos slides não ser cortada em linha reta ("corte seco") */
  padding: 36px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.brand-viewport::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 auto;
  margin-right: 20px;
}

.slide img,
.slide video {
  display: block;
  height: 300px;
  width: auto;
  max-width: 340px;
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(36, 25, 51, 0.12);
  background: var(--ink);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: zoom-in;
}

.slide:hover img,
.slide:hover video {
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(36, 25, 51, 0.28);
}

/* Botão de expandir sobre cada slide */
.slide-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(36, 25, 51, 0.6);
  color: var(--white);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.slide:hover .slide-expand {
  opacity: 1;
  transform: scale(1);
}

.slide-expand:hover { background: var(--pink); }

/* Selo de play para os vídeos (preview sem controles) */
.slide-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 46px;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Setas de navegação da faixa (visualização normal) */
.strip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(36, 25, 51, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  opacity: 0;
}

.brand-strip:hover .strip-arrow { opacity: 1; }
.strip-arrow:hover { background: var(--purple); transform: translateY(-50%) scale(1.1); }
.strip-prev { left: 6px; }
.strip-next { right: 6px; }

.brand-divider {
  height: 6px;
  width: 100%;
  max-width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--pink) 0 10px,
    transparent 10px 20px
  );
  margin-bottom: 32px;
}

@media (hover: none) {
  .brand-strip .strip-arrow,
  .slide .slide-expand { opacity: 1; }
}

@media (max-width: 480px) {
  .brand-strip { padding: 18px 0; }
  .slide { margin-right: 14px; }
  .slide img,
  .slide video { height: 220px; border-radius: 16px; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(36, 25, 51, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 999;
}

.lightbox.active {
  display: flex;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-display);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: rgba(255, 95, 168, 0.85);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover { background: var(--purple); transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 3vw; }
.lightbox-next { right: 3vw; }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 26px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 74px 24px 82px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.cta-sub {
  max-width: 520px;
  margin: 16px auto 30px;
  font-size: 16px;
  opacity: 0.95;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 11px 0 rgba(0, 0, 0, 0.15); }
.cta-button:active { transform: translateY(2px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15); }
.cta-button-icon { font-size: 22px; }

.cta-links {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.95;
}
.cta-links a:hover { text-decoration: underline; }

.cta-spark {
  position: absolute;
  color: var(--yellow);
  pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.15));
}
.cta-spark-1 { top: 28px; left: 8%; font-size: 40px; }
.cta-spark-2 { bottom: 30px; right: 10%; font-size: 30px; }

@media (max-width: 600px) {
  .cta { border-radius: 26px; margin: 40px 16px 0; }
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  font-family: var(--font-display);
  color: var(--pink-deep);
  font-size: 15px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-photo { justify-self: center; margin-top: 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 16px 40px; }
  .tool-tile { width: 80px; height: 80px; font-size: 18px; }
}
