/* ============================================================
   front.css — Bruno Santos Portfolio
   ============================================================ */

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

:root {
  --bg: #0a0a0a; --bg2: #111111; --bg3: #161616;
  --surface: #1a1a1a; --border: #2a2a2a;
  --accent: #FFB800; --accent2: #ffcc44;
  --text: #e8e8e8; --text-muted: #666; --text-mid: #999;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-weight: 300; line-height: 1.6; overflow-x: hidden; }

/* ── CURSOR ── */
.cursor { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transition: transform 0.15s ease; mix-blend-mode: difference; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transition: transform 0.4s ease, width 0.3s, height 0.3s, opacity 0.3s; mix-blend-mode: difference; opacity: 0.5; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 3rem; background: rgba(10,10,10,0.8); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
nav.scrolled { border-color: var(--border); }
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); text-decoration: none; border: 1px solid var(--accent); padding: 0.5rem 1.2rem; letter-spacing: 0.08em; transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--accent); color: var(--bg); }
.nav-back { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; letter-spacing: 0.05em; }
.nav-back:hover { color: var(--accent); }
.nav-langs { display: flex; align-items: center; gap: 0.75rem; }
.nav-langs a { font-family: var(--font-mono); font-size: 0.75rem; text-decoration: none; transition: color 0.2s; }
.nav-langs span { color: var(--border); }

/* ── COMMON ── */
section { padding: 7rem 3rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4rem; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── HERO ── */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 0 3rem; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.3; mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent); }
.hero-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,184,0,0.07) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
.hero-name { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 9rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.8s 0.4s forwards; }
.hero-name .line2 { color: transparent; -webkit-text-stroke: 1px rgba(232,232,232,0.3); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; margin-bottom: 3rem; opacity: 0; animation: fadeUp 0.8s 0.6s forwards; line-height: 1.7; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; opacity: 0; animation: fadeUp 0.8s 0.8s forwards; }
.btn-primary { background: var(--accent); color: var(--bg); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; padding: 1rem 2rem; text-decoration: none; font-weight: 400; transition: opacity 0.2s, transform 0.2s; }
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-ghost { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-mid); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.btn-ghost:hover { color: var(--text); }
.hero-stats { position: absolute; right: 0; bottom: -2rem; display: flex; flex-direction: column; gap: 1.5rem; opacity: 0; animation: fadeUp 0.8s 1s forwards; }
.stat { text-align: right; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-hint { position: absolute; bottom: 2rem; left: 3rem; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; display: flex; align-items: center; gap: 1rem; opacity: 0; animation: fadeUp 0.8s 1.2s forwards; }
.scroll-hint::after { content: ''; width: 40px; height: 1px; background: var(--text-muted); }

/* ── ABOUT ── */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-frame { aspect-ratio: 3/4; background: var(--surface); position: relative; overflow: hidden; }
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.about-img-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,184,0,0.1) 0%, transparent 60%); }
.about-corner { position: absolute; width: 80px; height: 80px; border: 2px solid var(--accent); }
.about-corner.tl { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.about-corner.br { bottom: -12px; right: -12px; border-left: none; border-top: none; }
.about-text p { font-size: 1.05rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 1.5rem; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.detail-item { display: flex; flex-direction: column; gap: 0.2rem; }
.detail-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.detail-value { font-size: 0.95rem; color: var(--text); }
.detail-value a { color: var(--accent); text-decoration: none; }

/* ── STACK ── */
#stack { background: var(--bg); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.tech-item { background: var(--bg); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; transition: background 0.2s; cursor: default; }
.tech-item:hover { background: var(--surface); }
.tech-icon { font-size: 1.8rem; }
.tech-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text); }
.tech-type { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── RESUME ── */
#resume { background: var(--bg2); }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.resume-col-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2rem; }
.timeline { display: flex; flex-direction: column; }
.timeline-item { padding: 2rem 0 2rem 2rem; border-left: 1px solid var(--border); position: relative; transition: border-color 0.3s; }
.timeline-item:hover { border-color: var(--accent); }
.timeline-dot { position: absolute; left: -5px; top: 2.4rem; width: 9px; height: 9px; background: var(--bg2); border: 2px solid var(--border); border-radius: 50%; transition: border-color 0.3s, background 0.3s; }
.timeline-item:hover .timeline-dot { border-color: var(--accent); background: var(--accent); }
.timeline-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.timeline-role { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; }
.timeline-company { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── PORTFOLIO ── */
#portfolio { background: var(--bg); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
a.portfolio-item { display: block; text-decoration: none; color: inherit; position: relative; aspect-ratio: 4/3; background: var(--surface); overflow: hidden; cursor: pointer; }
a.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s; filter: grayscale(40%) brightness(0.7); }
a.portfolio-item:hover img { transform: scale(1.06); filter: grayscale(0%) brightness(0.9); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; transform: translateY(10px); opacity: 0; transition: opacity 0.4s, transform 0.4s; }
a.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-num { font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 0.3rem; }
.portfolio-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.portfolio-tag { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── SERVICES ── */
#services { background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.service-card { background: var(--bg2); padding: 2.5rem 2rem; border-top: 2px solid transparent; transition: border-color 0.3s, background 0.3s; }
.service-card:hover { border-color: var(--accent); background: var(--surface); }
.service-num { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.2em; margin-bottom: 1.5rem; }
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.service-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── CONTACT ── */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-info p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 3rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); padding: 1rem 0; border-bottom: 1px solid var(--border); transition: color 0.2s, border-color 0.2s; }
.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-link-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; min-width: 70px; }
.contact-link-value { font-size: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.field { background: var(--bg2); display: flex; flex-direction: column; transition: background 0.2s; }
.field:focus-within { background: var(--surface); }
.field label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.15em; padding: 1rem 1.5rem 0; }
.field input,
.field textarea { background: transparent; border: none; outline: none; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; padding: 0.5rem 1.5rem 1rem; resize: none; }
.field textarea { min-height: 120px; }
.form-submit { background: var(--accent); color: var(--bg); border: none; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; padding: 1.2rem; cursor: pointer; transition: opacity 0.2s; text-transform: uppercase; }
.form-submit:hover { opacity: 0.85; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.footer-copy span { color: var(--accent); }
.footer-back { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-back:hover { color: var(--accent); }

/* ── PORTFOLIO DETALHE ── */
.projeto-hero { padding: 8rem 3rem 4rem; border-bottom: 1px solid var(--border); }
.projeto-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.projeto-titulo { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 2rem; }
.projeto-meta { display: flex; gap: 3rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border); }
.meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-label { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.meta-value { font-size: 0.95rem; color: var(--text); }
.projeto-imagens { padding: 4rem 3rem; background: var(--bg2); }
.imagens-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.imagens-grid .img-principal { grid-column: 1 / -1; }
.img-wrap { overflow: hidden; aspect-ratio: 16/9; background: var(--surface); }
.img-wrap.tall { aspect-ratio: 16/10; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.9); }
.img-wrap:hover img { transform: scale(1.03); filter: brightness(1); }
.projeto-conteudo { padding: 5rem 3rem; }
.conteudo-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start; }
.sidebar-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; }
.categorias-list { display: flex; flex-direction: column; gap: 0.5rem; }
.categoria-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-mid); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.descricao-longa { font-size: 1rem; color: var(--text-mid); line-height: 1.9; }
.descricao-longa p { color: var(--text-mid); margin-bottom: 1rem; line-height: 1.8; }
.descricao-longa ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.descricao-longa li { margin-bottom: 1.2rem; color: var(--text); line-height: 1.7; padding-left: 1.5rem; position: relative; }
.descricao-longa .bullet { color: var(--accent); position: absolute; left: 0; top: 0; }
.descricao-longa li strong { color: var(--accent); font-weight: 600; }
.projeto-nav { border-top: 1px solid var(--border); padding: 3rem; display: flex; justify-content: space-between; align-items: center; }
.proj-nav-link { text-decoration: none; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; transition: color 0.2s; display: flex; flex-direction: column; gap: 0.3rem; }
.proj-nav-link:hover { color: var(--accent); }
.proj-nav-label { font-size: 0.65rem; opacity: 0.5; }
.proj-nav-center a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); padding: 0.6rem 1.5rem; transition: border-color 0.2s, color 0.2s; }
.proj-nav-center a:hover { border-color: var(--accent); color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  #hero { padding: 0 1.5rem; }
  .hero-name { font-size: clamp(3rem, 13vw, 6rem); }
  .hero-stats { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 3rem; }
  .stat { text-align: left; }
  .about-grid, .contact-grid, .resume-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { max-width: 320px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .projeto-hero, .projeto-imagens, .projeto-conteudo { padding-left: 1.5rem; padding-right: 1.5rem; }
  .projeto-titulo { font-size: clamp(2.5rem, 10vw, 4rem); }
  .imagens-grid { grid-template-columns: 1fr; }
  .conteudo-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projeto-nav { padding: 2rem 1.5rem; }
}
