/* ============================================================
   style.css — Portfolio Amintas Junio
   ============================================================ */
:root {
  --bg: #09090f;
  --surface: #0f0f1a;
  --surface2: #141424;
  --border: rgba(255,255,255,0.07);
  --accent: #5b8cff;
  --accent2: #ff6b6b;
  --accent3: #00e5a0;
  --text: #e8e8f0;
  --muted: #6b6b8a;
  --white: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; opacity: 0.4; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; background: rgba(9,9,15,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--white); text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--accent); color: var(--white) !important; padding: 8px 20px; border-radius: 6px; transition: opacity 0.2s !important; }
.nav-cta:hover { opacity: 0.85; }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 40px 80px; position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(91,140,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(91,140,255,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%); }
.hero-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(91,140,255,0.12) 0%, transparent 70%); top: -100px; right: -100px; pointer-events: none; }
.hero-glow2 { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,229,160,0.08) 0%, transparent 70%); bottom: 0; left: 10%; pointer-events: none; }
.hero-content { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(91,140,255,0.1); border: 1px solid rgba(91,140,255,0.25); padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-family: 'DM Mono', monospace; color: var(--accent); margin-bottom: 32px; animation: fadeUp 0.6s ease both; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent3); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-name { font-family: 'Syne', sans-serif; font-size: clamp(3rem, 8vw, 7rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: var(--white); animation: fadeUp 0.6s 0.1s ease both; margin-bottom: 8px; }
.hero-name .accent { color: var(--accent); }
.hero-title { font-family: 'Syne', sans-serif; font-size: clamp(1rem, 2.5vw, 1.6rem); font-weight: 600; color: var(--muted); letter-spacing: -0.01em; animation: fadeUp 0.6s 0.2s ease both; margin-bottom: 28px; }
.hero-desc { max-width: 560px; color: rgba(232,232,240,0.7); font-size: 1.05rem; line-height: 1.7; animation: fadeUp 0.6s 0.3s ease both; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.6s 0.4s ease both; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #4a7be8; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); animation: fadeUp 0.6s 0.5s ease both; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--white); letter-spacing: -0.04em; line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* SECTIONS */
section { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 0; max-width: 100%; }
.section-full .inner { max-width: 1200px; margin: 0 auto; padding: 100px 40px; }
.section-ai { background: linear-gradient(135deg, rgba(91,140,255,0.05) 0%, rgba(0,229,160,0.03) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#skills { background: var(--surface); }
.section-label { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 480px; margin-bottom: 60px; }

/* ABOUT */
#about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.big-quote { font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--white); margin-bottom: 28px; }
.big-quote em { font-style: normal; color: var(--accent3); }
.about-text { color: rgba(232,232,240,0.7); line-height: 1.8; margin-bottom: 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { padding: 5px 12px; border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--accent); background: rgba(91,140,255,0.1); border: 1px solid rgba(91,140,255,0.2); }
.tag.green { color: var(--accent3); background: rgba(0,229,160,0.08); border-color: rgba(0,229,160,0.2); }
.tag.red { color: var(--accent2); background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.2); }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 16px; transition: border-color 0.2s; }
.info-card:hover { border-color: rgba(91,140,255,0.3); }
.info-card-label { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.info-card-value { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 600; color: var(--white); }
.info-card-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

/* CODE WINDOW */
.code-window { background: #0a0a14; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-family: 'DM Mono', monospace; }
.code-header { background: var(--surface); padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.r { background: #ff5f56; } .code-dot.y { background: #ffbd2e; } .code-dot.g { background: #27c93f; }
.code-filename { font-size: 0.75rem; color: var(--muted); margin-left: 8px; }
.code-body { padding: 20px; font-size: 0.8rem; line-height: 2; overflow-x: auto; }
.kw { color: #b392f0; } .fn { color: #79b8ff; } .str { color: #9ecbff; } .cm { color: var(--muted); font-style: italic; } .var { color: #e1e4e8; } .op { color: #f97583; } .num { color: var(--accent3); }

/* SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: all 0.3s; position: relative; overflow: hidden; }
.skill-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent3)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.skill-card:hover { border-color: rgba(91,140,255,0.25); transform: translateY(-4px); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.skill-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 8px; }
.skill-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag { font-family: 'DM Mono', monospace; font-size: 0.72rem; padding: 3px 10px; border-radius: 4px; background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }

/* TIMELINE */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 52px; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,0.2); }
.timeline-item.current::before { background: var(--accent3); animation: timelinePulse 2s infinite; }
@keyframes timelinePulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(0,229,160,0.2), 0 0 16px rgba(0,229,160,0.4); } 50% { box-shadow: 0 0 0 6px rgba(0,229,160,0.1), 0 0 24px rgba(0,229,160,0.3); } }
.timeline-period { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 6px; }
.timeline-role { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.timeline-company { font-size: 0.95rem; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.timeline-desc { color: rgba(232,232,240,0.65); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }
.timeline-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: 'DM Mono', monospace; font-size: 0.7rem; padding: 3px 10px; border-radius: 4px; background: rgba(91,140,255,0.08); color: rgba(91,140,255,0.8); border: 1px solid rgba(91,140,255,0.15); }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: all 0.3s; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.project-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(91,140,255,0.06) 0%, transparent 60%); opacity: 0; transition: opacity 0.3s; }
.project-card:hover { border-color: rgba(91,140,255,0.3); transform: translateY(-4px); }
.project-card:hover::after { opacity: 1; }
.project-card.green:hover { border-color: rgba(0,229,160,0.3); }
.project-card.red:hover { border-color: rgba(255,107,107,0.3); }
.project-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(91,140,255,0.1); border: 1px solid rgba(91,140,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.project-name { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.project-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.project-impact { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 14px; background: rgba(0,229,160,0.05); border: 1px solid rgba(0,229,160,0.15); border-radius: 6px; }
.project-impact-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent3); }
.project-impact-text { font-size: 0.82rem; color: rgba(232,232,240,0.6); line-height: 1.3; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-tag { font-family: 'DM Mono', monospace; font-size: 0.68rem; padding: 3px 8px; border-radius: 3px; background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }
.proj-link { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: var(--accent); text-decoration: none; padding: 4px 10px; border: 1px solid rgba(91,140,255,0.3); border-radius: 4px; transition: background 0.2s; }
.proj-link:hover { background: rgba(91,140,255,0.1); }

/* AI */
.ai-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.ai-items { display: flex; flex-direction: column; gap: 20px; }
.ai-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color 0.2s; }
.ai-item:hover { border-color: rgba(0,229,160,0.3); }
.ai-item-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,229,160,0.1); border-radius: 8px; font-size: 1.2rem; }
.ai-item-title { font-weight: 600; color: var(--white); margin-bottom: 4px; font-size: 0.95rem; }
.ai-item-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* CERTS */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: all 0.2s; }
.cert-card:hover { border-color: rgba(91,140,255,0.3); }
.cert-icon { font-size: 1.6rem; flex-shrink: 0; }
.cert-name { font-weight: 600; font-size: 0.9rem; color: var(--white); margin-bottom: 4px; }
.cert-org { font-size: 0.8rem; color: var(--muted); }
.cert-badge { display: inline-block; font-family: 'DM Mono', monospace; font-size: 0.65rem; padding: 2px 8px; border-radius: 3px; background: rgba(0,229,160,0.1); color: var(--accent3); border: 1px solid rgba(0,229,160,0.2); margin-top: 6px; }

/* CONTACT */
.contact-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: all 0.2s; font-size: 0.95rem; }
.contact-card:hover { border-color: rgba(91,140,255,0.4); background: rgba(91,140,255,0.06); color: var(--white); }
.contact-card svg { width: 20px; height: 20px; opacity: 0.7; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 40px; text-align: center; color: var(--muted); font-size: 0.85rem; }
footer span { color: var(--accent); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  #hero { padding: 100px 20px 60px; }
  section { padding: 80px 20px; }
  .section-full .inner { padding: 80px 20px; }
  .about-grid, .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
}

/* ── FOTO DO PERFIL ── */
.hero-photo-wrap {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-photo-ring {
  position: relative;
  width: 340px; height: 340px;
}
/* anel giratório tracejado */
.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(91,140,255,0.35);
  animation: spinRing 18s linear infinite;
}
/* anel interno pulsante */
.hero-photo-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,160,0.2);
  animation: pulseRing 3s ease-in-out infinite;
}
@keyframes spinRing  { to { transform: rotate(360deg); } }
@keyframes pulseRing { 0%,100% { opacity:0.2; transform:scale(1); } 50% { opacity:0.7; transform:scale(1.03); } }

/* bolinha decorativa orbitando */
.hero-photo-ring .orbit-dot {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  animation: spinRing 18s linear infinite;
}
.hero-photo-ring .orbit-dot::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(91,140,255,0.5);
}

/* glow atrás da foto */
.photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,255,0.18) 0%, transparent 70%);
  animation: pulseRing 4s ease-in-out infinite;
}

/* a foto em si */
.hero-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(91,140,255,0.4);
  position: relative; z-index: 1;
  filter: brightness(1.02) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-photo:hover {
  transform: scale(1.03);
  filter: brightness(1.08) contrast(1.08);
}

/* placeholder quando não tem foto */
.hero-photo-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface2);
  border: 3px dashed rgba(91,140,255,0.3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  position: relative; z-index: 1;
}
.hero-photo-placeholder span { font-size: 2.5rem; opacity: 0.4; }

/* badges flutuantes — base */
.photo-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 13px;
  font-family: 'DM Mono', monospace;
  font-size: 0.70rem;
  color: var(--text);
  white-space: nowrap;
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* 6 posições ao redor do círculo, alternando esquerda/direita */
/* badge-0: esquerda-baixo   */ .photo-badge.badge-0 { bottom: 24px;  left: -38px;  color:var(--accent);  border-color:rgba(91,140,255,0.35); animation: fb0 4s 0.0s ease-in-out infinite; }
/* badge-1: direita-topo     */ .photo-badge.badge-1 { top: 24px;     right: -38px; color:var(--accent3); border-color:rgba(0,229,160,0.35);  animation: fb1 4s 0.7s ease-in-out infinite; }
/* badge-2: direita-meio     */ .photo-badge.badge-2 { top: 50%;      right: -48px; color:var(--accent2); border-color:rgba(255,107,107,0.35);animation: fb2 4s 1.4s ease-in-out infinite; transform: translateY(-50%); }
/* badge-3: esquerda-topo    */ .photo-badge.badge-3 { top: 24px;     left: -38px;  color:var(--accent);  border-color:rgba(91,140,255,0.35); animation: fb3 4s 2.1s ease-in-out infinite; }
/* badge-4: direita-baixo    */ .photo-badge.badge-4 { bottom: 24px;  right: -38px; color:var(--accent3); border-color:rgba(0,229,160,0.35);  animation: fb4 4s 2.8s ease-in-out infinite; }
/* badge-5: esquerda-meio    */ .photo-badge.badge-5 { top: 50%;      left: -48px;  color:var(--accent2); border-color:rgba(255,107,107,0.35);animation: fb5 4s 3.5s ease-in-out infinite; transform: translateY(-50%); }

@keyframes fb0 { 0%,100%{transform:translateY(0)}       50%{transform:translateY(-7px)} }
@keyframes fb1 { 0%,100%{transform:translateY(0)}       50%{transform:translateY(-7px)} }
@keyframes fb2 { 0%,100%{transform:translateY(-50%)}    50%{transform:translateY(calc(-50% - 7px))} }
@keyframes fb3 { 0%,100%{transform:translateY(0)}       50%{transform:translateY(-7px)} }
@keyframes fb4 { 0%,100%{transform:translateY(0)}       50%{transform:translateY(-7px)} }
@keyframes fb5 { 0%,100%{transform:translateY(-50%)}    50%{transform:translateY(calc(-50% - 7px))} }

/* ── HERO LAYOUT COM FOTO ── */
.hero-content-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; min-width: 0; }

/* ── UPLOAD FOTO NO ADMIN ── */
.foto-upload-area {
  border: 2px dashed rgba(91,140,255,0.3);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(91,140,255,0.03);
  position: relative;
}
.foto-upload-area:hover { border-color: rgba(91,140,255,0.6); background: rgba(91,140,255,0.07); }
.foto-upload-area input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.foto-preview-wrap { position: relative; display: inline-block; }
.foto-preview-img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(91,140,255,0.4); }
.foto-remove-btn { position: absolute; top: 0; right: 0; width: 28px; height: 28px; background: #ff6b6b; border: none; border-radius: 50%; cursor: pointer; color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* responsive foto */
@media (max-width: 1100px) {
  .hero-photo-wrap { display: none; }
}
@media (max-width: 900px) {
  .hero-content-inner { flex-direction: column; }
  .hero-photo-wrap { position: static; transform: none; display: flex; justify-content: center; margin-top: 40px; }
  .hero-photo-ring { width: 220px; height: 220px; }
  .photo-badge { display: none; }
}

/* ── SISTEMAS WEB ── */
.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sistema-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.sistema-card:hover {
  border-color: rgba(91,140,255,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* thumbnail */
.sistema-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface2);
}
.sistema-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  display: block;
}
.sistema-card:hover .sistema-thumb img { transform: scale(1.05); }

.sistema-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: var(--muted);
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}

/* overlay ao hover */
.sistema-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(9,9,15,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.sistema-card:hover .sistema-thumb-overlay { opacity: 1; }
.overlay-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(6px);
  transition: transform 0.3s;
}
.sistema-card:hover .overlay-btn { transform: translateY(0); }

.sistema-count-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(9,9,15,0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 3px 10px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

/* info abaixo da thumb */
.sistema-info {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.sistema-icon { font-size: 1.4rem; flex-shrink: 0; }
.sistema-nome {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
}
.sistema-desc-curta {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* ── MODAL / LIGHTBOX ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(8px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute; top: 14px; right: 14px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,107,107,0.3); color: #ff6b6b; }

/* carrossel */
.modal-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
}
.slide-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 3rem;
  line-height: 2;
}
.slide-legenda {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 24px 16px 10px;
  text-align: center;
}

/* botões prev/next */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(9,9,15,0.7);
  border: 1px solid var(--border);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* dots */
.carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.dot.active { background: var(--accent); transform: scale(1.3); }

/* info do modal */
.modal-info { padding: 20px 24px; border-top: 1px solid var(--border); }
.modal-header { display: flex; align-items: flex-start; gap: 14px; }
.modal-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.modal-nome {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.15rem;
  color: var(--white); margin-bottom: 4px;
}
.modal-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* responsive sistemas */
@media (max-width: 900px) {
  .sistemas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sistemas-grid { grid-template-columns: 1fr; }
  .modal-box { max-height: 95vh; }
  .modal-carousel { aspect-ratio: 4/3; }
}

/* ══════════════════════════════════════════
   RICH EDITOR — conteúdo HTML gerado pelo TinyMCE
   ══════════════════════════════════════════ */

/* Wrapper da seção "Sobre" com HTML rico */
.about-rich p    { margin-bottom: 1em; color: var(--muted); line-height: 1.8; }
.about-rich strong { color: var(--white); }
.about-rich em   { color: var(--accent3); font-style: italic; }
.about-rich a    { color: var(--accent); text-decoration: underline; }
.about-rich ul, .about-rich ol { padding-left: 1.4em; color: var(--muted); margin-bottom: 1em; }
.about-rich li   { margin-bottom: .3em; }
.about-rich h1,.about-rich h2,.about-rich h3 { color: var(--white); font-family:'Syne',sans-serif; margin:.8em 0 .4em; }
.about-rich code { background:rgba(91,140,255,.12); color:var(--accent); padding:2px 6px; border-radius:4px; font-size:.88em; }
.about-rich blockquote { border-left:3px solid var(--accent); padding:8px 16px; margin:0 0 1em; color:var(--muted); }

/* Herança para os outros campos ricos */
.hero-desc p, .skill-desc p, .timeline-desc p,
.project-desc p, .ai-item-desc p, .modal-desc p {
  margin-bottom: .6em;
}
.hero-desc strong, .skill-desc strong, .timeline-desc strong,
.project-desc strong, .ai-item-desc strong, .modal-desc strong { color: var(--white); }
.hero-desc em, .ai-item-desc em { color: var(--accent3); }

/* ── Animações disponíveis via estilo "⚡ Animação" no editor ── */
@keyframes reFadeIn  { from { opacity: 0 }               to { opacity: 1 } }
@keyframes reSlideUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes rePulse   { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
@keyframes reGlow    { 0%,100% { text-shadow: 0 0 6px currentColor } 50% { text-shadow: 0 0 18px currentColor } }
@keyframes reShake   { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-4px)} 60%{transform:translateX(4px)} }
@keyframes reBounce  { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.anim-fade  { animation: reFadeIn  1s ease forwards; }
.anim-slide { animation: reSlideUp .8s ease forwards; }
.anim-pulse { animation: rePulse   2s ease infinite; }
.anim-glow  { animation: reGlow    2s ease infinite; }
.anim-shake { animation: reShake   .6s ease; }
.anim-bounce{ animation: reBounce  1s ease infinite; }
