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

body, html {
  height: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Cursor Light Effect */
.cursor-light {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 150, 220, 0.20) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 1;
  mix-blend-mode: screen;
}

/* Background */
body {
  background: #000000;
  background: linear-gradient(150deg, #000000 0%, #131c2f 50%, #000000 100%);
  min-height: 100vh;
}

/* Starfield Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 33% 85%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 15% 55%, rgba(255, 255, 255, 0.12), transparent);
  background-size: 200% 200%;
  background-position: 50% 50%;
  pointer-events: none;
  z-index: 1;
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
}

.navigation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, 
    #101828e6 0%, 
    #101828b3 50%, 
    #1018284d 80%, 
    #10182800 100%);
  z-index: -1;
  backdrop-filter: blur(10px);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}


.logo-container {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  border: 6px solid #636D7D;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

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

.logo-img {
  width: 250px;
  height: auto;
  position: relative;
  right: 60px;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(150, 180, 220, 0.3))
          drop-shadow(0 0 40px rgba(150, 180, 220, 0.2));
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: -30px;
}

.nav-link {
  color: #9aa1af;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: -4px 4px 15px rgba(250, 246, 229, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #51a2ff;
}

.nav-link.active {
  color: #51a2ff;
}

/* Main Content */
.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 40px;
  position: relative;
  z-index: 2;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 50px;
}

.page-title {
  color: #FDFDFD;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-shadow: -4px 4px 15px rgba(238, 238, 238, 0.3);
}

.title-underline {
  height: 3.5px;
  width: 100px;
  background: linear-gradient(to right, #00d492, #51a2ff);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.page-subtitle {
  color: #B8BDC8;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.2px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Projects Carousel */
.projects-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 60px;
}

.projects-carousel {
  overflow: visible;
  position: relative;
  padding: 10px;
  margin: -10px;
}

.carousel-slide {
  min-width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active .project-card {
  opacity: 0;
  transform: translateY(40px);
  animation: jumpIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.projects-carousel > .carousel-slide {
  display: none;
}

.projects-carousel > .carousel-slide.active {
  display: block;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 20px;
  width: 100%;
}

/* Project Cards */
.project-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;  
  transform: translateY(40px);
}

.project-card.animate {
  animation: jumpIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 0 60px 15px rgba(81, 162, 255, 0.25),
    0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(81, 162, 255, 0.3);
}

/* Card Image */
.card-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 0.4s ease;
}

/* Ajuste específico para cada projeto */
.project-card:nth-child(1) .card-image {
  object-position: center 57%;
}

.project-card:nth-child(2) .card-image {
  object-position: center 100%;
}

.project-card:nth-child(3) .card-image {
  object-position: center 20%;
}

.project-card:hover .card-image {
  transform: scale(1.1);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* Card Content */
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: #FFFFFF;
  transition: all 0.3s ease;
}

.project-card:hover .card-icon svg {
  stroke: #51A2FF;
  filter: drop-shadow(0 0 8px rgba(81, 162, 255, 0.6));
}

.card-title {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 500;
  text-shadow: -5px 5px 15px rgba(250, 246, 229, 0.3);
  flex: 1;
  margin: 0;
}

/* Card Icons Group */
.card-icons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.card-icon-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px;
}

.card-icon-btn:hover {
  background: rgba(81, 162, 255, 0.15);
  transform: scale(1.1);
}

.card-icon-btn svg {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

/* Card Description */
.card-description {
  color: #9AA1AF;
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 20px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  flex: 1;
}

/* Card Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  background: rgba(81, 162, 255, 0.2);
  border: 1px solid rgba(81, 162, 255, 0.3);
  border-radius: 16777200px;
  padding: 5px 12px;
  color: #51A2FF;
  font-size: 12.25px;
  font-weight: 400;
  letter-spacing: -0.0179px;
  transition: all 0.3s ease;
}

.project-card:hover .tag {
  background: rgba(81, 162, 255, 0.3);
  border-color: rgba(81, 162, 255, 0.5);
  transform: translateY(-2px);
}

/* Carousel Navigation Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(81, 162, 255, 0.3);
  border: 2px solid rgba(81, 162, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: rgba(81, 162, 255, 0.5);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(81, 162, 255, 0.5);
}

.dot.active {
  background: #51A2FF;
  border-color: #51A2FF;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 16px rgba(81, 162, 255, 0.6);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(81, 162, 255, 0.4);
  color: #51A2FF;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(81, 162, 255, 0.2);
  border-color: rgba(81, 162, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(81, 162, 255, 0.4);
}

.carousel-arrow.prev {
  left: 0;
}

.carousel-arrow.next {
  right: 0;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

/* Copyright */
.Copyright {
  color: #7B8594;
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.2px;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

/* Responsive - Large Screens */
@media (max-width: 1400px) {
  .projects-grid {
    gap: 30px;
  }
}

/* Responsive - Tablets */
@media (max-width: 1024px) {
 
  .projects-carousel-wrapper {
    padding: 0 50px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 550px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-arrow svg {
    width: 20px;
    height: 20px;
  }

  .navigation {
    padding: 15px 30px;
  }
  
  .nav-links {
    gap: 30px;
  }
  
  .nav-link {
    font-size: 16px;
  }

  .page-title {
    font-size: 42px;
  }
}

@keyframes jumpIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Responsive - Mobile */
@media (max-width: 768px) {

  .projects-carousel-wrapper {
    padding: 0 40px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }

  .carousel-dots {
    margin-top: 20px;
    gap: 10px;
    margin-bottom: 15px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 12px;
    height: 12px;
  }
    
  .main-content {
    padding: 20px 15px 40px;
  }

  .navigation {
    flex-direction: column;
    gap: 20px;
    padding: 15px 25px;
  }

  .logo-circle {
    width: 80px;
    height: 80px;
  }

  .logo-container {
    width: 80px;
    height: 80px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 16px;
  }

  .header-section {
    margin-top: 200px;
    margin-bottom: 40px;
  }

  .page-title {
   
    font-size: 36px;
  }

  .page-subtitle {
    font-size: 15px;
    line-height: 22px;
    padding: 0 10px;
  }

  .projects-grid {
    gap: 30px;
    padding: 0 10px;
  }

  .card-content {
    padding: 18px;
  }

  .card-title {
    font-size: 20px;
  }

  .card-description {
    font-size: 13px;
    line-height: 20px;
  }

  .Copyright {
    font-size: 14px;
    margin-top: 0px;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .page-title {
    font-size: 32px;
  }

  .page-subtitle {
    font-size: 14px;
  }

  .card-header {
    gap: 10px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-icon-btn {
    width: 28px;
    height: 28px;
  }
}