* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
  }
  
  header {
    position: fixed;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    background-color: rgb(0, 0, 0);
    backdrop-filter: blur(1px);
    color: white;
    padding: 0.5rem 0.5rem;
    border-radius: 3rem;
    z-index: 1000;
  }
  
  .logo {
    color: white;
    padding: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
  }
  
  .logo:hover {
    transform: scale(1.1);
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
  }
  
  li a {
    position: relative;
    color: white;
    font-weight: 300;
  }
  
  li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(1, 157, 255), rgb(255, 0, 255));
  }
  
  li a:hover::before {
    width: 100%;
  }
  
  .visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(1, 157, 255), rgb(255, 0, 255));
  }
  
  .visit-btn:hover {
    background: linear-gradient(to right, rgb(255, 0, 255), rgb(1, 157, 255));
    transform: scale(1.03);
  }
  
  #menu-icon {
    font-size: 2rem;
    display: none;
  }
  
  section {
    min-height: 90vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
  }
  
  .about {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .about .about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
  }
  
  .about img {
    width: 25vw;
    border-radius: 50%;
  }
  
  .info-box {
    display: flex;
    width: 25rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .info-box h3 {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0.8;
  }
  
  .info-box h1 {
    font-size: 3rem;
    font-weight: 600;
  }
  
  .info-box span {
    background: linear-gradient(to right, rgb(255, 0, 255), rgb(1, 157, 255));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    font-weight: 600;
  }
  
  .btn-group {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
  }
  
  .btn {
    border-radius: 4rem;
    color: black;
    padding: 0.5rem 1.5rem;
    border: 2.5px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
  }
  
  .btn:hover {
    background-color: black;
    color: white;
  }
  
  .socials {
    display: flex;
    gap: 1.8rem;
    margin-top: 1rem;
  }
  
  .socials i {
    background-color: white;
    color: black;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
  }
  
  .socials i:hover {
    transform: scale(1.3);
  }
  
  .section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
  }
  
  .experience-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .grid-card {
    border: 2.5px solid black;
    border-radius: 2.5rem;
    padding: 2rem;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }
  
  .grid-card:hover {
    transform: scale(1.02);
    background-color: rgba(0, 0, 0, 0.819);
    color: white;
  }
  
  .grid-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
  }
  
  .grid-card i {
    font-size: 1.5rem;
  }
  
  .grid-card span {
    font-size: 1.8rem;
    margin-left: 1.5rem;
    font-weight: 530;
    background: linear-gradient(to right, #009dff, #ff00ff);
    background-clip: text;
    color: transparent;
  }
  
  ::-webkit-scrollbar {
    width: 7px;
  }
  
  ::-webkit-scrollbar-track {
    background-color: rgb(219, 219, 219);
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #009dff, #ff00ff);
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    border: 2.5px solid black;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }
  
  .project-card:hover {
    background-color: black;
    color: white;
    transform: translateY(-10px) scale(1);
  }
  
  .project-card img {
    width: 20vw;
    border-radius: 1.3rem;
  }
  
  .project-card:hover .btn {
    border: 2px solid white;
    color: white;
  }
  
  .project-card:hover .btn:hover {
    border: 2px solid white;
    background-color: white;
    color: black;
  }
  
  .project-card h3 {
    font-size: 2rem;
    font-weight: 100;
  }
  
  .contact-container {
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
  
  .contact-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .contact-left-title h2 {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-top: 10rem;
  }
  
  .contact-left-title hr {
    border: none;
    width: 120px;
    height: 5px;
    background-color: black;
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  
  .contact-inputs {
    width: 400px;
    height: 50px;
    border: 2.5px solid black;
    outline: black;
    padding-left: 20px;
    font-weight: 500;
    color: black;
    background-color: white;
    border-radius: 50px;
  }
  
  .contact-left textarea {
    height: 140px;
    padding-top: 15px;
    border-radius: 30px;
  }
  
  .contact-inputs:focus {
    border: 2px solid black;
  }
  
  .contact-inputs::placeholder {
    color: black;
  }
  
/* New validation styles for contact form inputs */
.contact-inputs.error {
    border: 2px solid red !important;
    position: relative; /* Enable positioning for pseudo-element */
  }
  
  .contact-inputs.valid {
    border: 2px solid green !important;
  }
  
  /* Pop-up error message displayed as a tooltip next to the field */
  .contact-inputs.error::after {
    content: attr(data-error);
    position: absolute;
    top: 110%;
    left: 0;
    background: #f8d7da;
    color: #721c24;
    padding: 5px 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 100;
  }

  .contact-left button {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to right, #009dff, #ff00ff);
    cursor: pointer;
  }
  
  .contact-left button i {
    height: 15px;
  }
  
  footer {
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
  
  .copyright {
    font-size: 300;
    margin-top: 2rem;
  }
  
  @media(max-width:1280px) {
    header {
      padding: 1rem 2rem;
      gap: 2rem;
    }
    .about .about-container {
      gap: 3rem;
    }
    .experience-info {
      flex-direction: column;
    }
    .input-box input {
      padding: 2rem 5rem;
      font-size: 2.5rem;
    }
    .input input::placeholder {
      font-size: 2.5rem;
    }
    .input-box i {
      font-size: 2.5rem;
    }
  }
  
  @media(max-width:720px) {
    header {
      padding: 1rem 1rem;
      gap: 1rem;
    }
    header .logo {
      font-size: 1rem;
    }
    header .visit-btn {
      display: none;
    }
    .input-box input {
      padding: 1rem 2rem;
      font-size: 1.8rem;
    }
    .input-box input::placeholder {
      font-size: 1.5rem;
    }
    .input-box i {
      font-size: 2.5rem;
      display: none;
    }
    .grid {
      grid-template-columns: 1fr;
    }
    .experience-info img {
      width: 70vw;
    }
  }
  
  @media(max-width:600px) {
    header #menu-icon {
      display: block;
    }
    .nav-links {
      position: absolute;
      top: 100%;
      margin-top: 1rem;
      width: 100%;
      padding: 1rem;
      color: white;
      display: flex;
      flex-direction: column;
      text-align: center;
      background: black;
      border-radius: 3rem;
    }
    .nav-links li {
      margin-top: 1.5rem;
      padding: 1rem;
    }
    .nav-links.active {
      display: block;
    }
    .header {
      padding: 1rem 5rem;
      gap: 8rem;
    }
    .header .logo {
      font-size: 1.5rem;
    }
    .about-container img {
      width: 80vw;
    }
    .input-box input {
      padding: 0.5rem 3rem;
      width: 80%;
      font-size: 1.5rem;
    }
    .input-box input::placeholder {
      font-size: 1.5rem;
    }
    footer ul {
      gap: 1rem;
    }
  }
  