/* Projects Section Styles */
.projects {
  background: linear-gradient(135deg, #050a1b 0%, #0c1a3d 50%, #0f2255 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  --light-x: 50%;
  --light-y: 50%;
}

/* Adicionando uma borda com degradê sutil na parte inferior */
.projects::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      var(--primary-color) 20%, 
      #64b5ff 50%, 
      var(--primary-color) 80%, 
      transparent 100%);
  opacity: 0.7;
  box-shadow: 0 0 8px 1px rgba(100, 181, 255, 0.4);
}

/* Efeito de fundo com gradiente animado e iluminação */
.projects::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(100, 181, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(6, 88, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(100, 181, 255, 0.05) 0%, transparent 70%);
  z-index: 0;
  animation: gradientMove 15s ease infinite alternate;
}

.projects .section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.projects .container {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-left: 15px;
  padding-right: 15px;
}

.projects-slider {
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  padding: 0 30px;
  overflow: visible;
}

.projects .glide__track {
  overflow: visible;
}

.projects .glide__slides {
  overflow: visible;
}

.project-card {
  padding: 15px;
  height: 100%;
}

.project-card-content {
  background: linear-gradient(145deg, #0a1433, #0c1a3d);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.project-card-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.project-card-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 102, 204, 0.15);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-content:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.project-info p {
  color: rgba(180, 192, 211, 0.9);
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: rgba(0, 102, 204, 0.15);
  color: rgba(102, 163, 255, 0.9);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 102, 204, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: rgba(0, 102, 204, 0.25);
  transform: translateY(-2px);
}

.projects-cta {
  text-align: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.projects-cta .highlight {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin: 30px auto;
  padding: 25px 35px;
  max-width: 90%;
  background: linear-gradient(135deg, rgba(6, 88, 246, 0.15) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(6, 88, 246, 0.15) 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateX(2deg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.projects-cta .highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(
          circle at var(--light-x) var(--light-y),
          rgba(255, 255, 255, 0.15) 0%,
          transparent 50%
      ),
      linear-gradient(90deg, 
          rgba(6, 88, 246, 0) 0%, 
          rgba(6, 88, 246, 0.1) 50%, 
          rgba(6, 88, 246, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
  z-index: -1;
  transition: all 0.3s ease;
}

.projects-cta .highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, 
      rgba(6, 88, 246, 0.7) 0%, 
      rgba(255, 255, 255, 0.3) 50%, 
      rgba(34, 197, 94, 0.7) 100%);
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  animation: borderRotate 8s linear infinite;
}

.projects-cta .highlight-text {
  color: white;
  font-weight: 600;
}

.emoji-pulse {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.5rem;
  animation: emojiPulse 2s infinite;
}

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

@keyframes shimmer {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

@keyframes borderRotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 130% 50%; }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 0%;
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 100% 100%;
    opacity: 0.8;
  }
}

/* Adicionando pontos de luz flutuantes */
.projects .light-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.projects .light-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(100, 181, 255, 0.3);
  box-shadow: 0 0 15px 5px rgba(100, 181, 255, 0.1);
  animation: float 15s infinite ease-in-out;
}

.projects .light-dot:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.projects .light-dot:nth-child(2) {
  top: 25%;
  left: 80%;
  animation-delay: 2s;
}

.projects .light-dot:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-delay: 4s;
}

.projects .light-dot:nth-child(4) {
  top: 75%;
  left: 70%;
  animation-delay: 6s;
}

.projects .light-dot:nth-child(5) {
  top: 40%;
  left: 50%;
  animation-delay: 8s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(0) translateX(20px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(20px) translateX(10px);
    opacity: 0.6;
  }
}

/* Removendo todos os estilos relacionados às setas */
.projects .glide__arrow {
  display: none;
}

.projects .glide__arrow--left,
.projects .glide__arrow--right {
  display: none;
}

@media (max-width: 1300px) {
  .projects .glide__arrow--left,
  .projects .glide__arrow--right {
    display: none;
  }
}

@media (max-width: 992px) {
  .projects .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .project-image {
    height: 180px;
  }
  
  .projects-slider {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 60px 0;
  }
  
  .projects .container {
    padding-left: 25px;
    padding-right: 25px;
  }
  
  .projects-slider {
    padding: 0;
  }
  
  .project-card {
    padding: 10px;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
  
  .projects .glide__bullets {
    margin-top: 20px;
    gap: 8px;
  }
  
  .projects .glide__bullet {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .projects {
    padding: 60px 0;
  }
  
  .projects .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .project-image {
    height: 160px;
  }
  
  .project-info {
    padding: 15px;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .projects-slider {
    padding: 0;
  }
  
  .projects-cta .highlight {
    font-size: 1rem;
    padding: 15px 20px;
    margin: 15px auto;
    flex-direction: column;
  }
  
  .emoji-pulse {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .projects .glide__bullets {
    margin-top: 15px;
    gap: 6px;
  }
  
  .projects .glide__bullet {
    width: 8px;
    height: 8px;
  }
}

/* Efeito de brilho em movimento */
.projects .glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 181, 255, 0.15) 0%, rgba(100, 181, 255, 0.05) 40%, transparent 70%);
  filter: blur(20px);
  opacity: 0.6;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: glowMove 20s infinite alternate ease-in-out;
}

@keyframes glowMove {
  0% {
    top: 30%;
    left: 30%;
    width: 150px;
    height: 150px;
    opacity: 0.5;
  }
  25% {
    top: 20%;
    left: 70%;
    width: 200px;
    height: 200px;
    opacity: 0.7;
  }
  50% {
    top: 70%;
    left: 50%;
    width: 180px;
    height: 180px;
    opacity: 0.6;
  }
  75% {
    top: 60%;
    left: 20%;
    width: 220px;
    height: 220px;
    opacity: 0.7;
  }
  100% {
    top: 40%;
    left: 60%;
    width: 170px;
    height: 170px;
    opacity: 0.5;
  }
}

.projects .glide__bullets {
  margin-top: 25px;
  position: relative;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.projects .glide__bullet {
  background-color: rgba(255, 255, 255, 0.2);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0;
}

.projects .glide__bullet:hover {
  background-color: rgba(0, 102, 204, 0.5);
}

.projects .glide__bullet--active {
  background-color: rgba(0, 102, 204, 0.8);
  transform: scale(1.2);
} 