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

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
}

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

.nav-links li a {
  text-decoration: none;
  color: #333;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #007bff;
}

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #74ebd5, #9face6);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 2.5rem;
}

.hero-content span {
  color: #222;
  background: white;
  padding: 5px 10px;
  border-radius: 8px;
}

.hero .btn {
  background: #222;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  margin-top: 15px;
  text-decoration: none;
  transition: 0.3s;
}

.hero .btn:hover {
  background: #007bff;
}

/* Sections */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #007bff;
  display: block;
  margin: 10px auto;
  border-radius: 2px;
}

/* About */
.about p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Skills */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.skill {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  transition: transform 0.3s;
}

.skill:hover {
  transform: scale(1.1);
}

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

.project-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  border-bottom: 2px solid #007bff;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

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

.project-card p {
  margin: 0 10px 15px;
}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

form .btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

form .btn:hover {
  background: #005ecb;
}

/* Footer */
footer {
  text-align: center;
  background: #222;
  color: white;
  padding: 15px 0;
  font-size: 0.9rem;
  margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }
}
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}
