body {
  font-family: "Inter", sans-serif;
  padding-top: 4px;
}

/* Gallery Hover Effects */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

/* Modal Animation */
#gallery-modal {
  transition: opacity 0.3s ease;
}
#gallery-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
#gallery-modal.flex {
  opacity: 1;
  pointer-events: auto;
}

/* Animation from contact page */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Fade in up animation */
.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item:hover {
  transform: scale(1.05);
}




#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: white;
  z-index: 9999;
  pointer-events: none;
}

#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #f97316 50%, #2563eb 100%);
  background-size: 200% 100%;
  transition: width 0.15s ease-out;
  animation: gradientShift 3s ease infinite;
  will-change: width;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Header adjustment */
header {
  margin-top: 4px;
}
