/* =============================================
   RESPONSIVO.CSS — Cobertura completa de dispositivos
   Euclides Delunga · Portfólio

   Breakpoints:
   • 2000px+  → Telas ultra-wide / 4K
   • 1400px   → Desktops grandes
   • 1200px   → Laptops / Desktops padrão
   • 1024px   → Tablets landscape / Laptops pequenos
   • 900px    → Tablets portrait
   • 768px    → Tablets pequenos / Phablets
   • 640px    → Smartphones grandes
   • 480px    → Smartphones médios
   • 360px    → Smartphones pequenos
   • 320px    → Dispositivos mínimos
============================================= */

/* =============================================
   2000px+ — Ultra-wide / 4K
============================================= */
@media (min-width: 2000px) {
  :root { --max: 1400px; }
  body { font-size: 18px; }
  .hero-h1   { font-size: 10rem; }
  .sec-title { font-size: 4.5rem; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .deps-grid   { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .nums-grid   { grid-template-columns: repeat(3, 1fr); }
  .proj-grid   { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* =============================================
   1400px — Desktops grandes
============================================= */
@media (max-width: 1400px) {
  .hero-content {
    grid-template-columns: 1fr 380px;
    gap: 48px;
  }
  .hero-h1 { font-size: clamp(3.5rem, 7vw, 7rem); }
}

/* =============================================
   1200px — Laptops / Desktops padrão
============================================= */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
  .hero-card { padding: 28px; }
  .sobre-grid { grid-template-columns: 240px 1fr; gap: 56px; }
  .timeline::before { left: 110px; }
  .tl-item          { grid-template-columns: 110px 1fr; }
  .nums-grid { grid-template-columns: repeat(3, 1fr); }
  .num-item  { padding: 36px 28px; }
}

/* =============================================
   1024px — Tablets landscape / Laptops pequenos
   ✅ hero-right VISÍVEL (foto 1 aparece)
============================================= */
@media (max-width: 1024px) {

  /* Hero: coluna única, foto aparece abaixo do texto */
  .hero-content {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  /* ✅ FOTO HERO SEMPRE VISÍVEL */
  .hero-right {
    display: flex;
    justify-content: center;
  }
  .hero-right .hero-card {
    max-width: 380px;
    width: 100%;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-kpis { justify-content: center; }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }
  .sobre-left { position: static; }

  /* Skills */
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Depoimentos */
  .deps-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  /* Números */
  .nums-grid { grid-template-columns: repeat(2, 1fr); }

  /* Formação */
  .form-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }

  /* Projetos */
  .proj-grid { gap: 18px; }
}

/* =============================================
   900px — Tablets portrait
============================================= */
@media (max-width: 900px) {

  /* Navbar → menu off-canvas */
  .navbar          { padding: 16px 0; }
  .navbar.scrolled { padding: 12px 0; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 80vw);
    height: 100vh; height: 100dvh;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 32px 40px;
    gap: 4px;
    transition: right 0.4s var(--ease);
    z-index: 200;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu li   { width: 100%; }

  .nav-a {
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    display: block;
    border-radius: 8px;
  }
  .nav-a.nav-cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }
  .burger { display: flex; }

  /* Hero */
  .hero    { padding: 120px 0 80px; }
  .hero-h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
  .hero-lead { font-size: 1rem; }

  /* ✅ FOTO HERO VISÍVEL — card mais compacto */
  .hero-right {
    display: flex;
    justify-content: center;
  }
  .hero-right .hero-card {
    max-width: 340px;
    width: 100%;
  }

  /* Sobre: coluna única empilhada */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sobre-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* ✅ FOTO SOBRE VISÍVEL — largura total */
  .photo-box   { margin: 0; width: 100%; }
  .photo-inner {
    width: 100%;
    max-width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
  }
  .photo-caption { font-size: 0.82rem; margin-top: 8px; }
  .contato-rapido { width: 100%; }

  /* Timeline */
  .timeline::before { left: 80px; }
  .tl-item          { grid-template-columns: 80px 1fr; }
  .tl-body          { padding: 22px 24px; margin-left: 16px; }
  .tl-body h3       { font-size: 1.1rem; }

  /* Projetos */
  .proj-card.featured { grid-column: span 1; display: block; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card.featured .proj-metrics { grid-template-columns: repeat(2, 1fr); }

  /* Contato */
  .contato-wrap { grid-template-columns: 1fr; gap: 48px; }

  /* Depoimentos */
  .deps-grid { grid-template-columns: 1fr; }

  /* Formação */
  .form-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Números */
  .nums-grid { grid-template-columns: repeat(2, 1fr); }
  .num-item  { padding: 32px 24px; }
}

/* =============================================
   768px — Tablets pequenos / Phablets
============================================= */
@media (max-width: 768px) {

  section { padding: clamp(64px, 8vw, 96px) 0; }

  /* Hero */
  .hero    { padding: 110px 0 72px; }
  .hero-h1 { font-size: clamp(2.8rem, 11vw, 4.8rem); }
  .hero-eyebrow { font-size: 0.62rem; }
  .hero-kpis    { row-gap: 16px; }
  .kpi          { padding-right: 20px; }
  .kpi-sep      { margin-right: 20px; }
  .kpi strong   { font-size: 1.6rem; }
  .kpi span     { font-size: 0.65rem; }

  /* ✅ FOTO HERO VISÍVEL em 768px */
  .hero-right { display: flex; justify-content: center; }
  .hero-right .hero-card { max-width: 320px; width: 100%; }

  /* ✅ FOTO SOBRE VISÍVEL em 768px */
  .photo-inner { width: 100%; height: 240px; border-radius: 10px; }

  /* Sobre */
  .sobre-lead    { font-size: 1.05rem; }
  .sobre-body    { font-size: 0.88rem; }
  .sobre-valores { gap: 12px; }

  /* Skills */
  .sk-card    { padding: 24px; }
  .sk-card h3 { font-size: 1rem; }
  .sk-card p  { font-size: 0.8rem; }

  /* Projetos */
  .proj-card    { padding: 28px; }
  .proj-card h3 { font-size: 1.35rem; }
  .proj-card p  { font-size: 0.82rem; }
  .proj-metrics { grid-template-columns: repeat(3, 1fr); }
  .pm strong    { font-size: 1.15rem; }

  /* Contato */
  .ct-dir .form { padding: 32px 28px; }

  /* Depoimentos */
  .dep   { padding: 28px; }
  .dep p { font-size: 0.92rem; }

  /* Números */
  .num-val    { font-size: clamp(2.2rem, 6vw, 3rem); }
  .num-item p { font-size: 0.76rem; }
}

/* =============================================
   640px — Smartphones grandes
============================================= */
@media (max-width: 640px) {

  .wrap   { padding: 0 18px; }
  section { padding: 64px 0; }
  body    { font-size: 15px; }

  .sec-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .tag       { font-size: 0.62rem; margin-bottom: 12px; }

  /* Navbar */
  .brand-mark { font-size: 1.15rem; }
  .brand-sub  { font-size: 0.68rem; }

  /* Hero */
  .hero        { padding: 100px 0 64px; min-height: auto; }
  .hero-h1     { font-size: clamp(2.5rem, 13vw, 4rem); line-height: 0.92; }
  .hero-role   { font-size: 0.72rem; letter-spacing: 0.16em; }
  .hero-lead   { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-eyebrow { font-size: 0.6rem; padding: 5px 12px; }

  /* ✅ FOTO HERO VISÍVEL em smartphones — card compacto */
  .hero-right { display: flex; justify-content: center; }
  .hero-right .hero-card { max-width: 280px; width: 100%; padding: 20px; }

  /* Botões: full width */
  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
  }
  .btn-blue,
  .btn-outline-blue {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    padding: 13px 24px;
    font-size: 0.72rem;
  }

  /* KPIs: grid 2×2 */
  .hero-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .kpi-sep { display: none; }
  .kpi {
    padding: 14px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-border);
    border-radius: 8px;
    text-align: center;
    align-items: center;
    padding-right: 0;
  }
  .kpi strong { font-size: 1.5rem; }

  .hero-scroll-hint { bottom: 20px; }

  /* ✅ FOTO SOBRE VISÍVEL em smartphones */
  .sobre-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .photo-box   { margin: 0; width: 100%; }
  .photo-inner {
    width: 100%;
    max-width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
  }
  .photo-caption      { font-size: 0.78rem; }
  .contato-rapido     { width: 100%; }
  .contato-rapido .cr-link { font-size: 0.74rem; }

  /* Timeline */
  .timeline::before { display: none; }
  .tl-item { grid-template-columns: 1fr; padding-bottom: 24px; }
  .tl-left {
    flex-direction: row; align-items: center; gap: 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
  }
  .tl-date  { text-align: left; font-size: 0.72rem; }
  .tl-dot   { margin: 0; flex-shrink: 0; }
  .tl-body  { margin-left: 0; padding: 20px; box-shadow: none; }
  .tl-body::before { display: none; }
  .tl-body h3  { font-size: 1rem; }
  .tl-sub      { font-size: 0.7rem; }
  .tl-body > p { font-size: 0.82rem; }
  .tl-body ul li { font-size: 0.78rem; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; gap: 14px; }
  .sk-card     { padding: 22px 20px; }

  /* Projetos */
  .proj-grid    { gap: 16px; }
  .proj-card    { padding: 24px 20px; }
  .proj-card h3 { font-size: 1.25rem; }
  .proj-metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .pm strong    { font-size: 1.1rem; }
  .pm span      { font-size: 0.6rem; }

  /* Números */
  .nums-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .num-item  { padding: 24px 18px; }
  .num-val   { font-size: clamp(2rem, 8vw, 2.8rem); }

  /* Depoimentos */
  .deps-grid { grid-template-columns: 1fr; gap: 14px; }
  .dep       { padding: 24px 20px; }
  .dep-aspas { font-size: 4rem; }
  .dep p     { font-size: 0.9rem; }

  /* Formação */
  .form-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Contato */
  .ct-dir .form { padding: 24px 18px; gap: 14px; }
  .form h3      { font-size: 1.15rem; }
  .form-row     { grid-template-columns: 1fr; gap: 12px; }
  .fld input,
  .fld select,
  .fld textarea { padding: 11px 13px; font-size: 0.85rem; }
  .fld label    { font-size: 0.65rem; }
  .ct-links     { gap: 10px; }
  .ct-ico       { width: 36px; height: 36px; font-size: 0.76rem; flex-shrink: 0; }
  .ct-link strong { font-size: 0.8rem; }
  .ct-link span   { font-size: 0.72rem; word-break: break-all; }

  /* Footer */
  .footer       { padding: 28px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ft-nav       { display: none; }
  .ft-name      { font-size: 0.9rem; }
  .ft-sub       { font-size: 0.65rem; }
  .ft-copy      { font-size: 0.65rem; }
}

/* =============================================
   480px — Smartphones médios
============================================= */
@media (max-width: 480px) {

  .wrap   { padding: 0 16px; }
  section { padding: 56px 0; }

  /* Hero */
  .hero    { padding: 90px 0 56px; }
  .hero-h1 { font-size: clamp(2.2rem, 15vw, 3.2rem); }
  .hero-content { gap: 28px; }
  .hero-kpis { gap: 10px; }
  .kpi { padding: 12px 10px; }
  .kpi strong { font-size: 1.3rem; }
  .kpi span   { font-size: 0.6rem; }

  /* ✅ FOTO HERO em 480px */
  .hero-right .hero-card { max-width: 260px; padding: 16px; }

  /* ✅ FOTO SOBRE em 480px */
  .photo-inner { height: 200px; border-radius: 10px; }

  /* Sobre */
  .valor { grid-template-columns: 32px 1fr; gap: 10px; padding: 14px; }
  .valor strong { font-size: 0.84rem; }
  .valor p      { font-size: 0.76rem; }

  /* Skills */
  .sk-tags span { font-size: 0.58rem; padding: 2px 8px; }

  /* Projetos */
  .proj-card h3 { font-size: 1.15rem; }
  .proj-metrics { grid-template-columns: repeat(2, 1fr); }

  /* Números */
  .nums-grid { grid-template-columns: 1fr; }
  .num-item  { padding: 24px; }

  /* Depoimentos */
  .dep-autor { flex-wrap: wrap; }

  /* Contato */
  .ct-dir .form { padding: 20px 16px; }

  /* Navbar */
  .nav-menu { width: min(280px, 85vw); padding: 90px 24px 32px; }
  .nav-a    { font-size: 0.92rem; padding: 11px 14px; }
}

/* =============================================
   360px — Smartphones pequenos
============================================= */
@media (max-width: 360px) {

  body    { font-size: 14px; }
  .wrap   { padding: 0 14px; }
  section { padding: 48px 0; }

  /* Navbar */
  .brand-mark { font-size: 1rem; }
  .brand-sub  { display: none; }
  .brand-line { display: none; }
  .nav-menu   { width: 100vw; border-left: none; }

  /* Hero */
  .hero      { padding: 84px 0 48px; }
  .hero-h1   { font-size: clamp(2rem, 16vw, 2.8rem); letter-spacing: -0.03em; }
  .hero-eyebrow     { display: none; }
  .hero-role        { font-size: 0.65rem; letter-spacing: 0.12em; }
  .hero-lead        { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-scroll-hint { display: none; }
  .hero-kpis { gap: 8px; }
  .kpi { padding: 10px 8px; }
  .kpi strong { font-size: 1.2rem; }

  /* ✅ FOTO HERO em 360px */
  .hero-right .hero-card { max-width: 240px; padding: 14px; }

  /* ✅ FOTO SOBRE em 360px — NUNCA fica minúscula */
  .photo-inner { width: 100%; max-width: 100%; height: 180px; border-radius: 8px; }

  /* Sobre */
  .sobre-lead { font-size: 1rem; }
  .sobre-body { font-size: 0.84rem; }

  /* Skills */
  .sk-card    { padding: 18px 16px; }
  .sk-card h3 { font-size: 0.95rem; }
  .sk-card p  { font-size: 0.78rem; }

  /* Timeline */
  .tl-body    { padding: 16px; }
  .tl-body h3 { font-size: 0.95rem; }

  /* Projetos */
  .proj-card    { padding: 20px 16px; }
  .proj-card h3 { font-size: 1.1rem; }
  .pm strong    { font-size: 1rem; }
  .proj-metrics { gap: 8px; }

  /* Números */
  .num-val { font-size: 2rem; }

  /* Depoimentos */
  .dep   { padding: 20px 16px; }
  .dep p { font-size: 0.85rem; }

  /* Contato */
  .ct-dir .form { padding: 18px 14px; }
  .ct-lead      { font-size: 0.95rem; }
  .ct-body      { font-size: 0.8rem; }

  /* Footer */
  .footer { padding: 22px 0; }
}

/* =============================================
   320px — Dispositivos mínimos (iPhone SE 1ª gen)
============================================= */
@media (max-width: 320px) {

  body  { font-size: 13.5px; }
  .wrap { padding: 0 12px; }

  .hero-h1   { font-size: 1.9rem; }
  .sec-title { font-size: 1.7rem; }

  .btn-blue,
  .btn-outline-blue { padding: 11px 18px; font-size: 0.68rem; }

  .hero-kpis  { gap: 6px; }
  .kpi        { padding: 8px 6px; }
  .kpi strong { font-size: 1.1rem; }

  /* ✅ FOTO HERO em 320px */
  .hero-right .hero-card { max-width: 220px; padding: 12px; }

  /* ✅ FOTO SOBRE em 320px */
  .photo-inner { width: 100%; height: 160px; border-radius: 8px; }

  .hc-tags .hc-tag,
  .sk-tags span,
  .proj-tags-list span { font-size: 0.55rem; padding: 2px 7px; }

  .proj-metrics { grid-template-columns: 1fr 1fr; }
  .pm strong    { font-size: 0.95rem; }
}

/* =============================================
   Landscape em smartphones
============================================= */
@media (max-width: 768px) and (orientation: landscape) {

  .hero { min-height: auto; padding: 80px 0 48px; }
  .hero-h1          { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-scroll-hint { display: none; }

  /* Foto hero em landscape: lado a lado com texto */
  .hero-content { max-width: 100%; }
  .hero-right .hero-card { max-width: 220px; }

  section { padding: 48px 0; }

  .nav-menu {
    height: 100vh; height: 100dvh;
    padding-top: 70px;
    overflow-y: auto;
  }

  .nums-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   Touch — remove hover presos
============================================= */
@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-ring { display: none; }
  body { cursor: auto; }

  .tl-body:hover,
  .valor:hover,
  .sk-card:hover,
  .proj-card:hover,
  .dep:hover { transform: none; }

  .tl-body:hover::after    { opacity: 0; }
  .sk-card:hover::before   { transform: scaleX(0); }
  .proj-card:hover::before { transform: scaleY(0); }
  .dep:hover::after        { transform: scaleX(0); }

  .btn-blue:hover,
  .btn-outline-blue:hover,
  .nav-a.nav-cta:hover { transform: none; box-shadow: none; }
}

/* =============================================
   Acessibilidade — movimento reduzido
============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal           { opacity: 1; transform: none; }
  html              { scroll-behavior: auto; }
  .scroll-line-anim { animation: none; }
  .eyebrow-dot, .dot-g, .dot-pulse { animation: none; }
  .deco-ring { animation: none; }
  .sk-bar    { transition: none; }
}

/* =============================================
   Modo escuro (base — descomente para activar)
============================================= */
@media (prefers-color-scheme: dark) {
  /*
  :root {
    --bg: #0d1b3e; --bg2: #112254; --bg3: #1a2d5a;
    --text: #e8eeff; --text2: #b0bde0; --text3: #7a8fc0;
    --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.15);
  }
  */
}

/* =============================================
   Print
============================================= */
@media print {
  .cursor-dot, .cursor-ring, .navbar, .hero-deco,
  .hero-scroll-hint, .burger, .hero-btns, .contato, .footer
  { display: none !important; }

  body    { background: #fff !important; color: #000; font-size: 12pt; }
  a       { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .nav-a.nav-cta::after { display: none; }

  .hero { min-height: auto; padding: 20pt 0; background: #fff !important; }
  .hero-h1    { font-size: 36pt; color: #000; }
  .h1-outline { -webkit-text-stroke: 2px #000; }
  .hero-content { grid-template-columns: 1fr; }

  section { padding: 20pt 0; break-inside: avoid; }
  .wrap   { padding: 0; max-width: 100%; }

  .tl-body, .sk-card, .proj-card, .dep {
    box-shadow: none !important;
    border: 1pt solid #ccc !important;
  }

  .competencias, .numeros { background: #fff !important; }
  .competencias .sec-title, .numeros .sec-title { color: #000 !important; }
  .sk-card        { background: #f5f5f5 !important; }
  .sk-card h3, .sk-card p { color: #000 !important; }
  .sk-tags span   { color: #333 !important; border-color: #999 !important; }
  .nums-grid      { grid-template-columns: repeat(3, 1fr); }
  .num-val, .num-val .counter { color: #000 !important; }
  .num-item p     { color: #333 !important; }
}