body, h1, h2, p, ul, li {
  margin: 3px;
  padding: 3px;
  color: black;
}



.rounded-image {
  border-radius: 150px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 2px solid #ccc; /* Border color */
  background-color: #f0f0f0; /* Background color */
  margin: 10px; /* Margin */
}

.rounded-image:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-color: #d54be4; /* Border color on hover */
}

.rounded-image img {
  width: 100%;
  height: auto;
  display: block;
}

.rounded-image-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7); /* Caption background color */
  color: #fff; /* Caption text color */
  padding: 8px 15px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.rounded-image:hover .rounded-image-caption {
  opacity: 1;
}


body, h1, h2, h3, p, ul, li {
  margin: 3px;
  padding: 3px;
  color: black;
}


h2, h3 {
  position: relative;
  display: inline-block;
  color: black;
}

h2::before,
h3::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #d54be4; /* Purple color */
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

h2:hover::before,
h3:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

/* ... your existing styles ... */

header {
  color: #090909;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

p {
  font-size: 18px;
  margin-bottom: 20px;
  color: black;
}

nav {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  background: linear-gradient(to right, #d54be4, #634f65);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  margin: 0 10px;
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: color 0.3s;
  padding: 10px 20px;
  display: block;
  
}

nav a:hover {
  color: #fff;
  cursor: pointer;
}

section {
  padding: 20px;
  color: black;
}

h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: black;
  text-align: center;
}
#back-to-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: black;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  background: linear-gradient(to right, #d54be4, #634f65);
  display: none;
  z-index: 999; /* Set a higher z-index value */
}
body {
  padding: 20px; /* Adjust padding as needed */
  border: 2px solid #d54be4; /* Purple color */
  border-radius: 8px;
  background-color: #f9f9f9; /* Light gray background color */
}


body::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #d54be4; /* Purple color */
  margin-top: 10px; /* Adjust the margin as needed */
}

#back-to-top-button:hover {
  background-color: #0a60d7;
}

body.scroll-up #back-to-top-button {
  display: block;
}



@media screen and (max-width: 600px) {
  body {
    font-size: 14px;
    word-wrap: break-word; /* Corrected property */
  }

  .projects {
    padding: 5px; /* Adjusted padding for smaller screens */
  }

  .project-container h2 {
    font-size: 20px; /* Adjusted font size for smaller screens */
    margin-bottom: 70px; /* Adjusted margin for spacing */
  }

  .project-container p {
    margin-bottom: 15px; /* Adjusted margin for spacing */
  }

  .project-container h3 {
    margin-bottom: 10px; 
  }
  #back-to-top-button {
    display: block; /* Show the button on smaller screens */
  }

  body {
    font-size: 14px;
  }
}




footer {
  background-color:#f9f9f9;
  color: black;
  text-align: center;
  padding: 10px;
}

.projects {
  margin-top: 20px;
  display: flex;
  overflow-x: auto;
  padding:10px;
}

.project-container {
  flex: 0 0 calc(30% - 20px);
  margin-right: 20px;
  margin-bottom: 20px;
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-container h2 {
  font-size: 24px;
  margin-bottom: 90px;
   
}

.project-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease-in-out;
}

.project-container {
  position: relative; /* Add relative positioning to the container */
}

.project-container h2 {
  font-size: 24px;
  margin-bottom: 90px;
  position: absolute; /* Use absolute positioning */
  top: 50%; /* Align to the middle vertically */
  left: 50%; 
  transform: translate(-50%, -50%); 
  z-index: 2;
}

.project-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease-in-out;
  z-index: 1; 
}

.project-container img:hover {
  transform: scale(1.1);
}

.project-container p {
  text-align: center;
  line-height: 1.3;
  margin-bottom: 20px;
}

.project-container h3 {
  padding: 10px;
  margin-right: 30px;
  margin-bottom: 0px;
  z-index: 3;
  position: relative;
  transition: all 0.3s ease-in-out; 
}

.project-container:hover h3 {
  transform: translateY(-10px); 
}

.skills {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 600;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skills:hover {
  border-color: #d54be4;
  background-color: #f0f0f0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.skill-category {
  margin-bottom: 20px;
}

.skill-category h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: black;
}

.skills ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skills li {
  margin: 0 10px;
  font-size: 16px;
  color: black;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  transition: background-color 0.3s ease-in-out;
}

.skills li:hover {
  background-color: #d54be4;
  color: #fff;
}

.rotate-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 1000;
}

#contact img{
border-radius: 5px;
}