/* ================================================================
   IBTECH.CSS
   Estilos exclusivos do ibtech.html
   ================================================================ */

:root { --nav-accent: var(--blue); }

/* Nav active state */
.nav-links a.active { color: var(--blue); }

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  mask-image: radial-gradient(ellipse 90% 80% at 70% 50%, black 20%, transparent 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 85% 50%, rgba(15,111,255,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(0,58,140,0.06) 0%, transparent 70%);
}

.hero-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--blue) 30%, var(--blue) 70%, transparent);
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3rem 4rem 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(80px, 11vw, 150px);
  line-height: .84;
  letter-spacing: -.01em;
  margin-bottom: 1.75rem;
}

.hero-title .blue { color: var(--blue); text-shadow: 0 0 40px rgba(15,111,255,0.35); }

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--mid);
  max-width: 380px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 52px 2.5rem 4rem 0;
}

/* Code Window */
.code-window {
  width: 100%;
  max-width: 460px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}

.code-dots {
  display: flex;
  gap: .375rem;
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-dot.r, .code-dot.red { background: #ff5f57; }
.code-dot.y, .code-dot.yellow { background: #febc2e; }
.code-dot.g, .code-dot.green { background: #28c840; }

.code-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.code-filename {
  font-size: 11px;
  color: var(--muted);
  margin-left: .5rem;
  letter-spacing: .02em;
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
}

.code-line {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mid);
}

.c-blue   { color: #79b8ff; }
.c-green  { color: #85e89d; }
.c-orange { color: #ffab70; }
.c-muted  { color: #444d56; }
.c-white  { color: var(--text); }

/* Stats Bar */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    rgba(255,255,255,0.02) 47px,
    rgba(255,255,255,0.02) 48px
  );
}

.stat-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background .25s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg2); }

.stat-prefix {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(15,111,255,.5);
  letter-spacing: .04em;
  margin-bottom: .25rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 100px);
  line-height: .82;
  color: var(--blue);
  letter-spacing: -.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .75rem;
  line-height: 1.4;
}

/* Kicker line default (ibtech usa azul) */
.kicker-line { background: var(--blue); }

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.sobre-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.sobre-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.sobre-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.sobre-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.sobre-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background .25s;
}
.sobre-card:hover { background: var(--bg3); }

.sobre-card-num {
  font-family: var(--font-display);
  font-size: 52px;
  color: rgba(15,111,255,.1);
  line-height: 1;
  margin-bottom: .75rem;
}
.sobre-card-title { font-size: 16px; font-weight: 600; margin-bottom: .5rem; }
.sobre-card-body { font-size: 13px; font-weight: 300; color: var(--mid); line-height: 1.7; }

/* Dia a dia */
.dia-grid { margin-bottom: 3.5rem; }

.dia-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.dia-item:last-child { border-bottom: none; }
.dia-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: rgba(255,255,255,.05);
  line-height: 1;
  letter-spacing: -.02em;
}
.dia-content {}
.dia-title { font-size: 15px; font-weight: 600; margin-bottom: .375rem; }
.dia-body { font-size: 13px; font-weight: 300; color: var(--mid); line-height: 1.7; }

/* Projetos */
.projetos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.projeto-card {
  background: var(--bg2);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow .3s ease,
              border-color .3s ease,
              background .3s;
}

.projeto-card:hover {
  background: var(--bg3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15,111,255,0.12);
  border-color: rgba(15,111,255,0.25);
}
.projeto-card:hover .projeto-img::before {
  opacity: 2;
}

.projeto-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.projeto-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15,111,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,111,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.projeto-img::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(15,111,255,0.4);
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.projeto-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.projeto-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}

.projeto-title { font-size: 14px; font-weight: 600; margin-bottom: .375rem; line-height: 1.3; }
.projeto-desc { font-size: 12px; font-weight: 300; color: var(--mid); line-height: 1.6; flex: 1; }

.projeto-stack { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .75rem; }

.stack-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid rgba(15,111,255,.2);
  color: rgba(100,160,255,.7);
  background: rgba(15,111,255,.05);
  letter-spacing: .03em;
}

/* CTA Final */
.cta-section {
  border-top: 1px solid var(--border);
  padding: 7rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'IBTECH';
  position: absolute;
  right: -0.05em;
  bottom: -0.1em;
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  color: rgba(15,111,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  line-height: .84;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
  width: 100%;
}

.cta-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 180px);
  line-height: .85;
  color: rgba(255,255,255,.03);
  letter-spacing: -.02em;
  text-align: center;
  padding: 2rem 2.5rem 0;
  border-top: 1px solid var(--border);
  user-select: none;
  pointer-events: none;
}

/* Animacao pulseBlue */
@keyframes pulseBlue {
  0%, 100% { box-shadow: 0 0 6px var(--blue); opacity: 1; }
  50%      { box-shadow: 0 0 12px var(--blue); opacity: .7; }
}

/* Responsividade */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 0 1.25rem 3rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-card:nth-child(n) { grid-column: 1; grid-row: auto; }
  .projetos-grid { grid-template-columns: 1fr; }
  .cta-section { grid-template-columns: 1fr; gap: 2rem; }
}
