html, body {
  overflow-x: hidden;
}

/**
 * Enable smooth scrolling on the whole document
 */
html {
  scroll-behavior: smooth;
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/**
 * Add .section to every anchored element for scroll margin
 */
.section {
  scroll-margin-top: 2rem;
}

/* Header */
.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3rem;
  text-decoration: none;
}

@media (min-width: 48em) {
  .site-title {
    float: left;
  }
}

/* Hover effect for the Google Cloud professional ML Engineer link */
a.aboutme-b:hover {
  color: rgba(64, 139, 64, 0.6);
  text-decoration: none;
}
/* Zoom effect on the specified part of the About Me section */
.col-md-6:hover {
  transform: scale(1.02); /* Adjust the scale factor as needed */
  background-color: rgba(197, 196, 196, 0.2) ;
  transition: background-color 0.7s ease 0.15s, transform 0.7s ease-in-out; /* Delay background-color transition and add transform transition */

}
.certification-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px  rgba(197, 196, 196, 0.2) ;;
}

.certification-tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s;
  bottom: 125%; /* Position the tooltip above the link */
  left: 50%;
  transform: translateX(-50%);
}

.certification-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.university-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px rgba(197, 196, 196, 0.2);
}

.university-tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s; /* Matching transition timing */
  bottom: 125%; /* Position the tooltip above the link */
  left: 50%;
  transform: translateX(-50%);
}

.university-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}



.col-md-3.text-center:hover {
  transform: translateY(-15px) scale(1.09); /* Move the icon up by 10px */
  transition: transform 0.7s; /* Smooth transition */
  
}




.nav-link {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8) !important;

}

.social-nav .nav-link {
  padding: 1 0.5rem;
  font-size: 1.rem;
  line-height: 2.5rem;
}

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: rgba(72, 110, 131, 0.6) !important;
}

/* Hero (intro) section */
.intro-title {
  font-weight: 800;
}

@-webkit-keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

@keyframes animateWave {
  0% {
    transform: scale(1, 0);
  }
  100% {
    transform: scale(1, 1);
  }
}

.wave-bg {
  display: block;
  height: 220px;
  width: 100%;
  min-width: 600px;
  transform-origin: top;
  -webkit-animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
          animation: animateWave 2000ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  background-image: url("../images/wave-bg.svg");
  background-position: center;
  background-repeat: no-repeat;
}

img.avatar {
  border-radius: 30px;
}

/* Masonary grid for portfolio */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* Grid Item */
.grid-sizer,
.grid-item {
  width: 100%;
}

.grid-item {
  padding-bottom: 12px;
}

@media (min-width: 48em) {
  .grid-sizer,
  .grid-item {
    width: 25%;
  }
  .grid-item {
    float: left;
    padding: 6px;
  }
}

.grid-item img {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Portfolio */
.portolio-section .container {
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 0;
}

.portfolio-item figcaption {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.35s;
  transform: translate3d(0, 100%, 0);
}

.portfolio-item figcaption h4 {
  color: #222;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 3px;
}

.portfolio-item figcaption p {
  color: #444;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.portfolio-item:hover figcaption {
  transform: translate3d(0, 0, 0);
}

/* Portolio Caption */
#bp_container .bp-xc {
  background: #F6E05E !important;
}

#bp_caption a {
  text-decoration: none;
}

/* Footer section */
footer a:not(.nav-link) {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* Scroll Top */
#scrolltop {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease-in;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#scrolltop .btn {
  padding: 3px 11px;
  border-radius: 50%;
}

/* Additional utility styles */
.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
  padding-top: 2.5rem; /* Adjust this value for left padding */
}

.text-small {
  font-size: 0.875rem;
}

.text-uppercase {
  letter-spacing: 0.05em;
}

.hover-effect {
  transition: transform .18s ease-in-out;
}

.hover-effect:hover {
  transform: translateY(-2px);
}

.marker {
  position: relative;
  display: inline;
  width: auto;
}

.marker-center {
  padding: 0;
  
}

/* .marker:after {
  content: "";
  width: 125px;
  height: 30px;
  position: absolute;
  bottom: -25px;
  right: -30px;
  background-image: url("../images/marker.svg");
  background-repeat: no-repeat;
} */

.marker-center:after {
  bottom: -30px;
  left: 50%;
  margin-left: -60px;
  
}

@media (max-width: 575.98px) {
  .marker {
    padding-right: 0;
  }
  .marker:after {
    bottom: -30px;
    left: 50%;
    margin-left: -60px;
  }
}

.entry-title a {
  text-decoration: none;
}

.myrow{
  display: flex;
  align-items: center;
  justify-content: center;
}

.myCarousel {
  max-width: 1200px;
  width: 100%;
  height: 100%;

}

@media (min-width: 1260px) { /* Target screens with a width of 767px or more */
  .myrow {
    flex-wrap: nowrap; /* Enable flex-wrap */
    justify-content: center; /* Align items to the start of the container */
  }
  .myCarousel {
    max-width: 1350px;
    width: 1350px;
    height: 100%;
  }
  
}

  @-webkit-keyframes scroll {
  0% {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  }
  100% {
  -webkit-transform: translateX(calc(-250px * 8));
  transform: translateX(calc(-250px * 8));
  }
  }
  @keyframes scroll {
  0% {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  }
  100% {
  -webkit-transform: translateX(calc(-250px * 8));
  transform: translateX(calc(-250px * 8));
  }
  }
  .slider {
    display: flex;
    background: pr;
    justify-content: space-between;
    box-shadow: 0 2px 3px -2px rgba(0, 0, 0, 0.125);
    height: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  .slider::before, .slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 150px;
  position: absolute;
  width: 150px;
  z-index: 2;
  }
  .slider::after {
  right: 0;
  top: 0;
  -webkit-transform: rotateZ(180deg);
  transform: rotateZ(180deg);
  }
  .slider::before {
  left: 0;
  top: 0;
  }
  .slider .slide-track {
  -webkit-animation: scroll 18s linear infinite;
  animation: scroll 18s linear infinite;
  display: flex;
  width: calc(250px * 16);
  }
  .slider .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  /*height: 100px;*/
  width: 250px;
  }


  @keyframes scaleFadeIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.img-scale-fade-in {
    animation: scaleFadeIn 1s ease-out forwards;
    border-radius: 50%; /* Ensure the image remains rounded */
    
}

/* .date-container {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px; 
} */

/* Loader styles */
#loader {
  position: fixed;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff; /* Background color of the loading screen */
  display: flex;
  justify-content: center;
  align-items: center;
}

#loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 6px solid #3a3a3a; /* Color of the spinner */
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

/* Media queries for screens 767px and below */
@media (max-width: 767px) {
  .cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Adjust padding for smaller screens */
    text-align: center; /* Ensure text is centered */
    
  }

  .img-scale-fade-in {
    width: 160px; /* Adjust image size for mobile */
    height: 160px; /* Adjust height */
    margin-bottom: 0px; /* Reduce space below the image */
    padding-bottom: 0px;
  }

  .intro-title {
    font-size: 1.25rem; /* Adjust font size for smaller screens */
    margin-top: 0; /* Adjust margin for closer spacing */
    margin-bottom: 20px;
  }

  .lead {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
    margin-top: 0px; /* Adjust margin for closer spacing */
  }

  .social-nav .nav-link {
    margin: 0 60px 5px 4em; /* Adjust spacing between social icons */
    padding: 3px  ; /* Adjust spacing between social icons */
  
  }

  .btn {
    font-size: 0.8rem; /* Adjust button font size */
    padding: 6px 12px; /* Adjust button padding */
    margin-top: 10px; /* Space above the button */
  }

  
}

/* Media queries for very small screens 480px and below */
@media (max-width: 480px) {
  .cover {
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Adjust padding for smaller screens */
    text-align: center; /* Ensure text is centered */
  }

  .img-scale-fade-in {
    width: 140px; /* Further reduce image size */
    height: 140px; /* Adjust height */
    margin-bottom: 0px; /* Further reduce space below the image */
    margin-top: 0px;
    
  }

  .intro-title {
    font-size: 1rem; /* Further reduce font size */
    margin-top: 5px; /* Adjust margin for closer spacing */
    margin-bottom: 20px;

    justify-content: center;
    align-items: center;
    text-align: center; /* Ensure text is centered */



  }

  .lead {
    font-size: 0.8rem; /* Further reduce font size */
    margin-top: 0; /* Adjust margin for closer spacing */
    margin-bottom: 2em;
  }

  .social-nav .nav-link {
    margin: 0 60px; /* Adjust spacing between social icons */
    padding: 2em ; /* Adjust spacing between social icons */
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center icons horizontally */
    align-items: center; /* Center icons vertically */
  }

  .btn {
    font-size: 0.7rem; /* Further adjust button font size */
    padding: 5px 10px; /* Further adjust button padding */
    margin-top: 8px; /* Further space above the button */
  }
}
@media screen and (max-width: 600px) {
  .certification-tooltip::after {
      font-size: 10px;
      padding: 4px 8px;
  }
}

@media screen and (max-width: 400px) {
  .certification-tooltip::after {
      font-size: 9px;
      padding: 3px 7px;
      left: 50%;
      transform: translateX(-50%);
  }
}
