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;
  }
}

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

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

.nav-link:hover,
.nav-link:focus,
.active .nav-link {
  color: rgba(0, 0, 0, 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;
  background-size: 100% 100%;
}

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;
}

.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);
}

.quick-toolbar-wrapper {
  max-width: 420px;
}

.quick-toolbar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.toolbar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(59, 130, 246, 0.06));
  color: #334155;
  font-weight: 700;
}

.toolbar-header i {
  color: #4f46e5;
}

.toolbar-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0;
}

.toolbar-search-input::placeholder {
  color: #64748b;
}

.toolbar-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  color: #1f2937;
  text-decoration: none;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.toolbar-item:hover {
  background: rgba(79, 70, 229, 0.06);
  transform: translateX(3px);
  color: #111827;
}

.toolbar-icon {
  width: 1.45rem;
  min-width: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
}

.toolbar-icon img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  display: block;
}

.toolbar-label {
  font-weight: 600;
}

.toolbar-item[hidden] {
  display: none !important;
}

.toolbar-empty {
  padding: 0.9rem 1rem 1.1rem;
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
}

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

.marker-center {
  padding-right: 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;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1100;
}

.popup-overlay[hidden] {
  display: none;
}

.popup-toolbar {
  width: min(92vw, 430px);
  max-width: 430px;
}

#toolbar-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1060;
  transition: bottom 0.25s ease, transform 0.25s ease;
}

#toolbar-float.toolbar-above-scrolltop {
  bottom: 90px;
}

#toolbar-trigger,
#toolbar-float .btn {
  padding: 3px 11px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#toolbar-trigger {
  min-width: auto;
}

@media (max-width: 576px) {
  .popup-overlay {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .popup-toolbar {
    width: min(100%, 420px);
    max-width: 100%;
    max-height: 85vh;
  }

  .quick-toolbar {
    max-height: 85vh;
    overflow-y: auto;
  }

  #toolbar-float {
    right: 12px;
    bottom: 20px;
  }

  #toolbar-float.toolbar-above-scrolltop {
    bottom: 92px;
  }

  .toolbar-header {
    padding: 0.8rem 0.9rem;
  }

  .toolbar-item {
    padding: 0.75rem 0.9rem;
  }

  .toolbar-label {
    font-size: 0.95rem;
  }

  .toolbar-icon img {
    width: 1rem;
    height: 1rem;
  }
}

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

.project-link {
  text-decoration: none;
  font-weight: 600;
}