html {
  scroll-behavior: smooth;
}

/* Remove scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Project cards */
.project-card {
  width: 420px;          /* fixed width so text wraps */
  min-width: 420px;
  max-width: 420px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.project-card:hover {
  transform: translateY(-3px);
}
.project-card img {
  width: 100%;           /* image fills the card */
  object-fit: contain;
}

/* Responsive widths */
@media (max-width: 1024px) {
  .project-card {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
  }
}
@media (max-width: 768px) {
  .project-card {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
  }
}

/* Modals */
.modal {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}
.modal.flex {
  opacity: 1;
  transform: scale(1);
}
.modal-content {
  margin-top: 6vh;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 123, 255, 0.4);
  border-radius: 10px;
}

/* HERO styling */
.hero-section {
  position: relative;
}

/* background: grid + corner glows */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* two corner glows + a subtle grid */
  background-image:
    radial-gradient(circle at 0% 0%,
      rgba(56, 189, 248, 0.35),
      transparent 60%),
    radial-gradient(circle at 100% 100%,
      rgba(37, 99, 235, 0.35),
      transparent 60%),
    linear-gradient(
      rgba(15, 23, 42, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.18) 1px,
      transparent 1px
    );
  background-size:
    600px 600px,
    600px 600px,
    120px 120px,
    120px 120px;
  background-position:
    -150px -150px,
    calc(100% + 150px) calc(100% + 150px),
    0 0,
    0 0;
  opacity: 0.7;
  mix-blend-mode: screen;
}

/* soft glow behind the text */
.hero-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: radial-gradient(circle at center,
    rgba(56, 189, 248, 0.55),
    transparent 65%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* keep content above the effects */
.hero-content {
  position: relative;
  z-index: 10;
}

/* scroll indicator at bottom of hero */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.9);
  z-index: 10;
}

/* tone things down a bit on small screens */
@media (max-width: 640px) {
  .hero-section::before {
    opacity: 0.45;
    background-size:
      420px 420px,
      420px 420px,
      140px 140px,
      140px 140px;
  }
  .hero-section::after {
    width: 320px;
    height: 320px;
    opacity: 0.55;
  }
}