h1, h2, h3, h4, h5, h6 {
  color: #212529;
}

.btn-dark {
  background-color: #212529 !important;
}

.btn-link:hover {
  opacity: 0.95;
  text-decoration: none;
  transition: all 0.5s ease-in-out !important;
}

a {
  color: #212529 !important;
}

a.btn-dark {
  color: var(--bs-white) !important;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.section {
  overflow: hidden;
  position: relative;
  padding: 5rem 0;
}

.text-muted {
  color: #6c757d !important;
}

.text-4 {
  font-size: 1.125rem;
  line-height: 1.8;
}

.text-5 {
  font-size: 1.3125rem;
  line-height: 1.8;
}

.text-6 {
  font-size: 1.75rem;
  line-height: 1.8;
}

.text-7 {
  font-size: 1.5rem;
  line-height: 1.8;
}

.text-8 {
  font-size: 2rem;
  line-height: 1.8;
}

.text-10 {
  font-size: 2.5rem;
  line-height: 1.3;
}

.text-12 {
  font-size: 3rem;
  line-height: 1.3;
}

.text-21 {
  font-size: 6rem;
}

.hide-text {
  display: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-more {
  cursor: pointer;
  text-decoration: underline;
  color: #212529;
}

.navbar-custom {
  opacity: 1;
  box-shadow: 0 0 10px var(--bs-primary);
  transition: all 0.5s ease-in-out;
}

.navbar-scroll-dark {
  background-color: var(--bs-white) !important;
  color: var(--bs-dark);
  opacity: 0.9;
  box-shadow: 0 0 10px var(--bs-dark);
  transition: all 0.5s ease-in-out;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar-nav a {
  transform: scale(1);
  transition: all 0.5s ease-in-out;
}

.navbar-nav a:hover {
  transform: scale(1.05);
  text-decoration: underline;
  transition: all 0.5s ease-in-out;
}

.cursor-container {
  display: inline-block;
}

.cursor {
  animation: blink 1s infinite;
}

.avatar-animated {
  animation: scale-up-img 2s alternate;
}

#background-text-1,
#background-text-2 {
  writing-mode: vertical-rl;
  text-orientation: upright;
}
#background-text-1 i,
#background-text-2 i {
  position: relative;
  transition: all 0.5s ease-in-out;
}
#background-text-1 i:hover,
#background-text-2 i:hover {
  color: #212529 !important;
  opacity: 0.7;
}

.social-icons {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
.social-icons li {
  margin: 2px 6px;
  padding: 0;
  overflow: visible;
}

.skill-badge {
  transform: scale(1);
  transition: all 0.5s ease-in-out;
}

.skill-badge:hover {
  transform: scale(1.05);
  transition: all 0.5s ease-in-out;
}

.portfolio-box {
  min-height: 340px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.portfolio-box:hover {
  transform: scale(1.03);
}

.portfolio-overlay {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: all 0.5s ease-in-out;
}

.active {
  visibility: visible;
  opacity: 1;
}

.modal-portfolio {
  background-color: #212529 !important;
}

.list-style-2 {
  padding: 0;
}

.list-style-2 > li {
  color: rgb(33, 37, 41) !important;
  list-style-type: none;
  border-bottom: 1px solid #eaeaea;
  padding-top: 12px;
  padding-bottom: 12px;
}

.form-border .form-control {
  background-color: transparent !important;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 0px;
  padding-left: 0px !important;
  color: rgb(0, 0, 0);
}

.input:hover,
.input:focus {
  border-bottom-color: var(--bs-dark);
  transition: all 0.5s ease-in-out;
}

.to-top-btn {
  display: inline;
  position: fixed;
  z-index: 1030;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  cursor: pointer;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.5s ease-in-out;
}

.to-top-btn:hover {
  background-color: var(--bs-primary);
  color: var(--bs-dark);
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes animate-on-scroll {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scale-up-img {
  from {
    transform: scale3d(0.3, 0.3, 0.3);
    opacity: 0;
  }
  to {
    transform: scale3d(1, 1, 1);
    opacity: 1;
  }
}
.animated-element.animate {
  animation: animate-on-scroll 1s ease-out;
}

@media (max-width: 991px) {
  .section {
    padding: 3rem 0;
  }
  .portfolio-box {
    min-height: 250px;
  }
  #my-name,
  #i-am {
    font-size: 1.5rem !important;
  }
  #typewriter,
  #typewriter-block {
    font-size: 2.5rem !important;
    line-height: 1.7;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}
