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

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
}

header {
  position: fixed;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo span {
  color: #007bff;
}

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

.nav-links li a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  height: 100vh;
  background: linear-gradient(120deg, #007bff, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
}

.hero-content span {
  color: #ffeb3b;
}

.hero-content p {
  margin: 20px 0;
  font-size: 1.1rem;
}

.button {
  background:#007bff;
  border: none;
  border-radius: 15px;
  text-decoration: none;
  color: white;
  margin-top: 40em;
  padding: 12px;
  font-weight: 600;
}

.btn {
  padding: 12px 30px;
  background: #fff;
  color: #007bff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.section-text {
  max-width: 700px;
  margin: auto;
}

.bg-light {
  background: #f9f9f9;
}

.bg-dark {
  background: #111;
}

.light {
  color: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.project-card {
  padding: 25px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  border: none;
}

footer {
  text-align: center;
  padding: 20px;
}

.dark {
  background: #1f1f1f;
}

.dark .container {
  background: #2a2a2a;
  color: white;
}

.dark input {
  background: #444;
  color: white;
  border-color: #555;
}

.dark button {
  background: white;
}

#modeBtn {
  padding: 12px 30px;
  background: #fff;
  color: #007bff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

img {
  font-size: x-small;
  width: 40px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 200px;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    padding: 15px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
}

