/* ════════════════════════════════════════
   KARUÊ STUDIO — PORTFOLIO CLIENT PAGE CSS
   Mockup interativo desktop + mobile
   ════════════════════════════════════════ */

/* ─── PROJECT HERO ─── */
.project-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 5rem;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  transition: transform 0.8s ease;
  filter: brightness(0.4) saturate(0.6);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,27,20,0.3) 0%, rgba(13,27,20,0.85) 100%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(27,58,46,0.4) 0%, transparent 70%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  max-width: 900px;
  padding-top: 7rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--off-white-dim);
  text-transform: uppercase;
}

.breadcrumb a { color: var(--gold-matte); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { color: var(--gold-dim); font-size: 0.5rem; }

.project-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 200;
  letter-spacing: 0.5em;
  color: var(--gold-matte);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1;
  letter-spacing: 0.05em;
}

.project-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-matte);
  border: 1px solid rgba(184,138,74,0.35);
  padding: 0.3rem 0.85rem;
}

.project-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold-matte);
  color: var(--gold-matte);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.project-live-btn:hover {
  background: rgba(184,138,74,0.1);
  color: var(--gold-light);
}

.project-live-btn svg { width: 14px; height: 14px; }

.project-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.project-hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
  color: var(--gold-matte);
  opacity: 0.6;
}

/* ─── PROJECT ABOUT ─── */
.project-about {
  padding: 7rem 0 5rem;
  background: var(--amazon-dark);
  border-top: 1px solid rgba(184,138,74,0.1);
}

.project-about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}

.project-desc {
  color: var(--off-white-dim);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

/* Meta sidebar */
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(184,138,74,0.12);
  background: rgba(27,58,46,0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--off-white);
  font-weight: 300;
}

.meta-link {
  color: var(--gold-matte);
  transition: color 0.3s;
  word-break: break-all;
}

.meta-link:hover { color: var(--gold-light); }

.meta-divider {
  height: 1px;
  background: rgba(184,138,74,0.1);
  margin: 0;
}

/* ─── COMBINED DEVICE SCENE ─── */
.mockup-scene-section {
  padding: 6rem 2rem 8rem;
  background: linear-gradient(180deg, var(--amazon-dark) 0%, #0a1610 40%, var(--amazon-dark) 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(184,138,74,0.1);
}

.mockup-scene-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,138,74,0.3), transparent);
}

/* Radial glow no fundo */
.mockup-scene-section::after {
  content: '';
  position: absolute;
  bottom: -10%; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(ellipse, rgba(27,58,46,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.mockup-scene-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.mockup-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--off-white-dim);
  text-transform: uppercase;
}

/* Contenedor principal da cena */
.device-scene {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Espaço extra à direita para o celular sobreposto */
  padding-right: 140px;
  min-height: 560px;
}

/* ══ LAPTOP FRAME ══ */
.laptop-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 860px;
  filter:
    drop-shadow(-30px 20px 60px rgba(0,0,0,0.7))
    drop-shadow(0 0 40px rgba(184,138,74,0.06));
}

/* Tampa (lid) do notebook */
.laptop-lid {
  width: 100%;
  background: #1c1c1c;
  border-radius: 12px 12px 0 0;
  border: 2px solid #2e2e2e;
  border-bottom: none;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  /* Leve perspectiva como foto 3/4 */
  transform-origin: bottom center;
}

/* Barra do browser */
.browser-bar {
  height: 36px;
  background: #252525;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  flex-shrink: 0;
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot--red    { background: #FF5F57; }
.dot--yellow { background: #FFBD2E; }
.dot--green  { background: #28C840; }

.browser-url {
  flex: 1;
  background: #1a1a1a;
  border-radius: 4px;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.browser-url span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--off-white-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-actions { flex-shrink: 0; opacity: 0.4; }

/* Tela do laptop */
.laptop-screen {
  position: relative;
  width: 100%;
  height: 500px;
  background: #fff;
  overflow: hidden;
}

.laptop-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Base inferior do notebook (hinge) */
.laptop-base {
  width: 100%;
  height: 20px;
  background: linear-gradient(180deg, #222 0%, #2e2e2e 100%);
  border-radius: 0 0 4px 4px;
  border: 2px solid #2e2e2e;
  border-top: 1px solid #111;
  position: relative;
}

/* Hinge line */
.laptop-base::before {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
}

/* Bottom chassis */
.laptop-bottom {
  width: calc(100% + 20px);
  margin-left: -10px;
  height: 14px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%);
  border-radius: 0 0 8px 8px;
  border: 2px solid #333;
  border-top: none;
  box-shadow:
    0 6px 30px rgba(0,0,0,0.6),
    0 2px 0 rgba(255,255,255,0.03) inset;
}

/* ══ PHONE FRAME ══ */
.phone-wrap {
  position: absolute;
  right: 0;
  bottom: 10px; /* alinha a base do celular com a base do laptop */
  flex-shrink: 0;
  filter:
    drop-shadow(10px 10px 40px rgba(0,0,0,0.8))
    drop-shadow(0 0 20px rgba(184,138,74,0.05));
  z-index: 10;
}

.phone-frame {
  position: relative;
  width: 200px;
  background: linear-gradient(145deg, #1e1e1e, #141414);
  border-radius: 36px;
  border: 2px solid #2e2e2e;
  box-shadow:
    inset 0 0 0 1.5px #262626,
    0 0 0 1px rgba(184,138,74,0.12);
  overflow: hidden;
  padding: 14px 8px 22px;
}

.phone-notch {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.phone-speaker {
  width: 50px;
  height: 4px;
  background: #2a2a2a;
  border-radius: 3px;
}

.phone-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

/* O iframe mobile renderiza em 375px e escala para caber */
.phone-screen iframe {
  width: 375px;
  height: calc(380px / (184 / 375)); /* altura total = 380 / ratio */
  border: none;
  transform-origin: top left;
  transform: scale(calc(184 / 375));
  display: block;
}

.phone-home-bar {
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  margin: 8px auto 0;
}

/* Botões laterais */
.phone-side-btn {
  position: absolute;
  background: #1a1a1a;
  border-radius: 2px;
  border: 1px solid #2e2e2e;
}

.phone-side-btn--vol-up   { left: -3px; top: 80px;  width: 3px; height: 28px; }
.phone-side-btn--vol-down { left: -3px; top: 118px; width: 3px; height: 28px; }
.phone-side-btn--power    { right: -3px; top: 100px; width: 3px; height: 46px; }

/* ─── LOADING STATE ─── */
.iframe-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--amazon-dark);
  z-index: 10;
  transition: opacity 0.5s, visibility 0.5s;
}

.iframe-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.iframe-loading span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold-matte);
  text-transform: uppercase;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(184,138,74,0.15);
  border-top-color: var(--gold-matte);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

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

/* ─── PROJECT HIGHLIGHTS ─── */
.project-highlights {
  padding: 7rem 0;
  background: var(--amazon-dark);
  border-top: 1px solid rgba(184,138,74,0.1);
}

.project-highlights-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184,138,74,0.08);
  border: 1px solid rgba(184,138,74,0.08);
}

.highlight-card {
  background: rgba(13,27,20,0.95);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s;
}

.highlight-card:hover {
  background: rgba(27,58,46,0.8);
}

.highlight-icon {
  width: 48px;
  height: 48px;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--off-white);
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--off-white-dim);
  line-height: 1.8;
}

/* ─── PROJECT CTA ─── */
.project-cta {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--amazon-dark), var(--forest-deep) 50%, var(--amazon-dark));
  border-top: 1px solid rgba(184,138,74,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.project-cta-symbol {
  width: 70px;
  height: 70px;
  animation: symbolRotateSlow 12s linear infinite;
  filter: drop-shadow(0 0 16px rgba(184,138,74,0.25));
}

.project-cta-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .device-scene {
    padding-right: 100px;
  }
  .phone-wrap { right: -20px; }
  .phone-frame { width: 170px; }
  .phone-screen { height: 320px; }
  .laptop-screen { height: 420px; }
}

@media (max-width: 900px) {
  .project-about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-meta { max-width: 480px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }

  .device-scene {
    flex-direction: column;
    align-items: center;
    padding-right: 0;
    min-height: auto;
    gap: 3rem;
  }

  .laptop-wrap { max-width: 100%; }
  .laptop-screen { height: 360px; }

  .phone-wrap {
    position: relative;
    right: auto;
    bottom: auto;
  }

  .phone-frame { width: 220px; }
  .phone-screen { height: 420px; }
  .phone-screen iframe {
    width: 375px;
    transform: scale(calc(204 / 375));
    height: calc(420px / (204 / 375));
  }
}

@media (max-width: 600px) {
  .project-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .highlights-grid { grid-template-columns: 1fr; }
  .project-cta-actions { flex-direction: column; width: 100%; }
  .btn-whatsapp, .btn-secondary { width: 100%; justify-content: center; }
  .laptop-screen { height: 280px; }
  .phone-frame { width: 180px; }
  .phone-screen { height: 360px; }
}
