/* ==========================================
   Victor Boldori Duarte — Portfolio
   styles.css
   ========================================== */

/* ---- Custom Properties ---- */
:root {
  --bg:            #0b1121;
  --bg-alt:        #0f1a2e;
  --surface:       #162033;
  --surface-2:     #1e2d42;
  --primary:       #005ef5;
  --primary-hover: #1d6de8;
  --primary-light: #7cb9ff;
  --accent:        #1d6de8;
  --success:       #22c55e;
  --whatsapp:      #25d366;
  --whatsapp-dark: #1ebe5d;
  --text:          #eef4ff;
  --text-muted:    #c0d5ec;
  --text-faint:    #91b0ca;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:     0 8px 48px rgba(0, 0, 0, 0.55);
  --transition:    0.25s ease;
}

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.2; color: var(--text); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.25; color: var(--text); }
h3 { font-size: clamp(1rem, 2.5vw, 1.15rem); font-weight: 600; color: var(--text); }
h4 { font-size: 0.85rem; font-weight: 600; color: var(--primary-light); text-transform: uppercase; letter-spacing: 0.06em; }
p  { color: var(--text-muted); line-height: 1.75; }

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section     { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-top: 0.65rem; }
.section-subtitle {
  margin-top: 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.96rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(44, 123, 250, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(44, 123, 250, 0.28);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-cta {
  text-align: center;
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.section-cta p { font-size: 0.95rem; color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(44, 123, 250, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}
.btn-sm    { padding: 0.55rem 1.15rem; font-size: 0.85rem; }
.btn-lg    { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---- Background Blobs ---- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: 0.1; animation: blobFloat 18s ease-in-out infinite; }
.blob-1 { width: 600px; height: 600px; background: var(--primary); top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { width: 500px; height: 500px; background: var(--accent);  top: 50%; right: -10%; animation-delay: -6s; }
.blob-3 { width: 400px; height: 400px; background: var(--primary); bottom: -10%; left: 30%; animation-delay: -12s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.96); }
}

/* ---- Code Particles ---- */
.code-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.code-particles span {
  position: absolute;
  color: var(--primary);
  opacity: 0.055;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  animation: floatCode 20s linear infinite;
}
.code-particles span:nth-child(1) { left: 5%;  top: 20%; animation-duration: 18s; animation-delay: 0s; }
.code-particles span:nth-child(2) { left: 15%; top: 60%; animation-duration: 22s; animation-delay: -3s; }
.code-particles span:nth-child(3) { left: 30%; top: 10%; animation-duration: 25s; animation-delay: -6s; }
.code-particles span:nth-child(4) { left: 50%; top: 75%; animation-duration: 20s; animation-delay: -2s; }
.code-particles span:nth-child(5) { left: 65%; top: 35%; animation-duration: 19s; animation-delay: -9s; }
.code-particles span:nth-child(6) { left: 75%; top: 80%; animation-duration: 23s; animation-delay: -4s; }
.code-particles span:nth-child(7) { left: 85%; top: 15%; animation-duration: 17s; animation-delay: -7s; }
.code-particles span:nth-child(8) { left: 95%; top: 55%; animation-duration: 21s; animation-delay: -1s; }
@keyframes floatCode {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.055; }
  50%  { opacity: 0.09; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 17, 33, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo-container { display: flex; align-items: center; gap: 0.75rem; }
.logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: transform var(--transition);
}
.logo-img:hover { transform: scale(1.08); }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: #d0e8f8;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.nav-links .nav-cta { background: var(--primary); color: #fff; margin-left: 0.5rem; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--primary-hover); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); transition: background var(--transition); }
.hamburger:hover { background: var(--surface); }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,17,33,0.97) 0%, rgba(11,17,33,0.88) 55%, rgba(11,17,33,0.45) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-eyebrow {
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-description {
  text-align: justify;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-badge {
  padding: 0.3rem 0.8rem;
  background: rgba(44, 123, 250, 0.1);
  border: 1px solid rgba(44, 123, 250, 0.25);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }


/* ---- Para Você ---- */
.pv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all var(--transition);
}
.pv-card:hover {
  border-left-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}
.pv-icon { font-size: 2rem; line-height: 1; }
.pv-card h3 { font-size: 1.05rem; }
.pv-card p  { font-size: 0.9rem; }
.pv-card .btn { align-self: flex-start; margin-top: 0.25rem; }

/* ---- Sobre ---- */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.sobre-texto p { margin-bottom: 1.15rem; }
.sobre-texto .btn { margin-top: 0.5rem; }
.sobre-destaques { display: flex; flex-direction: column; gap: 1rem; }
.destaque-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  transition: all var(--transition);
}
.destaque-card:hover { transform: translateX(4px); border-color: rgba(44,123,250,0.3); }
.destaque-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.5; }
.destaque-card strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.15rem; }
.destaque-card p { font-size: 0.84rem; margin: 0; }

/* ---- Serviços ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(44,123,250,0.35);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(44,123,250,0.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
}
.service-for {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-light);
  background: rgba(44,123,250,0.08);
  padding: 0.22rem 0.7rem;
  border-radius: 100px;
  display: inline-block;
  align-self: flex-start;
}
.service-card h3 { font-size: 1.05rem; }
.service-card p  { font-size: 0.875rem; flex: 1; }
.service-cta { align-self: flex-start; margin-top: 0.25rem; }

/* ---- Project Filters ---- */
.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Projetos ---- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 2rem; }
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(44,123,250,0.35); box-shadow: var(--shadow-lg); }
.project-card.hidden-card { display: none; }

.project-img-wrapper { position: relative; height: 195px; overflow: hidden; }
.project-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-faint);
}

.project-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.28rem 0.8rem;
  background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  border-radius: 100px; letter-spacing: 0.04em;
}
.project-badge--soon { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.project-info { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.project-info h3 { font-size: 1rem; }
.project-problem {
  font-size: 0.845rem;
  padding: 0.65rem 0.9rem;
  background: rgba(44,123,250,0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
  color: var(--text-muted);
}
.project-problem strong { color: var(--primary-light); }
.project-desc { font-size: 0.865rem; }

.project-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; }
.tech-tag {
  padding: 0.2rem 0.6rem;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 500;
}

.project-links { display: flex; gap: 0.6rem; }

/* ---- Processo ---- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--surface);
  padding: 1.6rem;
}
.step-number {
  font-size: 2rem; font-weight: 800;
  color: rgba(44,123,250,0.18);
  min-width: 48px; line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
  font-variant-numeric: tabular-nums;
}
.process-step:hover .step-number { color: var(--primary); }
.step-content h3 { margin-bottom: 0.35rem; font-size: 1rem; }
.step-content p  { font-size: 0.875rem; }

/* ---- Tecnologias ---- */
.tech-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.tech-category { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.tech-category h3 { font-size: 0.95rem; margin-bottom: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.tech-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0.9rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--transition);
}
.tech-item:hover { border-color: rgba(44,123,250,0.25); transform: translateY(-3px); }
.tech-item i    { font-size: 1.75rem; }
.tech-item span { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }
.tech-icon-text { font-size: 1rem !important; font-weight: 700 !important; color: var(--primary-light) !important; font-family: 'Courier New', monospace; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-question:hover { color: var(--primary-light); }
.faq-question span:first-child { flex: 1; line-height: 1.5; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform var(--transition), color var(--transition);
  display: flex;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary-light); }
.faq-item.open .faq-question { color: var(--primary-light); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- Depoimentos ---- */
.testimonials-placeholder {
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.75rem 2rem;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
}
.placeholder-icon {
  margin: 0 auto 1.25rem;
  width: 64px; height: 64px;
  background: rgba(44,123,250,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
}
.testimonials-placeholder p  { margin-bottom: 0.4rem; }
.placeholder-sub { font-size: 0.85rem !important; color: var(--text-faint) !important; margin-bottom: 1.5rem !important; }

/* ---- Contato ---- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contato-cta h2 { margin: 0.85rem 0; }
.contato-cta > p { margin-bottom: 0.75rem; }

.contato-list {
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.contato-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contato-list li span:first-child { color: var(--success); font-size: 1rem; font-weight: 700; }

.contato-direct { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem; }
.contact-form h3 { color: var(--text); margin-bottom: 1.5rem; font-size: 1.05rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.45rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

/* ---- Footer ---- */
.site-footer { background: #070b13; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 2rem; padding: 3rem 1.5rem 2rem; flex-wrap: wrap;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-faint); max-width: 260px; margin-top: 0.5rem; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a, .footer-social a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-nav a:hover, .footer-social a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem; padding: 1.15rem 1.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-faint); }
.footer-signature { color: var(--primary-light) !important; font-weight: 500; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  z-index: 90;
  width: 56px; height: 56px;
  background: var(--whatsapp); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
}
.whatsapp-float:hover { background: var(--whatsapp-dark); transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.55); }
.whatsapp-float::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp);
  animation: waPulse 2.5s ease infinite;
  z-index: -1;
}
@keyframes waPulse {
  0%  { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.55); opacity: 0; }
  100%{ transform: scale(1); opacity: 0; }
}

/* ==============================
   Nav — active page link
   ============================== */
.nav-links a.active {
  color: #fff;
  background: rgba(44, 123, 250, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 -2px 0 var(--primary);
}

/* ==============================
   Page Hero (sub-pages)
   ============================== */
.page-hero {
  padding: 7rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-tag { margin-bottom: 0.85rem; }
.page-hero h1 {
  max-width: 700px;
  margin: 0.75rem auto 1rem;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
}
.page-hero p {
  max-width: 580px;
  margin: 0 auto 1.75rem;
  font-size: 0.975rem;
}

/* ==============================
   Carousel
   ============================== */
.carousel-outer {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
}
.carousel-viewport {
  overflow: hidden;
  grid-column: 2;
  grid-row: 1;
}
.carousel-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  user-select: none;
  cursor: grab;
}
.carousel-track.is-dragging { transition: none; cursor: grabbing; }
.carousel-slide {
  flex-shrink: 0;
  padding: 0 0.75rem;
  box-sizing: border-box;
}

.carousel-btn {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.carousel-btn:disabled { opacity: 0.22; pointer-events: none; }
.carousel-prev { grid-column: 1; }
.carousel-next { grid-column: 3; }

.carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

/* Service cards inside carousel */
.carousel-slide .service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}
.carousel-slide .service-card .service-cta {
  margin-top: auto;
}

/* Project cards inside carousel */
.carousel-slide .project-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.carousel-slide .project-card .project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.carousel-slide .project-card .project-links {
  margin-top: auto;
}

/* Home featured section row */
.home-section-link {
  text-align: center;
  margin-top: 2rem;
}

/* Case study page */
.case-study-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.case-study-card:hover { border-color: var(--border-strong); }
.cs-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.cs-header-img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cs-header-info { flex: 1; }
.cs-header-info h2 {
  font-size: 1.1rem;
  margin: 0.4rem 0 0;
}
.cs-toggle {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.case-study-card.open .cs-toggle { transform: rotate(180deg); }
.cs-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.case-study-card.open .cs-body { max-height: 1200px; }
.cs-body-inner { padding: 2rem; }
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.cs-section h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.cs-section p { font-size: 0.93rem; }
.cs-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.cs-stack { display: flex; flex-direction: column; gap: 1.25rem; }

/* About page specifics */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-text p + p { margin-top: 1rem; }
.about-text .btn { margin-top: 1.5rem; }

/* Responsive Carousel */
@media (max-width: 640px) {
  .carousel-outer {
    grid-template-columns: 34px 1fr 34px;
    column-gap: 0.4rem;
  }
  .carousel-btn { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
  .carousel-dot   { transition: none; }
  .cs-body        { transition: none; }
}

/* Responsive Page Hero */
@media (max-width: 768px) {
  .page-hero { padding: 5.5rem 0 2.5rem; }
  .cs-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin: 0 auto; }
}


/* ---- Modals ---- */
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  padding: 1rem;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2.25rem;
  max-width: 400px; width: 100%;
  text-align: center;
  position: relative;
  animation: popIn 0.25s ease;
}
@keyframes popIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  font-size: 1.5rem; color: var(--text-muted);
  transition: color var(--transition); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.15rem; }
.modal-icon.success { background: rgba(34,197,94,0.15); color: var(--success); }
.modal-content h3 { color: var(--text); margin-bottom: 0.6rem; }

/* ---- Project Modal ---- */
.project-modal-content {
  max-width: 600px;
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.pm-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 0;
}
.pm-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.pm-header-info { display: flex; flex-direction: column; gap: 0.5rem; }
.pm-header-info h3 { font-size: 1.05rem; }
.pm-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.1rem; }
.pm-section h4 { margin-bottom: 0.4rem; }
.pm-section p  { font-size: 0.9rem; line-height: 1.7; }
.pm-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.25rem; }
.pm-actions .btn { flex: 1; min-width: 130px; }

/* ---- Lightbox ---- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.87); backdrop-filter: blur(8px); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.75rem; color: var(--text-muted); z-index: 2;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 50%; transition: all var(--transition); line-height: 1;
}
.lightbox-close:hover { color: var(--text); background: var(--surface-2); }
.lightbox-img {
  position: relative; z-index: 2;
  max-width: 340px; width: 88%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: popIn 0.25s ease;
}

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---- Responsive: 1024px ---- */
@media (max-width: 1024px) {
  .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(11,17,33,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem; gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    padding: 0.95rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
  }
  .nav-links a.active {
    border-left-color: var(--primary);
    box-shadow: none;
  }
  .nav-links .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; border-left: none; }

  .hero { padding: 100px 0 4rem; align-items: flex-end; }
  .hero-overlay {
    background: linear-gradient(to top, rgba(11,17,33,0.98) 0%, rgba(11,17,33,0.85) 55%, rgba(11,17,33,0.5) 100%);
  }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-description { text-align: justify; margin-left: auto; margin-right: auto; }

  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .pv-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .tech-categories { grid-template-columns: 1fr; }

  .cta-strip-inner { justify-content: center; text-align: center; }

  .process-steps { grid-template-columns: 1fr; }
  .process-step { padding: 1.25rem; }
  .step-number { font-size: 1.75rem; min-width: 40px; }

  .footer-inner { flex-direction: column; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .whatsapp-float { bottom: 1.75rem; right: 1rem; width: 50px; height: 50px; }

  .pm-header { flex-direction: column; }
  .pm-img { width: 100%; height: 160px; }
}

/* ---- Responsive: 480px ---- */
@media (max-width: 480px) {
  .contato-direct { flex-direction: column; }
  .project-links  { flex-direction: column; }
  .contato-direct .btn, .project-links .btn { width: 100%; }
  .hero-actions   { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .faq-question   { font-size: 0.925rem; }
}
