/* this is original code */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}
:root {
  --background: rgb(24, 24, 24);
  --second-background: rgb(21, 21, 21);
}
body {
  min-height: 100vh;
  background-color: var(--background);
}
/* //Nav bar css */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2em 15%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}
ul {
  display: flex;
  align-items: center;
  gap: 3em;
}
nav ul a {
  color: white;
  opacity: 0.7;
  transition: 0.2s ease-in-out;
  border-radius: 0.5em; 
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  border-color: rgba(15, 15, 15, 0.8);
  padding: 5px;
  
}
  
nav ul a:hover {
  opacity: 1;
  background-color: white;
  color: var(--background);
  
}
  

.logo {
  font-size: 2em;
  color: white;
  font-weight: 800;
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}
.logo:hover {
  opacity: 1;
}
.btn {
  padding: 0.5em 1em;
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0.5em;
  font-size: 1.1em;
  border: 2px solid white;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  }
  
  .btn:hover {
    background-color: white;
    color: var(--background);
    }
    span {
      background: linear-gradient(to right, #1cb102, #047bae);
      background-clip: text;
      color: transparent;
      }
      #menu {
        color: white;
        font-size: 3em;
        display: none;
        }
        

.nav-items {
  font-size: 25px;
}

/* Body sectin */
section {
  min-height: 100vh;
  padding: 5% 15%;
}
#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  color: white;
}
#home img {
  width: 18vw;
  border-radius: 50%;
  margin-top: 4em;
}
.info-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.5em;
  max-width: 600px;
}
.info-box h1 {
  font-size: 2.9em;
  font-weight: 500;
}
.info-box h3 {
  font-size: 1.9em;
  font-weight: 400;
}
.info-box p {
  opacity: 0.7;
  font-size: 17px;
}
.btn-box {
  display: flex;
  gap: 1em;
}
.btn-box .btn:nth-of-type(2) {
  background-color: white;
  color: var(--background);
}
.btn-box .btn:nth-of-type(2):hover {
  background-color: var(--background);
  color: white;
}
::-webkit-scrolbar-thumb {
  background: linear-gradient(to buttom, #6cff52, #3ec5ff);
}

/* About Me section */
#about {
  background-color: var(--second-background); /* Custom background color */
  display: flex;
  justify-content: space-between; /* Adjust the positioning */
  align-items: center;
  gap: 3em;
  padding: 1em 3%; /* Adequate padding for spacing */
  border-radius: 15px; /* Rounded corners for the section */
}

/* About Box - Text Section */
.about-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.5em;
  flex-basis: 60%; /* Control width */
}

/* Heading Styling */
.about-info h1 {
  font-size: 4em; /* Make the heading more balanced */
  color: white;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
  margin-top: 1.1em;
  margin-left: 45px;
}

.about-info p {
  color: white;
  opacity: 0.85; /* Slightly more opaque for readability */
  line-height: 1.7em; /* Improve line spacing */
  font-size: 1.2em;
  margin-bottom: 1.5em;
  margin-left: 5px;
}
.aboutMe-img {
  width: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.aboutMe-img img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure the image covers the area without distortion */
  transition: transform 0.3s ease;
}

/* Hover Effect on Image */
.aboutMe-img img:hover {
  transform: scale(1.05); /* Slight zoom-in effect on hover */
}

.skills {
  display: flex;
  text-align: left;
  gap: 10em;
}
.skills ul {
  font-size: 1.3em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  color: white;
  opacity: 0.8;
  align-items: baseline;
  gap: 1.8em;
}
.skills ul li span {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.23m;
  transition: 0.3s ease-in-out;
}
.skills ul li span:hover {
  transform: translateX(10px);
}
.skills ul li {
  font-size: 1.2em;
}
.about-box h2 {
  font-size: 2.5em;
}
/* <!-- Services Section --> */
#services {
  background-color: var(--second-background);
}
.header {
  text-align: center;
  font-size: 5em;
  margin: 0.5em 0;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
}
.box {
  border: 3px solid rgb(49, 49, 49);
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  object-fit: cover;
  padding: 2.5em;
  color: white;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.box:hover {
  border: 3px solid rgb(100, 100, 100);
}
.box p {
  opacity: 1;
  color:burlywood ;
}
.box h1 {
  font-size: 2em;
}
.box img {
  
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center */
  height: 30vh; /
  
}

/* Contact */
#contact{
     background-color: var(--second-background);

}
#contact h1{
  margin-top: 0.1em;
}
form{
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 2em;
}
form .input-box{
     display: flex;
     flex-direction: column;
     align-items: baseline;
     gap: 1em;
     
}
form input{
     font-size: 1.3em;
     padding: 1em 5em;
     border-radius: 0.5em;
     border: none;
     outline: none;
}
form input:focus{
     background: rgb(229,229,229);
}
form .btn{
     color: black;
     font-weight: bold;
}
form .btn:hover{
     color:blue;
     background-color: green;
}



/* footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  background-color: var(--second-background);
  width: 100%;
  padding: 2em 15%;
}

.col-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  color: white;
}

.col-right h3 {
  font-size: 1.8em;
  margin: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2em;
  font-size: 2em;
}

.social-icons a {
  text-decoration: none;
  color: inherit;
}

.social-icons i {
  transition: color 0.2s ease-in-out;
}

.social-icons i:hover {
  color: var(--primary-color, white); /* Use a primary color or white */
}

.copyright {
  text-align: center;
  color: white;
  font-size: 1em;
}

/* Media Queries */
@media (max-width: 768px) {
  nav-items {
    font-size: 18px;
  }
  footer {
    padding: 2em 10%;
  }

  .social-icons {
    gap: 1.5em;
    font-size: 1.8em;
  }

  .col-right h3 {
    font-size: 1.5em;
  }

  .copyright {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.5em 5%;
  }

  .social-icons {
    gap: 2.8em;
    font-size: 1.5em;
    
  }

  .col-right h3 {
    font-size: 1.2em;
    text-align: center;
    /* margin-left: 50px; */
  }

  .copyright {
    font-size: 1em;
    text-align: center;
  }
}



/* //this is original media query code */
/* Updated media query code for improved responsiveness */
@media(max-width: 968px) {
  section{
    padding: 6em 10%;
  }
  nav .btn{
    display: none;
  }
  #menu{
    display: block;
  }
  .links{
    position:absolute;
    left: 15%;
    top: 100%;
    width: 100%;
    padding: 1em 3em;
    color: white;
    display: flex;
    flex-direction: column; 
    
    text-align: center; 
    background: rgba(0, 0, 0, 0.9);
    display: none;
  }
  .links a {
    margin: 1.5em;
    display: block; 
    font-size: 1.5em;
    color: white;
  }



  .links.active {
    display: block;
  }

  #home h1 {
    font-size: 3.5em;
  }

  #home h3 {
    font-size: 1.8em; 
  }

  #home img {
    width: 24vw;
  }

  #about {
    flex-direction: column;
    padding: 3em 0; 
  }

  #about img {
    width: 32vw;
  }

  #about h1 {
    font-size: 2.8em;
  }

  #about ul {
    font-size: 1.1em;
  }
}


@media(max-width: 768px) {
  .nav-items {
    font-size: 25px;
  }
  
  
  #home h1 {
    font-size: 2.5em;
  }
  
  #home h3 {
    font-size: 1.5em;
  }
  
  #home img {
    width: 32vw;
  }
  
  #about .skills {
    gap: 2.5em; 
  }
  #about img {
    width: 90%;
    max-width: none; /* Adjusted image size */
  }
  #services .header {
    font-size: 2.5em; 
    
  }
    #contact .header {
      font-size: 2.5em;
    }
    
    #contact .input-box span {
      font-size: 1.2em;
    }
    
    .input-box input {
      padding: 0.5em 1em;
    }
    
    footer {
      flex-direction: column;
      gap: 4em;
      align-items: flex-start; 
    }
}

@media(max-width: 480px) {
  section {
    padding: 5em 5%; /* Reduced padding for very small screens */
  }
  .nav-items {
    font-size: 14px;
  }

  #home h1 {
    font-size: 2em; /* Smaller font size for very small screens */
  }

  #home h3 {
    font-size: 1.2em;
  }

  #about h1 {
    font-size: 2.5em; /* Adjusted heading size */
    margin-top: 2.3em;
  }

  #about img {
    width: 100%;
    max-width: none; /* Adjusted image size */
  }

  .skills ul li {
    font-size: 1.1em; /* Adjusted for readability */
  }

  #services .header {
    font-size: 2.8em; /* Reduced header size */
    margin-top: 1.4em;
  }
  #contact .header{
    margin-top: 1.3em;
  }

  footer {
    gap: 2em; /* Further reduced gap */
  }
 
}