/* ============================================
   ALBOFERR — Industrial Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-elevated: #1a2332;
  --bg-card: #0f1724;
  --accent-blue: #79bcbd;
  --accent-blue-hover: #8dd0d1;
  --accent-blue-glow: rgba(121, 188, 189, 0.35);
  --accent-steel: #64748b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --success: #10b981;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px var(--accent-blue-glow);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --map-filter: invert(90%) hue-rotate(180deg) opacity(80%);
}

/* --- Light Theme Tokens --- */
:root.light {
  --bg-primary: rgb(211, 211, 211);
  --bg-secondary: #e5e5e5;
  --bg-elevated: #d4d4d4;
  --bg-card: #ececec;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(15, 23, 42, 0.2);
  --accent-blue-glow: rgba(121, 188, 189, 0.2);
  --map-filter: none;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-blue);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-blue-glow);
}
.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 8px 40px var(--accent-blue-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue-hover);
  background: rgba(121, 188, 189, 0.06);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all var(--transition-smooth);
}
.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.light .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.logo-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.logo-icon-svg svg {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-top: 6px;
}

.logo-brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.navbar.scrolled .logo-icon-svg svg { width: 34px; height: 34px; }
.navbar.scrolled .logo-brand { font-size: 1.3rem; }
.navbar.scrolled .logo-subtitle { font-size: 0.55rem; }

.navbar.scrolled .nav-logo {
  /* No longer hiding the logo on scroll, just making it smaller and centered */
  margin: 0;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  transition: transform var(--transition-smooth);
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-smooth);
}
.nav-links a:hover { color: var(--accent-blue); }
.nav-links a:hover::after { width: 100%; }

.navbar.scrolled .nav-links {
  margin: 0 auto;
}
.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}
.navbar.scrolled .nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.nav-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  border: 1px solid rgba(37,99,235,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(37,99,235,0.08);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}
.theme-toggle:hover {
  background: var(--bg-elevated);
  transform: scale(1.05);
}
.theme-toggle:active {
  transform: scale(0.95);
}

/* --- Theme Toggle Simple --- */
.theme-toggle-simple {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  overflow: hidden;
  transition: all var(--transition-fast);
}
.theme-toggle-simple:hover { background: var(--bg-elevated); }

.theme-toggle-simple svg {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Sun Icon States */
.icon-sun {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}
.light .icon-sun {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Moon Icon States */
.icon-moon {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}
:root:not(.light) .icon-moon {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* Hero styles are in hero.css */

/* ============================================
   SERVICES / PILLARS SECTION
   ============================================ */
/* ============================================
   SERVICES (21.devs inspired)
   ============================================ */
.services {
  padding: 180px 0;
  background: #080c13; /* Deep technical dark */
  position: relative;
  overflow: hidden;
  counter-reset: service-card;
}

/* Technical Grid Background */
.services::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

/* Glowing orb behind the header */
.services::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.services-header {
  text-align: center;
  margin-bottom: 100px;
  position: relative;
  z-index: 2;
}
.services-header .section-label { justify-content: center; color: var(--accent-blue); letter-spacing: 2px; }
.services-header .section-label::before { display: none; }
.services-header .section-subtitle { margin: 0 auto; max-width: 600px; }

.services-brush-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0 32px;
}

.services-brush-img {
  max-width: 420px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s var(--transition-smooth);
}

.services-brush-container:hover .services-brush-img {
  transform: scale(1.03) rotate(-1deg);
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

/* Stagger the middle card */
.service-card:nth-child(2) {
  margin-top: 64px;
}

.service-card {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease, border-color 0.6s ease;
  counter-increment: service-card;
  height: 100%;
}

/* Huge Watermark Number */
.service-card::before {
  content: "0" counter(service-card);
  position: absolute;
  top: -30px;
  right: 16px;
  font-size: 160px;
  font-weight: 900;
  color: rgba(121, 188, 189, 0.12);
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Hover Glow Effect */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(121, 188, 189, 0);
  background: radial-gradient(circle at 50% 100%, rgba(37,99,235,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-12px);
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(121, 188, 189, 0.3);
}

.service-card:hover::before {
  color: rgba(121, 188, 189, 0.05);
  transform: translate(-10px, 10px) scale(1.05);
}
.service-card:hover::after {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(121, 188, 189, 0.3);
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(121, 188, 189, 0.15), rgba(15, 23, 42, 0));
  border: 1px solid rgba(121, 188, 189, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon Glow */
.service-icon::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, #a8d6d7, #79bcbd);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s ease;
  filter: blur(8px);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(121, 188, 189, 0.2);
  border-color: rgba(121, 188, 189, 0.5);
}
.service-card:hover .service-icon::before {
  opacity: 0.6;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: #93c5fd;
  fill: none;
  stroke-width: 1.5;
  transition: all 0.6s ease;
}
.service-card:hover .service-icon svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #f8fafc;
  position: relative;
  z-index: 2;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.service-tag {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a8d6d7;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease, color 0.4s ease;
}
.service-card:hover .service-tag {
  color: #fff;
  transform: translateX(8px);
}
.perspective-marquee__item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 25px !important;
  padding: 0 60px !important;
  font-size: 5.25rem;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: -0.04em;
  white-space: nowrap;
  user-select: none;
}

.marquee-logo {
  height: 60px !important;
  width: auto !important;
  filter: brightness(0.9) contrast(1.1); /* Mantém cores originais com leve ajuste */
  opacity: 0.85;
  display: block !important;
  transition: all 0.3s ease;
}

.perspective-marquee__item:hover .marquee-logo {
  filter: brightness(1) contrast(1.2);
  opacity: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
/* ============================================
   ABOUT SECTION (Precision Engineering Rework)
   ============================================ */
.about {
  padding: 160px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Background Technical Overlay */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 70% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black 20%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

.about-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.08);
  opacity: 1;
}

/* Precision Scanner Line & Blur Reveal */
.about-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 2px solid var(--accent-blue);
  box-shadow: 0 -15px 30px rgba(121, 188, 189, 0.4);
  animation: scan-reveal 7s ease-in-out infinite alternate;
}

@keyframes scan-reveal {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}


.about-experience {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: 24px;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: all 0.4s ease;
}

.about-image:hover .about-experience {
  transform: translateY(-10px);
  border-color: rgba(121, 188, 189, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.about-experience .number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 40%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.about-experience .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
}

.about-content .section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 32px; }

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.value-item::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(121, 188, 189, 0.05), transparent);
  transition: left 0.8s ease;
}

.value-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(121, 188, 189, 0.3);
  transform: translateX(12px);
}

.value-item:hover::before { left: 100%; }

.value-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.2) 0%, transparent 100%);
  border: 1px solid rgba(37,99,235,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.value-item:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(37,99,235,0.3);
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px var(--accent-blue-glow);
}

.value-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================
   INDUSTRIAL DNA (BENTO PAN)
   ============================================ */
.metrics-bento {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 750px;
  background: #030406;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metrics-overlay {
  position: relative;
  z-index: 100;
  text-align: center;
  pointer-events: none;
}

.metrics-overlay .section-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: #fff;
  text-shadow: 0 10px 60px rgba(0,0,0,0.9);
}

.bento-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #030406 85%);
  pointer-events: none;
  z-index: 10;
}

.bento-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bento-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.bc-card {
  position: absolute;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.bc-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

.bc-card:hover {
  transform: scale(1.02) translateZ(0);
  border-color: rgba(121, 188, 189, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(121, 188, 189, 0.1);
  background: rgba(15, 23, 42, 0.6);
  z-index: 50 !important;
}

.bc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(121, 188, 189, 0.6);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: auto;
}

.bc-stat .bc-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-top: 16px;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bc-stat .bc-unit {
  font-size: 1.1rem;
  color: var(--accent-blue);
  font-weight: 500;
  letter-spacing: 0;
}

.bc-metal {
  background: linear-gradient(135deg, #111827 0%, #020305 100%);
}

.bc-blueprint {
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid rgba(121, 188, 189, 0.2);
}

.bc-blueprint::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(121, 188, 189, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 188, 189, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}

.bc-blueprint svg {
  stroke: rgba(121, 188, 189, 0.4);
  stroke-width: 1;
  fill: none;
  filter: drop-shadow(0 0 10px rgba(121, 188, 189, 0.2));
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bc-typo .bc-text {
  font-size: 4rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-top: auto;
}

.bc-card:hover .bc-blueprint svg {
  stroke: var(--accent-blue);
  filter: drop-shadow(0 0 15px var(--accent-blue-glow));
  stroke-width: 1.5;
}

/* ============================================
   CATALOG SECTION
   ============================================ */
.catalog {
  padding: 180px 0;
  background: var(--bg-primary);
  position: relative;
}

.catalog-header {
  text-align: center;
  margin-bottom: 100px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}



.catalog-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 16/11;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Adjustments for specific card images that are off-center or cut off */
.catalog-card img[src*="mandril_chave"] {
  object-fit: cover;
  object-position: center 75%;
}

.catalog-card img[src*="mandril_rapido"] {
  object-fit: cover;
  object-position: center 75%;
}





/* CSS Blueprint Visualizations (for missing images) */
.css-blueprint-visual {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a1128 0%, #030406 100%);
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(121, 188, 189, 0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(121, 188, 189, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  transform: perspective(500px) rotateX(60deg) scale(2);
  transform-origin: top;
  animation: bpGridMove 10s linear infinite;
}

@keyframes bpGridMove {
  0% { transform: perspective(500px) rotateX(60deg) scale(2) translateY(0); }
  100% { transform: perspective(500px) rotateX(60deg) scale(2) translateY(30px); }
}

.bp-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed rgba(121, 188, 189, 0.4);
  position: absolute;
}

.bp-pulse {
  animation: bpPulse 3s infinite ease-out;
}

@keyframes bpPulse {
  0% { transform: scale(0.8); opacity: 1; border-color: rgba(121, 188, 189, 0.8); }
  100% { transform: scale(1.5); opacity: 0; border-width: 0.5px; }
}

.bp-radial {
  background: conic-gradient(from 0deg, transparent, rgba(121, 188, 189, 0.2) 90deg, transparent 180deg);
  animation: bpRotate 4s linear infinite;
}

@keyframes bpRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bp-cone {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 120px solid rgba(121, 188, 189, 0.15);
  position: relative;
}
.bp-cone::after {
  content: '';
  position: absolute;
  top: 120px;
  left: -50px;
  width: 100px;
  height: 20px;
  background: rgba(121, 188, 189, 0.3);
  border-radius: 50%;
}

.bp-lines {
  position: absolute;
  width: 200px;
  height: 2px;
  background: rgba(121, 188, 189, 0.5);
  box-shadow: 0 0 10px rgba(121, 188, 189, 0.8);
  animation: bpScan 2s ease-in-out infinite alternate;
}

@keyframes bpScan {
  0% { transform: translateY(-80px); opacity: 0.2; }
  100% { transform: translateY(80px); opacity: 1; }
}

.bp-data {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-blue);
  letter-spacing: 1px;
  opacity: 0.7;
}

.catalog-card:hover .css-blueprint-visual .bp-data {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 8px var(--accent-blue);
}

.catalog-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(121, 188, 189, 0.4);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}

.catalog-card:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* Micro-Grid Overlay */
.catalog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
}

/* Scanning Line on Card */
.catalog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(121, 188, 189, 0.1), transparent);
  transform: skewX(-25deg);
  transition: left 0.8s ease;
  z-index: 3;
  pointer-events: none;
}

.catalog-card:hover::after {
  left: 150%;
}

.catalog-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 19, 0.95) 0%, rgba(8, 12, 19, 0.4) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  z-index: 5;
  transition: background 0.4s ease;
}

.catalog-card:hover .catalog-overlay {
  background: linear-gradient(0deg, rgba(8, 12, 19, 0.98) 0%, rgba(8, 12, 19, 0.2) 60%, transparent 100%);
}

.catalog-overlay h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.catalog-overlay p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.catalog-overlay .see-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
}

.catalog-overlay .see-more svg {
  transition: transform 0.4s ease;
}

.catalog-card:hover .see-more {
  color: #fff;
  transform: translateX(10px);
}

.catalog-card:hover .see-more svg {
  transform: translateX(5px);
}

/* --- Mobile Overrides for Catalog Cards --- */
@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card {
    aspect-ratio: auto !important;
    min-height: 400px !important;
  }
  .catalog-overlay {
    padding: 24px !important;
    background: linear-gradient(0deg, rgba(8, 12, 19, 0.98) 0%, rgba(8, 12, 19, 0.8) 60%, transparent 100%) !important;
  }
  .catalog-overlay h3 {
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
  }
  .catalog-overlay p {
    font-size: 0.95rem !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
  }
}
/* ============================================
   CLIENTS / 3D PERSPECTIVE MARQUEE
   ============================================ */
.clients {
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}
.clients-header {
  text-align: center;
  margin-bottom: 0;
}
.clients-header .section-label { justify-content: center; }
.clients-header .section-label::before { display: none; }

.perspective-marquee {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
}

.perspective-marquee__stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: rotateX(8deg) rotateY(-28deg);
  transform-style: preserve-3d;
}

.perspective-marquee__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}

.perspective-marquee__item {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  padding-right: 60px;
  user-select: none;
  transition: filter 0.1s linear, opacity 0.1s linear;
}

/* Fade overlays — horizontal + vertical */
.perspective-marquee__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.perspective-marquee__fade--h {
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 18%, transparent 82%, var(--bg-primary) 100%);
}
.perspective-marquee__fade--v {
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 25%, transparent 75%, var(--bg-primary) 100%);
}

/* ============================================
   CTA SECTION
   ============================================ */
/* ============================================
   CTA SECTION (21.devs Innovative Rework)
   ============================================ */
.cta-section {
  padding: 160px 0;
  background: #030406; /* Solid deep background */
  position: relative;
  overflow: hidden;
}

/* Background Technical Glow */
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(121, 188, 189, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Micro-dot background pattern */
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  z-index: 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: -0.04em;
}

.cta-content .section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 48px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.cta-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .cta-contact-grid { grid-template-columns: 1fr; gap: 24px; max-width: 400px; }
}

.cta-contact-item {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cta-contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(121, 188, 189, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cta-contact-item:hover {
  transform: translateY(-10px);
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(121, 188, 189, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.cta-contact-item:hover::before {
  opacity: 1;
}

.cta-contact-item .icon {
  width: 56px;
  height: 56px;
  background: rgba(121, 188, 189, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.5s ease;
  border: 1px solid rgba(121, 188, 189, 0.1);
}

.cta-contact-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(121, 188, 189, 0.2);
  border-color: rgba(121, 188, 189, 0.4);
  box-shadow: 0 0 20px rgba(121, 188, 189, 0.2);
}

.cta-contact-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 4px 0;
}

.cta-contact-item a {
  color: inherit;
  transition: color 0.3s ease;
}

.cta-contact-item a:hover {
  color: var(--accent-blue);
}

:root.light .cta-section { /* background handled in section separation block at end of file */ }
:root.light .cta-section::before { opacity: 0.15; }
:root.light .cta-contact-item { background: var(--bg-card); border-color: var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
:root.light .cta-contact-item h4 { color: var(--text-primary); }
:root.light .cta-contact-item:hover { box-shadow: 0 20px 40px var(--accent-blue-glow); }

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   FOOTER (21.devs Innovative Rework)
   ============================================ */
.footer {
  padding: 100px 0 40px;
  background: #020305;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 80px;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-brand { 
  color: #fff; 
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  margin-top: 24px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-blue);
  margin-bottom: 32px;
  opacity: 0.8;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Technical Contact Styling */
.footer-contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px; /* Increased gap to avoid crowded feel */
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-list a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem !important;
  color: #fff !important;
  letter-spacing: -0.01em;
}

.footer-contact-list a.email-link {
  font-family: var(--font-primary);
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  text-transform: none;
}

.footer-contact-list a.email-link:hover {
  color: var(--accent-blue) !important;
}

.contact-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 2px;
  opacity: 0.7;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}



:root.light .footer { background: var(--bg-elevated); border-top-color: var(--border); }
:root.light .footer-brand .logo-brand { color: var(--text-primary); }
:root.light .footer-brand p { color: var(--text-muted); }
:root.light .footer-col h4 { color: var(--text-primary); }
:root.light .footer-col ul li a { color: var(--text-secondary); }
:root.light .footer-col ul li a:hover { color: var(--accent-blue); }
:root.light .footer-contact-list a { color: var(--text-primary) !important; }
:root.light .contact-label { color: var(--text-secondary); }
:root.light .footer-bottom { border-top-color: var(--border); }
:root.light .footer-bottom p { color: var(--text-secondary); }


/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    opacity: 0.98;
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: 1.8rem; }
}

/* ============================================
   LIGHT MODE — COMPLETE OVERRIDES
   ============================================ */

/* --- Navbar --- */
:root.light .navbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* --- Services --- */
:root.light .services {
  /* background handled in section separation block at end of file */
}
:root.light .services::after {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}
:root.light .service-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
:root.light .service-card::before {
  color: rgba(15, 23, 42, 0.03);
}
:root.light .service-card h3 {
  color: var(--text-primary);
}
:root.light .service-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(121, 188, 189, 0.4);
  box-shadow: 0 20px 40px var(--accent-blue-glow);
}
:root.light .service-card:hover::before {
  color: rgba(121, 188, 189, 0.06);
}
:root.light .service-icon {
  background: rgba(121, 188, 189, 0.05);
  border-color: rgba(121, 188, 189, 0.1);
}
:root.light .service-card:hover .service-icon {
  background: rgba(121, 188, 189, 0.1);
}
:root.light .service-card:hover .service-icon svg {
  stroke: #79bcbd;
  filter: drop-shadow(0 0 4px rgba(37,99,235,0.3));
}

/* --- About --- */
:root.light .about-experience {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Light mode overrides for Metrics Bento */
:root.light .metrics-bento {
  background: #f1f5f9;
}
:root.light .bento-vignette {
  background: radial-gradient(circle at center, transparent 0%, #f1f5f9 85%);
}
:root.light .metrics-overlay .section-title {
  color: #0f172a;
  text-shadow: none;
}
:root.light .bc-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
:root.light .bc-card:hover {
  background: #ffffff;
  border-color: rgba(121, 188, 189, 0.6);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
:root.light .bc-label {
  color: #475569;
}
:root.light .bc-stat .bc-val {
  color: #0f172a;
}
:root.light .bc-metal {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
:root.light .bc-blueprint {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}
:root.light .bc-blueprint svg {
  stroke: rgba(15, 23, 42, 0.2);
}
:root.light .bc-blueprint::after {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}
:root.light .bc-typo .bc-text {
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.15);
}

/* --- Clients Marquee --- */
:root.light .perspective-marquee__fade--h {
  background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 18%, transparent 82%, var(--bg-primary) 100%);
}
:root.light .perspective-marquee__fade--v {
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 25%, transparent 75%, var(--bg-primary) 100%);
}

/* --- CTA --- */
:root.light .cta-section::before {
  opacity: 0.08;
}
:root.light .cta-contact-item {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* --- Footer --- */
:root.light .footer-brand .logo-brand {
  color: #0f172a;
}

/* --- Catalog --- */
/* We keep the catalog cards dark even in light mode to maintain the premium look of the industrial photos. */

/* --- Fix Text Contrasts for Light Mode --- */
:root.light .section-label { color: var(--accent-blue); }
:root.light .section-title { color: var(--text-primary); }
:root.light .section-title span { color: var(--accent-blue); }

:root.light .about-image:hover .about-experience { background: var(--bg-elevated); }

:root.light .about-experience .number { 
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root.light .about-experience .label { color: var(--text-primary); }
:root.light .value-item h4 { color: var(--text-primary); }
:root.light .bc-card h3 { color: var(--text-primary); }

:root.light .bp-data { color: var(--accent-blue); opacity: 0.8; }

:root.light .clients-marquee img { filter: invert(1) opacity(0.6); }

:root.light .cta-text h2, 
:root.light .cta-text p { color: var(--text-primary); }

:root.light .footer-col h4 { color: var(--text-primary); }

/* --- Fix Image Opacity Washout for Light Mode --- */
:root.light .catalog-card img { opacity: 1; }
:root.light .visual-container img { opacity: 1; filter: none; }
:root.light .about-image img { opacity: 1; }
:root.light .catalog-card::before { opacity: 0.05; } /* Reduces the microgrid overlay that whitens the image */

/* ============================================
   REPAIR HIGHLIGHT (21.devs Innovative Rework)
   ============================================ */
.repair-highlight {
  padding: 160px 0;
  background: #05080c; /* Deep technical dark */
  position: relative;
  overflow: hidden;
}

/* Background Grid Overlay */
.repair-highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(121, 188, 189, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 188, 189, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 30% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.repair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 992px) {
  .repair-grid { grid-template-columns: 1fr; gap: 48px; }
}

.repair-visual {
  position: relative;
  z-index: 2;
}

.visual-container {
  position: relative;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.visual-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.repair-visual:hover img {
  transform: scale(1.05) rotate(-1deg);
}

/* Tech Overlays */
.tech-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.scan-line-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent-blue), transparent);
  box-shadow: 0 0 20px var(--accent-blue-glow);
  animation: scan-horizontal 6s infinite ease-in-out;
}

@keyframes scan-horizontal {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.tech-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-blue-glow);
}

.tech-dot::before {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #fff;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.repair-visual:hover .tech-dot::before { opacity: 1; }

.pulse::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--accent-blue);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.tech-hud-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-blue);
  background: rgba(0,0,0,0.5);
  padding: 8px 16px;
  border-radius: 8px;
  letter-spacing: 2px;
  border: 1px solid rgba(121, 188, 189, 0.2);
}

.repair-text {
  position: relative;
  z-index: 2;
}

.repair-text .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 24px;
  color: #fff;
}

.repair-stats-group {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.4s ease;
}

.stat-pill:hover {
  background: rgba(121, 188, 189, 0.05);
  border-color: rgba(121, 188, 189, 0.3);
  transform: translateY(-5px);
}

.pill-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.pill-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

:root.light .repair-highlight { background: var(--bg-primary); }
:root.light .visual-container { background: var(--bg-card); border-color: var(--border); }
:root.light .stat-pill { background: var(--bg-card); border-color: var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
:root.light .pill-val { color: var(--text-primary); }
:root.light .repair-text .section-title { color: var(--text-primary); }
:root.light .repair-subtitle { color: var(--text-muted); }


/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* --- Clients Section Polish --- */
.perspective-marquee__item {
  color: #fff !important;
  opacity: 0.3;
  transition: opacity 0.4s ease, filter 0.4s ease;
  filter: blur(2px);
  text-shadow: 0 0 10px rgba(255,255,255,0);
}

.perspective-marquee__item:hover {
  opacity: 1;
  filter: blur(0);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.clients-header .section-label {
  color: var(--accent-blue);
  letter-spacing: 4px;
}

.nav-logo-img { width: 65px; height: 65px; object-fit: contain; }

/* ============================================
   LIGHT MODE — SECTION SEPARATION & RHYTHM
   ============================================ */

/* 
 * Strategy: Alternate between white (#ffffff) and cool-gray (#e2e8f0)
 * backgrounds, with stronger borders for visual breathing room.
 */

/* Hero → Services: Services gets a white bg */
:root.light .services {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.02);
}

/* About: neutral gray */
:root.light .about {
  background: #e5e5e5;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Metrics (Industrial DNA): white */
:root.light .metrics-bento {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Catalog: neutral gray */
:root.light .catalog {
  background: #e5e5e5;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

:root.light .repair-highlight {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
:root.light .repair-highlight::after {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}
:root.light .visual-container {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.15);
}

/* Clients: neutral gray */
:root.light .clients {
  background: #e5e5e5;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* CTA / Contact Hub: white */
:root.light .cta-section {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
:root.light .cta-hub-container {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.08);
}

/* Footer: stays distinct with a darker neutral tone */
:root.light .footer {
  background: #e5e5e5;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Cards & elevated elements get proper contrast on alternating bgs */
:root.light .service-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
:root.light .service-card:hover {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(121, 188, 189, 0.12);
}

:root.light .about-experience {
  background: #ffffff;
}
:root.light .about-image:hover .about-experience {
  background: #ffffff;
}

:root.light .bc-card {
  background: #f8fafc;
}

:root.light .catalog-card {
  border-color: rgba(15, 23, 42, 0.06);
}
