/* ===================================================
   EASY AGENCY — LANDING PAGE
   Design System & Styles
   =================================================== */

/* --- Variables --- */
:root {
  --orange: #FF914D;
  --orange-dark: #E07A3A;
  --orange-glow: rgba(255, 145, 77, 0.25);
  --black: #1A1A1A;
  --black-soft: #222222;
  --white: #FFFFFF;
  --gray-bg: #F5F5F5;
  --gray-100: #E8E8E8;
  --gray-200: #CCCCCC;
  --gray-300: #999999;
  --gray-text: #888888;

  --font-main: 'Montserrat', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,0.15);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.35);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.25s ease;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-main);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
}

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 36px;
  transition: transform var(--transition-fast);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--orange);
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Video background wrapper */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-poster,
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-poster {
  z-index: 1;
  transition: opacity 0.8s ease;
}

.hero-video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-video {
  z-index: 0;
}

/* Dark overlay — gradient for depth */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.6) 100%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge "Easy Agency" */
.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 28px;
  animation: heroFadeIn 1s ease 0.2s forwards;
  opacity: 0;
  transition: var(--transition);
}

.hero-badge:hover {
  background: rgba(255, 145, 77, 0.15);
  border-color: var(--orange);
  color: var(--orange);
}

/* Decorative line */
.hero-line {
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  margin-bottom: 28px;
  animation: heroLineGrow 0.8s ease 0.5s forwards;
  opacity: 0;
  transform: scaleX(0);
}

@keyframes heroLineGrow {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Title */
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 24px;
  text-transform: none;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
  animation: heroFadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Subtitle with decorative dots */
.hero-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: heroSlideUp 0.8s ease 0.9s forwards;
  opacity: 0;
}

.hero-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes heroSlideUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SCROLL INDICATOR (Mouse animado)
   ========================================================================== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition);
  animation: heroSlideUp 0.8s ease 1.2s forwards;
  opacity: 0;
}

.scroll-indicator:hover {
  color: var(--white);
}

.scroll-indicator:hover .mouse-icon {
  border-color: var(--orange);
}

.scroll-indicator:hover .mouse-wheel {
  background: var(--orange);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
  transition: border-color var(--transition);
}

.mouse-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
  transition: background var(--transition);
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===================================================
   QUEM SOMOS SECTION
   =================================================== */
.quem-somos {
  padding: 140px 0;
  background: var(--white);
}

.quem-somos .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quem-somos .section-subtitle {
  margin: 0 auto 64px;
}

.pilares {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 800px;
}

.pilar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pilar-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}

.pilar-item:hover .pilar-icon {
  background: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--orange-glow);
}

.pilar-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
}

/* ===================================================
   PORTFOLIO SECTION
   =================================================== */
.portfolio {
  padding: 140px 0;
  background: var(--gray-bg);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 72px;
}

.portfolio-header .section-subtitle {
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* --- Card --- */
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: var(--black-soft);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .card-image {
  transform: scale(1.08);
}

/* Gradient placeholder for cards without images */
.card-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.6s ease;
}

.project-card:hover .card-gradient {
  transform: scale(1.08);
}

.grad-audio { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.grad-strategy { background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%); }
.grad-video { background: linear-gradient(135deg, #2d1b2e 0%, #4a1942 50%, #6b2d5b 100%); }
.grad-rebranding { background: linear-gradient(135deg, #1a2332 0%, #1e3a5f 50%, #2980b9 100%); }
.grad-comedy { background: linear-gradient(135deg, #2c1810 0%, #4a2c2a 50%, #6b3a2a 100%); }
.grad-food { background: linear-gradient(135deg, #2d2b1b 0%, #5c4a1e 50%, #8b7335 100%); }

/* Card overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background var(--transition);
}

.project-card:hover .card-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 145, 77, 0.9) 0%,
    rgba(255, 145, 77, 0.4) 40%,
    rgba(255, 145, 77, 0.1) 100%
  );
}

.card-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
  transition: color var(--transition);
}

.project-card:hover .card-category {
  color: var(--white);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.project-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================
   MODAL
   =================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 40px 24px;
  overflow-y: auto;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  margin: auto;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s ease;
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-close:hover {
  background: var(--orange);
}

.modal-media {
  width: 100%;
  background: var(--black-soft);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.modal-media.has-aspect {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 60vh;
}

.modal-media.has-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.modal-media.has-image .blur-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.35);
  z-index: 1;
  pointer-events: none;
}

.modal-media.has-image img.vertical-img {
  position: relative;
  z-index: 2;
  max-height: 90%;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.modal-media img.modal-single-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.modal-media .modal-icon {
  font-size: 4rem;
}

/* YouTube embed */
.modal-media iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Carousel ---- */
.carousel-wrap {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 60vh;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Style for slides containing vertical images to preserve format elegantly */
.carousel-slide.is-vertical {
  background: #000;
}

.carousel-slide.is-vertical .blur-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.35);
  z-index: 1;
  pointer-events: none;
}

.carousel-slide.is-vertical img.vertical-img {
  position: relative;
  z-index: 2;
  max-height: 90%;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26,26,26,0.6);
  backdrop-filter: blur(8px);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--orange);
}

.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
  background: var(--black-soft);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

.modal-body {
  padding: 36px;
}

.modal-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.modal-description {
  color: var(--gray-300);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--gray-bg);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.5px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-link:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

/* ===================================================
   PDF CAROUSEL
   =================================================== */

/* PDF tabs (switch between multiple PDFs) */
.pdf-tabs {
  display: flex;
  gap: 0;
  background: var(--black-soft);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pdf-tab {
  flex: 1;
  padding: 12px 20px;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.pdf-tab:hover {
  color: rgba(255,255,255,0.85);
}

.pdf-tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Loading state */
.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 55vh;
  background: #111;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.pdf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: pdfSpin 0.8s linear infinite;
}

@keyframes pdfSpin {
  to { transform: rotate(360deg); }
}

/* PDF carousel container */
.pdf-carousel-wrap {
  background: #111;
}

/* PDF slide */
.pdf-slide {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pdf-slide canvas {
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  background: #fff;
}

/* Page counter */
.pdf-page-counter {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 8px 0 4px;
  background: var(--black-soft);
}

/* Modal has-pdf overrides */
.modal-media.has-pdf {
  background: #111;
}

/* ===================================================
   PDF SCROLL VIEWER
   =================================================== */
.modal-media.has-pdf-scroll {
  background: #2a2a2a;
  padding: 0;
  overflow: hidden;
}

.pdf-scroll-container {
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.pdf-scroll-container::-webkit-scrollbar {
  width: 6px;
}

.pdf-scroll-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.pdf-scroll-container::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 6px;
}

.pdf-page {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  /* Placeholder height enquanto imagem não carregou */
  min-height: 200px;
  background: #222;
  position: relative;
}

/* Placeholder shimmer antes da imagem carregar */
.pdf-page:not([data-loaded])::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    #2a2a2a 25%,
    #333 50%,
    #2a2a2a 75%
  );
  background-size: 200% 100%;
  animation: pdfShimmer 1.4s infinite;
}

@keyframes pdfShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pdf-page-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Estado vazio — pasta sem imagens */
.pdf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 300px;
  padding: 40px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

.pdf-empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.pdf-empty-state p {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.pdf-empty-state span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* Mobile: container mais alto para ocupar a tela toda */
@media (max-width: 768px) {
  .pdf-scroll-container {
    max-height: calc(100vh - 140px);
  }
}

/* ===================================================
   EQUIPE SECTION
   =================================================== */
.equipe {
  padding: 140px 0;
  background: var(--black);
  color: var(--white);
}

.equipe-header {
  text-align: center;
  margin-bottom: 72px;
}

.equipe-header .section-subtitle {
  margin: 0 auto;
  color: var(--gray-300);
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(255, 145, 77, 0.1);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--orange);
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--orange-glow);
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-role {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.team-projects {
  font-size: 0.78rem;
  color: var(--gray-300);
  line-height: 1.8;
}

.team-card.reserved {
  border-style: dashed;
  border-color: rgba(255,255,255,0.12);
  opacity: 0.6;
}

.team-card.reserved:hover {
  opacity: 0.8;
  border-color: rgba(255, 145, 77, 0.4);
}

.reserved-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 145, 77, 0.15);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===================================================
   CONTATO SECTION
   =================================================== */
.contato {
  padding: 140px 0;
  background: linear-gradient(160deg, var(--orange) 0%, var(--orange-dark) 40%, var(--black) 100%);
  color: var(--white);
  text-align: center;
}

.contato .section-title {
  color: var(--white);
}

.contato .section-subtitle {
  color: rgba(255,255,255,0.8);
  margin: 0 auto 56px;
}

.contato-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contato-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.contato-btn.primary {
  background: var(--white);
  color: var(--black);
}

.contato-btn.primary:hover {
  background: var(--gray-bg);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.contato-btn.secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}

.contato-btn.secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  padding: 40px 0;
  background: var(--black);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--gray-300);
  letter-spacing: 0.5px;
}

.footer-text span {
  color: var(--orange);
}

/* ===================================================
   SCROLLBAR
   =================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dark);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .pilares {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.4s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-logo {
    width: 160px;
  }

  .hero-sub {
    max-width: calc(100vw - 48px);
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.78rem;
    line-height: 1.6;
    letter-spacing: 1.2px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub .hero-dot:first-child,
  .hero-sub .hero-dot:last-child {
    display: none;
  }

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

  .equipe-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .contato-links {
    flex-direction: column;
    align-items: center;
  }

  /* ---- Modal mobile: tela cheia, sem bordas ---- */
  .modal-backdrop {
    padding: 0;
    align-items: center;
  }

  .modal {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    transform: translateY(100%);
  }

  .modal-backdrop.active .modal {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .modal-close {
    top: max(16px, calc(env(safe-area-inset-top) + 12px));
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
  }

  /* Carrossel ocupa o máximo da tela */
  .carousel-track {
    height: 75vw;
    max-height: 72vh;
  }

  .modal-media.has-aspect {
    max-height: 72vh;
  }

  .modal-media.has-image {
    height: 70vw;
  }

  /* Body compacto */
  .modal-body {
    padding: 20px 20px 32px;
  }

  .modal-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .modal-description {
    margin-bottom: 16px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .pilares {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }

  .hero-sub {
    max-width: calc(100vw - 36px);
    gap: 4px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
  }

  .card-title {
    font-size: 1rem;
  }

  .carousel-track {
    height: 78vw;
    max-height: 68vh;
  }
}

/* ===================================================
   MODAL DESCRIPTION TOGGLE (mobile acordeão)
   =================================================== */
.modal-desc-toggle {
  display: none; /* visible only on mobile via media query */
  width: 100%;
  background: var(--gray-bg);
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal-desc-toggle:hover {
  background: var(--gray-100);
}

.modal-desc-toggle .toggle-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.modal-desc-toggle.open .toggle-icon {
  transform: rotate(180deg);
}

/* Description collapsible wrapper */
.modal-desc-collapsible {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.modal-desc-collapsible.open {
  max-height: 600px;
  opacity: 1;
}

/* On desktop: always visible, no toggle button */
@media (min-width: 769px) {
  .modal-desc-toggle {
    display: none !important;
  }

  .modal-desc-collapsible {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
  }
}

/* On mobile: show toggle, collapse by default */
@media (max-width: 768px) {
  .modal-desc-toggle {
    display: flex;
    margin-bottom: 0;
  }

  .modal-desc-collapsible {
    margin-top: 0;
  }

  .modal-desc-collapsible.open {
    margin-top: 12px;
  }
}
