/* ============================================================
   Mirandas Tech — Repaginação "Tech Moderno" (camada sobre style.css)
   Fundo animado, glassmorphism, glow, hero 2 colunas, reveal.
   ============================================================ */

:root {
  --grad-brand: linear-gradient(120deg, #1DB954 0%, #00F0FF 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(29,185,84,.18), rgba(0,240,255,.18));
  --glass: rgba(19, 40, 62, 0.55);
  --glass-brd: rgba(120, 180, 220, 0.16);
  --glow-green: rgba(29, 185, 84, 0.45);
  --glow-cyan: rgba(0, 240, 255, 0.35);
}

html { scroll-behavior: smooth; }
body {
  background: #07131f;
  overflow-x: hidden;
}

/* ---------- Fundo tecnológico animado ---------- */
.tech-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 12% -5%, rgba(29,185,84,.10), transparent 60%),
    radial-gradient(1000px 650px at 95% 10%, rgba(0,240,255,.10), transparent 55%),
    linear-gradient(180deg, #08151f 0%, #0a1a2b 45%, #07131f 100%);
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(120,180,220,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,220,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 40%, transparent 100%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 46px 920px, 46px 920px; } }

.tech-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-a { width: 460px; height: 460px; top: -120px; left: -80px; background: radial-gradient(circle, rgba(29,185,84,.6), transparent 70%); }
.orb-b { width: 520px; height: 520px; bottom: -160px; right: -120px; background: radial-gradient(circle, rgba(0,240,255,.5), transparent 70%); animation-delay: -7s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.12); } }

#tech-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

/* ---------- Navbar mais "vidro" ---------- */
#header {
  background: rgba(8, 19, 31, 0.72) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(120,180,220,.12) !important;
}
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-brand); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* ---------- Botões modernos ---------- */
.btn { position: relative; overflow: hidden; border-radius: 12px; letter-spacing: .2px; }
.btn-primary {
  background: var(--grad-brand) !important;
  color: #04121a !important;
  font-weight: 700;
  border: none !important;
  box-shadow: 0 8px 26px var(--glow-green), inset 0 0 0 1px rgba(255,255,255,.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--glow-green); }
.btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn:hover::before { left: 140%; }
.btn-outline {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(120,180,220,.28) !important;
  color: var(--color-white) !important;
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
  box-shadow: 0 0 24px rgba(0,240,255,.25);
  transform: translateY(-2px);
}

/* ---------- Títulos de seção ---------- */
.section-title {
  background: linear-gradient(120deg, #fff 0%, #b9c6d6 60%, #00F0FF 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle { color: var(--color-accent) !important; letter-spacing: 2px; }

/* ---------- HERO repaginado ---------- */
.hero { position: relative; min-height: calc(100vh - 80px); display: flex; align-items: center; padding: 4rem 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hero-content { text-align: left !important; max-width: none !important; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: 2px; color: #cfeede;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--grad-brand-soft); border: 1px solid rgba(29,185,84,.3);
  margin-bottom: 1.5rem;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #1DB954; box-shadow: 0 0 0 0 var(--glow-green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29,185,84,.6);} 70% { box-shadow: 0 0 0 12px rgba(29,185,84,0);} 100% { box-shadow: 0 0 0 0 rgba(29,185,84,0);} }
.hero-content h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.08; margin-bottom: 1.4rem;
}
.hero-content h1 .text-gradient { filter: drop-shadow(0 0 22px rgba(0,240,255,.25)); }
.hero-content > p { font-size: 1.12rem; color: var(--color-text-muted); max-width: 540px; margin: 0 0 2rem !important; }
.hero-cta { justify-content: flex-start !important; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; }
.hero-chips .chip { display: flex; flex-direction: column; }
.hero-chips .chip b { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: 1.5rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-chips .chip span { font-size: .78rem; color: var(--color-text-muted); letter-spacing: .5px; }

/* Cartão "terminal" do hero */
.hero-visual { position: relative; }
.terminal-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: rgba(10, 22, 35, 0.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(120,180,220,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(0,240,255,.08);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.terminal-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(120,180,220,.12); }
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.terminal-bar span:nth-child(1){ background:#ff5f57; } .terminal-bar span:nth-child(2){ background:#febc2e; } .terminal-bar span:nth-child(3){ background:#28c840; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--color-text-muted); }
.terminal-body { margin: 0; padding: 1.4rem 1.4rem 1.7rem; font-family: 'JetBrains Mono','Fira Code',ui-monospace,monospace; font-size: .92rem; line-height: 1.85; color: #cdd9e6; }
.terminal-body .tk { color: #7da2c0; } .terminal-body .kw { color: #00F0FF; } .terminal-body .st { color: #1DB954; } .terminal-body .fn { color: #ffd24a; } .terminal-body .cm { color: #5a708a; font-style: italic; }
.terminal-body .cursor { display: inline-block; width: 9px; height: 1.05em; background: #1DB954; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-foto {
  position: relative; border-radius: 18px; overflow: hidden;
  max-width: 410px; margin: 0 auto;
  border: 1px solid rgba(120, 180, 220, .2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(0, 240, 255, .08);
  animation: floatY 6s ease-in-out infinite;
}
.hero-foto img { display: block; width: 100%; height: auto; }
.hero-foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 18px;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 19, 31, .5) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .12);
}
.hero-visual .float-badge {
  position: absolute; display: flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; border-radius: 12px; font-size: .82rem; font-weight: 600; color: #eaf2ff;
  background: rgba(13,28,45,.85); border: 1px solid rgba(120,180,220,.2); backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.hero-visual .fb-1 { top: -18px; right: 24px; animation: floatY 5s ease-in-out infinite; }
.hero-visual .fb-2 { bottom: -16px; left: -18px; animation: floatY 7s ease-in-out infinite; }
.hero-visual .float-badge i { color: var(--color-secondary); }

/* ---------- Cards em vidro (valores, serviços, projetos, tech) ---------- */
.value-card, .service-card, .portfolio-item, .stat-item, .expertise-item, .pricing-card {
  background: var(--glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd) !important;
  border-radius: 18px !important;
  position: relative;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.value-card:hover, .service-card:hover, .portfolio-item:hover, .expertise-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0,240,255,.35) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px rgba(0,240,255,.08);
}
/* brilho de topo nos cards */
.value-card::before, .service-card::before, .portfolio-item::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.5), transparent);
  opacity: 0; transition: opacity .3s;
}
.value-card:hover::before, .service-card:hover::before, .portfolio-item:hover::before { opacity: 1; }

/* Ícones com glow */
.value-icon, .icon-box {
  background: var(--grad-brand-soft) !important;
  border: 1px solid rgba(29,185,84,.3);
  box-shadow: inset 0 0 20px rgba(0,240,255,.08);
}
.value-icon i, .icon-box i { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Stats */
.stat-number { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 0 16px rgba(29,185,84,.25)); }

/* ---------- Sobre: foto + bio ---------- */
.about-top {
  display: grid; grid-template-columns: 340px 1fr; gap: 2.8rem; align-items: center;
  margin-bottom: 3rem;
}
.about-top .about-intro { text-align: left; }
.about-foto {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(120, 180, 220, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(0, 240, 255, .06);
}
.about-foto img { display: block; width: 100%; height: auto; }
.about-foto::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .1);
  background: linear-gradient(160deg, transparent 62%, rgba(7, 19, 31, .35));
}
@media (max-width: 820px) {
  .about-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-foto { max-width: 300px; margin: 0 auto; }
  .about-top .about-intro { text-align: center; }
}

/* ---------- Reveal no scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #08151f; }
::-webkit-scrollbar-thumb { background: linear-gradient(#1DB954,#00F0FF); border-radius: 10px; border: 3px solid #08151f; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { order: -1; max-width: 520px; margin: 0 auto; }
  .hero-content { text-align: center !important; }
  .hero-content > p { margin-left: auto !important; margin-right: auto !important; }
  .hero-cta { justify-content: center !important; }
  .hero-chips { justify-content: center; }
}
@media (max-width: 600px) {
  .hero-visual .float-badge { display: none; }
  .terminal-body { font-size: .8rem; }
}
/* ---------- Seção Tecnologias (refinada) ---------- */
#tech .tech-intro { color: #aebccd; }
#tech .tech-category { margin-bottom: 2.8rem; }
#tech .tech-category-title { color: #eaf2ff; font-size: 1.2rem; letter-spacing: .3px; }
#tech .tech-category-title i { color: var(--color-accent); }

/* Áreas de Especialização — ícone em quadro com glow, texto legível */
#tech .expertise-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
#tech .expertise-item { padding: 1.8rem 1.4rem !important; }
#tech .expertise-icon {
  filter: none !important;
  font-size: 2rem !important;
  width: 60px; height: 60px;
  margin: 0 auto 1.1rem !important;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(29,185,84,.28);
  box-shadow: inset 0 0 18px rgba(0,240,255,.08);
}
#tech .expertise-item:hover .expertise-icon { transform: scale(1.06); }
#tech .expertise-item h4 { color: #fff; }
#tech .expertise-item p { color: #9fb0c4; }

/* Chips de tecnologia — pílulas modernas (sem o visual de card) */
#tech .tech-item {
  border-radius: 999px !important;
  padding: .58rem 1.15rem !important;
  background: rgba(255,255,255,.045) !important;
  border: 1px solid rgba(120,180,220,.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  font-size: .92rem;
  color: #dce6f1;
}
#tech .tech-item:hover {
  transform: translateY(-3px) !important;
  border-color: var(--color-secondary) !important;
  box-shadow: 0 8px 22px rgba(29,185,84,.28) !important;
  color: #fff;
}
#tech .tech-item i { color: var(--color-secondary); }

@media (prefers-reduced-motion: reduce) {
  .bg-grid, .tech-orb, .terminal-card, .pulse-dot, .hero-visual .float-badge { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
