* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #333;
}

    header {
      background-color: #fff;
      border-bottom: 2px solid #eee;
      padding: 1rem 6rem;
      z-index: 1000;
      position:sticky;
      top:0;
    
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
 nav a{
    text-decoration: none;
 }
    .logo {
     
      font-size: 1.5rem;
      font-weight: 700;
      color: red;
      cursor:pointer;
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
    }

    .nav-links a {
      text-decoration: none;
      color: black;
      font-size: large;
      font-weight: 500;
      position: relative;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0%;
      height: 2px;
      background-color: red;
      transition: width 0.3s;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .hamburger {
      display: none;
      font-size: 1.5rem;
      background: none;
      border: none;
      color: black;
      cursor: pointer;
    }

    @media (max-width: 768px) {
      header {
        padding: 1rem 2rem;
      }

      .logo {
        font-size: 1.2rem;
      }

      .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }

      .nav-links.active {
        display: flex;
      }

      .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
      }

      .hamburger {
        display: block;
      }
    }

    @media (max-width: 480px) {
      header {
        padding: 0.8rem 1rem;
      }

      .logo {
        font-size: 1rem;
      }

      .nav-links {
        padding: 0.5rem;
      }

      .nav-links a {
        font-size: 0.9rem;
      }
    }

.maincontainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 100vh;
}

.right-img {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
}

.right-img img {
  width: 100%;
  border-radius: 20px;
 box-shadow: 0 0 20px rgb(0 0 0);
/*   box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
  
}

.left-content {
  flex: 1;
  padding: 2rem;
  max-width: 600px;
}

  .left-content h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      white-space: nowrap;
      overflow: hidden;
      border-right: 2px solid black;
      width: 0;
      animation: typing 4s steps(30, end) infinite alternate,
                 blink 0.6s step-end infinite;
    }
@keyframes typing {
      from { width: 0 }
      to { width: 21ch }
    }

    @keyframes blink {
      0%, 100% { border-color: transparent }
      50% { border-color: black }
    }
 @media (max-width: 768px) {
     .left-content h1{
        font-size: 6vw;
      }
   .left-content p {
    font-size:0.9rem;
  }
   .left-content {
      padding: 2rem 0.3rem;
   }

   footer {
     font-size:0.9rem;
   }
}
.left-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

.btn {
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  color: white;
  background-color: red;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background-color: darkred;
}

.project-title {
  font-size: 2rem;
  color: red;
  margin-bottom: 4rem;
  text-align: center;
}

section {
  padding: 3rem 2rem 4rem;
}

.skills-container,
.projects-container {
  display: grid;
  gap: 2rem;
  padding: 0 120px;
  justify-content: center;
  overflow: visible;
}

.skills-container {
  grid-template-columns: repeat(auto-fit, minmax(218px, 1fr));
}

.projects-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.skill-card,
.project-card {
  background: black;
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  z-index: 1;
}

.project-card p{
    line-height: 26px;
}

.skill-card:hover,
.project-card:hover {
  cursor: pointer;
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background-color: orange;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 0.2rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .project-card img {
    height: auto;
  }

  .skills-container,
  .projects-container {
    padding: 0 2rem;
  }
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f8f8f8;
  color: #000;
  font-size: 1.2rem;
}



.contact-section {
  padding: 60px 20px;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.contact-section p {
  color: #666;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-form button {
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}




















