/* ==========================================================================
   C&A NET - ENERGIA SOLAR | STYLESHEET HIGH-TECH & MAGNÉTICO
   Design System: Cyber-Solar Emerald & Space Obsidian
   ========================================================================== */

:root {
  --primary-green: #00dc82;
  --primary-glow: rgba(0, 220, 130, 0.45);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --bg-dark: #070b09;
  --bg-card: rgba(14, 23, 19, 0.75);
  --border-card: rgba(0, 220, 130, 0.2);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

/* Smooth Scrolling & Viewport Lock */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-text-size-adjust: 100%;
  touch-action: pan-y pinch-zoom;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090e0b;
}
::-webkit-scrollbar-thumb {
  background: #00dc82;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00b067;
}

/* Background Gradients & Tech Grid */
.tech-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 220, 130, 0.15), transparent 45%),
    radial-gradient(circle at 100% 50%, rgba(14, 165, 233, 0.08), transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

.ambient-glow {
  position: absolute;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(0, 220, 130, 0.45);
  box-shadow: 0 20px 45px -8px rgba(0, 220, 130, 0.2);
  transform: translateY(-4px);
}

.glass-nav {
  background: rgba(7, 11, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 220, 130, 0.15);
}

/* Glow & Neon Effects */
.neon-border-green {
  border: 1px solid var(--primary-green);
  box-shadow: 0 0 20px var(--primary-glow);
}

.neon-text-green {
  color: var(--primary-green);
  text-shadow: 0 0 18px var(--primary-glow);
}

.btn-primary-glow {
  background: linear-gradient(135deg, #00dc82 0%, #00a862 100%);
  color: #041209;
  font-weight: 700;
  box-shadow: 0 4px 25px rgba(0, 220, 130, 0.4);
  transition: all 0.25s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 220, 130, 0.6);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary-glass:hover {
  background: rgba(0, 220, 130, 0.12);
  border-color: #00dc82;
  color: #00dc82;
  transform: translateY(-2px);
}

/* Mascote Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.mascote-floating {
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(0, 220, 130, 0.25));
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.pulse-badge {
  animation: pulseSubtle 3s ease-in-out infinite;
}

/* Hologram Video Styling for Carlos André 3D */
.holo-container {
  position: relative;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(0, 220, 130, 0.4), rgba(14, 165, 233, 0.2), rgba(0, 220, 130, 0.1));
  box-shadow: 0 0 50px rgba(0, 220, 130, 0.25);
  overflow: hidden;
}

/* ==========================================================================
   CARLOS ANDRÉ 3D STAGE & 360 MASCOTE ORBIT
   ========================================================================== */
.ca-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
}

.ca-platform {
  position: absolute;
  bottom: 10px;
  width: 340px;
  height: 110px;
  background: radial-gradient(ellipse at center, rgba(0, 220, 130, 0.5) 0%, rgba(0, 220, 130, 0.15) 50%, transparent 75%);
  border-radius: 50%;
  transform: rotateX(68deg);
  box-shadow: 0 0 60px rgba(0, 220, 130, 0.6), inset 0 0 25px rgba(0, 220, 130, 0.7);
  border: 2px solid rgba(0, 220, 130, 0.7);
  z-index: 5;
  animation: platformPulse 4s ease-in-out infinite;
}

@keyframes platformPulse {
  0%, 100% {
    box-shadow: 0 0 50px rgba(0, 220, 130, 0.5), inset 0 0 20px rgba(0, 220, 130, 0.6);
    border-color: rgba(0, 220, 130, 0.6);
  }
  50% {
    box-shadow: 0 0 80px rgba(0, 220, 130, 0.8), inset 0 0 35px rgba(0, 255, 157, 0.8);
    border-color: rgba(0, 255, 157, 0.9);
  }
}

.ca-character {
  position: relative;
  z-index: 15;
  height: 520px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(0, 220, 130, 0.25));
  user-select: none;
  pointer-events: none;
}

/* High-Definition 3D Vector Hologram Orbit Track */
.orbit-track-container {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 460px;
  height: 200px;
  margin-top: -100px;
  margin-left: -230px;
  pointer-events: none;
  z-index: 7;
  overflow: visible;
}

.orbit-laser-svg {
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(0, 220, 130, 0.45));
  animation: laserAuraBreathe 4s ease-in-out infinite;
}

@keyframes laserAuraBreathe {
  0%, 100% {
    filter: drop-shadow(0 0 14px rgba(0, 220, 130, 0.5));
    opacity: 0.92;
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(0, 255, 157, 0.85));
    opacity: 1;
  }
}

/* Mascote 360 Orbit Animation */
@keyframes orbit360 {
  0% {
    /* Left side, coming to front */
    transform: translate(-195px, 0px) scale(1.05);
    z-index: 25;
    filter: drop-shadow(0 15px 25px rgba(0, 220, 130, 0.6)) brightness(1.05);
  }
  25% {
    /* Front center - closest to camera */
    transform: translate(0px, 75px) scale(1.22);
    z-index: 30;
    filter: drop-shadow(0 20px 35px rgba(0, 220, 130, 0.85)) brightness(1.12);
  }
  49.9% {
    z-index: 30;
  }
  50% {
    /* Right side, going behind */
    transform: translate(195px, 0px) scale(1.05);
    z-index: 8;
    filter: drop-shadow(0 15px 25px rgba(0, 220, 130, 0.6)) brightness(1.05);
  }
  75% {
    /* Back center - behind Carlos André */
    transform: translate(0px, -75px) scale(0.8);
    z-index: 8;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.7)) brightness(0.82);
  }
  99.9% {
    z-index: 8;
  }
  100% {
    transform: translate(-195px, 0px) scale(1.05);
    z-index: 25;
    filter: drop-shadow(0 15px 25px rgba(0, 220, 130, 0.6)) brightness(1.05);
  }
}

.mascote-orbiting {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 105px;
  height: 105px;
  margin-top: -52px;
  margin-left: -52px;
  animation: orbit360 8.5s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, z-index;
}

.mascote-orbiting img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Company Logos Card & Glow */
.company-logo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 105px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-logo-card img {
  max-height: 68px;
  max-width: 170px;
  object-fit: contain;
  filter: none;
  transition: all 0.3s ease;
}

.company-logo-card:hover {
  background: #ffffff;
  border-color: #00dc82;
  box-shadow: 0 12px 30px rgba(0, 220, 130, 0.2), 0 4px 10px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px) scale(1.03);
}

.company-logo-card:hover img {
  transform: scale(1.06);
}

.holo-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 220, 130, 0.15) 10%, transparent 60%);
  animation: rotateScan 12s linear infinite;
  pointer-events: none;
}

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

.holo-inner {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #040806;
}

/* Custom Range Slider (Calculadora) */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #14241c;
  outline: none;
  transition: background 0.2s;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00dc82;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.8), 0 0 3px #fff inset;
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type=range]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00dc82;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 220, 130, 0.8);
}

/* KPI Circle / Odometer */
.kpi-circle-svg circle {
  transition: stroke-dashoffset 1.5s ease-out;
}

/* FAQ Accordion Transitions */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #00dc82;
}

/* Floating Mascot Assistant Widget */
.mascot-widget-bubble {
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  animation: bounceBubble 4s ease-in-out infinite;
}

@keyframes bounceBubble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Marquee / Infinite Slider */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  contain: paint;
  position: relative;
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
  touch-action: pan-y;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Instagram Reels & Video Feed Section */
.insta-story-ring {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 3px;
  border-radius: 50%;
  display: inline-flex;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.35);
  transition: all 0.25s ease;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.55);
  filter: brightness(1.1);
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #0d1410;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(220, 39, 67, 0.6);
  box-shadow: 0 16px 35px -5px rgba(220, 39, 67, 0.3), 0 0 20px rgba(0, 220, 130, 0.2);
}

.reel-play-btn {
  transition: all 0.25s ease;
}

.reel-card:hover .reel-play-btn {
  transform: scale(1.15);
  background: #00dc82;
  color: #000000;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-card:hover .reel-video {
  transform: scale(1.05);
}

.reel-sound-toggle {
  transition: all 0.2s ease;
}

.reel-sound-toggle:active {
  transform: scale(0.9);
}

/* ==========================================================================
   Solutions Cards Watermark Backgrounds (Elegante & Estético)
   ========================================================================== */
.solution-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(12, 19, 16, 0.85);
  border: 1px solid rgba(0, 220, 130, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover {
  border-color: rgba(0, 220, 130, 0.5);
  box-shadow: 0 20px 45px -10px rgba(0, 220, 130, 0.25), 0 0 30px rgba(0, 220, 130, 0.1);
  transform: translateY(-6px);
}

.solution-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.solution-watermark-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.16;
  filter: saturate(1.25) contrast(1.1);
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.solution-card:hover .solution-watermark-img,
.group:hover .solution-watermark-img {
  opacity: 0.32;
  filter: saturate(1.4) contrast(1.15) brightness(1.08);
  transform: scale(1.08) translate(-4px, -2px);
}

.solution-watermark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(8, 14, 11, 0.96) 0%,
    rgba(8, 14, 11, 0.88) 45%,
    rgba(8, 14, 11, 0.55) 75%,
    rgba(0, 220, 130, 0.08) 100%
  );
  pointer-events: none;
}

.solution-watermark-overlay-gold {
  background: linear-gradient(
    120deg,
    rgba(8, 14, 11, 0.96) 0%,
    rgba(8, 14, 11, 0.88) 45%,
    rgba(8, 14, 11, 0.55) 75%,
    rgba(245, 158, 11, 0.08) 100%
  );
}

.solution-watermark-overlay-cyan {
  background: linear-gradient(
    120deg,
    rgba(8, 14, 11, 0.96) 0%,
    rgba(8, 14, 11, 0.88) 45%,
    rgba(8, 14, 11, 0.55) 75%,
    rgba(6, 182, 212, 0.08) 100%
  );
}

/* ==========================================================================
   Axia Tecnologia Developer Credit (Efeito Degradê Ciano com Lilás no Hover)
   ========================================================================== */
.axia-tech-link {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.axia-tech-link .axia-text {
  transition: all 0.35s ease;
  display: inline-block;
}

.axia-tech-link:hover {
  transform: translateY(-1px);
}

.axia-tech-link:hover .axia-text {
  background: linear-gradient(125deg, #06b6d4 0%, #38bdf8 30%, #a855f7 70%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
}



