body{
        background: linear-gradient(to right, #ffffff, #dfe9f3);
}





#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader img {
  width: 350px;
  height: 350px;
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}

    
    nav{
        margin: 0px;
        color: white;
        background: black;
        display: flex;
        padding: 10px 20px;
        justify-content: space-between;

    }
    nav p{
        cursor: pointer;
        font-size: 2rem;
        color: linear-gradient(to right,blue,yellow);
    }
    ul{
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    
    
        
    }
    nav li{
        display: flex;
        transition: 0.3s ease;        
        margin-right: 20px;
        text-decoration: none;

    }
    nav a{
        color: #fff;
        text-decoration: none;
    }
    nav li:hover{
        color: gold;
        cursor: pointer;
    }
    
        
     .hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 10%;
}
        
    
    .hero_image{
        margin-left: 50px;
        
        

    }
    .hero_image img{
        
        border-radius: 100%;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    .content{
        margin-left: 30%;
    }
    .content h1{
        font-size: 32px;
    }
    .content h3{
        color: goldenrod;
        font-size: 20px;
    }
    .content p{
        font-size: 18px;
    }
    .btn{
        color: aliceblue;
        background-color: black;
        padding: 10px;
        border-radius: 20px;
        width: 100px;
        margin: 0 auto;
        justify-content: center;
        transition: 0.3s ease;
    }
    .btn:hover{
        background-color: #fff;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);        
        color: black;
        cursor: pointer;
    }
    .btn a{
        color: #fff;
        text-decoration: none;
    }
    .btn:hover a{
        color: black;
    }
    .about{
    
        margin : 100px;
        

    }
    .abt_main{
        display: flex;
        justify-content: space-between;
    }

    .content-abt{
        line-height: 1.8;
        font-size: 18px;
    }
    .content-abt {
        margin-top: 70px
    }
    .about h1{
        text-align: center;

    }
    .about img {
        margin-top: 30px;
        margin-left: 100px;
        height: 300px;
        width: 500px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    /*project section*/
    .projects{
        margin: 100px;
    }
     .card{
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .card img{
        height: 300px;
        width: 400px;
    }
    .pro_con{
        display: flex;
        gap: 45px;
    }
.skills {
  margin: 100px;
}

.boxes {
  display: flex;
  justify-content: space-between;
  gap: 40px;   /* gap between 2 columns */
}

.boxes > div {
  flex: 1;  /* each column equal width */
}

.head {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 5px 0;
}

.box {
  width: 100%;
  background-color: #ddd;
  overflow: hidden;
  margin-bottom: 15px;
}

.inner_box {
  height: 10px;
  background-color: navy;

}


.cont{

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px;
    gap: 50px;
}
.cont_info{
    border-radius: 10px;
    height: 450px;
    width: 400px;
    background-color: #fff;
    box-shadow:  0px 0px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 10px;
}
.cont_info .icon{
    display: flex;
    margin: 20px;
    gap: 40px;
    
}
.i {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cont_form{
    height: 450px;
    width: 400px;
    background: #fff;
    border-radius: 7px;
    box-shadow:  0px 0px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 20px 30px;
}

.cont_form input{
    border: none;
    box-shadow:  0px 0px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 7px;
    height: 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.cont_form textarea {
  width: 370px;              /* makes it take full width of parent */
  height: 150px;            /* controls the height */
  padding: 10px;            /* inner spacing */
  font-size: 16px;          /* text size */
  font-family: 'Poppins', sans-serif; /* font style */
  border: 2px solid #ccc;   /* border color and width */
  border-radius: 8px;       /* rounded corners */
  resize: vertical;         /* allows resizing only vertically */
  outline: none;            /* removes default blue outline on click */
  transition: all 0.3s ease; /* smooth hover/focus animations */
}
.button{
    margin-top: 30px;
    border: 1px solid black;
    background-color: black;
    text-align: center;
    border-radius: 10px;    
}
.button:hover{
    background-color: #fff;
}
.button p {
    color: #fff;
}
.button:hover p{
    color: black;
}




footer{
    padding: 10px;
    color: #fff;
    background-color: black;
}
footer p:hover{
    cursor:pointer;
    color: goldenrod;
}
footer i:hover{
    cursor: pointer;
    color: goldenrod;
}





/* ---------- Responsive Design ---------- */

/* For large laptops and small desktops (max-width: 1200px) */
@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero_image {
    margin-left: 0;
  }

  .content {
    margin-left: 0;
  }

  .about img {
    width: 400px;
    height: auto;
    margin-left: 0;
  }

  .pro_con {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card img {
    width: 350px;
    height: auto;
  }
}

/* For tablets (max-width: 992px) */
@media (max-width: 992px) {
  nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .abt_main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about img {
    width: 80%;
  }

  .boxes {
    flex-direction: column;
    gap: 20px;
  }

  .cont {
    flex-direction: column;
    gap: 40px;
  }

  .cont_info,
  .cont_form {
    width: 80%;
  }

  .projects {
    margin: 60px 30px;
  }
}

/* For mobile phones (max-width: 768px) */
@media (max-width: 768px) {
  nav p {
    font-size: 1.6rem;
  }

  nav li {
    margin-right: 10px;
    font-size: 14px;
    
  }

  .hero {
    padding: 50px 5%;
  }

  .hero_image img {
    width: 180px;
    height: 180px;
  }

  .content h2 {
    font-size: 22px;
  }

  .content h3 {
    font-size: 16px;
  }

  .content p {
    font-size: 15px;
  }

  .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
  }

  .about {
    margin: 50px 20px;
  }

  .card img {
    width: 280px;
    height: auto;
  }

  .skills {
    margin: 50px 20px;
  }

  .cont_info,
  .cont_form {
    width: 95%;
  }

  .cont_form textarea {
    width: 100%;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* For very small screens (max-width: 480px) */
@media (max-width: 480px) {
  nav ul {
    display: none;
  }

  .hero_image img {
    width: 150px;
    height: 150px;
  }

  .content h2 {
    font-size: 20px;
  }

  .content p {
    font-size: 14px;
  }
  .btn{
    width: 120px;
    font-size: 16px;
  }

  .about img {
    width: 100%;
    height: auto;
  }

  .card img {
    width: 100%;
  }
  .boxes{
    display: block;
  }
  .cont {
    margin: 30px 10px;
  }

  .cont_info,
  .cont_form {
    padding: 15px;
  }
  .cont_form textarea{
    width: 95%;
  }

  footer i {
    font-size: 18px;
  }
}



