/* ============================
   Reset & Base
   ============================ */

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

:root {
  --black: #111111;
  --dark: #1a1a1a;
  --gray-900: #2a2a2a;
  --gray-600: #666666;
  --gray-400: #999999;
  --gray-200: #e0e0e0;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  --font-sans: 'DM Sans', -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --max-width: 1200px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, button, [role="button"], .folder, [onclick],
label, select, input[type="submit"], input[type="button"],
.project-card, .gallery img, .carousel img,
[class*="card"], [class*="btn"], [class*="badge"],
.header__logo, .header__lang, .header__lang-opt,
.sobre__toggle-btn, .folder-fab, .folder-panel__item {
  cursor: pointer !important;
}

body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l7.5 18 2.5-7 7-2.5z' fill='%23111' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 4, auto;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 120px;
  padding-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}


/* ============================
   Header
   ============================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__logo {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.header__logo-img {
  display: block;
  width: 140px;
  height: auto;
}



.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f0f0f0;
  border: none;
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
}

.header__lang-opt {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--gray-400);
  transition: background 0.2s ease, color 0.2s ease;
}

.header__lang-opt--active {
  background: var(--black);
  color: var(--white);
}

.header__cta {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
  min-width: 180px;
  white-space: nowrap;
  text-align: center;
}

.header__cta:hover {
  background: #333333;
}

/* ============================
   Floating Dock Navigation
   ============================ */

.dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  filter: drop-shadow(0 4px 12px rgba(120, 120, 180, 0.06));
}

.dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  color: rgba(26, 26, 26, 0.7);
}

.dock__item:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
}

.dock__item:hover .dock__icon {
  transform: translateY(-4px);
}

.dock__item.active {
  background: none;
}

.dock__icon {
  transition: transform 0.2s ease;
}

.dock__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================
   Hero — Two Columns
   ============================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: var(--space-lg);
  position: relative;
  background-image: radial-gradient(circle, #d8d8d8 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  flex: 1;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.hero__intro {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #888;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  white-space: nowrap;
}

.hero__typewriter {
  font-family: var(--font-sans);
  font-size: 64px;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero__typewriter strong {
  font-weight: 700;
  color: var(--dark);
}

.typewriter-cursor {
  font-weight: 300;
  color: var(--gray-400);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: #555;
  max-width: 500px;
  line-height: 1.7;
}

/* LinkedIn Card */
#photo-card-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}


.linkedin-card {
  width: 340px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

#photo-card {
  transform: rotate(6deg) translateY(-60px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#photo-card:hover {
  transform: rotate(0deg) translateY(-60px);
}

.linkedin-card__photo {
  height: 420px;
  background: #1a1a1a;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.linkedin-card__gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: 1;
}

.linkedin-card__name {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.linkedin-card__footer {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
}

.linkedin-card__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linkedin-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
}

.linkedin-card__info {
  display: flex;
  flex-direction: column;
}

.linkedin-card__handle {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.linkedin-card__platform {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.2;
}

.linkedin-card__btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.linkedin-card__btn:hover {
  background: #333;
}

/* ============================
   Faixa de Empresas
   ============================ */

.companies {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.companies__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

.companies__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.companies__logo {
  padding: 4px 8px;
}

.companies__logo img {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}

.companies__logo:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ============================
   Sections (shared)
   ============================ */

.section {
  padding: 100px 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

/* ============================
   Cases — Folder Grid
   ============================ */

.cases-section {
  padding: var(--space-2xl) 3rem 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}

/* Folder container */
.folder {
  cursor: pointer;
}

.folder__stack {
  position: relative;
  height: 340px;
  margin-bottom: 16px;
}

/* Shared sheet styles */
.folder__sheet {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #f5f5f5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center bottom;
}

/* Back sheet */
.folder__sheet--back {
  z-index: 1;
  transform: rotate(-6deg) scale(0.92);
}

/* Middle sheet */
.folder__sheet--mid {
  z-index: 2;
  transform: rotate(-3deg) scale(0.96);
}

/* Front sheet */
.folder__sheet--front {
  z-index: 3;
  transform: rotate(0deg) scale(1);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Image placeholder inside front sheet */
.folder__thumb {
  flex: 1;
  background: #ececec;
  overflow: hidden;
}

.folder__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.folder__name {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
}

/* Hover overlay on front sheet */
.folder__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.folder__overlay-cat {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.folder__overlay-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.folder__overlay-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* Hover: sheets fan out */
.folder:hover .folder__sheet--back {
  transform: rotate(-12deg) scale(0.92) translateY(-20px);
}

.folder:hover .folder__sheet--mid {
  transform: rotate(-6deg) scale(0.96) translateY(-10px);
}

.folder:hover .folder__sheet--front {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.folder:hover .folder__overlay {
  opacity: 1;
}

/* Label below folder */
.folder__label {
  padding: 0 4px;
}

.folder__category {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.folder__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--black);
}

/* ============================
   Ilustrações
   ============================ */

.ilustracoes__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.ilustracoes__grid::-webkit-scrollbar {
  display: none;
}

.ilustracoes__item {
  position: relative;
  min-width: 280px;
  width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  flex-shrink: 0;
}

.ilustracoes__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ilustracoes__item:hover .ilustracoes__img {
  transform: scale(1.02);
}

.ilustracoes__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ilustracoes__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ilustracoes__dot--active {
  background: var(--dark);
  transform: scale(1.25);
}

.ilustracoes__zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ilustracoes__item:hover .ilustracoes__zoom-icon {
  opacity: 1;
}

/* ============================
   Ilustração Modal
   ============================ */

.ilu-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ilu-modal.open {
  opacity: 1;
  visibility: visible;
}

.ilu-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.ilu-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 302;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.ilu-modal__close:hover {
  opacity: 1;
}

.ilu-modal__content {
  position: relative;
  z-index: 301;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ilu-modal__img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  transform-origin: center center;
  transition: transform 0.2s ease;
  cursor: grab;
}

.ilu-modal__img.dragging {
  cursor: grabbing;
  transition: none;
}

.ilu-modal__controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 302;
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 10px;
}

.ilu-modal__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ilu-modal__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================
   Password Modal (Home)
   ============================ */

.password-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.password-modal.open {
  opacity: 1;
  visibility: visible;
}

.password-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.password-modal__box {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 380px;
  width: 90%;
  padding: 3rem 2.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.password-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-400);
  transition: color 0.3s ease;
  padding: 0.25rem;
}

.password-modal__close:hover {
  color: var(--black);
}

.password-modal__icon {
  margin-bottom: 1.25rem;
  color: var(--gray-400);
}

.password-modal__title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.password-modal__text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.password-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.password-modal__input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--black);
  text-align: center;
  letter-spacing: 0.1em;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.password-modal__input:focus {
  border-color: var(--black);
}

.password-modal__input.error {
  border-color: #c0392b;
  animation: shake 0.4s ease;
}

.password-modal__submit {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.password-modal__submit:hover {
  background: var(--gray-900);
}

.password-modal__error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1.2em;
}

/* ============================
   Sobre
   ============================ */

/* --- Header with toggle --- */

.sobre {
  padding-top: 60px;
}

.sobre__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0;
}

.sobre__header .section__title {
  margin-bottom: 8px;
}

.sobre__toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 999px;
  padding: 4px;
  margin-top: 0;
  margin-bottom: 16px;
}

.sobre__toggle-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--gray-400);
  transition: all 0.25s ease;
}

.sobre__toggle-btn--active {
  background: #1a1a1a;
  color: #fff;
}

/* --- Content grid --- */

.sobre__content {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-xl);
  align-items: center;
  margin-top: 0;
}

.sobre__intro {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: var(--space-md);
}

.sobre__text p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.sobre__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-sm);
}

.sobre__badge {
  background: #f0f0f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #1a1a1a;
  display: inline-flex;
}

/* --- Text flip --- */

.sobre__text-inner {
  perspective: 800px;
}

.sobre__text-state {
  display: none;
}

.sobre__text-state--active {
  display: block;
}

.btn-ilustracoes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #111;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: #111;
  background: transparent;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-ilustracoes:hover {
  background: #111;
  color: #fff;
}

/* --- Stacked photos --- */

.sobre__photos {
  position: relative;
  width: 100%;
  height: 420px;
}

.sobre__photo-img {
  position: absolute;
  width: 88%;
  height: 100%;
  border-radius: 20px;
  cursor: pointer;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              right 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
}

/* Default (Profissional): foto1 na frente, pessoal atrás */
.sobre__photo-pro {
  z-index: 2;
  top: 0;
  right: 0;
  left: auto;
  width: 80%;
  height: 100%;
  transform: rotate(2deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sobre__photo-pessoal {
  z-index: 1;
  top: 20px;
  left: 0;
  right: auto;
  width: 30%;
  height: 80%;
  transform: rotate(-4deg);
  opacity: 0.7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Swapped (Pessoal): pessoal na frente, foto1 atrás */
.sobre__photo-pro.swapped {
  z-index: 1;
  top: 20px;
  right: auto;
  left: 0;
  width: 30%;
  height: 80%;
  transform: rotate(-4deg);
  opacity: 0.7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sobre__photo-pessoal.swapped {
  z-index: 2;
  top: 0;
  left: auto;
  right: 0;
  width: 80%;
  height: 100%;
  transform: rotate(2deg);
  opacity: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Hover na foto da frente */
.sobre__photo-pro:not(.swapped):hover {
  transform: rotate(-1deg);
}

.sobre__photo-pessoal.swapped:hover {
  transform: rotate(-1deg);
}

/* ============================
   Glass Cards (Skills + Stack)
   ============================ */

.sobre__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: var(--space-xl);
}

.glass-card {
  background: #f0f0f0;
  background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 20px;
  padding: 40px;
  min-height: 520px;
  position: relative;
  overflow: visible;
}

.glass-card__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

/* --- Skills Cloud --- */

.skills-cloud {
  position: relative;
  width: 100%;
  height: calc(100% - 52px);
  min-height: 240px;
}

.skill-item,
.skill-item *,
.glass-card,
.glass-card *,
.stack-item,
.stack-item * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l7.5 18 2.5-7 7-2.5z' fill='%23111' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 4 4, auto !important;
}

.skill-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.skill-item .skill-cursor {
  position: relative;
  top: 0;
  left: 0;
  margin-bottom: -2px;
  flex-shrink: 0;
}

.skill-item:nth-child(1) { animation: skillFloat 3s ease-in-out 0s infinite; }
.skill-item:nth-child(2) { animation: skillFloat 2.5s ease-in-out 0.3s infinite; }
.skill-item:nth-child(3) { animation: skillFloat 3.5s ease-in-out 0.6s infinite; }
.skill-item:nth-child(4) { animation: skillFloat 2.8s ease-in-out 0.9s infinite; }
.skill-item:nth-child(5) { animation: skillFloat 3.2s ease-in-out 1.2s infinite; }
.skill-item:nth-child(6) { animation: skillFloat 2s ease-in-out 1.5s infinite; }
.skill-item:nth-child(7) { animation: skillFloat 4s ease-in-out 1.8s infinite; }
.skill-item:nth-child(8) { animation: skillFloat 3s ease-in-out 2.1s infinite; }

.skill-tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  z-index: 2;
}

.skill-tag--1 { background: #4CAF50; }
.skill-tag--2 { background: #7B61FF; }
.skill-tag--3 { background: #FF6B6B; }
.skill-tag--4 { background: #4ECDC4; }
.skill-tag--5 { background: #FF9F43; }
.skill-tag--6 { background: #A29BFE; }
.skill-tag--7 { background: #FD79A8; }
.skill-tag--8 { background: #1a1a1a; }

@keyframes skillFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -5px; }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* --- Stack Cloud --- */

.stack-cloud {
  position: relative;
  width: 100%;
  height: calc(100% - 52px);
  min-height: 240px;
}

.stack-item {
  position: absolute;
  width: 52px;
  height: 52px;
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stack-item:hover img {
  transform: translateY(-6px) scale(1.08);
}

.stack-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stack-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stack-item:nth-child(1) { animation: stackFloat 3s ease-in-out 0s infinite; }
.stack-item:nth-child(2) { animation: stackFloat 2.5s ease-in-out 0.4s infinite; }
.stack-item:nth-child(3) { animation: stackFloat 3.5s ease-in-out 0.8s infinite; }
.stack-item:nth-child(4) { animation: stackFloat 2.8s ease-in-out 1.2s infinite; }
.stack-item:nth-child(5) { animation: stackFloat 4s ease-in-out 0.6s infinite; }
.stack-item:nth-child(6) { animation: stackFloat 2.2s ease-in-out 1.0s infinite; }
.stack-item:nth-child(7) { animation: stackFloat 3.2s ease-in-out 1.6s infinite; }

.stack-label {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

@keyframes stackFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -5px; }
}

/* ============================
   Footer
   ============================ */

.footer {
  text-align: center;
  padding: var(--space-lg) 3rem;
  border-top: 1px solid var(--gray-200);
  position: relative;
  background-image: radial-gradient(circle, #d8d8d8 1px, transparent 1px);
  background-size: 28px 28px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
  pointer-events: none;
}

.footer p {
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  position: relative;
}

/* ============================
   Password Gate
   ============================ */

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.password-gate.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-gate__box {
  text-align: center;
  max-width: 380px;
  padding: 2rem;
}

.password-gate__icon {
  margin-bottom: 1.5rem;
  color: var(--gray-400);
}

.password-gate__title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.password-gate__text {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.password-gate__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-gate__input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--black);
  text-align: center;
  letter-spacing: 0.1em;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.password-gate__input:focus {
  border-color: var(--black);
}

.password-gate__input.error {
  border-color: #c0392b;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.password-gate__submit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.password-gate__submit:hover {
  background: var(--gray-900);
}

.password-gate__error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1.2em;
}

.password-gate__back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.password-gate__back:hover {
  color: var(--black);
}

/* ============================
   Project Page Layout
   ============================ */

.project-hero {
  padding: 10rem 3rem var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
  transition: color 0.3s ease;
}

.project-hero__back:hover {
  color: var(--black);
}

.project-hero__category {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.project-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 750px;
  margin-bottom: var(--space-md);
}

.project-hero__summary {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.8;
}

/* Project Content */

.project-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem var(--space-2xl);
}

.project-section {
  margin-bottom: var(--space-xl);
}

.project-section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.project-section__text {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.9;
  max-width: 700px;
}

.project-section__text p {
  margin-bottom: 1rem;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--space-xl);
}

.project-meta__item h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.project-meta__item p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: var(--space-xl);
}

.project-image--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: var(--space-xl);
}

.project-image--half > div {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 0.85rem;
}

.project-impact {
  background: var(--gray-100);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.project-impact__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.project-impact__text {
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.8;
  max-width: 700px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--gray-200);
}

.project-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color 0.3s ease;
}

.project-nav a:hover {
  color: var(--black);
}

.project-nav__next {
  text-align: right;
}

.project-nav__label {
  display: block;
  margin-bottom: 0.25rem;
}

.project-nav__title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
}

/* ============================
   Language Flip Animation
   ============================ */

@keyframes flipText {
  0% { transform: rotateX(0deg); opacity: 1; }
  50% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.lang-flip {
  animation: flipText 0.3s ease both;
}

/* ============================
   Fade-in Animation
   ============================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Responsive — Tablet
   ============================ */

@media (max-width: 1024px) {
  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: var(--space-lg) 1.5rem var(--space-lg);
    gap: var(--space-md);
  }

  .hero__title,
  .hero__typewriter {
    font-size: 48px;
  }

  .linkedin-card {
    width: 280px;
  }

  .linkedin-card__photo {
    height: 340px;
  }

  .cases-section {
    padding: var(--space-2xl) 1.5rem;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .companies {
    padding: 0 1.5rem;
  }

  .sobre__cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .glass-card {
    overflow: hidden;
    padding: 28px;
    min-height: 420px;
    max-width: 100%;
    position: relative;
  }

  .skills-cloud {
    transform: scale(0.65);
    transform-origin: top left;
    width: 154%;
    overflow: hidden;
  }

  .stack-cloud {
    transform: scale(0.75);
    transform-origin: top left;
    width: 133%;
    overflow: hidden;
  }
}

/* ============================
   Responsive — Mobile
   ============================ */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: var(--space-lg) 1.5rem var(--space-lg);
    min-height: auto;
    gap: var(--space-md);
  }

  .hero {
    padding-top: 80px;
  }

  .hero__content {
    margin-top: 0;
    width: 100%;
  }

  #photo-card-wrap {
    width: 85%;
    max-width: 300px;
    margin: 32px auto 0;
  }

  .linkedin-card {
    width: 100%;
    transform: none;
  }

  #photo-card {
    transform: none !important;
  }

  #photo-card:hover {
    transform: none !important;
  }

  .linkedin-card__photo {
    height: 300px;
  }

  .hero__title {
    font-size: 32px;
    white-space: normal;
  }

  .hero__typewriter {
    font-size: 32px;
  }

  .header__logo-img {
    width: 110px;
  }

  .skills-cloud {
    position: relative !important;
    height: auto !important;
    min-height: unset !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 24px 16px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    overflow: visible;
    transform: none;
    width: 100%;
  }

  .skill-item {
    position: static !important;
    left: unset !important;
    top: unset !important;
    right: unset !important;
    bottom: unset !important;
    margin: 0 !important;
  }

  .skill-item:nth-child(1) { animation: float1 3s ease-in-out infinite !important; }
  .skill-item:nth-child(2) { animation: float2 4s ease-in-out infinite 0.5s !important; }
  .skill-item:nth-child(3) { animation: float3 3.5s ease-in-out infinite 1s !important; }
  .skill-item:nth-child(4) { animation: float1 4.5s ease-in-out infinite 0.3s !important; }
  .skill-item:nth-child(5) { animation: float2 3s ease-in-out infinite 1.5s !important; }
  .skill-item:nth-child(6) { animation: float3 4s ease-in-out infinite 0.8s !important; }
  .skill-item:nth-child(7) { animation: float1 3.5s ease-in-out infinite 0.2s !important; }
  .skill-item:nth-child(8) { animation: float2 4s ease-in-out infinite 1.2s !important; }

  .skill-tag {
    font-size: 11px;
    padding: 6px 12px;
  }

  .companies {
    flex-direction: column;
    height: auto;
    padding: 20px 1.5rem;
    gap: 12px;
    align-items: flex-start;
  }

  .companies__logos {
    gap: 16px;
    flex-wrap: wrap;
  }

  .section {
    padding: var(--space-xl) 1.5rem;
  }

  .cases-section {
    padding: var(--space-xl) 1.5rem;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  .folder__stack {
    height: 280px;
  }

  .sobre__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .sobre__cards {
    grid-template-columns: 1fr;
  }

  .sobre__photos {
    order: -1;
    height: 320px;
  }

  .ilustracoes__item {
    min-width: 240px;
    width: 240px;
  }

  .project-hero {
    padding: 8rem 1.5rem var(--space-lg);
  }

  .project-content {
    padding: 0 1.5rem var(--space-xl);
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-image--half {
    grid-template-columns: 1fr;
  }

  .project-nav {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .project-nav__next {
    text-align: center;
  }

  .dock {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    will-change: auto !important;
    z-index: 9999 !important;
    border-radius: 0;
    padding: 12px 16px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    gap: 4px;
    justify-content: center;
  }

  .dock__item {
    padding: 6px 10px;
  }

  .dock__icon {
    width: 18px;
    height: 18px;
  }

  .dock__label {
    font-size: 0.55rem;
  }

  .header {
    padding: 16px 20px;
  }

  .header__logo {
    font-size: 13px;
  }

  .header__cta {
    font-size: 13px;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .header__lang {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Restore default cursor on touch devices */
  body,
  a, button, [role="button"], .folder, [onclick] {
    cursor: auto !important;
  }
}

/* ============================
   Responsive — Small
   ============================ */

@media (max-width: 480px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .hero__title {
    font-size: 28px;
    white-space: normal;
  }

  .hero__typewriter {
    font-size: 28px;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .folder__stack {
    height: 300px;
  }

  .sobre__intro {
    font-size: 1.25rem;
  }

  .project-hero__title {
    font-size: 1.75rem;
  }

  .ilustracoes__item {
    min-width: 200px;
    width: 200px;
  }
}

/* ============================
   Acessibilidade — Reduced Motion
   ============================ */

@media (prefers-reduced-motion: reduce) {
  .skill-item {
    animation: none !important;
  }
}
