/* ============================================
   HULDA LOPES — PORTFOLIO
   Dark, theatrical, feminist, poetic
   ============================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  --black: #080808;
  --white: #f2ede8;
  --bordeaux: #6b1a1a;
  --rose-deep: #b5686e;
  --rose-mid: #c9848a;
  --rose-light: #e8b4b8;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-nav: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.95;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

/* --- FADE-IN ANIMATIONS --- */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   1. NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3vw;
}

.nav__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav__social-link {
  color: #888;
  transition: color 0.3s ease;
}

.nav__social-link:hover {
  color: var(--rose-mid);
}

.nav.scrolled .nav__social-link {
  color: #555;
}

.nav.scrolled .nav__social-link:hover {
  color: var(--rose-mid);
}

.nav__links {
  display: flex;
  gap: 2.5vw;
  align-items: center;
}

.nav__link {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--white);
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--rose-mid);
}

.nav.scrolled .nav__link {
  color: #333;
}

.nav.scrolled .nav__link:hover {
  color: var(--rose-mid);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__lang-sep {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.75rem;
  color: #666;
  user-select: none;
}

.nav.scrolled .nav__lang-sep {
  color: #aaa;
}

.nav__lang-btn {
  background: none;
  border: none;
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--white);
  cursor: pointer;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav__lang-btn:hover {
  color: var(--rose-mid);
}

.nav__lang-btn.active {
  border-bottom-color: var(--rose-deep);
}

.nav.scrolled .nav__lang-btn {
  color: #333;
}

.nav.scrolled .nav__lang-btn:hover {
  color: var(--rose-mid);
}

.nav.scrolled .nav__lang-btn.active {
  border-bottom-color: var(--rose-deep);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav.scrolled .nav__hamburger span {
  background: #333;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 30px 0 40px;
  background: #ffffff;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #333;
  transition: color 0.3s ease;
}

.nav__mobile-link:hover {
  color: var(--rose-mid);
}

.nav__mobile-lang {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.nav__mobile-lang .nav__lang-btn {
  color: #333;
}

.nav__mobile-lang .nav__lang-btn:hover {
  color: var(--rose-mid);
}

.nav__mobile-lang .nav__lang-sep {
  color: #aaa;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: var(--black);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  opacity: 0.15;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-left: 8vw;
}

.hero__name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 9rem);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.05;
  animation: heroLetterSpacing 1.5s ease-out forwards;
}

@keyframes heroLetterSpacing {
  from { letter-spacing: 0.02em; }
  to { letter-spacing: 0.05em; }
}

.hero__subtitle {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--rose-light);
  letter-spacing: 0.15em;
  margin-top: 1.2rem;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 5vw;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--white));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero__rose-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--rose-deep);
  z-index: 2;
}

/* ============================================
   3. SOBRE / ABOUT
   ============================================ */
.sobre {
  background: var(--black);
  padding: 10vh 5vw;
}

.sobre__inner {
  display: flex;
  gap: 5vw;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.sobre__image-col {
  flex: 0 0 45%;
}

.sobre__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.sobre__image-wrap img {
  filter: brightness(0.7) contrast(1.1);
}

.sobre__overlay-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 2;
}

.sobre__text-col {
  flex: 1;
}

.sobre__bio {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 2;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: 0.015em;
  font-weight: 400;
  hyphens: auto;
}

.sobre__more {
  display: inline-block;
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 12px 32px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.sobre__more:hover {
  background: var(--rose-mid);
  border-color: var(--rose-mid);
  color: var(--black);
}

.sobre__arrow {
  font-size: 1rem;
  margin-left: 6px;
}

/* ============================================
   4. AFOGADAS — THE WORK
   ============================================ */
.afogadas {
  background: var(--black);
}

.afogadas__hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.afogadas__hero img {
  filter: brightness(0.5);
}

.afogadas__hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--bordeaux);
  opacity: 0.75;
  z-index: 1;
}

.afogadas__hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.afogadas__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.afogadas__subtitle {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(242, 237, 232, 0.7);
  margin-top: 1rem;
}

.afogadas__body {
  display: flex;
  gap: 5vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8vh 5vw;
}

.afogadas__context {
  flex: 1;
}

.afogadas__context p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--white);
  white-space: pre-line;
  letter-spacing: 0.015em;
  hyphens: auto;
}

.afogadas__quote {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.afogadas__quote blockquote {
  position: relative;
  padding: 0;
  border: none;
  margin: 0;
}

.afogadas__quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--rose-deep);
  line-height: 1;
}

.afogadas__quote blockquote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 2;
  color: var(--white);
  padding: 0 0.5rem;
  letter-spacing: 0.02em;
}

.afogadas__quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(242, 237, 232, 0.55);
  font-style: normal;
  font-variant: small-caps;
}

/* ============================================
   5. O POEMA / THE POEM
   ============================================ */
.poem {
  background: var(--black);
  padding: 12vh 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poem__label {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--white);
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.poem__text {
  max-width: 700px;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 2.3;
  letter-spacing: 0.03em;
  color: var(--rose-deep);
  white-space: pre-line;
  text-align: center;
  word-spacing: 0.05em;
}

.poem__author {
  margin-top: 3.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--rose-mid);
  text-align: right;
  width: 100%;
  max-width: 700px;
  letter-spacing: 0.05em;
}

/* ============================================
   6. ESPETACULOS / PERFORMANCES
   ============================================ */
.performances {
  background: var(--black);
  padding: 10vh 0;
}

.section-title {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  margin-bottom: 6vh;
}

.performances__grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.performances__card {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 300px;
  overflow: hidden;
  display: block;
}

.performances__card img {
  filter: brightness(0.4);
  transition: filter 0.5s ease;
}

.performances__card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(107, 26, 26, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease, box-shadow 0.5s ease;
  z-index: 1;
}

.performances__card:hover .performances__card-overlay {
  background: rgba(107, 26, 26, 0.55);
  box-shadow: inset 0 0 0 1px var(--rose-deep);
}

.performances__card:hover img {
  filter: brightness(0.5);
}

.performances__card-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}

.performances__card-sub {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(242, 237, 232, 0.6);
  margin-top: 0.8rem;
}

.performances__card--soon {
  height: 30vh;
  min-height: 200px;
  background: var(--black);
  border: 1px solid rgba(107, 26, 26, 0.4);
}

.performances__card--soon .performances__card-overlay {
  background: rgba(107, 26, 26, 0.3);
}

/* ============================================
   7. GALERIA
   ============================================ */
.gallery {
  background: var(--black);
  padding: 10vh 5vw;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery__item:hover {
  border-color: var(--rose-deep);
  transform: scale(1.02);
}

.gallery__item img {
  transition: filter 0.4s ease;
  filter: brightness(0.8);
}

.gallery__item:hover img {
  filter: brightness(0.95);
}

/* ============================================
   8. CONTATO
   ============================================ */
.contact {
  background: var(--black);
  padding: 12vh 5vw;
  text-align: center;
}

.contact__text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(242, 237, 232, 0.7);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
  font-style: italic;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 2.5rem;
}

.contact__email:hover {
  color: var(--rose-mid);
  border-bottom-color: var(--rose-mid);
}

.contact__social {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.contact__social-link {
  color: var(--white);
  transition: color 0.3s ease;
}

.contact__social-link:hover {
  color: var(--rose-mid);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  background: var(--bordeaux);
  padding: 4rem 5vw;
  text-align: center;
}

.footer__name {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--rose-light);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.footer__copy {
  font-family: var(--font-nav);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

/* ============================================
   LANGUAGE TRANSITION
   ============================================ */
[data-key] {
  transition: opacity 0.15s ease;
}

[data-key].switching {
  opacity: 0;
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__lang {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .sobre__inner {
    flex-direction: column;
    gap: 5vh;
  }

  .sobre__image-col {
    flex: none;
    width: 100%;
  }

  .afogadas__body {
    flex-direction: column;
    gap: 5vh;
  }

  .afogadas__quote {
    flex: none;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  .hero__content {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero__name {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .sobre__overlay-title {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .afogadas__hero {
    height: 50vh;
  }

  .poem__text {
    font-size: 1.15rem;
    line-height: 2;
  }

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

  .performances__card {
    height: 35vh;
    min-height: 250px;
  }

  .section-title {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
}
