.navclass{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}
.navclass h2{
    color:#6a11cb;
}

.navclass ul{
    display: flex;
    gap: 40px;
    list-style: none;
    
}
.navclass li a{
    text-decoration: none;
    font-size: large;
    font-weight: bold;
    color: black;
}
.navclass li a:hover{
  text-decoration: underline;
}


/* Home */
#home{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:flex-start;
    /* background-color: plum; */
    background: linear-gradient(135deg,#6a11cb,#a445b2);
    height: 100vh;
    padding-top: 30px;
    font-size: large;
    color: white;
}
#home h1{
    font-size: 50px;
}
#home button{
    border: 2px solid white;
    border-radius: 14px;
    font-size: larger;
    font-weight:900;
    color: white;
    background-color:#6a11cb;
    cursor: pointer;
   
}

/* About */
#about{
     background: #f5f5f5;
    padding: 60px 20px;
}
.about-container{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image img{
    width: 300px;
    height:auto ;
    border-radius: 15px;
    object-fit: cover;
}

.about-content{
    flex: 1;
    min-width: 300px;
    padding-top: 0;
}
.about-content h3{
    font-size:32px;
    font-weight: bolder;
}
.about-content p{
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    
}


#about h2{
      font-size: 32px;
      color:#a445b2;
      text-align: center;
        text-decoration:underline;
}
.skills{
        display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px;    
}
.skills span{
     background: #ddd;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: large;
}


/* Portfolio */
.portfolio-container {
  display: flex;
  flex-wrap: wrap; /*allow items to wrap to next line */
  gap: 30px; /* space between cards */
  justify-content: center; /* center all items horizontally */
  padding: 20px;
}
#portfolio h2{
    font-size: 32px;
    text-align: center;
    color: #a445b2;
    text-decoration: underline;
}

.work {
  flex: 1 1 calc(33.333% - 20px); /*exactly 3 per row minus gap space */
  box-sizing: border-box;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
}



.work img {
  width: 100%;
  height: 150px;
  display: block;
  
}

.work h3 {
  margin: 10px;
 
}

.work p {
  margin: 10px;
  line-height: 1.6;
}

.work-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px;
}

.work-skills span {
  background: #ddd;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: large;
}

/* Contact */
#contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* justify-content: flex-start; */
      background: linear-gradient(135deg,#6a11cb,#a445b2);
     color: white;
     height: 680px;
    }
    #contact h1{
      font-size: 32px;
      text-decoration: underline;
    }
    #contact p{
      font-size: 18px;
      text-align: center;
      width: 60%;
      line-height: 1.6;
    }
 .contact{
              /* text-align: center; */
             font-size:x-large;
 }
 .contact input{
  width: 100%;
  border-radius: 10px;
  height: 30px;
   background-color: #ddd;
  
 }

 .contact textarea{
  background-color: #ddd;
  border-radius: 10px;
  width: 100%;
 }
 .contact button{
  /* border-radius: 25px; */
  align-items: center;
  width: 100%;
  font-size:large;
  color: white;
  background-color:#6a11cb;
  cursor: pointer;
  /* padding: 4px; */
  margin-bottom: 8px;
 }

 /* footer  */
.footer{
  background-color:navy;
  color: white;
     display: flex;
     align-items: center;
     justify-content: space-between;
     font-size: 16px;
     padding: 15px 50px;
}
.footer a{
  text-decoration: none;
  color: white;
  margin-left: 20px;
}
.footer a:hover{
      text-decoration: underline;
}
.footer p{
  margin: 0%;
}
/* ========================
   Responsive Media Queries
======================== */

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .navclass ul {
    gap: 20px;
  }
  #home h1 {
    font-size: 38px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-image img {
    width: 250px;
  }
  .work {
    flex: 1 1 calc(50% - 20px); /* 2 per row */
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .navclass {
    flex-direction: column;
    padding: 10px;
  }
  .navclass ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
  }
  #home {
    padding-top: 20px;
    font-size: medium;
  }
  #home h1 {
    font-size: 30px;
    text-align: center;
  }
  .about-container {
    gap: 20px;
  }
  .portfolio-container {
    gap: 20px;
  }
  .work {
    flex: 1 1 100%; /* 1 per row */
  }
  #contact p {
    width: 90%;
    font-size: 16px;
  }
  .footer {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .navclass h2 {
    font-size: 20px;
  }
  .navclass li a {
    font-size: medium;
  }
  #home h1 {
    font-size: 26px;
  }
  .about-content h3 {
    font-size: 24px;
  }
  .about-image img {
    width: 200px;
  }
  .work img {
    height: 120px;
  }
  #contact h1 {
    font-size: 26px;
  }
}