body,
html {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Navbar initial state (no background) */
.navbar-custom {
  background-color: transparent;
  transition: background-color 0.5s ease;
  margin: 0;
  color: #ffffff;
  border: none;
}

/* Navbar with background */
.navbar-custom.scrolled {
  background-color: #000;
  /* Your desired background color */
}

/* Custom CSS for underline effect */
.navbar-nav>li>a {
  position: relative;
  overflow: hidden;
}

/* Add space between li elements */
.navbar-nav>li {
  margin-left: 10px;
  margin-right: 10px;
}

.navbar-nav>li>a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #fff;
  /* Set the underline color */
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out;
}

.navbar-nav>li>a:hover::before,
.navbar-nav>li.active>a::before {
  visibility: visible;
  transform: scaleX(1);
}

/* Remove grey background for active link and set it to black */
.navbar-nav>li.active>a,
.navbar-nav>li>a:focus,
.navbar-nav>li>a:hover {
  background-color: rgba(0, 0, 0, 0) !important;
}

/* Parallax */
.parallax-container {
  height: 100vh;
  background-image: url('../images/background-img.jpeg');
  /* Replace 'your-image.jpg' with the path to your image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* Adjust text color based on your image */
}

.parallax-text {
  font-size: 24px;
  font-weight: bold;
}

.content {
  padding: 60px 0;
  background-color: #000000;
}

.sections {
  padding: 50px;
  margin-bottom: 40px;
  background-color: #000000;
  border-radius: 10px;
  height: 100vh;
}

.card {
  background-color: #ffffff;
  padding: 4%;
}

.toggle-buttons {
  margin-top: 20px;
}

.btn-toggle {
  margin-right: 10px;
}

.hidden {
  display: none;
}

.title-section {
  height: 100vh;
  background-image: url('../images/background-img.jpeg');
  /* Replace 'your-image.jpg' with the path to your image */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* About Section */

.about-me {
  padding: 100px 0;
}

.description h1 {
  font-size: 2em;
  margin: 20px 0;
}

.description p {
  font-size: 1.2em;
  color: #ddd;
}

.tags {
  margin: 20px 0;
}

.tag {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.9em;
}

.social-media {
  margin: 20px 0;
}

.social-media a {
  margin: 0 10px;
  color: #ddd;
  font-size: 1.5em;
  text-decoration: none;
}

.profile-pic img {
  border-radius: 10%;
  width: 300px;
  height: auto;
}

/* Experience Section */

.experience-section {
  background-color: #f9f9f9;
  padding: 50px 0;
}

.experience-section h2,
.experience-section h3 {
  text-align: center;
}

.timeline {
  position: relative;
  margin: 50px auto;
  padding: 20px 0;
  width: 90%;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 50px;
  border-left: 3px solid;
  transition: all 0.3s ease-in-out;
}

.timeline-item:hover {
  transform: scale(1.05);
}

.timeline-icon {
  position: absolute;
  left: -25px;
  top: 0;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: 3px solid #333;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  color: #333;
}

.timeline-content {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
  margin: 0;
  font-size: 18px;
}

.timeline-content p {
  margin: 5px 0;
  font-size: 16px;
  color: #666;
}

.timeline-content span {
  display: block;
  font-size: 14px;
  color: #999;
}

.download-cv {
  text-align: center;
  margin-bottom: 30px;
}

.btn-download {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fffb00;
  color: #000000;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn-download:hover {
  background-color: #000000;
  color: #fffb00;
  text-decoration: none;
}

.btn-download i {
  margin-right: 5px;
}

/* Projects Section */

#projects {
  color: #fff;
  text-align: center;
}

.project-card {
  position: relative;
  overflow: hidden;
  margin: 15px 0;
  border-radius: 10px;
}

.project-card img {
  height: 300px;
  width: 100%;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.project-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
}

.project-info h3 {
  margin: 0;
}

.project-info p {
  font-size: 14px;
}

.project-link {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
}

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

.project-card:hover .project-info {
  opacity: 1;
}


form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 0 auto;
}

label {
  margin-bottom: 0.5em;
}

input,
textarea {
  padding: 0.5em;
  margin-bottom: 1em;
}

.button-btn {
  background-color: #1a1a1a;
  color: #fff;
  padding: 0.5em;
  cursor: pointer;
}

.btn-toggle {
  background-color: #f4f4f400;
  border: none;
  margin-bottom: 3%;
}

.toggle-buttons .btn-toggle.active {
  border-bottom: 1px solid #0051ff;

}

.toggle-buttons {
  margin-top: 20px;
}

.hidden {
  display: none;
}

.download-cv {
  display: block;
  margin-top: 20px;
  text-align: center;
  padding: 10px 20px;
  background-color: #3379b700;
  color: white;
  border: none;
  text-decoration: none;
}

.download-cv:hover {
  border: none;
  border-bottom: 1px solid #ffffff;
  background-color: #75000000;
  text-decoration: none;
  color: white;
  text-shadow: none;
}

.linkedin {
  text-decoration: none;
  font-size: 30px;
}

.linkedin:hover {
  text-decoration: none;
  color: #0051ff;
}

footer {
  background-color: #002646;
  color: #ffffff;
  text-align: center;
}

@media (max-width: 1000px) {
  .project-card img {
    width: 100%;
    height: 100px;
  }

  .parallax-container {
    background-attachment: scroll;
  }

  .title-section {
    background-attachment: scroll;
  }

  .parallax-text {
    padding: 10px;
  }

  .navbar-custom {
    background-color: #000000;
    border-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
  }

  .navbar-toggle,
  .navbar-toggle:active,
  .navbar-toggle:focus {
    background-color: #000000 !important;
  }

  .navbar-toggle:hover {
    background-color: #002646 !important;
  }

  .content {
    padding-top: 70px;
    /* Adjust for fixed navbar */
  }

  .sections {
    padding: 10px;
  }

  .toggle-buttons {
    text-align: center;
  }

  .btn-toggle {
    margin-bottom: 10px;
  }
}