@import url("https://fonts.googleapis.com/css2?family=Raster:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark-bg: #0a0a0a;
  --dark-purple: #2d1b3d;
  --purple: #4a2c5a;
  --light-purple: #6b4c7a;
  --accent: #8b5fbf;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --card-bg: #1a1a1a;
}

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

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

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(139, 95, 191, 0.3);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header with enhanced animations */
header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(139, 95, 191, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-100%);
  animation: slideDown 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInLeft 1s ease forwards;
  animation-delay: 0.8s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-text {
  font-family: "Raster", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.nav-links li:nth-child(1) {
  animation-delay: 1s;
}
.nav-links li:nth-child(2) {
  animation-delay: 1.1s;
}
.nav-links li:nth-child(3) {
  animation-delay: 1.2s;
}
.nav-links li:nth-child(4) {
  animation-delay: 1.3s;
}
.nav-links li:nth-child(5) {
  animation-delay: 1.4s;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--light-purple));
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Enhanced Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  margin: 3px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 2rem;
  margin: 0;
}

.mobile-menu li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}

.mobile-menu.active li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active li:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.active li:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-menu.active li:nth-child(3) {
  transition-delay: 0.3s;
}
.mobile-menu.active li:nth-child(4) {
  transition-delay: 0.4s;
}
.mobile-menu.active li:nth-child(5) {
  transition-delay: 0.5s;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.mobile-menu a:hover {
  color: var(--accent);
  transform: translateX(10px);
}

/* Enhanced Parallax Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner Background */
.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 1rem;
  opacity: 0;
  animation: titleReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 1.5s;
}

.hero-logo-image {
  max-height: 200px;
  width: auto;
  max-width: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 20px rgba(139, 95, 191, 0.4));
}

.hero-logo:hover .hero-logo-image {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(139, 95, 191, 0.7));
}

/* Fallback h1 caso a imagem não carregue */
.hero-logo-fallback {
  font-family: "Raster", Arial, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--accent),
    var(--light-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -3px;
}

/* Responsive para diferentes tamanhos de tela */
@media (max-width: 1024px) {
  .hero-logo-image {
    max-height: 180px;
  }

  .hero-logo-fallback {
    font-size: 4.2rem;
    letter-spacing: -2px;
  }
}

@media (max-width: 768px) {
  .hero-logo-image {
    max-height: 150px;
  }

  .hero-logo-fallback {
    font-size: 3.5rem;
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  .hero-logo-image {
    max-height: 120px;
  }

  .hero-logo-fallback {
    font-size: 2.8rem;
  }
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.6) contrast(1.1);
  transition: all 0.3s ease;
}

.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 2;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.parallax-bg {
  background: radial-gradient(
      circle at 30% 70%,
      rgba(45, 27, 61, 0.6) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(74, 44, 90, 0.4) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.8) 0%,
      rgba(26, 26, 46, 0.6) 100%
    );
  z-index: 2;
}

.parallax-shapes {
  z-index: 3;
  opacity: 0.3;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), var(--light-purple));
  opacity: 0.2;
  animation: floatShape 25s infinite linear;
  filter: blur(1px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 5%;
  left: 5%;
  animation-duration: 30s;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-duration: 35s;
  animation-delay: 5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 25%;
  left: 75%;
  animation-duration: 25s;
  animation-delay: 10s;
}

.shape-4 {
  width: 180px;
  height: 180px;
  bottom: 15%;
  left: 25%;
  animation-duration: 40s;
  animation-delay: 15s;
}

.shape-5 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  animation-duration: 20s;
  animation-delay: 8s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-40px) translateX(30px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translateY(-80px) translateX(-20px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translateY(-40px) translateX(-50px) rotate(270deg) scale(1.2);
  }
}

/* Enhanced Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.hero-particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.8;
  animation: heroFloat 12s infinite linear;
  box-shadow: 0 0 15px rgba(139, 95, 191, 0.6);
}

@keyframes heroFloat {
  0% {
    transform: translateY(100vh) translateX(0px) scale(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(20px) scale(1) rotate(45deg);
  }
  50% {
    opacity: 0.8;
    transform: translateY(50vh) translateX(-30px) scale(1.3) rotate(180deg);
  }
  90% {
    opacity: 0.6;
    transform: translateY(10vh) translateX(40px) scale(0.8) rotate(315deg);
  }
  100% {
    transform: translateY(-10vh) translateX(0px) scale(0) rotate(360deg);
    opacity: 0;
  }
}

.hero-particle:nth-child(1) {
  width: 8px;
  height: 8px;
  left: 8%;
  animation-duration: 10s;
  animation-delay: 0s;
}
.hero-particle:nth-child(2) {
  width: 12px;
  height: 12px;
  left: 18%;
  animation-duration: 14s;
  animation-delay: 2s;
}
.hero-particle:nth-child(3) {
  width: 6px;
  height: 6px;
  left: 28%;
  animation-duration: 9s;
  animation-delay: 4s;
}
.hero-particle:nth-child(4) {
  width: 10px;
  height: 10px;
  left: 38%;
  animation-duration: 13s;
  animation-delay: 1s;
}
.hero-particle:nth-child(5) {
  width: 7px;
  height: 7px;
  left: 48%;
  animation-duration: 15s;
  animation-delay: 3s;
}
.hero-particle:nth-child(6) {
  width: 14px;
  height: 14px;
  left: 58%;
  animation-duration: 11s;
  animation-delay: 6s;
}
.hero-particle:nth-child(7) {
  width: 5px;
  height: 5px;
  left: 68%;
  animation-duration: 8s;
  animation-delay: 5s;
}
.hero-particle:nth-child(8) {
  width: 9px;
  height: 9px;
  left: 78%;
  animation-duration: 12s;
  animation-delay: 8s;
}
.hero-particle:nth-child(9) {
  width: 11px;
  height: 11px;
  left: 88%;
  animation-duration: 10s;
  animation-delay: 3.5s;
}
.hero-particle:nth-child(10) {
  width: 13px;
  height: 13px;
  left: 98%;
  animation-duration: 16s;
  animation-delay: 7s;
}
.hero-particle:nth-child(11) {
  width: 6px;
  height: 6px;
  left: 15%;
  animation-duration: 11s;
  animation-delay: 4.5s;
}
.hero-particle:nth-child(12) {
  width: 8px;
  height: 8px;
  left: 85%;
  animation-duration: 14s;
  animation-delay: 9s;
}

/* Enhanced Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  opacity: 0;
  transform: translateY(80px) scale(0.9);
  animation: heroContentAppear 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 1s;
}

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

/*.hero h1 {
  font-family: "Raster", Arial, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--accent),
    var(--light-purple)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: -3px;
  opacity: 0;
  animation: titleReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 1.5s;
}*/

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(45deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.hero .subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  line-height: 1.9;
  opacity: 0;
  animation: subtitleSlide 1.5s ease forwards;
  animation-delay: 2s;
}

@keyframes subtitleSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: var(--text-primary);
  padding: 1.2rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  opacity: 0;
  animation: buttonPop 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 2.5s;
  box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
}

@keyframes buttonPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--light-purple), var(--accent));
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover::after {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(139, 95, 191, 0.5);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  animation: scrollIndicatorFade 2s ease forwards, bounce 3s infinite;
  animation-delay: 3s, 5s;
}

@keyframes scrollIndicatorFade {
  to {
    opacity: 1;
  }
}

.scroll-indicator::before {
  content: "↓";
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.8;
  display: block;
  text-shadow: 0 0 10px rgba(139, 95, 191, 0.5);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Enhanced Services Section */
.services {
  padding: 10rem 0;
  background: rgba(26, 26, 26, 0.5);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 80%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 50%
  );
  z-index: 0;
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  margin-bottom: 5rem;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--light-purple));
  border-radius: 2px;
  opacity: 0;
  animation: lineGrow 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes lineGrow {
  to {
    opacity: 1;
    width: 120px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 3.5rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 95, 191, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(15px);
  opacity: 0;
  transform: translateY(60px) scale(0.9);
}

.service-card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 25px 80px rgba(139, 95, 191, 0.3);
}

.service-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 20px rgba(139, 95, 191, 0.3);
}

.service-card:hover .service-icon {
  transform: scale(1) rotateY(10deg);
  filter: drop-shadow(0 0 15px rgba(139, 95, 191, 0.5));
}

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

.service-card:hover h3 {
  color: var(--accent);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: rgba(184, 184, 184, 0.9);
}

/* Enhanced About Section */
.about {
  padding: 10rem 0;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(74, 44, 90, 0.1) 0%,
    transparent 50%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 2;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-text h2 {
  color: var(--text-primary);
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text h2.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-text p {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text p.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-text p:nth-child(2) {
  transition-delay: 0.2s;
}
.about-text p:nth-child(3) {
  transition-delay: 0.4s;
}
.about-text p:nth-child(4) {
  transition-delay: 0.6s;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--light-purple));
  transition: width 0.3s ease;
}

.highlight:hover::after {
  width: 100%;
}

/* Enhanced Space Animation */
.about-visual {
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-visual.animate {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.space-invaders-container {
  background: #000000;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  width: 100%;
  height: 450px;
  touch-action: none;
}

.space-invaders-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 95, 191, 0.2);
}

#gameCanvas {
  background: #000000;
  border: 2px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(139, 95, 191, 0.3);
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  touch-action: none;
}

/* Game paused overlay com fonte 8-bit */
.game-paused {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 1.2rem;
  font-weight: normal;
  text-shadow: 0 0 10px rgba(139, 95, 191, 0.8),
    0 0 20px rgba(139, 95, 191, 0.5), 2px 2px 0px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 2px;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(139, 95, 191, 0.8),
      0 0 20px rgba(139, 95, 191, 0.5), 2px 2px 0px rgba(0, 0, 0, 0.8);
  }
  50% {
    text-shadow: 0 0 20px rgba(139, 95, 191, 1),
      0 0 30px rgba(139, 95, 191, 0.8), 2px 2px 0px rgba(0, 0, 0, 0.8);
  }
}

.game-paused.visible {
  opacity: 1;
}

/* Game Overlay (Game Over e Victory) */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.game-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Game Message (GAME OVER / VICTORY) */
.game-message {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 3px;
  animation: messageFlash 1.5s ease-in-out infinite;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(139, 95, 191, 0.8),
    0 0 20px rgba(139, 95, 191, 0.5), 2px 2px 0px rgba(0, 0, 0, 0.8);
}

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

/* Reload Button 8-bit */
.reload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: rgba(26, 26, 26, 0.9);
  border: 3px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Press Start 2P", "Courier New", monospace;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.reload-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 95, 191, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.reload-button:hover::before {
  left: 100%;
}

.reload-button:hover {
  background: rgba(139, 95, 191, 0.2);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4),
    0 0 0 1px rgba(139, 95, 191, 0.5);
}

.reload-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Reload Text */
.reload-text {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(139, 95, 191, 0.6), 1px 1px 0px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(139, 95, 191, 0.6),
      1px 1px 0px rgba(0, 0, 0, 0.8);
  }
  50% {
    text-shadow: 0 0 20px rgba(139, 95, 191, 1),
      0 0 30px rgba(139, 95, 191, 0.8), 1px 1px 0px rgba(0, 0, 0, 0.8);
  }
}

.reload-button:hover .reload-text {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
    0 0 25px rgba(139, 95, 191, 0.6), 1px 1px 0px rgba(0, 0, 0, 0.8);
  animation: none;
}

/* Responsive */
@media (max-width: 768px) {
  .space-invaders-container {
    height: 380px;
    cursor: pointer;
  }

  .game-paused {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .game-message {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .reload-button {
    padding: 1.2rem 1.5rem;
  }

  .reload-text {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 480px) {
  .space-invaders-container {
    height: 320px;
  }

  .game-paused {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .game-message {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .reload-button {
    padding: 1rem 1.2rem;
  }

  .reload-text {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
}

/* Fallback para caso a fonte não carregue */
@font-face {
  font-family: "Pixel";
  src: url("data:font/woff2;base64,") format("woff2");
  font-display: swap;
}

/* Estilo alternativo caso Press Start 2P não carregue */
.game-paused,
.game-message,
.reload-button {
  font-family: "Press Start 2P", "Pixel", "Courier New", "Monaco", "Menlo",
    monospace;
}

/* Animação adicional para o container no mobile */
@media (hover: none) and (pointer: coarse) {
  .space-invaders-container:active {
    transform: scale(0.98);
  }

  .space-invaders-container {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  .reload-button:active {
    transform: translateY(0) scale(0.95);
    background: rgba(139, 95, 191, 0.3);
  }
}

/* Efeitos especiais para Victory e Game Over - agora ambos roxos */
.game-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(139, 95, 191, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 95, 191, 0.1) 0%,
      transparent 50%
    );
  animation: overlayGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes overlayGlow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* Enhanced Team Section */
.team {
  padding: 10rem 0;
  background: rgba(26, 26, 26, 0.6);
  position: relative;
}

.team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 70%
  );
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.team-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 4rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(139, 95, 191, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) rotateX(10deg);
}

.team-card.animate {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: 0 30px 80px rgba(139, 95, 191, 0.3);
  border-color: var(--accent);
}

.team-photo-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  cursor: pointer;
}

.team-photo,
.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
  object-fit: cover;
}

.team-photo-container:hover .team-photo,
.team-photo-container:hover .team-avatar {
  transform: scale(1.1) rotateZ(5deg);
  box-shadow: 0 20px 50px rgba(139, 95, 191, 0.5);
}

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

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(139, 95, 191, 0.5);
}

.team-photo-container:hover .particle {
  opacity: 1;
  animation: particleFloat 3s infinite;
}

.particle:nth-child(1) {
  top: 5%;
  left: 15%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 15%;
  right: 10%;
  animation-delay: 0.3s;
}
.particle:nth-child(3) {
  bottom: 20%;
  left: 5%;
  animation-delay: 0.6s;
}
.particle:nth-child(4) {
  bottom: 10%;
  right: 15%;
  animation-delay: 0.9s;
}
.particle:nth-child(5) {
  top: 45%;
  left: 0%;
  animation-delay: 1.2s;
}
.particle:nth-child(6) {
  top: 55%;
  right: 0%;
  animation-delay: 1.5s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-25px) scale(1.3) rotate(180deg);
    opacity: 0.7;
  }
}

.team-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.team-card:hover h3 {
  color: var(--accent);
  transform: translateY(-3px);
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.team-card:hover .team-role {
  transform: scale(1.05);
}

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

.team-card:hover p {
  color: rgba(184, 184, 184, 0.9);
}

/* Enhanced Contact Section com Engrenagens */
.contact {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 61, 0.1) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 60%
  );
}

/* Engrenagens Animadas */
.contact-gears {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gear {
  position: absolute;
  color: var(--accent);
  opacity: 0.3;
  animation: rotate 15s linear infinite;
  filter: blur(0.5px);
  text-shadow: 0 0 20px rgba(139, 95, 191, 0.4);
}

.gear-1 {
  top: 15%;
  left: 8%;
  font-size: 8rem;
  animation-duration: 20s;
  opacity: 0.2;
}

.gear-2 {
  top: 20%;
  right: 12%;
  font-size: 6rem;
  animation-duration: 25s;
  animation-direction: reverse;
  opacity: 0.25;
}

.gear-3 {
  bottom: 25%;
  left: 5%;
  font-size: 5rem;
  animation-duration: 18s;
  opacity: 0.2;
}

.gear-4 {
  bottom: 15%;
  right: 8%;
  font-size: 7rem;
  animation-duration: 22s;
  animation-direction: reverse;
  opacity: 0.3;
}

.gear-5 {
  top: 50%;
  left: 3%;
  font-size: 4rem;
  animation-duration: 16s;
  opacity: 0.15;
}

.gear-6 {
  top: 60%;
  right: 5%;
  font-size: 9rem;
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.2;
}

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

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -2px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact h2.animate {
  opacity: 1;
  transform: scale(1);
}

.contact p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact p.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact p:nth-child(2) {
  transition-delay: 0.2s;
}
.contact p:nth-child(3) {
  transition-delay: 0.4s;
}

/* Enhanced Footer */
footer {
  background: var(--card-bg);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(139, 95, 191, 0.2);
  position: relative;
  z-index: 100;
  margin-top: 0;
  width: 100%;
  clear: both;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--purple),
    transparent
  );
  animation: footerGlow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

footer .container {
  position: relative;
  text-align: center;
  z-index: 2;
}

footer p {
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  text-align: center;
  z-index: 2;
  margin: 0;
  padding: 0;
  opacity: 1;
  animation: none;
}

/* Ensure footer visibility */
body {
  position: relative;
}

/* Fix any potential overflow issues */
.contact {
  margin-bottom: 0;
  padding-bottom: 8rem;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4.2rem;
    letter-spacing: -2px;
  }

  .about-content {
    gap: 4rem;
  }

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

  .gear-1 {
    font-size: 6rem;
  }
  .gear-2 {
    font-size: 5rem;
  }
  .gear-3 {
    font-size: 4rem;
  }
  .gear-4 {
    font-size: 5.5rem;
  }
  .gear-5 {
    font-size: 3rem;
  }
  .gear-6 {
    font-size: 7rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
  }

  .hero .subtitle {
    font-size: 1.2rem;
    padding: 0 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .services,
  .about,
  .team,
  .contact {
    padding: 6rem 0;
  }

  .space-container {
    height: 320px;
  }

  .floating-shape {
    display: none;
  }

  /* Engrenagens responsivas */
  .gear-1 {
    font-size: 4rem;
  }
  .gear-2 {
    font-size: 3.5rem;
  }
  .gear-3 {
    font-size: 3rem;
  }
  .gear-4 {
    font-size: 4.5rem;
  }
  .gear-5 {
    font-size: 2.5rem;
  }
  .gear-6 {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

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

  .service-card,
  .team-card {
    padding: 2.5rem 2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Engrenagens móveis */
  .gear-1 {
    font-size: 3rem;
    opacity: 0.15;
  }
  .gear-2 {
    font-size: 2.5rem;
    opacity: 0.2;
  }
  .gear-3 {
    font-size: 2rem;
    opacity: 0.15;
  }
  .gear-4 {
    font-size: 3.5rem;
    opacity: 0.25;
  }
  .gear-5 {
    font-size: 2rem;
    opacity: 0.1;
  }
  .gear-6 {
    font-size: 4rem;
    opacity: 0.15;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--light-purple), var(--accent));
}
/* ==================== PORTFOLIO SECTION CSS ==================== */
/* Adicione este CSS ao final do seu arquivo style.css */

/* Portfolio Section */
.portfolio {
  padding: 10rem 0;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 61, 0.1) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 50%
  );
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Portfolio Filters */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(139, 95, 191, 0.3);
  color: var(--text-secondary);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 95, 191, 0.3);
  border-color: var(--accent);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.portfolio-item {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(139, 95, 191, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
}

.portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 25px 60px rgba(139, 95, 191, 0.3);
}

/* Portfolio Preview */
.portfolio-preview {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-purple), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code Preview */
.code-preview {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.code-preview pre {
  margin: 0;
  padding: 2rem;
  height: 100%;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.4;
  background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
  font-family: "Courier New", Consolas, monospace;
}

.code-preview pre code {
  color: #f8f8f2;
  text-shadow: none;
}

.code-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.9));
  pointer-events: none;
}

/* Website Preview */
.website-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: white;
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.website-preview i {
  font-size: 4rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.website-preview h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Automation Preview */
.automation-preview {
  background: linear-gradient(135deg, #000000, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: white;
  text-align: center;
  padding: 2rem;
  height: 100%;
}

.automation-preview i {
  font-size: 4rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.automation-preview h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Portfolio Content */
.portfolio-content {
  padding: 2.5rem;
}

.portfolio-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.portfolio-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Portfolio Tags */
.portfolio-tags {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.portfolio-tag {
  background: rgba(139, 95, 191, 0.2);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(139, 95, 191, 0.3);
  transition: all 0.3s ease;
}

.portfolio-tag:hover {
  background: rgba(139, 95, 191, 0.3);
  transform: scale(1.05);
}

/* Portfolio Actions */
.portfolio-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.portfolio-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  flex: 1;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: var(--text-primary);
  border: none;
}

.btn-secondary {
  background: rgba(139, 95, 191, 0.2);
  color: var(--accent);
  border: 1px solid rgba(139, 95, 191, 0.3);
}

.portfolio-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 95, 191, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--light-purple), var(--accent));
}

.btn-secondary:hover {
  background: rgba(139, 95, 191, 0.3);
  border-color: var(--accent);
}

/* Portfolio CTA */
.portfolio-cta {
  margin-top: 6rem;
  text-align: center;
  padding: 4rem 0;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 20px;
  border: 1px solid rgba(139, 95, 191, 0.2);
  position: relative;
  z-index: 1;
}

.cta-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 300;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.social-follow {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 95, 191, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-follow span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.instagram-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(139, 95, 191, 0.2);
  background: rgba(139, 95, 191, 0.1);
}

.instagram-link:hover {
  color: #e4405f;
  border-color: #e4405f;
  background: rgba(228, 64, 95, 0.1);
  transform: translateY(-2px);
}

/* Social Link in Header */
/* Removido - não é mais necessário */

/* Footer Improvements */
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-links a:first-child:hover {
  color: #25d366;
}

.footer-links a:last-child:hover {
  color: #e4405f;
}

/* Copy Button Styles */
.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(139, 95, 191, 0.8);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.copy-code-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prism.js Code Highlighting Improvements */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #7c7c7c;
}

.token.punctuation {
  color: #c5c8c6;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #96cbfe;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #a8ff60;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #ededed;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #cfcb90;
}

.token.function,
.token.class-name {
  color: #ffd2a7;
}

.token.regex,
.token.important,
.token.variable {
  color: #e9c062;
}

/* Responsive Portfolio */
@media (max-width: 768px) {
  .portfolio {
    padding: 6rem 0;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .portfolio-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .portfolio-btn {
    justify-content: center;
  }

  .portfolio-cta {
    margin-top: 4rem;
    padding: 3rem 1rem;
  }

  .cta-content h3 {
    font-size: 1.8rem;
  }

  .social-follow {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }
}

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

  .portfolio-item {
    margin-bottom: 1rem;
  }

  .portfolio-content {
    padding: 2rem 1.5rem;
  }

  .portfolio-tags {
    flex-direction: column;
    gap: 0.5rem;
  }

  .portfolio-tag {
    text-align: center;
  }

  .code-preview pre {
    padding: 1.5rem;
    font-size: 0.8rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
/* ===============================================
   REVIEWS CAROUSEL SECTION - NOVO!
   =============================================== */
.reviews {
  padding: 10rem 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  background: rgba(45, 27, 61, 0.05);
}

.reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(139, 95, 191, 0.08) 0%,
    transparent 60%
  );
  z-index: 0;
}

.reviews-container {
  position: relative;
  z-index: 1;
}

.reviews-carousel {
  position: relative;
  height: auto;
  padding-bottom: 80px; /* espaço para hover */
  margin-top: 4rem;
  overflow-x: hidden; /* impede rolagem horizontal */
  overflow-y: visible; /* permite conteúdo excedente na vertical */
  z-index: 0; /* garantir hierarquia */
}

.reviews-track {
  display: flex;
  gap: 2rem;
  animation: slideReviews 40s linear infinite;
  transition: animation-play-state 0.3s ease;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes slideReviews {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  min-width: 350px;
  min-height: 320px;
  height: auto;
  background: rgba(26, 26, 26, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(139, 95, 191, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 1;
  overflow: visible;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--light-purple));
  transform: scaleX(0);
  transition: transform 0.6s ease;
}

.review-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.review-card:hover::before {
  transform: scaleX(1);
}

.review-card:hover::after {
  opacity: 1;
}

.review-card:hover {
  transform: translateY(10px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(139, 95, 191, 0.3);
  z-index: 100;
}

.review-card:hover .review-stars i {
  color: #ffed4e;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
  transform: scale(1.1);
}

.review-stars i:nth-child(1) {
  animation-delay: 0.1s;
}
.review-stars i:nth-child(2) {
  animation-delay: 0.2s;
}
.review-stars i:nth-child(3) {
  animation-delay: 0.3s;
}
.review-stars i:nth-child(4) {
  animation-delay: 0.4s;
}
.review-stars i:nth-child(5) {
  animation-delay: 0.5s;
}

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

/* Animação de entrada quando o card entra no hover */
.review-card:hover .review-stars i {
  animation: starTwinkle 0.6s ease-in-out;
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  align-items: center;
}

.review-stars i {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.review-stars .fas.fa-star {
  color: #ffd700;
}

.review-stars .fas.fa-star-half-alt {
  color: #ffd700;
}

.review-stars .far.fa-star {
  color: rgba(255, 215, 0, 0.3);
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
}

.review-text::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid rgba(139, 95, 191, 0.3);
  transition: all 0.3s ease;
}

.review-card:hover .author-avatar {
  transform: scale(1.1);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(139, 95, 191, 0.5);
}

.author-info h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.author-info p {
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0.8;
}

.review-card:hover .author-info h4 {
  color: var(--accent);
}

/* Fade gradient nas laterais */
.reviews-carousel::before,
.reviews-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 10;
  pointer-events: none;
}

.reviews-carousel::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(15, 12, 18, 0.6) 25%,
    rgba(20, 15, 25, 0.4) 60%,
    transparent 100%
  );
}

.reviews-carousel::after {
  right: 0;
  background: linear-gradient(
    -90deg,
    rgba(10, 10, 10, 0.8) 0%,
    rgba(15, 12, 18, 0.6) 25%,
    rgba(20, 15, 25, 0.4) 60%,
    transparent 100%
  );
}

/* Indicador de pause no hover */
.reviews-track:hover::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.7;
  text-shadow: 0 0 20px rgba(139, 95, 191, 0.8);
  animation: pulseIcon 2s infinite;
  pointer-events: none;
}

@keyframes pulseIcon {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Responsive para o carrossel / TEM QUE ARRUMAR A RESPONSIVIDADE PRO CELULAR*/
@media (max-width: 1024px) {
  .review-card {
    min-width: 320px;
    height: auto;
    overflow: visible;
  }

  .reviews-carousel::before,
  .reviews-carousel::after {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .reviews {
    padding: 6rem 0;
  }

  .review-card {
    min-width: 280px;
    min-height: 280px;
    height: auto;
    overflow: visible;
    padding: 2rem;
  }

  .reviews-carousel::before,
  .reviews-carousel::after {
    width: 80px;
  }

  .reviews-track {
    animation-duration: 35s;
  }
}

@media (max-width: 480px) {
  .review-card {
    min-width: 260px;
    min-height: 260px;
    height: auto;
    overflow: visible;
    padding: 1.8rem;
  }

  .review-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .reviews-carousel::before,
  .reviews-carousel::after {
    width: 60px;
  }

  .reviews-track {
    animation-duration: 30s;
    gap: 1.5rem;
  }
}
.review-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

/* Enhanced About Section */
.about {
  padding: 10rem 0;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 80% 20%,
    rgba(74, 44, 90, 0.1) 0%,
    transparent 50%
  );
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 2;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text.animate {
  opacity: 1;
  transform: translateX(0);
}

.about-text h2 {
  color: var(--text-primary);
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text h2.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-text p {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text p.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-text p:nth-child(2) {
  transition-delay: 0.2s;
}
.about-text p:nth-child(3) {
  transition-delay: 0.4s;
}
.about-text p:nth-child(4) {
  transition-delay: 0.6s;
}

.nav-links li:nth-child(6) {
  animation-delay: 1.5s;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--light-purple));
  transition: width 0.3s ease;
}

.highlight:hover::after {
  width: 100%;
}

/* Enhanced Space Animation */
.about-visual {
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-visual.animate {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.space-container {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  height: 400px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.space-container:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(139, 95, 191, 0.2);
}

#trailCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.stars,
.stars2,
.stars3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.stars {
  background-image: radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 60s linear infinite;
}

.stars2 {
  background-image: radial-gradient(1px 1px at 40px 60px, #fff, transparent),
    radial-gradient(1px 1px at 80px 10px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 120px 50px, #eee, transparent),
    radial-gradient(
      1px 1px at 160px 90px,
      rgba(255, 255, 255, 0.9),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 120s linear infinite;
}

.stars3 {
  background-image: radial-gradient(1px 1px at 10px 10px, #fff, transparent),
    radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 100px 20px, #ddd, transparent),
    radial-gradient(
      2px 2px at 140px 70px,
      rgba(255, 255, 255, 0.8),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 180s linear infinite;
}

@keyframes sparkle {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200px);
  }
}

.rocket {
  position: absolute;
  font-size: 2.8rem;
  z-index: 3;
  transition: all 0.1s ease-out;
  animation: rocketOrbit 10s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(139, 95, 191, 0.4));
}

.space-container:hover .rocket {
  animation: none;
}

@keyframes rocketOrbit {
  0% {
    left: 30px;
    top: 150px;
    transform: rotate(0deg);
  }
  25% {
    left: 150px;
    top: 80px;
    transform: rotate(90deg);
  }
  50% {
    left: 270px;
    top: 150px;
    transform: rotate(180deg);
  }
  75% {
    left: 150px;
    top: 250px;
    transform: rotate(270deg);
  }
  100% {
    left: 30px;
    top: 150px;
    transform: rotate(360deg);
  }
}

/* Enhanced Team Section */
.team {
  padding: 10rem 0;
  background: rgba(26, 26, 26, 0.6);
  position: relative;
}

.team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 70%
  );
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 4rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.team-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 4rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(139, 95, 191, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) rotateX(10deg);
}

.team-card.animate {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: 0 30px 80px rgba(139, 95, 191, 0.3);
  border-color: var(--accent);
}

.team-photo-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  cursor: pointer;
}

.team-photo,
.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(139, 95, 191, 0.3);
}

.team-avatar {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-primary);
  font-weight: bold;
}

.team-photo-container:hover .team-photo,
.team-photo-container:hover .team-avatar {
  transform: scale(1.1) rotateZ(5deg);
  box-shadow: 0 20px 50px rgba(139, 95, 191, 0.5);
}

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

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(139, 95, 191, 0.5);
}

.team-photo-container:hover .particle {
  opacity: 1;
  animation: particleFloat 3s infinite;
}

.particle:nth-child(1) {
  top: 5%;
  left: 15%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 15%;
  right: 10%;
  animation-delay: 0.3s;
}
.particle:nth-child(3) {
  bottom: 20%;
  left: 5%;
  animation-delay: 0.6s;
}
.particle:nth-child(4) {
  bottom: 10%;
  right: 15%;
  animation-delay: 0.9s;
}
.particle:nth-child(5) {
  top: 45%;
  left: 0%;
  animation-delay: 1.2s;
}
.particle:nth-child(6) {
  top: 55%;
  right: 0%;
  animation-delay: 1.5s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-25px) scale(1.3) rotate(180deg);
    opacity: 0.7;
  }
}

.team-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.team-card:hover h3 {
  color: var(--accent);
  transform: translateY(-3px);
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.team-card:hover .team-role {
  transform: scale(1.05);
}

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

.team-card:hover p {
  color: rgba(184, 184, 184, 0.9);
}

/* Enhanced Contact Section com Engrenagens */
.contact {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 61, 0.1) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 60%
  );
}

/* Engrenagens Animadas */
.contact-gears {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gear {
  position: absolute;
  color: var(--accent);
  opacity: 0.3;
  animation: rotate 15s linear infinite;
  filter: blur(0.5px);
  text-shadow: 0 0 20px rgba(139, 95, 191, 0.4);
}

.gear-1 {
  top: 15%;
  left: 8%;
  font-size: 8rem;
  animation-duration: 20s;
  opacity: 0.2;
}

.gear-2 {
  top: 20%;
  right: 12%;
  font-size: 6rem;
  animation-duration: 25s;
  animation-direction: reverse;
  opacity: 0.25;
}

.gear-3 {
  bottom: 25%;
  left: 5%;
  font-size: 5rem;
  animation-duration: 18s;
  opacity: 0.2;
}

.gear-4 {
  bottom: 15%;
  right: 8%;
  font-size: 7rem;
  animation-duration: 22s;
  animation-direction: reverse;
  opacity: 0.3;
}

.gear-5 {
  top: 50%;
  left: 3%;
  font-size: 4rem;
  animation-duration: 16s;
  opacity: 0.15;
}

.gear-6 {
  top: 60%;
  right: 5%;
  font-size: 9rem;
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.2;
}

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

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -2px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact h2.animate {
  opacity: 1;
  transform: scale(1);
}

.contact p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact p.animate {
  opacity: 1;
  transform: translateY(0);
}

.contact p:nth-child(2) {
  transition-delay: 0.2s;
}
.contact p:nth-child(3) {
  transition-delay: 0.4s;
}

/* Enhanced Footer */
footer {
  background: var(--card-bg);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(139, 95, 191, 0.2);
  position: relative;
  z-index: 100;
  margin-top: 0;
  width: 100%;
  clear: both;
  display: block;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--purple),
    transparent
  );
  animation: footerGlow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes footerGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

footer .container {
  position: relative;
  z-index: 2;
}

footer p {
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  opacity: 1;
  animation: none;
}

/* Ensure footer visibility */
body {
  position: relative;
}

/* Fix any potential overflow issues */
.contact {
  margin-bottom: 0;
  padding-bottom: 8rem;
}

/* Responsive Enhancements */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4.2rem;
    letter-spacing: -2px;
  }

  .about-content {
    gap: 4rem;
  }

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

  .gear-1 {
    font-size: 6rem;
  }
  .gear-2 {
    font-size: 5rem;
  }
  .gear-3 {
    font-size: 4rem;
  }
  .gear-4 {
    font-size: 5.5rem;
  }
  .gear-5 {
    font-size: 3rem;
  }
  .gear-6 {
    font-size: 7rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
  }

  .hero .subtitle {
    font-size: 1.2rem;
    padding: 0 1rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .services,
  .about,
  .team,
  .contact {
    padding: 6rem 0;
  }

  .space-container {
    height: 320px;
  }

  .floating-shape {
    display: none;
  }

  /* Engrenagens responsivas */
  .gear-1 {
    font-size: 4rem;
  }
  .gear-2 {
    font-size: 3.5rem;
  }
  .gear-3 {
    font-size: 3rem;
  }
  .gear-4 {
    font-size: 4.5rem;
  }
  .gear-5 {
    font-size: 2.5rem;
  }
  .gear-6 {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

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

  .service-card,
  .team-card {
    padding: 2.5rem 2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Engrenagens móveis */
  .gear-1 {
    font-size: 3rem;
    opacity: 0.15;
  }
  .gear-2 {
    font-size: 2.5rem;
    opacity: 0.2;
  }
  .gear-3 {
    font-size: 2rem;
    opacity: 0.15;
  }
  .gear-4 {
    font-size: 3.5rem;
    opacity: 0.25;
  }
  .gear-5 {
    font-size: 2rem;
    opacity: 0.1;
  }
  .gear-6 {
    font-size: 4rem;
    opacity: 0.15;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--light-purple), var(--accent));
}

/* Estilos para a nova descrição da equipe */
.team-description {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.team-intro {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 15px;
  border: 1px solid rgba(139, 95, 191, 0.3);
  box-shadow: 0 10px 30px rgba(139, 95, 191, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.team-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 50%,
    rgba(139, 95, 191, 0.05) 100%
  );
  pointer-events: none;
}

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

/* Media queries para responsividade da descrição da equipe */
@media (max-width: 768px) {
  .team-intro {
    font-size: 1.2rem;
    padding: 2rem;
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .team-intro {
    font-size: 1.1rem;
    padding: 1.5rem;
    line-height: 1.6;
  }
}

/* Seção de Ferramentas Interativas */
.tools-section {
  padding: 8rem 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(45, 27, 61, 0.8) 100%
  );
  position: relative;
}

.tools-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 70%
  );
}

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

.tool-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(139, 95, 191, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 95, 191, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 95, 191, 0.3);
  border-color: var(--accent);
}

.tool-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotateY(10deg);
  box-shadow: 0 10px 30px rgba(139, 95, 191, 0.4);
}

.tool-icon i {
  font-size: 2rem;
  color: white;
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.tool-card:hover h3 {
  color: var(--accent);
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.tool-btn {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 95, 191, 0.4);
}

/* Modal para Ferramentas */
.tool-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--dark-bg);
  margin: 2% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(139, 95, 191, 0.3);
  border: 1px solid rgba(139, 95, 191, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ddd;
}

.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--dark-bg);
  color: var(--text-primary);
}

/* Responsividade */
@media (max-width: 968px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .tool-card {
    padding: 2rem;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-body {
    padding: 1rem;
  }
}
