* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif; 
  background-color: #0f0f0f;
  color: #fff;
    font-size: 18px;                
  line-height: 1.6;               
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background: #a21caf;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

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

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #000;
}

/* Toggle menu (for mobile) */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 140px 60px 60px;
  gap: 40px;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text {
  flex: 1 1 300px;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 40px;
}

.hero-text span {
  color: #c084fc;
}

.hero-text p {
  margin-top: 15px;
  color: #d1b3ff;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 25px;
  background: #c084fc;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn:hover {
  background: #fff;
}

.hero-img img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #c084fc;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,100% {transform: translateY(0);}
  50% {transform: translateY(-10px);}
}

/* About Section */
.about {
  padding: 100px 60px;
  text-align: center;
}

.about h2 {
  color: #c084fc;
  margin-bottom: 20px;
}

.skills {
  max-width: 600px;
  margin: 30px auto;
}

.skill {
  margin-bottom: 20px;
}

.skill span {
  display: block;
  margin-bottom: 5px;
}

.bar {
  background: #333;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
}

.fill {
  height: 8px;
  background: #c084fc;
  width: 0;
  animation: fillBar 2s forwards;
}

.fill.html {width: 100%;}
.fill.css {width: 90%;}
.fill.js {width: 80%;}
.fill.bs {width: 75%;}
.fill.git {width: 85%;}

@keyframes fillBar {
  from {width: 0;}
}

/* Projects */
.projects {
  background: #1a1a1a;
  padding: 100px 60px;
}

.projects h2 {
  color: #c084fc;
  text-align: center;
  margin-bottom: 40px;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: #2a2a2a;
  color: white;
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  background: #3a3a3a;
}

.card a {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #c084fc;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.card a:hover {
  background: #fff;
}

/* Footer */
footer {
  background: #a21caf;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

footer h2 {
  margin-bottom: 15px;
}

.social-links a img {
  width: 35px;
  margin: 0 10px;
  transition: 0.3s;
}

.social-links a:hover img {
  transform: scale(1.1);
}

footer p {
  margin-top: 20px;
  color: #f5e8ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #a21caf;
    width: 100%;
    flex-direction: column;
    text-align: center;
    display: none;
    padding: 20px 0;
  }

  .menu-toggle:checked + .menu-btn + .nav-links {
    display: flex;
  }

  .hero {
    flex-direction: column;
    padding: 120px 20px 60px;
    text-align: center;
  }

  .hero-img img {
    width: 200px;
    height: 200px;
  }

  .projects, .about {
    padding: 60px 20px;
  }
}
