body {
  margin: 0;
  background-color: #000000;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  scroll-behavior: smooth;
  padding-bottom: 80px;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -1;
  pointer-events: none;
}

.projects-title {
  text-align: center;
  font-size: 2.8rem;
  color: #e50914;
  padding: 40px 20px 20px;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 60px 0;
  max-width: 1000px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  gap: 40px;
  padding: 0 40px;
}

.project-card {
  flex: 0 0 280px;
  height: 360px;
  border-radius: 12px;
  overflow: flex;
  position: relative;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.project-card.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.4);
  z-index: 10;
}

.project-card.active {
  transform: scale(1.1);
  opacity: 1;
  z-index: 1;
}


.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 20, 20, 0.92);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.project-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h3 {
  color: #e50914;
  margin-bottom: 10px;
}

.card-overlay p {
  font-size: 0.9rem;
  color: #dddddd;
}

.carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  border: none;
  background: #666;
  cursor: pointer;
}

.carousel-dots button.active {
  background: #e50914;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*home button*/

.home-float-btn {
  position: fixed;
  top: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e50914;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.home-float-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Footer Nav Buttons */
footer {
  background-color: transparent;
  padding: 40px 0;
  text-align: right;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e50914;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

.next-btn::after {
  content: " →";
}