body, html {
  height: 100%;
  margin: 0;
}

body {
  background: #FFFFFF;
  color: #000000;
  font-family: 'Roboto Thin', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #000000;
  font-family: 'Roboto Thin', sans-serif;
}

ul {
  margin: 0;
}

/* Navbar styles */
.navbar-custom {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-custom .navbar-nav .nav-link {
  color: #000000;
  font-weight: normal;
  font-size: 18px;
}

.navbar-custom .navbar-nav .nav-link:hover {
  color: #008080;
  text-decoration: underline;
}

/* Custom CSS for Particles */
#particles-js {
  position: relative;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Custom CSS for About Me */
.content-about-me {
  background-color: #d1e3ea;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

/* Custom CSS for Contact */
.content-contact {
  position: relative;
  background-color: #d1e3ea;
  width: 100%;
  height: 100vh;
}

.content-contact .container {
  position: absolute;
  top: 40%; /* Position 40% from the top */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust the positioning */
  max-width: 800px;
  text-align: center;
  z-index: 2;
  line-height: 1.8;
}

.contact-image {
  width: 50px;
  height: auto;
  display: inline-block;
  margin-right: 10px;
}

.spacer {
  margin-bottom: 20px;
}


/* Custom CSS for Portfolio */
.content-portfolio {
  background-color: #f3f3f3;
  width: 100%;
  min-height: 100vh;
  top: 0;
  left: 0;
}

#portfolio-grid {
  background-color: inherit;
  padding-top: 10px;
}

.btn-group .btn {
  margin-right: 5px;
}

.btn-group .btn:last-child {
  margin-right: 0; /* Ensures the last button doesn't have extra spacing on the right */
}

.portfolio-card {
  background-color: #FFFFFF;
  border: none;
  border-radius: 0.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  height: calc(100vw * 0.8 / 4); /* 4-column layout */
  cursor: pointer;
}

.card-img-top {
  width: 100%;
  height: 90%;
  object-fit: cover;
  object-position: center;
}

.card-text {
  display: none; /* Ensure this text is not displayed normally */
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  color: #fff; /* Text color */
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  opacity: 0; /* Make the overlay fully transparent initially */
  transition: opacity 1s ease; /* Transition for the opacity */
  z-index: 1;
  padding: 0px; /* Adds padding inside the overlay for text */
  text-align: center;
}

.overlay-text {
  font-size: 1.35rem;
  max-width: 80%;
}

/* Modal Structure */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  background-color: #fff;
  padding: 20px;
  box-shadow: none;
  border: none !important;
  border-width: 0;
  width: 60%;
  height: 80%;
  display: none;
  border-radius: 15px;
}

.modal-header {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center items vertically */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Ensure text alignment is centered for all child elements */
}


.modal-title {
  margin: 0;
  font-size: 24px; /* Increased font size */
  text-align: center; /* Center the title */
}

.modal-image {
  max-height: 300px;
  max-width: 300px;
  margin: 20px auto 20px;
  display: block;
  object-fit: cover;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column; /* This will stack children vertically */
}

.modal-content > .close {
  position: absolute;
  right: 20px;
  top: 0px;
  font-size: 120px;
  line-height: 0.75;
  cursor: pointer;
  color: gray;
}

.modal-body {
  font-size: 18px; /* Increased font size */
  text-align: justify; /* Justify the body text */
}

.modal-buttons button {
  margin-right: 5px; /* Adjust as needed for your desired spacing */
}

/* Intro page */
#particles-js .intro-container {
  position: absolute;
  top: 35%;
  left: 50.5%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0);
  font-size: 35px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

#particles-js .intro-container img {
  height: 150px;
  margin: 0 -20px;
}

#particles-js .horizontal-line {
  position: absolute;
  top: calc(46% + 0px + 0px); /* 50% for vertical center, 75px for half the image's height, and additional 50px for the spacing */
  left: 50%;
  transform: translateX(-50%);
  width: 7.5%;
  height: 1px;
  background-color: black;
  z-index: 2;
}

#particles-js .slogan-container {
  position: absolute;
  top: 51%;
  left: 50.5%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0);
  font-size: 23px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #008080;
}

/* Custom CSS for Skills */
.content-skills {
  background-color: #ffffff;
  width: 70%;
  height: 100vh;
  margin: auto;
  top: 0;
  left: 0;
  overflow: hidden;
}

.skill-title {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 15px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 0px;
}

.skill-content {
  overflow: hidden;
}

.skill-card {
  border: 0px;
  padding: 5px;
}

.skill-icon {
  width: 50px;
  height: auto;
  float: left;
  margin-right: 10px;
}


@media (max-width: 768px) {
  h1, h2, h3, h4, h5, h6 {
    font-size: 75%; /* Adjust font size */
  }

  .navbar-custom .navbar-nav .nav-link {
    font-size: 16px; /* Smaller font size */
    padding: 8px 12px; /* Adjust padding */
  }

  .content-about-me, .content-contact, .content-portfolio {
    height: auto; /* Change from 100vh to auto */
  }

  .content-contact .container {
    position: relative;
    top: 20%; /* Adjust position */
    transform: translate(-50%, -20%); /* Adjust the positioning */
  }

  .skills-container {
    grid-template-columns: 1fr; /* Change to a single column layout */
  }

  .portfolio-card {
    height: auto; /* Adjust the height of the portfolio cards */
  }

.about-me-section img, .portfolio-card img {
  width: 100%; /* Full width */
  height: auto; /* Maintain aspect ratio */
  }

}
