* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

header {
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
}

header h1 {
  font-size: 2rem;
  color: #333;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

nav a:hover {
  color: #007bff;
}

.hero, #about {
  padding: 4rem 0;
  background-color: #fff;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero h2, #about h2, #projects h2, #interests h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  transition: all 0.3s ease;
}

.hero h2:hover, #about h2:hover, #projects h2:hover, #interests h2:hover {
  text-shadow: 0 0 10px #007bff, 0 0 20px #007bff, 0 0 30px #007bff;
  cursor: pointer;
}

.carousel {
  max-width: 100%;
  margin: 0 auto;
}

@keyframes scrollText {
  0% { transform: translateX(100%); opacity: 1; }
  10% { transform: translateX(0); opacity: 1; }
  90% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 1; }
}

#textCarousel {
  position: relative;
  width: 100%;
  height: 5rem;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
}

#textCarousel .carousel-inner {
  height: 100%;
  width: 100%;
  position: relative;
}

#textCarousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

#textCarousel .carousel-item.active {
  display: block;
}

.carousel-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #007bff;
  margin: 0;
  padding: 1rem;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  transition: all 0.5s ease-in-out;
  opacity: 1;
}

.carousel-text.active {
  opacity: 1;
  z-index: 3;
}

.btn {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 5px;
}

.project-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem;
  width: 300px;
  flex-shrink: 0; /* Prevent wrapping */
}


.project-card {
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 200px;
  position: relative;
}

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

.project-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #007bff, 0 0 20px #007bff, 0 0 30px #007bff;
}

.project-text {
  background-color: #000;
  color: #fff;
  padding: 1rem;
  border-radius: 10px;
  margin-top: -10px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: center;
}

.project-text.scroll {
  animation: scrollText 10s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}


.project-container:hover .project-text {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.9rem;
  color: #ccc;
}

.carousel-inner {
  padding: 1rem 0;
  display: flex;
  justify-content: center; /* Center the cards */
  flex-wrap: nowrap;
  overflow: hidden;
}

.carousel-item {
  transition: transform 0.6s ease;
  width: 300px; /* Match project-container width */
  flex-shrink: 0;
}

#contact {
  text-align: center;
  padding: 2rem 0;
}

#contact p {
  margin: 0.5rem 0;
}

#contact a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

#contact a:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  color: #333;
}

/* Interests Section Styles */
.interest-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.interest-card:hover {
  transform: translateY(-5px);
}

.interest-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.interest-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.interest-description {
  font-size: 0.9rem;
  color: #666;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .project-container {
    width: 100%;
    margin: 1rem 0;
  }
  .carousel-inner {
    flex-direction: column;
    align-items: center;
  }
  .carousel-item {
    width: 100%;
  }
  .interest-card {
    margin-bottom: 1rem;
  }
}

/* Scroll Animation */
@keyframes popUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

section {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
  animation: popUp 0.5s forwards;
}

#home {
  opacity: 1;
}

.scroll {
  animation: scrollText 1s linear infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
}

/* Update Project Section Styles */
.project-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.project-view {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
}

.project-slide {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.project-container {
  width: 100%;
  flex: 0 0 100%;
}

/* Add hover pause */
.project-scroll-container:hover {
  animation-play-state: paused;
  }