@import url('https://fonts.googleapis.com/css?family=Inter:400|Roboto:700');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #1E1E2E;
  background-color: #F0F4F8;
}

header {
    font-family: 'Inter', sans-serif;
    text-align: left;
    background: linear-gradient(90deg, #86b6ee, #35b8e0);
    color: rgb(0, 0, 0);
    padding: 0.5rem 2rem;
    border-bottom-left-radius: 20px; /* Rounded bottom-left corner */
    border-bottom-right-radius: 20px;
    height: auto; /* Ensures the header height is flexible based on content */
  }
  header p {
    font-size: 1rem;
    margin: 0;
    text-align: left; /* Align the text to the left */
  }
  
  header strong {
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 1rem; /* Added space between name and profession */
  }
  
  header span {
    font-style: italic;
    margin-left: 1rem; /* Added space between profession and portfolio */
  }
  

.about-me {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
  justify-content: center;
  padding: 2rem;
  text-align: center;
}


.profile-pic {
  border-radius: 50%;
  width: 225px; /* Increase the size of the profile picture */
  height: 225px;    
  margin-bottom: 1.5rem; /* Space between the image and about text */
  border: 3px solid #4A90E2;
}

.about-text {
  max-width: 600px;
}

.cv-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  color: black;
  background-color: #35b8e0;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.github-link:hover {
  background-color: #3A7AC3;
}

.projects {
  text-align: center;
  padding: 2rem;
  background: #E0F2FF;
  border-radius: 10px;
}

.project {
  display: inline-block;
  width: 35%;
  margin: 2%;
  text-align: center;
  cursor: pointer;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.677);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.project p {
  margin-top: 0.5rem;
  color: #333;
}

.project a {
  display: inline-block;
  margin-top: 0.5rem;
  color: white;
  background-color: #4A90E2;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.project a:hover {
  background-color: #3A7AC3;
}

.project:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #E8EFF7;
}
.contact p {
    font-size: 1.1rem;
    margin: 1rem 0;
  }
  
  .contact i {
    margin-right: 0.8rem; /* Space between the icon and the text */
    margin-left: 0.4rem;
    scale: 1.5;
  }
  
  .contact a {
    color: black; /* Link color matching the theme */
    text-decoration: none;
    font-weight: bold;
  }
  
  .contact a:hover {
    color: #555; /* Darker shade when hovering */
  }

#contactid{
  color: black;
  text-align: left;   
  padding: 15px;        
  background-color: #4A90E2; 
  min-width: 320px;         
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#contactid h2{
  text-align: center;
  margin-top: 5px;
}



.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
}

#modal-video {
  width: 100%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: black;
  font-size: 24px;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .project {
    width: 90%;
    margin: 1rem auto;
  }
}

@media screen and (max-width: 768px) {
    header p {
      font-size: 0.9rem; /* Slightly smaller font size on smaller screens */
    }
}