/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1a172a;
  --primary-purple: #773dfa;
  --light-gray: #f2f2f2;
  --white: #ffffff;
  --text-gray: #6b7280;
  --gradient: linear-gradient(135deg, var(--primary-purple) 0%, #9333ea 100%);
  --shadow: rgba(119, 61, 250, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f2f2f2;
  --text-primary: #1a172a;
  --text-secondary: #6b7280;
  --header-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --primary-dark: #ffffff;
  --light-gray: #1a172a;
  --white: #0f0f23;
  --text-gray: #a1a1aa;
  
  /* Dark Theme Variables */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a172a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --header-bg: rgba(15, 15, 35, 0.85);
  --card-bg: #1a172a;
}

[data-theme="dark"] .header {
  background: rgba(15, 15, 35, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(119, 61, 250, 0.2) !important;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== COMPONENTES REUTILIZÁVEIS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background: var(--primary-purple);
  color: var(--white);
  transform: translateY(-2px);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(119, 61, 250, 0.1);
  transition: var(--transition);
  -webkit-backdrop-filter: blur(20px);
}

.navbar {
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  display: none;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 2px solid var(--primary-purple);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary-purple);
  font-weight: 500;
}

.theme-toggle:hover {
  background: var(--primary-purple);
  color: white;
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-purple);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-purple);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(119, 61, 250, 0.05) 100%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(119, 61, 250, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero-logo {
  height: 200px;
  width: auto;
}

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

/* ===== SERVICES CAROUSEL SECTION ===== */
.services {
  padding: 80px 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.services-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.carousel-container {
  overflow: hidden;
  margin: 0 60px;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 30px;
  padding: 20px 0;
  justify-content: flex-start;
  align-items: center;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(119, 61, 250, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 300px;
  flex-shrink: 0;
  opacity: 0.7;
  transform: scale(0.85);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(119, 61, 250, 0.1);
}

.service-card.center {
  transform: scale(1.1);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 25px 50px rgba(119, 61, 250, 0.25);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card.center::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: scale(0.9);
  box-shadow: 0 15px 35px rgba(119, 61, 250, 0.2);
}

.service-card.center:hover {
  transform: scale(1.15);
  box-shadow: 0 30px 60px rgba(119, 61, 250, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--white);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.service-card.center .service-icon {
  width: 90px;
  height: 90px;
  font-size: 2.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

[data-theme="dark"] .service-icon {
  background: #773dfa;
  color: #ffffff;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.service-card.center h3 {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.service-card.center p {
  color: var(--text-primary);
  font-weight: 500;
}

/* Carousel Navigation */
.carousel-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 20;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  box-shadow: 0 10px 25px rgba(119, 61, 250, 0.3);
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(119, 61, 250, 0.4);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(119, 61, 250, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-purple);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--primary-purple);
  transform: scale(1.1);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-gray) 0%, rgba(119, 61, 250, 0.05) 100%);
}

.project-section {
  margin: 60px 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  position: relative;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  align-items: center;
}

/* ===== RED GUARD SECTION ===== */
.red-guard-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a172a 50%, #000000 100%);
  position: relative;
  overflow: hidden;
}

.red-guard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 30%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.red-guard-section .project-info {
  padding: 60px;
  color: white;
  position: relative;
  z-index: 2;
}

.project-logos {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
}

.project-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(220, 38, 38, 0.3));
  transition: var(--transition);
  animation: logoFloat 3s ease-in-out infinite;
}

.project-logo.main-logo {
  height: 100px;
  animation-delay: 0s;
}

.project-logo.secondary-logo {
  height: 70px;
  animation-delay: 1.5s;
}

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

.red-guard-section .project-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #dc2626 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.red-guard-section .project-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 60px;
  position: relative;
}

.grid-item {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  animation: gridPulse 4s ease-in-out infinite;
}

.grid-item:nth-child(odd) {
  animation-delay: 0.5s;
}

.grid-item:nth-child(even) {
  animation-delay: 1s;
}

.grid-item.active {
  border-color: #dc2626;
  box-shadow: 
      0 0 20px rgba(220, 38, 38, 0.5),
      inset 0 0 20px rgba(220, 38, 38, 0.1);
  background: rgba(220, 38, 38, 0.1);
}

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

.security-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: securityPulse 3s ease-in-out infinite;
}

.security-pulse::before,
.security-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  animation: securityPulse 3s ease-in-out infinite;
}

.security-pulse::before {
  animation-delay: 1s;
}

.security-pulse::after {
  animation-delay: 2s;
}

@keyframes securityPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ===== WECLOUD SECTION ===== */
.wecloud-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  position: relative;
}

.wecloud-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.wecloud-section .project-info {
  padding: 60px;
  color: var(--primary-dark);
}

.wecloud-section .project-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cloud-network {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 60px auto;
}

.cloud-node {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
  animation: cloudFloat 4s ease-in-out infinite;
}

.cloud-node.main-node {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  font-size: 24px;
  z-index: 10;
}

.cloud-node:nth-child(2) {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
  z-index: 8;
}

.cloud-node:nth-child(3) {
  top: 30%;
  right: 15%;
  transform: translateY(-50%);
  animation-delay: 2s;
  z-index: 9;
}

.cloud-node:nth-child(4) {
  bottom: 30%;
  right: 15%;
  transform: translateY(50%);
  animation-delay: 3s;
  z-index: 8;
}

.cloud-node:nth-child(5) {
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.5s;
  z-index: 7;
}

.cloud-node:nth-child(6) {
  bottom: 30%;
  left: 15%;
  transform: translateY(50%);
  animation-delay: 2.5s;
  z-index: 7;
}

.cloud-node:nth-child(7) {
  top: 30%;
  left: 15%;
  transform: translateY(-50%);
  animation-delay: 4s;
  z-index: 7;
}

/* Animação específica para nó principal */
.cloud-node.main-node {
  animation: cloudFloatMain 4s ease-in-out infinite;
}

@keyframes cloudFloatMain {
  0%, 100% { 
      transform: translate(-50%, -50%) scale(1); 
  }
  50% { 
      transform: translate(-50%, -50%) translateY(-10px) scale(1.05); 
  }
}

/* Animação para nós secundários */
@keyframes cloudFloat {
  0%, 100% { 
      transform: translateY(0px) scale(1); 
  }
  50% { 
      transform: translateY(-8px) scale(1.03); 
  }
}

/* Animações específicas para nós com transforms */
.cloud-node:nth-child(2) {
  animation: cloudFloat2 4s ease-in-out infinite;
  animation-delay: 1s;
}

.cloud-node:nth-child(3) {
  animation: cloudFloat3 4s ease-in-out infinite;
  animation-delay: 2s;
}

.cloud-node:nth-child(4) {
  animation: cloudFloat4 4s ease-in-out infinite;
  animation-delay: 3s;
}

.cloud-node:nth-child(5) {
  animation: cloudFloat5 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

.cloud-node:nth-child(6) {
  animation: cloudFloat6 4s ease-in-out infinite;
  animation-delay: 2.5s;
}

.cloud-node:nth-child(7) {
  animation: cloudFloat7 4s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes cloudFloat2 {
  0%, 100% { 
      transform: translateX(-50%) translateY(0px) scale(1); 
  }
  50% { 
      transform: translateX(-50%) translateY(-8px) scale(1.03); 
  }
}

@keyframes cloudFloat3 {
  0%, 100% { 
      transform: translateY(-50%) translateX(0px) scale(1); 
  }
  50% { 
      transform: translateY(-50%) translateX(-8px) scale(1.03); 
  }
}

@keyframes cloudFloat4 {
  0%, 100% { 
      transform: translateY(50%) translateX(0px) scale(1); 
  }
  50% { 
      transform: translateY(50%) translateX(-8px) scale(1.03); 
  }
}

@keyframes cloudFloat5 {
  0%, 100% { 
      transform: translateX(-50%) translateY(0px) scale(1); 
  }
  50% { 
      transform: translateX(-50%) translateY(8px) scale(1.03); 
  }
}

@keyframes cloudFloat6 {
  0%, 100% { 
      transform: translateY(50%) translateX(0px) scale(1); 
  }
  50% { 
      transform: translateY(50%) translateX(8px) scale(1.03); 
  }
}

@keyframes cloudFloat7 {
  0%, 100% { 
      transform: translateY(-50%) translateX(0px) scale(1); 
  }
  50% { 
      transform: translateY(-50%) translateX(8px) scale(1.03); 
  }
}

.connection-line {
  position: absolute;
  background: linear-gradient(45deg, #0ea5e9, #3b82f6);
  height: 2px;
  opacity: 0.6;
  animation: dataFlow 2s linear infinite;
}

/* 
* Conexões diretas de cada ícone para a nuvem central 
* Layout hexagonal simétrico: 6 ícones periféricos conectados à nuvem central
* Total: 6 linhas para 6 ícones periféricos + 1 ícone central
*/

/* Linha do ícone SERVER (top-center) para a NUVEM central */
.connection-line:nth-child(8) {
  top: 32%;
  left: 50%;
  width: 80px;
  transform: translateX(-50%) rotate(90deg);
  z-index: 5;
}

/* Linha do ícone DATABASE (top-right) para a NUVEM central */
.connection-line:nth-child(9) {
  top: 38%;
  right: 32%;
  width: 85px;
  transform: rotate(-30deg);
  z-index: 5;
}

/* Linha do ícone NETWORK (bottom-right) para a NUVEM central */
.connection-line:nth-child(10) {
  bottom: 38%;
  right: 32%;
  width: 85px;
  transform: rotate(30deg);
  z-index: 5;
}

/* Linha do ícone HDD (bottom-center) para a NUVEM central */
.connection-line:nth-child(11) {
  bottom: 32%;
  left: 50%;
  width: 80px;
  transform: translateX(-50%) rotate(90deg);
  z-index: 5;
}

/* Linha do ícone SHIELD (bottom-left) para a NUVEM central */
.connection-line:nth-child(12) {
  bottom: 38%;
  left: 32%;
  width: 85px;
  transform: rotate(-30deg);
  z-index: 5;
}

/* Linha do ícone GLOBE (top-left) para a NUVEM central */
.connection-line:nth-child(13) {
  top: 38%;
  left: 32%;
  width: 85px;
  transform: rotate(30deg);
  z-index: 5;
}

@keyframes dataFlow {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.cloud-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #0ea5e9;
  border-radius: 50%;
  animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { top: 25%; right: 5%; animation-delay: 1s; }
.particle:nth-child(3) { bottom: 25%; left: 5%; animation-delay: 2s; }
.particle:nth-child(4) { top: 85%; right: 45%; animation-delay: 3s; }
.particle:nth-child(5) { bottom: 5%; right: 5%; animation-delay: 4s; }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0px); }
  50% { opacity: 1; transform: translateY(-30px); }
}

/* ===== GDSYSTEM SECTION ===== */
.gdsystem-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  position: relative;
}

.gdsystem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 25% 25%, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.gdsystem-section .project-info {
  padding: 60px;
  color: var(--primary-dark);
}

.gdsystem-section .project-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.monitoring-dashboard {
  padding: 60px;
  position: relative;
}

.dashboard-screen {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.dashboard-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
  margin-bottom: 20px;
}

.bar {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  width: 30px;
  border-radius: 4px 4px 0 0;
  animation: barGrow 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.5s; }
.bar:nth-child(3) { animation-delay: 1s; }
.bar:nth-child(4) { animation-delay: 1.5s; }
.bar:nth-child(5) { animation-delay: 2s; }

@keyframes barGrow {
  0%, 100% { transform: scaleY(0.8); opacity: 0.8; }
  50% { transform: scaleY(1.1); opacity: 1; }
}

.status-indicators {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: indicatorBlink 2s ease-in-out infinite;
}

.indicator.active {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.indicator.warning {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  animation-delay: 1s;
}

@keyframes indicatorBlink {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.data-flow {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
}

.data-stream {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  margin: 8px 0;
  animation: dataStream 2s linear infinite;
}

.data-stream:nth-child(2) {
  animation-delay: 0.5s;
}

.data-stream:nth-child(3) {
  animation-delay: 1s;
}

@keyframes dataStream {
  0% { transform: translateX(-60px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(60px); opacity: 0; }
}

/* ===== FEATURE ITEMS ===== */
.project-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.red-guard-section .feature-item {
  border-color: rgba(220, 38, 38, 0.3);
  color: white;
}

.wecloud-section .feature-item {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
  color: var(--primary-dark);
}

.gdsystem-section .feature-item {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
  color: var(--primary-dark);
}

.feature-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.feature-item span {
  font-weight: 500;
  font-size: 1rem;
}

/* ===== DARK THEME ADJUSTMENTS FOR PROJECTS ===== */
[data-theme="dark"] .projects {
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(119, 61, 250, 0.1) 100%);
}

[data-theme="dark"] .wecloud-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a172a 50%, #0a0a0a 100%);
}

[data-theme="dark"] .wecloud-section .project-info {
  color: #ffffff;
}

[data-theme="dark"] .wecloud-section .project-title {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .wecloud-section .project-description {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .wecloud-section .feature-item {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  color: #ffffff;
}

[data-theme="dark"] .gdsystem-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a172a 50%, #0a0a0a 100%);
}

[data-theme="dark"] .gdsystem-section .project-info {
  color: #ffffff;
}

[data-theme="dark"] .gdsystem-section .project-title {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .gdsystem-section .project-description {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .gdsystem-section .feature-item {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.3);
  color: #ffffff;
}

/* ===== UNDER CONSTRUCTION SECTION ===== */
.under-construction {
  padding: 80px 0;
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
}

.construction-content {
  max-width: 600px;
  margin: 0 auto;
}

.construction-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  animation: rotate 4s linear infinite;
}

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

.construction-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.construction-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  width: 75%;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  animation: progress 2s ease-out;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 75%; }
}

.progress-text {
  color: var(--primary-purple);
  font-weight: 600;
}

[data-theme="dark"] .under-construction {
  background: #0a0a0a;
  color: #ffffff;
}

[data-theme="dark"] .construction-content h2 {
  color: #ffffff;
}

[data-theme="dark"] .construction-content p {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .progress-text {
  color: var(--primary-purple);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

[data-theme="dark"] .footer {
  background: #0a0a0a;
  color: #ffffff;
}

[data-theme="dark"] .footer-section h4 {
  color: #ffffff;
}

[data-theme="dark"] .footer-description {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .footer-links a {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--primary-purple);
}

[data-theme="dark"] .contact-info p {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .footer-bottom {
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .footer-logo-img {
  filter: none;
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(119, 61, 250, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-purple);
  transform: translateY(-2px);
}

[data-theme="dark"] .social-link {
  background: rgba(119, 61, 250, 0.4);
  color: #ffffff;
  border: 1px solid rgba(119, 61, 250, 0.3);
}

[data-theme="dark"] .social-link:hover {
  background: var(--primary-purple);
  border: 1px solid var(--primary-purple);
  color: #ffffff;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-purple);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: var(--bg-primary);
      width: 100%;
      text-align: center;
      transition: var(--transition);
      box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
      padding: 40px 0;
  }

  .nav-menu.active {
      left: 0;
  }

  .nav-menu li {
      margin: 15px 0;
  }

  .nav-controls {
      gap: 12px;
  }
  
  .nav-toggle {
      display: flex;
  }
  
  .theme-toggle {
      padding: 6px 12px;
      font-size: 0.8rem;
  }
  
  .theme-toggle span {
      display: none;
  }

  .nav-toggle.active .bar:nth-child(2) {
      opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
  }

  .hero-title {
      font-size: 2.5rem;
  }

  .hero-buttons {
      justify-content: center;
  }

  .section-title {
      font-size: 2rem;
  }

  .carousel-container {
      margin: 0 40px;
  }
  
  .carousel-btn {
      width: 45px;
      height: 45px;
      font-size: 1rem;
  }
  
  .service-card {
      min-width: 280px;
      padding: 30px 20px;
  }

  /* ===== RESPONSIVIDADE PROJETOS ===== */
  .project-section {
      margin: 30px 0;
  }
  
  .project-content {
      grid-template-columns: 1fr;
      text-align: center;
      min-height: auto;
  }
  
  .project-info {
      padding: 30px 20px !important;
      order: 2;
  }
  
  .project-visual {
      padding: 30px 20px !important;
      order: 1;
  }
  
  .project-title {
      font-size: 2.2rem !important;
      margin-bottom: 15px !important;
  }
  
  .project-description {
      font-size: 1rem !important;
      margin-bottom: 20px !important;
  }
  
  .project-logos {
      justify-content: center;
      margin-bottom: 20px !important;
  }
  
  .project-logo {
      height: 60px !important;
  }
  
  .project-logo.main-logo {
      height: 80px !important;
  }
  
  .cloud-network {
      width: 280px;
      height: 280px;
      margin: 20px auto;
  }
  
  .cloud-node {
      width: 50px !important;
      height: 50px !important;
      font-size: 16px !important;
  }
  
  .cloud-node.main-node {
      width: 65px !important;
      height: 65px !important;
      font-size: 20px !important;
  }
  
  .protection-grid {
      padding: 30px 20px;
      gap: 12px;
  }
  
  .grid-item {
      width: 50px;
      height: 50px;
  }
  
  .monitoring-dashboard {
      padding: 30px 20px !important;
  }
  
  .dashboard-screen {
      padding: 20px !important;
  }
  
  .chart-bars {
      height: 80px !important;
      gap: 8px !important;
  }
  
  .bar {
      width: 20px !important;
  }
  
  .feature-item {
      padding: 12px 16px !important;
      font-size: 0.9rem !important;
  }

  .hero-logo {
      height: 150px;
  }

  .floating-card {
      padding: 30px;
  }

  .btn {
      padding: 10px 20px;
      font-size: 13px;
  }

  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .social-links {
      justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }

  .hero {
      padding: 100px 0 60px;
  }

  .hero-title {
      font-size: 2rem;
  }

  .hero-description {
      font-size: 1rem;
  }

  .section-title {
      font-size: 1.8rem;
  }



  .carousel-container {
      margin: 0 20px;
  }
  
  .carousel-btn {
      width: 40px;
      height: 40px;
      font-size: 0.9rem;
  }
  
  .service-card {
      min-width: 250px;
      padding: 25px 15px;
  }

  .hero-buttons {
      flex-direction: column;
      align-items: center;
  }

  .btn {
      width: 100%;
      max-width: 200px;
      justify-content: center;
  }
  
  /* ===== PROJETOS MOBILE PEQUENO ===== */
  .project-section {
      margin: 20px 0;
  }
  
  .project-title {
      font-size: 1.8rem !important;
  }
  
  .project-logos {
      gap: 15px !important;
  }
  
  .project-logo {
      height: 50px !important;
  }
  
  .project-logo.main-logo {
      height: 60px !important;
  }
  
  .cloud-network {
      width: 220px !important;
      height: 220px !important;
  }
  
  .cloud-node {
      width: 40px !important;
      height: 40px !important;
      font-size: 14px !important;
  }
  
  .cloud-node.main-node {
      width: 55px !important;
      height: 55px !important;
      font-size: 18px !important;
  }
  
  .protection-grid {
      padding: 20px !important;
      gap: 10px !important;
  }
  
  .grid-item {
      width: 40px !important;
      height: 40px !important;
  }
  
  .feature-item {
      padding: 10px 12px !important;
      font-size: 0.85rem !important;
  }
}

/* ===== ANIMAÇÕES E EFEITOS ===== */
.service-card,
.project-section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.project-section:nth-child(1) { animation-delay: 0.1s; }
.project-section:nth-child(2) { animation-delay: 0.2s; }
.project-section:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* ===== SCROLL SMOOTH E OUTROS EFEITOS ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* Efeito de seleção personalizado */
::selection {
  background: var(--primary-purple);
  color: var(--white);
}

/* Cloned cards styling */
.service-card.clone {
  pointer-events: auto; /* Permitir cliques nos clones */
}

/* Ensure clones can also receive center state */
.service-card.clone.center {
  transform: scale(1.1);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 25px 50px rgba(119, 61, 250, 0.25);
}

.service-card.clone.center::before {
  transform: scaleX(1);
}

.service-card.clone.center .service-icon {
  width: 90px;
  height: 90px;
  font-size: 2.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

.service-card.clone.center h3 {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card.clone.center p {
  color: var(--text-primary);
  font-weight: 500;
}


