:root {
  --primary: #25283d;
  --secondary: #4d9de0;
  --text-light: #fff;
  --primary-light: #31354d;
}
body {
  font-size: 1.1rem;
}

.floating-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-class {
  display: flex;
  justify-content: space-between;
  width: 100%;
  span {
    flex: 1;
  }
}
.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.text-primary {
  color: var(--text-light) !important;
}

.text-secondary {
  color: var(--text-light) !important;
}

.bg-primary-light {
  background-color: var(--primary-light);
}
.btn-primary {
  background: var(--text-light);
  border: var(--text-light);
  color: var(--secondary);
}

.btn-primary:hover {
  color: var(--text-light);
  background: var(--secondary);
}

.btn-secondary {
  background: var(--secondary);
  border: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  color: var(--text-light);
  background: var(--primary);
}

.cover-container {
  position: relative;
  background: url("../assets/images/cover-img.jpg") no-repeat center
    center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.font-1 {
  font-size: 1.5rem;
}

.font-2 {
  font-size: 2.5rem;
}

.welcome-heading {
  position: relative;
  font-weight: bold;
  color: var(--text-light);
  z-index: 2;
  font-size: 2.5rem;
}

.roles-heading {
  position: relative;
  color: var(--text-light);
  z-index: 2;
  font-size: 2.5rem;
}

/* roles animation */

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--secondary);
  }
}
.typewriter {
  position: relative;
  display: block;
  height: 100%;
}
.typewriter h1 {
  animation: blink-caret 2s step-end infinite;
  color: var(--text-light, #fff) !important;
  overflow: hidden;
  border-right: 0.15em solid var(--secondary, #0015ff) !important;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  padding-bottom: 20px;
}

.profile {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-divider {
  height: 0;
  overflow: hidden;
  border-top: 1px solid var(--secondary);
  opacity: 1;
}

.dropdown-divider-primary {
  height: 0;
  overflow: hidden;
  border-top: 1px solid var(--primary);
  opacity: 1;
}

.cursor-pointer {
  cursor: pointer;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.image-row {
  margin: 2rem auto;
  max-width: calc(480px + (2rem * 5));
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.image-col {
  padding: 10px;
  background: var(--text-light);
  border-radius: 10px;
  color: var(--primary);
}

@media only screen and (max-width: 756px) {
  .project-row {
    grid-template-columns: 1fr 1fr;
  }
  .image-row {
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
  }
  .download_cv_btn {
    display: none;
  }

  .navbar-class {
    display: flex;
    justify-content: center;
    width: 100%;
    span {
      flex: 0;
    }
  }
}

/* Medium Devices, Tablets (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .project-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width: 540px) {
  .project-row {
    grid-template-columns: 1fr;
  }
  .image-row {
    grid-template-columns: 1fr;
    justify-content: space-between;
  }

  .download_cv_btn {
    display: none;
  }
}
.proj-column {
  border: 1px solid;
  border-radius: 10px;
  padding: 20px;
  background-color: var(--text-light);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.img-column {
  border: 1px solid;
  border-radius: 10px;
  background-color: var(--text-light);
}
.logo-ht {
  height: 120px;
  width: 120px;
  object-fit: contain;
  padding: 20px;
}

.menu-class {
  color: #fff;
  text-decoration: none;
}

#aboutMe,
#projects,
#hireMe {
  margin-bottom: 20px;
  padding: 20px;
  scroll-margin-top: 60px;
}

/* Scroll to top btn */
.scroll-to-top-btn {
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px; /* Distance from the right */
  background-color: var(--text-light); /* Background color */
  color: var(--primary); /* Text color */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0; /* Initially hidden */
}

.scroll-to-top-btn:hover {
  background-color: var(--secondary); /* Darker background on hover */
}

.scroll-to-top-btn.show {
  opacity: 1; /* Show button when scrolled down */
  transform: translateY(0); /* Move button into view */
}

/* Timeline CSS */
ul.timeline {
  list-style-type: none;
  position: relative;
}
ul.timeline:before {
  content: " ";
  background: #d4d9df;
  display: inline-block;
  position: absolute;
  left: 29px;
  width: 2px;
  height: 100%;
  z-index: 400;
}
ul.timeline > li {
  margin: 20px 0;
  padding-left: 20px;
}
ul.timeline > li:before {
  content: " ";
  background: white;
  display: inline-block;
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  left: 20px;
  width: 20px;
  height: 20px;
  z-index: 400;
}

.timeline-container {
  background-color: var(--primary-light);
}
