body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Navbar */
header {
  background-color: #252525;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100; /* Ensure nav stays on top of other elements */
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f4c430; /* Orange accent for logo */
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #a64bf4; /* violet for hover */
}

/* Slider */
.slider {
  position: relative;
  height: 500px; /* fixed height of slider */
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  height: 100%;
  display: none;
  position: relative;
}
.slide.active {
  display: block;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}
.slide-content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}
.slide-content p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 20px;
}
.btn-main {
  display: inline-block;
  background-color: #f4c430;
  color: #252525;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.btn-main:hover {
  background-color: #a64bf4;
}
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}
.nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #fff;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.nav-btn.active {
  background-color: #f4c430;
}
/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section {
  margin-bottom: 40px;
  padding: 20px;
  background: #252525;
  border-radius: 8px;
}
main h2 {
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-align: center;
}

#about .about-container {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}
#about img {
  width: 300px;
  border-radius: 8px;
}
#about .about-content {
  flex: 1;
}

/* Project Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 10px 20px;
  margin: 0;
}

.project-card p {
  padding: 0 20px 10px;
  color: #ddd;
}
.btn-project {
  display: inline-block;
  background-color: #f4c430;
  color: #252525;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin: 10px 20px 20px;
  transition: background-color 0.3s;
}
.btn-project:hover {
  background-color: #a64bf4;
}
.btn-project i {
  margin-left: 5px;
}
/* Contact Section */

#contact p {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.social-links a {
  font-size: 1.8rem;
  text-decoration: none;
  color: #ddd;
  transition: color 0.3s;
}
.social-links a:hover {
  color: #f4c430;
}
/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background-color: #252525;
  position: relative;
  bottom: 0;
  width: 100%;
}
/* Small devices */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    padding-top: 10px;
    align-items: center;
  }
  nav ul li {
    margin: 10px 0;
  }
  .slider {
    height: 400px;
  }
  #about .about-container {
    flex-direction: column;
  }
  #about img {
    width: 100%;
  }
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
