body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-color:aliceblue;
  background-image: url('html_finalprojimages/backgrd.jpg'); /* Replace with the path to your image */
  background-size: cover; /* This will ensure the image covers the entire container */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent the image from repeating */
}

/* Navigation Bar */

#home {
  background-color:  #7600bc;
  margin-left:-1cm;
  margin-right:-1cm;
  margin-top:-1cm;
  padding-top: 1.5cm;
  padding-bottom: 1cm;
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

.topmenu {
  color: lightgray;
  margin: 10px;
  padding: 20px;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s, font-weight 0.3s; 
 
}

.topmenu:hover {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

.topdiv {
  float: right;
  padding-right: 1cm;
}


/* Titles */

h2 {
  text-align: justify;
  font-size: 48px;
  text-align: center;
  float: left;
  color: #7600bc;
  margin: 20px
}

.introduction {
  font-size: 28px;
  margin: 20px auto;
  animation-duration: 5s;
  position: relative;
  clear: both;
  width: 80%;
}

/* Used in the About Me sections */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 15%; /* Adjusted padding for better alignment */
  height: 100vh;
  
}

.aboutmeText{
  width: 80%; /* Better text wrapping */
  text-align: center;
  
  animation:
    typing 2s steps(317),
    cursor .4s step-end infinite alternate;
}
/* cursor blinking*/
@keyframes cursor{
  50%{border-color: transparent;}
}
/*  typing effect*/
@keyframes typing{
  from { width: 50%; height: 0%; }
  to { width: 50%; height: 100%;}
}

/* About Me */


#about-me h1 {
  font-size: 65px;
  margin-top: 90px;
  color: #7600bc;
}

#about-me p {
  font-size: 25px;
  color: black;
  margin-top: -1cm;
  text-align: center;
}

.profile_image {
  width: 250px;
  height: 300px;
  vertical-align: middle;
  margin: 5px;
}

/* Skills */

.all_skills {
  display: flex;
  flex-direction: row;
  flex-flow: wrap;
  margin-left: 7%;
  justify-content: center;
}

.skill {
  width: 150px; /* Unified width */
  padding: 20px;
  margin: 20px;
  font-size: 24px;
  background-color: #e8bcf0;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effects */
}

.skill img {
  height: 60px;

  padding: 24px;
}

.flex_center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill:hover {
  transform: scale(1.25); /* Slight zoom on hover */
  box-shadow:  5px 15px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}
/* Projects */

.projects-container {
  margin: 30px auto;
  overflow: auto;
  max-height: 600px; /* Increase height */
  padding: 20px;
}

.projects-container hr {
  border: 1px solid lightgray;
  width: 75%;
  margin: 20px auto; /* Centered horizontally */
}

.project-card {
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Add shadow */
}

.project-data {
  display: flex;
  flex-direction: row;
  gap: 10px; /* Space between project details */
}

.project-card h4 {
  font-size: 20px;
  margin-left: 20px;
  background-color: #e8bcf0;
  border-radius: 64px;
  padding: 5px 15px;
}
.project-card h3 {
  font-size: 25px;
  margin-left: 30px;
}

.project-card li {
  font-size: 20px;
  margin-left: 30px;
}

/* reach out */
.reach {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center reach out items */
  gap: 30px; /* Space between reach out items */
  margin: 50px 0; /* Add some margin for spacing */
}

.link {
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  text-align: center;
  margin: 20px;
  padding: 20px;
  width: 150px;
  background-color: #e8bcf0;
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition */
}

.link:hover {
  transform: scale(1.05); /* Slight zoom on hover */
  box-shadow:  5px 15px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}

.link img {
  height: 60px;
  margin-bottom: 15px; /* Space between image and text */
}

/* Recommendations */

.all_recommendations {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center; /* Center recommendations */
  padding: 20px;
  gap: 20px; /* Space between recommendation cards */
}

.recommendation {
  font-style: italic;
  text-align: left;
  width: 300px; /* Unified width */
  padding: 20px;
  background-color: #fff;
  border-radius: 15px;
  margin: 20px;
  border: 1px solid #ddd;
  transition: box-shadow 0.3s; /* Smooth transition */
}

.recommendation:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Shadow on hover */
}

.recommendation span {
  color: #7600bc;
  font-size: 20px;
  font-family: 'Times New Roman', Times, serif;
}

/* Scroll to Top Button */

.iconbutton {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #7600bc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 3%;
  bottom: 3%;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition */
}

.iconbutton:hover {
  transform: scale(1.1); /* Slightly larger on hover */
  box-shadow: 5px 15px rgba(0, 0, 0, 0.2); /* Shadow on hover */
}
/* Form Pop-up */
.popup {
  width: 400px;
  background-color: #e8bcf0;
  border-radius: 15px; /* Increase border radius for smoother corners */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  position: fixed;
  padding: 30px; /* Restore padding for better content spacing */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
  visibility: hidden;
  z-index: 10; /* Ensure popup is above other elements */
}

.popup img {
  padding-top: 20px;
  width: 50px; /* Define a size for the image */
  height: 50px;
}

.popup button {
  background-color: #7600bc;
  border: none;
  color: #fff;
  border-radius: 20px; /* Rounder button corners */
  text-align: center;
  margin: 30px auto; /* Center the button horizontally */
  padding: 10px 20px;
  font-size: 18px;
  width: 150px; /* Set width of the button */
  cursor: pointer;
  transition: background-color 0.3s ease; /* Smooth transition */
}

.popup button:hover {
  background-color: #5a0096; /* Darker shade on hover */
}

/* Recommendation Form */
input, textarea {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; 
  margin: 10px 0; /* Adjust margin for better spacing */
  padding: 10px; /* Add padding for a better feel */
  width: 100%;
  border-radius: 8px; /* Rounded corners for inputs */
  border: 1px solid #ddd; /* Subtle border */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
  font-size: 16px;
}

fieldset {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
  padding: 30px; 
  margin: 0 auto; /* Center the fieldset */
  border: 2px solid #7600bc; /* Bold border to match theme */
  border-radius: 10px; /* Rounded corners */
  width: 50%; /* Adjusted width for better alignment */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Add a shadow for depth */
}

fieldset legend {
  font-size: 24px;
  color: #7600bc;
  padding: 0 10px;
  font-weight: bold;
}

/* Buttons */

button {
  background-color: #fff;
  color: #7600bc;
  display: block;
  border-radius: 16px;
  text-align: center;
  margin: 20px auto; /* Centered horizontally */
  padding: 10px 20px; /* Adjusted padding */
  font-size: 20px;
  border: 1px solid #7600bc;
  transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition */
}

button:hover {
  background-color: #7600bc;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
}