/* ═══════════════════════════════════════════════════════════
   EXTRAS — Patches, missing styles & fixes
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero letters: fallback in case Anime.js is slow/unavailable ─── */
/* .letter elements start opacity:0 from Anime.js, so need a CSS fallback */
#hero-name .letter {
  animation: heroLetterFade 0.5s 1.2s both;
}
@keyframes heroLetterFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
/* stagger the letters slightly */
#hero-name .letter:nth-child(1) { animation-delay: 1.0s; }
#hero-name .letter:nth-child(2) { animation-delay: 1.1s; }
#hero-name .letter:nth-child(3) { animation-delay: 1.2s; }
#hero-name .letter:nth-child(4) { animation-delay: 1.3s; }
#hero-name .letter:nth-child(5) { animation-delay: 1.4s; }
#hero-name .letter:nth-child(6) { animation-delay: 1.5s; }


/* ─── Reveal visible state (JS adds .is-visible) ─── */
.reveal-section.is-visible { opacity: 1; transform: none; }
.reveal-tl.tl-visible      { opacity: 1; transform: none; }

/* tl-item initial hidden state */
.tl-item { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s cubic-bezier(0, 0, 0.2, 1), transform 0.7s cubic-bezier(0, 0, 0.2, 1); }
.tl-right { transform: translateX(30px); }
.tl-item.tl-visible { opacity: 1; transform: none; }

/* ─── Countdown flip animation ─── */
.cd-num.cd-flip {
  animation: numFlip 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Navbar nav-hidden ─── */
.navbar.nav-hidden { transform: translateY(-100%); }
.navbar { transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, transform 0.35s; }

/* ─── Nav link active state ─── */
.nav-link.active { color: var(--gold); background: rgba(201,146,42,0.08); }

/* ─── Nav toggle open state ─── */
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Gallery item overlay (JS creates) ─── */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 28px;
  opacity: 0;
  transition: all 0.3s;
}
.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ─── Message card layout fix ─── */
.msg-card { flex-direction: row; align-items: flex-start; gap: 14px; }
.msg-body { flex: 1; min-width: 0; }
.msg-header { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 10px; }
.msg-header-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.msg-img-wrap {
  margin-top: 12px;
  border-radius: var(--r-sm);
  overflow: hidden;
  max-height: 200px;
}
.msg-img {
  width: 100%;
  object-fit: cover;
  display: block;
  max-height: 200px;
}

/* ─── Toast show variant ─── */
.toast.toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.toast-warning { border-color: rgba(251,191,36,0.4); color: #FBD24C; }

/* ─── Drag over state ─── */
.file-drop-area.drag-over {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: scale(1.01);
}

/* ─── Input error state ─── */
.form-input.input-error,
.form-textarea.input-error {
  border-color: rgba(248,113,113,0.6);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.12);
}

/* ─── Gallery img class ─── */
.gallery-img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}
.gallery-item:hover .gallery-img { transform: scale(1.04); }

/* ─── File preview wrap visible fix ─── */
.file-preview-wrap[style*="flex"] { display: flex !important; }

/* ─── PRESENTE, Professor. section ─── */
.presente-section {
  background: #000;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.presente-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,146,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.presente-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.presente-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.presente-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow:
    0 0 40px rgba(201,146,42,0.6),
    0 0 80px rgba(201,146,42,0.3),
    0 0 120px rgba(201,146,42,0.15);
  animation: presentePulse 3s ease-in-out infinite;
}
.presente-subtitle {
  width: 100%;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
  margin-top: -12px;
  line-height: 1.6;
}
@keyframes presentePulse {
  0%, 100% { text-shadow: 0 0 40px rgba(201,146,42,0.6), 0 0 80px rgba(201,146,42,0.3); }
  50%       { text-shadow: 0 0 60px rgba(201,146,42,0.9), 0 0 120px rgba(201,146,42,0.5), 0 0 160px rgba(201,146,42,0.2); }
}
@media (max-width: 600px) {
  .presente-inner { flex-direction: column; gap: 16px; }
  .presente-line { width: 80px; height: 1px; flex: none; }
  .presente-subtitle { font-size: 0.9rem; margin-top: -4px; }
}
