/*
Theme Name: TechInCode
Theme URI: https://techincode.com.br
Author: TechInCode
Author URI: https://techincode.com.br
Description: Tema oficial da TechInCode — Software Development & Innovation
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: techincode
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,600;0,800;1,300&display=swap');

:root {
  --bg:       #0e1117;
  --bg2:      #141820;
  --bg3:      #1a2030;
  --red:      #d42020;
  --red2:     #ff3333;
  --red-glow: rgba(212,32,32,0.25);
  --silver:   #c8d0de;
  --white:    #f0f4ff;
  --muted:    #6b7a94;
  --border:   rgba(212,32,32,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

/* ─── CANVAS ─── */
#circuit-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

/* ─── NAV ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled {
  background: rgba(14,17,23,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--white);
}
.nav-logo span { color: var(--red); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red2); }
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 8px 22px !important;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
}
.nav-cta:hover { background: var(--red2) !important; }

/* ─── BUTTONS ─── */
.btn-primary, .btn-outline {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%);
  transition: all 0.2s;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 30px var(--red-glow);
}
.btn-primary:hover { background: var(--red2); box-shadow: 0 0 50px rgba(212,32,32,.5); color:#fff; }
.btn-outline {
  background: transparent;
  color: var(--silver);
  border: 1px solid rgba(200,208,222,0.3);
}
.btn-outline:hover { border-color: var(--red); color: var(--white); }

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red2);
  border: 1px solid var(--red);
  padding: 5px 18px;
  margin-bottom: 28px;
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
  animation: fadeUp .8s ease both;
}
.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3.2rem,9vw,7rem);
  font-weight: 700;
  line-height: 1;
  animation: fadeUp .9s .1s ease both;
}
.hero-title .tech   { color: var(--silver); display: block; }
.hero-title .incode { color: var(--red); display: block; text-shadow: 0 0 60px var(--red-glow); }

.hero-sub {
  margin-top: 20px;
  font-size: clamp(.9rem,2vw,1.1rem);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeUp 1s .2s ease both;
}
.hero-desc {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 1.05rem;
  color: var(--silver);
  line-height: 1.75;
  font-weight: 300;
  animation: fadeUp 1s .3s ease both;
}
.hero-btns {
  display: flex; gap: 16px;
  justify-content: center;
  margin-top: 44px;
  animation: fadeUp 1s .4s ease both;
}
.hero-stats {
  display: flex; gap: 60px;
  justify-content: center; align-items: center;
  margin-top: 72px;
  animation: fadeUp 1s .5s ease both;
}
.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--red); line-height: 1;
}
.stat-label {
  font-size: .72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.hero-line { width: 1px; height: 40px; background: var(--border); }

/* ─── SECTIONS ─── */
.section { position: relative; z-index: 1; }
.section-dark  { background: var(--bg); }
.section-dark2 { background: var(--bg2); }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 100px 40px; }
.section-tag {
  display: inline-block; font-size: .68rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 700; line-height: 1.1;
}
.section-title em { color: var(--red); font-style: normal; }
.text-center { text-align: center; }

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

/* ─── SERVICES ─── */
.services-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px; gap: 40px; flex-wrap: wrap;
}
.services-desc { max-width: 360px; color: var(--muted); line-height: 1.7; font-size: .95rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 2px;
}
.service-card {
  background: var(--bg3); padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: transform .3s, background .3s; cursor: default;
}
.service-card::before {
  content:''; position: absolute;
  top:0; left:0; right:0; height: 2px;
  background: var(--red);
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.service-card:hover { background: #1e2535; transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 20px; display: block; }
.service-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: 1px; margin-bottom: 12px;
}
.service-card p { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.service-num {
  position: absolute; bottom: 20px; right: 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 3rem; font-weight: 700;
  color: rgba(212,32,32,.07); line-height: 1; user-select: none;
}

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.about-ring {
  width: 280px; height: 280px; border-radius: 50%;
  border: 2px solid var(--red);
  box-shadow: 0 0 60px var(--red-glow), inset 0 0 60px rgba(212,32,32,.05);
  display: flex; align-items: center; justify-content: center;
  animation: pulse 3s ease-in-out infinite;
}
.about-ring-inner {
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(212,32,32,.3);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.about-ring-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; font-weight: 700; text-align: center; line-height: 1.2;
}
.about-ring-text span { color: var(--red); font-size: 1.8rem; display: block; }
.floating-tag {
  position: absolute; background: var(--bg3); border: 1px solid var(--border);
  padding: 10px 16px; font-size: .78rem; font-weight: 600;
  letter-spacing: 1px; color: var(--silver);
  clip-path: polygon(6px 0%,100% 0%,calc(100% - 6px) 100%,0% 100%);
}
.ft1 { top:40px; left:0; animation: floatA 4s ease-in-out infinite; }
.ft2 { bottom:60px; right:0; animation: floatB 4s ease-in-out infinite; }
.ft3 { bottom:20px; left:20px; animation: floatA 5s ease-in-out infinite; }

.about-desc { color: var(--muted); line-height: 1.8; font-size: .95rem; margin: 20px 0 36px; }
.pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg2);
  border-left: 3px solid var(--red); transition: background .2s;
}
.pillar:hover { background: var(--bg3); }
.pillar-icon { font-size: 1.3rem; flex-shrink: 0; }
.pillar h4 { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 2px; }
.pillar p  { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ─── PROCESS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  margin-top: 60px; position: relative;
}
.process-steps::before {
  content:''; position: absolute;
  top:36px; left:10%; right:10%; height: 1px;
  background: linear-gradient(90deg,transparent,var(--red),transparent);
}
.process-step { text-align: center; padding: 0 20px; }
.step-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--red); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: var(--red); position: relative; z-index: 1;
  transition: background .3s, box-shadow .3s, color .3s;
}
.process-step:hover .step-circle { background: var(--red); color:#fff; box-shadow: 0 0 30px var(--red-glow); }
.process-step h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.process-step p  { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* ─── TECH ─── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.tech-pill {
  padding: 10px 22px; border: 1px solid rgba(200,208,222,.12);
  font-size: .82rem; font-weight: 600; letter-spacing: 1px;
  color: var(--silver); background: var(--bg2);
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: border-color .2s, color .2s; display: inline-block;
}
.tech-pill:hover { border-color: var(--red); color: var(--white); }

/* ─── CTA ─── */
.section-cta {
  background: linear-gradient(135deg,var(--bg2) 0%,#1a0808 50%,var(--bg2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle,rgba(212,32,32,.12) 0%,transparent 70%);
  top:50%; left:50%; transform: translate(-50%,-50%); pointer-events: none;
}
.cta-desc { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto 40px; position: relative; z-index:1; }
.cta-btns { display: flex; gap: 16px; justify-content: center; position: relative; z-index:1; }
.contact-info { margin-top: 48px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; position: relative; z-index:1; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.contact-icon { color: var(--red); }

/* ─── FOOTER ─── */
.site-footer {
  position: relative; z-index:1;
  background: #080a0e;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 40px 60px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); text-decoration: none; }
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: .7rem; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.footer-copy { font-size: .8rem; color: var(--muted); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse {
  0%,100%{ box-shadow: 0 0 40px var(--red-glow), inset 0 0 40px rgba(212,32,32,.05); }
  50%    { box-shadow: 0 0 80px rgba(212,32,32,.35), inset 0 0 60px rgba(212,32,32,.1); }
}
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* ─── RESPONSIVE ─── */
@media(max-width:768px){
  .site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 260px; }
  .about-ring { width: 200px; height: 200px; }
  .about-ring-inner { width: 140px; height: 140px; }
  .hero-stats { gap: 32px; }
  .process-steps::before { display: none; }
  .site-footer { flex-direction: column; text-align: center; }
  .services-header { flex-direction: column; }
  .contact-info { flex-direction: column; align-items: center; gap: 16px; }
  .cta-btns, .hero-btns { flex-direction: column; align-items: center; }
}
