*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  
}
body{
  background: linear-gradient(90deg, #FDFDFD 32%,   #DCDCDC 100%);
}



/* navbar section */

a {
  text-decoration: none;
}

#nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px; /* Reduced padding for smaller screens */
  background-color: #DCDCDC;
  flex-wrap: wrap; /* Allows items to wrap for responsiveness */
  position: relative;
}

.nav-logo {
  font-size: 30px;
  font-weight: bold;
  color: blue;
  cursor: pointer;
}

.nav-logo::first-letter {
  font-size: 40px;
  border: 2px solid blue;
  border-right: transparent;
  padding-left: 5px;
  color: #fd4766;
}

/* Navigation items */
.nav-items ul {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Distribute items evenly */
  gap: 60px; /* Increased gap between the navigation items */
  margin: 0;
  padding: 0;
}

.nav-items ul li {
  list-style: none;
  margin: 0 15px; /* Add margin around each item for extra spacing */
}



.nav-items ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}



.nav-items ul li a {
  color: #1d1d24;
  position: relative;
  padding: 5px 0;
  font-weight: bold;
}

.nav-items ul li a:hover {
  color: #fd4766;
}

.nav-items ul li a::after {
  content: "";
  bottom: 0;
  left: 0;
  width: 0;
  position: absolute;
  height: 3px;
  background: #fd4766;
  transition: 0.3s;
}

.nav-items ul li a:hover::after {
  width: 100%;
}

/* Resume button */
#resume-button-1 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  background: #fd4766;
  padding: 10px 30px;
  border-radius: 500px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.4s ease-in-out;
  border: 2px solid #fd4766;
}

#resume-button-1:hover {
  background: transparent;
  color: #fd4766;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  height: 25px;
  cursor: pointer;
}

.hamburger div {
  width: 30px;
  height: 3px;
  background: #1d1d24;
  transition: all 0.3s ease-in-out;
}

.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-items {
  transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  #nav-menu {
    padding: 15px 20px;
  }

  .hamburger {
    display: flex; /* Show hamburger menu */
  }

  .nav-items {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    right: 0;
    background: #DCDCDC;
    width: 100%;
    padding: 15px;
  }

  .nav-items.active {
    display: flex;
  }

  .nav-items ul {
    flex-direction: column;
    gap: 10px;
  }

  #resume-button-1 {
    align-self: flex-start;
  }
}


/* Home Section */

/* Base styles */
#home {
  height: auto;
  margin-top: 50px;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 5%;
}

/* Text container */
.container {
  width: 50%;
  text-align: center;
}

.container h1 {
  color: #1f1f25;
  font-size: 70px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 50px;
}

.container h1 span {
  color: #fd4766;
}

#home p {
  color: #1f1f25;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
}

#hire-me, #resume-button-2 {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.4s ease-in-out;
}

#hire-me {
  background: blue;
  border: 2px solid blue;
}

#hire-me:hover {
  background: transparent;
  color: blue;
}

#resume-button-2 {
  background: #fd4766;
  border: 2px solid #fd4766;
}

#resume-button-2:hover {
  background: transparent;
  color: #fd4766;
}

/* Image container */
.about-img {
  width: 50%;
  text-align: center;
}

.about-img img {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  margin-top: 60px;
}

/* Responsive Styles */

/* For medium screens (tablets and smaller laptops) */
@media only screen and (max-width: 1090px) {
  #home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding: 20px;
  }

  .container, .about-img {
    width: 100%;
  }

  .container h1 {
    font-size: 50px;
    line-height: 1.2;
  }

  #home p {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .about-img img {
    width: 100%; /* Increase to occupy more space within its container */
    max-width: 500px; /* Set a larger max width for bigger images */
    height: auto; /* Maintain aspect ratio */
    border-radius: 15px;
    margin-top: 60px;
    margin-left: 20px;
  }
  
}

/* For small screens (mobiles) */
@media only screen and (max-width: 710px) {
  #home {
    flex-direction: column-reverse;
    text-align: center;
    padding: 10px;
    gap: 30px;
  }

  .container h1 {
    font-size: 36px;
  }

  #home p {
    font-size: 14px;
  }

  #hire-me, #resume-button-2 {
    font-size: 14px;
    padding: 8px 20px;
  }

  .about-img img {
    width: 100%;
    max-width: 300px;
  }
}



  /* About section */

 /* Base styles */
h1 {
  text-align: center;
  font-size: 40px;
  color: blue;
  margin-top: 70px;
}

#about1 {
  width: 90%; /* Add spacing from left and right */
  margin: 40px auto; /* Center the section horizontally */
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align items to start on the same line */
  gap: 20px;
}

#about1 div {
  padding: 10px;
}

.home-img1 {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Ensure alignment starts at the top */
}

.home-img1 img {
  margin-top: 15px;
  border: 2px solid black;
  border-radius: 50%;
  height: auto;
  width: 300px;
}

.container1 {
  font-size: 20px;
  font-weight: 620;
}

.container1 h2 {
  margin-top: 100px;
}

.container1 p {
  margin: 1em 0;
}

/* Responsive Styles */

/* Medium screens (tablets and smaller laptops) */
@media only screen and (min-width: 711px) and (max-width: 1090px) {
  #about1 {
    flex-direction: column;
    align-items: center;
    text-align: justify;
    width: 90%; /* Ensure consistent padding from left and right */
  }

  #about1 div {
    width: 100%;
    margin-bottom: 30px;
  }

  .home-img1 img {
    width: 250px;
    height: auto;
    margin: 15px auto;
  }

  .container1 {
    font-size: 18px;
  }

  .container1 h2 {
    margin-top: 50px;
    font-size: 28px;
  }
}

/* Small screens (mobile) */
@media only screen and (max-width: 710px) {
  #about1 {
    flex-direction: column;
    align-items: center;
    width: 90%; /* Ensure consistent padding from left and right */
  }

  #about1 div {
    margin-bottom: 20px;
  }

  .home-img1 {
    width: 100%;
    text-align: center;
  }

  .home-img1 img {
    width: 200px;
    height: auto;
    margin: 15px auto;
  }

  .container1 {
    font-size: 16px;
  }

  .container1 h2 {
    margin-top: 30px;
    font-size: 24px;
  }

  .container1 p {
    font-size: 14px;
    line-height: 1.6;
  }
}

  
 /* Skills section */

 

 .container2{
  height:auto;
  /* border: 1px solid blue; */
  margin-top: 50px;
  display: grid;
  gap:10px;
  grid-template-columns: repeat(4,1fr);
 }
 /* .container2 div{
  border: 1px solid red;
 } */
 .skills-card{
  text-align: center;
 }

.skills-card img{
  background-color: #e9eaec;
  border-radius: 5px;
  box-shadow: 0 7px 29px 0 hsla(240,5%,41%,.2);
  height: auto;
  padding: 4%;
  width: 35%;
  transition: transform 0.2s ease-in-out;
 }
 .skills-card img:hover{
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
  
 }
.skills-card h3{
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  color: #d9b60e;
}

    
    @media only screen and (min-width: 0px) and (max-width: 1090px) {
  
     /* small and medium screen */
     .container2{
      height: auto;
      display: grid;
      grid-template-columns: repeat(2,1fr);
      grid-template-rows: auto;
      gap:auto;
   }
  
    }




/* Project section */

.container3 {
  margin-top: 50px;
  width: 100%;
  display: grid;
  gap: 20px; /* Gap between rows */
  grid-template-columns: repeat(2, 1fr); /* Two cards in one row */
  padding: 0 20px; /* Margin from left and right */
}

.container3 div {
  text-align: start;
  padding: 15px;
}

.project-card {
  margin: 0 auto;
  width: 80%; /* Smaller width for cards */
  padding: 15px;
  height: auto;
  box-shadow: 0 7px 29px 0 hsla(240, 5%, 41%, 0.2);
  transition: transform 0.2s ease-in-out;
  background: white; /* Ensure a consistent background */
  border-radius: 10px; /* Slightly rounded corners */
}

.project-card:hover {
  box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
  transform: scale(1.05); /* Slightly smaller scale for hover */
}

.project-card h3 {
  color: #859901;
  font-family: Montserrat, Helvetica Neue, Arial, sans-serif;
  text-align: start;
}

.project-card img {
  height: auto;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px; /* Rounded corners for images */
}

.project-tech-stack {
  color: #b57615;
  font-size: 18px;
}

.project-tech-stack span {
  color: black;
}

.project-card a {
  margin-left: 20px;
}

.project-github-link {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  background: blue;
  padding: 8px 20px;
  border-radius: 500px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.4s ease-in-out;
}

.project-github-link:hover {
  background: transparent;
  color: blue;
}

.project-deployed-link {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  background: #fd4766;
  padding: 8px 20px;
  border-radius: 500px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.4s ease-in-out;
  border: 2px solid #fd4766;
}

.project-deployed-link:hover {
  background: transparent;
  color: #fd4766;
}

/* Responsive Design */
@media only screen and (max-width: 1090px) {
  .container3 {
    grid-template-columns: repeat(1, 1fr); /* Single column layout */
    padding: 0 10px; /* Reduce padding on smaller screens */
  }

  .project-card {
    width: 100%; /* Take full width on smaller screens */
    padding: 15px;
  }

  .project-card img {
    height: auto;
    width: 100%;
  }

  .project-card h3 {
    font-size: 18px;
  }

  .project-tech-stack {
    font-size: 16px;
  }

  .project-github-link,
  .project-deployed-link {
    font-size: 12px;
    padding: 6px 15px;
  }
}


     

  /* Github Section */

  .container4 {
    height: auto;
    width: 90%; /* Add space from the sides */
    margin: 50px auto; /* Center the section */
  }
  
  .react-activity-calendar {
    text-align: center;
    margin-top: 20px;
  }
  
  .react-activity-calendar img {
    height: 250px;
    width: auto;
  }
  
  .stats {
    margin-top: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr); /* Three columns for larger screens */
  }
  
  .stats div {
    margin-left: 20px; /* Reduced margin for consistency */
    height: auto;
    width: auto;
    padding: 10px;
  }
  
  .github img {
    height: 100%;
    width: 100%;
  }
  
  /* Responsive Styles */
  
  /* For medium screens (tablets and smaller laptops) */
  @media only screen and (min-width: 711px) and (max-width: 1090px) {
    .container4 {
      width: 95%; /* Adjust width for medium screens */
    }
  
    .stats {
      grid-template-columns: repeat(2, 1fr); /* Two columns for medium screens */
    }
  
    .stats div {
      margin-left: 10px; /* Smaller margin */
    }
  }
  
  /* For small screens (mobile devices) */
  @media only screen and (max-width: 710px) {
    .container4 {
      width: 95%; /* Narrower container */
    }
  
    .stats {
      grid-template-columns: 1fr; /* Single column for small screens */
    }
  
    .stats div {
      margin-left: 0; /* Remove left margin */
      padding: 10px;
    }
  
    .react-activity-calendar img {
      height: 200px; /* Smaller image for small screens */
      width: auto;
    }
  }
  
   

 /* Contact section */

 
 .container5 {
  margin-top: 50px;
  height: auto;
  width: 90%; /* Added side spacing */
  margin-left: auto; /* Center horizontally */
  margin-right: auto; /* Center horizontally */
  background-color: #E0DDD8;
}

.row {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns by default */
  gap: 20px;
}

form {
  margin-left: auto; /* Center form horizontally */
  margin-right: auto;
  margin-top: 50px;
  height: 400px;
  text-align: center;
  box-shadow: 0 7px 29px 0 hsla(240, 5%, 41%, 0.2);
  transition: transform 0.2s ease-in-out;
  padding: 30px;
  width: 400px;
  background-color: white;
  border: 5px solid white;
}

form:hover {
  transform: scale(1.1);
}

form button {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  background: #fd4766;
  padding: 10px 30px;
  border-radius: 500px;
  display: inline-block;
  font-weight: 500;
  transition: all 0.4s ease-in-out;
  border: 2px solid #fd4766;
}

form button:hover {
  background: transparent;
  color: #fd4766;
}

form input {
  font-size: 20px;
  padding: 7px 10px;
}

.contact-info img {
  height: 20px;
  width: 20px;
}

#nothing {
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  height: auto;
  text-align: start;
  color: black;
  padding: 30px;
  width: 450px;
}

.contact-info {
  text-align: center;
}

.nothing a,
span {
  color: black;
}

/* Responsive Styles */

/* Medium and small screens */
@media only screen and (min-width: 0px) and (max-width: 1090px) {
  .container5 {
    width: 95%; /* Narrower for small screens */
  }

  .row {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 10px;
  }

  form {
    margin-top: 20px;
    height: auto;
    width: 90%; /* Adjust width for smaller screens */
    padding: 20px; /* Reduced padding */
  }

  #nothing {
    width: 90%; /* Adjust width for smaller screens */
  }
}

