/* ==========================================================
   MICRO FAST INFORMÁTICA — STYLE.CSS (otimizado)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* -------------------- VARIÁVEIS -------------------- */
:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --accent: #0b5f8a;
  --accent-2: #0e7ab3;
  --muted: #6b7280;
  --radius: 14px;
  --max-width: 1200px;
  --gap: 20px;
  --glass: rgba(255,255,255,0.7);
  --font-base: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* -------------------- BASE -------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: 500;
  background: linear-gradient(180deg, #eef2f6 0%, #f7f4ef 100%);
  color: #123;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.container {
  width: calc(100% - 40px);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 0;
}

/* -------------------- CABEÇALHO -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15,23,42,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo { height: 90px; width: auto; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(14,122,179,0.4);
  border-radius: 8px; background: transparent; color: #0e7ab3;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; white-space: nowrap;
  position: relative; z-index: 60;
}
.theme-toggle:hover {
  background: rgba(14,122,179,0.08);
  box-shadow: 0 0 12px rgba(14,122,179,0.15);
}
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 16px;
}
.nav-list a {
  text-decoration: none; color: var(--muted);
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: 0.3s;
}
.nav-list a:hover, .nav-list a.active { color: var(--accent); background: rgba(14,122,179,0.06); }

/* Botão mobile */
.nav-toggle { 
  display: none; 
  background: none; 
  border: 0; 
  font-size: 24px; 
  padding: 8px 12px; 
  cursor: pointer;
  color: var(--accent);
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 60;
}
.nav-toggle:hover {
  background: rgba(14,122,179,0.1);
  transform: scale(1.05);
}
.nav-toggle[aria-expanded="true"] {
  color: #fff;
  background: var(--accent);
}

/* Overlay escuro quando menu está aberto */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 55;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* -------------------- HERO -------------------- */
.hero { position: relative; padding: 60px 0; overflow: hidden; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,95,138,0.06), rgba(14,122,179,0.03));
  pointer-events: none;
}
.hero-content {
  display: grid; grid-template-columns: 1fr 460px; gap: 30px; align-items: center;
}
.hero-left h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(90deg, #0b5f8a, #0e7ab3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-left p { font-size: 1.15rem; color: var(--muted); margin-bottom: 18px; line-height: 1.7; }

/* Hero CTAs - container dos botões */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Garantir que botões do hero tenham limites corretos */
.hero-ctas .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  isolation: isolate;
}

/* Remover ::after dos botões do hero para evitar sobreposição */
.hero-ctas .btn::after {
  display: none !important;
  content: none !important;
}

/* BOTÕES */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; border-radius: var(--radius);
  transition: all 0.3s ease; padding: 12px 20px;
}
.btn.primary { background: #0e7ab3; color: #fff; }
.btn.primary:hover { background: #0b5f8a; transform: translateY(-2px); }
.btn.ghost { border: 2px solid #0e7ab3; color: #0e7ab3; }
.btn.ghost:hover { background: #0e7ab3; color: #fff; transform: translateY(-2px); }

/* ÍCONES E BADGES */
.badges {
  list-style: none; padding: 0; margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  position: relative;
  z-index: 1;
}
.badges li {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; color: #123; transition: transform 0.3s ease;
}
.badges li i { font-size: 1.25rem; color: #0e7ab3; transition: transform 0.3s ease, color 0.3s ease; }
.badges li:hover { transform: translateY(-4px); }
.badges li:hover i { transform: scale(1.2) rotate(8deg); color: #0b5f8a; }

/* IMAGEM HERO */
.hero-right img {
  width: 100%; height: 320px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

/* -------------------- SERVIÇOS -------------------- */
.section { padding: 60px 0; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: #07263b; }
.section-sub { font-size: 1.05rem; color: var(--muted); margin-bottom: 22px; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card {
  background: var(--card); border-radius: 12px; padding: 20px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(15,23,42,0.12); }
.service-card h3 { font-size: 1.15rem; font-weight: 700; }
.service-card p { font-size: 1rem; line-height: 1.6; }
.service-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }

/* -------------------- SOBRE -------------------- */
.about {
  background: linear-gradient(180deg, #f8fafc, #eef3f7);
  padding: 80px 20px; color: #1a1a1a;
}
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; max-width: 1200px; margin: 0 auto; }
.about-text h2 {
  font-family: var(--font-base); font-size: 2.2rem; font-weight: 700; color: #0b5f8a; margin-bottom: 20px; position: relative;
}
.about-text h2::after { content: ""; position: absolute; bottom: -8px; left: 0; width: 60px; height: 3px; background: #0e7ab3; border-radius: 4px; }
.about-text p { font-size: 1.1rem; line-height: 1.75; margin-bottom: 25px; color: #333; }
.about-text h3 { font-size: 1.4rem; font-weight: 700; color: #0b5f8a; margin-top: 30px; }
.about-text h4 { font-size: 1.1rem; color: #0b5f8a; margin-top: 22px; margin-bottom: 8px; font-weight: 600; }
.about-text ul { list-style: none; padding: 0; margin: 15px 0 30px; }
.about-text ul.course-list { margin-bottom: 20px; }
.about-text ul.course-list li { margin-bottom: 6px; }
.about-text ul li { margin-bottom: 10px; padding-left: 20px; position: relative; line-height: 1.6; }
.about-text ul li::before { content: "•"; position: absolute; left: 0; color: #0e7ab3; font-size: 1.4rem; }

.links-row { display: flex; flex-wrap: wrap; gap: 12px; }
.links-row .btn {
  background: #0b5f8a; color: #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,0.1); position: relative; overflow: hidden;
}
.links-row .btn i { font-size: 1.2rem; transition: transform 0.4s ease; }
.links-row .btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.links-row .btn:hover i { transform: rotate(15deg) scale(1.2); }
/* Cores personalizadas */
.btn[href*="linkedin"] { background: #0077b5; }
.btn[href*="github"] { background: #24292e; }
.btn[href*="instagram"] { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.btn[href*="pdf"] { background: #d32f2f; }
/* Brilho */
.btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: rgba(255,255,255,0.25); transform: skewX(-25deg); transition: left 0.5s ease;
}
.links-row .btn:hover::after { left: 125%; }

/* Foto */
.about-photo img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.about-photo img:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.2); }

/* --------- HABILIDADES --------- */
.skills-icons {
  display: flex; justify-content: flex-start; align-items: flex-start;
  flex-wrap: wrap; gap: 24px; margin: 16px 0 32px;
}
.skill-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.3s ease;
}
.skill-item img {
  order: 1; height: 48px; width: 48px; object-fit: contain;
  transition: transform 0.3s ease;
}
.skill-item span {
  order: 2; font-size: 0.95rem; font-weight: 600; color: var(--muted);
  text-align: center; white-space: nowrap;
}
.skill-item:hover { transform: translateY(-4px); }
.skill-item:hover img { transform: scale(1.15); }

/* === CONTATO — alinhamento firme === */
.section.contact { padding: 80px 0; background: #f5f7fa; }

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 2 colunas iguais no desktop */
  column-gap: 2.5rem;
  row-gap: 2.5rem;
  align-items: start;               /* topo alinhado */
  justify-items: stretch;           /* largura cheia em cada coluna */
}

.contact-card,
.contact-form{
  width: 100%;
  max-width: none;                  /* garante largura total da coluna */
  align-self: start;
  margin: 0;                        /* remove qualquer desvio */
}

.contact-list{ margin: 0; padding: 0; list-style: none; }
.contact-list li{ margin: 12px 0; }

/* inputs ocupam 100% sem “estourar” */
.contact-form input,
.contact-form textarea{
  box-sizing: border-box;
  width: 100%;
}

/* botoes não “puxam” largura diferente */
.contact-form .form-row{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* quebra para 1 coluna no tablet/mobile */
@media (max-width: 960px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--card); padding: 2rem; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08); transition: 0.3s;
}
/* ===== FORMULÁRIO DE CONTATO (igual ao card) ===== */
.contact-form {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
}

/* Campos */
.contact-form label {
  font-weight: 600;
  color: #07263b;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: #123;
  background: #fff;
  transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,122,179,0.15);
}

/* Validação em tempo real */
.contact-form .field-wrapper {
  position: relative;
  margin-bottom: 0.5rem;
}

.contact-form .field-error {
  display: none;
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: 4px;
  align-items: center;
  gap: 6px;
}

.contact-form .field-error.active {
  display: flex;
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
  padding-right: 40px;
}

.contact-form input.valid,
.contact-form textarea.valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
  padding-right: 40px;
}

.contact-form textarea.error,
.contact-form textarea.valid {
  padding-right: 14px;
}

.contact-form .field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.contact-form textarea ~ .field-icon {
  top: 20px;
  transform: none;
}

.contact-form .field-icon.error {
  color: #dc2626;
}

.contact-form .field-icon.valid {
  color: #16a34a;
}

/* Botões */
.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

/* Garantir que os botões do formulário tenham limites corretos */
.contact-form .btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
  border: none;
  outline: none;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Remover efeito ::after dos botões do formulário */
.contact-form .btn::after {
  display: none;
}

.contact-form button.btn,
.contact-form a.btn {
  width: auto;
  min-width: fit-content;
  max-width: 100%;
}

/* Mensagem final */
.contact-form .form-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* Em telas pequenas: empilhar tudo */
@media (max-width: 960px) {
  .contact-form,
  .contact-card {
    max-width: 100%;
  }
}


.contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(15,23,42,0.12); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.contact-list i { font-size: 1.4rem; transition: transform 0.3s; }
.contact-list li:hover i { transform: scale(1.2) rotate(6deg); }
/* Ícones coloridos */
.whatsapp-icon { color: #25D366; }
.phone-icon { color: #007bff; }
.email-icon { color: #ff4d4d; }
.location-icon { color: #ff8800; }
/* Redes sociais */
.socials { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: #f0f0f0; color: #444;
  font-size: 1.4rem; box-shadow: 0 3px 8px rgba(0,0,0,0.1); transition: all 0.35s ease;
}
.socials a:hover { transform: translateY(-5px) scale(1.1) rotate(6deg); color: #fff; animation: socialPulse 0.8s ease-in-out; }
.socials a[aria-label="LinkedIn"]:hover { background: #0077b5; }
.socials a[aria-label="GitHub"]:hover { background: #181717; }
.socials a[aria-label="Instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
@keyframes socialPulse { 0%{transform:scale(1);box-shadow:0 0 0 rgba(255,255,255,0)} 50%{transform:scale(1.1);box-shadow:0 0 15px rgba(255,255,255,0.4)} 100%{transform:scale(1);box-shadow:0 0 0 rgba(255,255,255,0)} }

/* -------------------- ANIMAÇÕES DE ENTRADA -------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease-out, transform 1s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.2s; }
.reveal.delay-2 { transition-delay: 0.4s; }

/* -------------------- RODAPÉ -------------------- */
.site-footer { 
  padding: 20px 0; 
  border-top: 1px solid rgba(15,23,42,0.04); 
  text-align: center; 
  color: var(--muted); 
  font-size: 14px;
  position: relative;
  z-index: 2;
  background: inherit;
}

/* -------------------- WHATSAPP FLUTUANTE -------------------- */
.whatsapp-btn { 
  position: relative; 
  background-color: #25D366 !important; 
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.6); 
  animation: pulseBtn 2s infinite;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
}
.whatsapp-btn i { font-size: 20px; pointer-events: none; }
.whatsapp-btn:hover { background-color: #1ebe5d !important; transform: translateY(-2px) scale(1.05); }
.whatsapp-btn::after {
  display: none !important;
}
@keyframes pulseBtn { 
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); } 
  70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } 
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } 
}

.whatsapp-fab {
  position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
  border-radius: 50%; background-color: #25D366; color: white; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.4); animation: pulseBtn 2s infinite;
  transition: all 0.3s ease; z-index: 9999;
}
.whatsapp-fab:hover { background-color: #1ebe5d; transform: scale(1.1) translateY(-3px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5); }
.whatsapp-fab i { pointer-events: none; }
@media (max-width: 600px) {
  .whatsapp-fab { bottom: 15px; right: 15px; width: 52px; height: 52px; font-size: 26px; }
}

/* -------------------- RESPONSIVIDADE -------------------- */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .nav-list {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: #fff;
    padding: 80px 24px 24px;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 56;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    gap: 8px;
  }
  .nav-list.active {
    right: 0;
  }
  .nav-list a {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    display: block;
    text-align: left;
  }
  .nav-list a:hover,
  .nav-list a.active {
    background: rgba(14,122,179,0.1);
    color: var(--accent);
    transform: translateX(4px);
  }
  .nav-toggle { 
    display: inline-block;
    position: relative;
    z-index: 60;
  }
  .theme-toggle {
    font-size: 11px;
    padding: 6px 10px;
  }
}
@media (max-width: 600px) {
  .theme-toggle { padding: 8px 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .socials { justify-content: center; }
  .socials a { width: 42px; height: 42px; font-size: 1.2rem; }
}

/* Ícone do app dentro dos cards de aplicativos */
.app-icon {
  width: 52px;          /* antes 96px */
  height: 52px;         /* antes 96px */
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 8px 16px rgba(0,0,0,0.06),
    0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  display: block;
  margin: 0 auto 10px auto;
}

/* ===== AJUSTE FINAL DO TAMANHO DOS ÍCONES DE APLICATIVOS ===== */
.app-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.08),
    0 2px 4px rgba(0,0,0,0.04);
}
