/* =========================================
   Tech Center Petrópolis — Custom Styles
   ========================================= */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* --- Brand gradient utilities --- */
.gradient-text {
  background: linear-gradient(135deg, #1565C0 0%, #00BFA5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient {
  background: linear-gradient(135deg, #1565C0 0%, #00BFA5 100%);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #1976D2 0%, #00D1AF 100%);
}

/* --- Glassmorphism navbar --- */
.glass-dark {
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-scrolled {
  background: rgba(6, 14, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* --- Hero background mesh --- */
.hero-mesh {
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(21, 101, 192, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 191, 165, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(21, 101, 192, 0.08) 0%, transparent 50%);
}

/* --- Section divider --- */
.section-gradient {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(21, 101, 192, 0.05) 50%,
    transparent 100%
  );
}

/* --- Service and contact cards --- */
.service-card {
  background: rgba(15, 31, 61, 0.5);
}

.service-card:hover {
  background: rgba(15, 31, 61, 0.85);
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.14);
}

.contact-card {
  background: rgba(15, 31, 61, 0.4);
}

.contact-card:hover {
  background: rgba(15, 31, 61, 0.7);
}

/* --- Icon wrapper with gradient bg --- */
.icon-wrapper {
  background: linear-gradient(
    135deg,
    rgba(21, 101, 192, 0.25) 0%,
    rgba(0, 191, 165, 0.2) 100%
  );
  border: 1px solid rgba(21, 101, 192, 0.3);
}

/* --- CTA band --- */
.cta-band {
  background: linear-gradient(135deg, #1565C0 0%, #00897B 100%);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

/* --- Logo glow effect in hero --- */
.logo-glow {
  filter:
    drop-shadow(0 0 20px rgba(0, 191, 165, 0.3))
    drop-shadow(0 0 40px rgba(21, 101, 192, 0.2));
}

/* --- Logo fallback: white-bg version on dark panel --- */
.logo-on-dark {
  mix-blend-mode: screen;
  filter: brightness(1.05);
}

/* --- Mobile menu: max-height collapse animation --- */
#mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

#mobile-menu.open {
  max-height: 380px;
  opacity: 1;
}

@media (min-width: 768px) {
  /* Reset collapse on desktop so md:block works normally */
  #mobile-menu {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
}

/* --- Hamburger → X animation --- */
#menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Active nav link --- */
.nav-link.active {
  color: #ffffff;
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060E1E; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1565C0, #00BFA5);
  border-radius: 3px;
}

/* --- Selection highlight --- */
::selection {
  background: rgba(0, 191, 165, 0.28);
  color: #ffffff;
}

/* --- Focus ring --- */
*:focus-visible {
  outline: 2px solid #00BFA5;
  outline-offset: 3px;
  border-radius: 4px;
}
