.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #0062E6, #33AEFF);
  border-radius: 9999px;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}



/* Typewriter Cursor */
.cursor {
  display: inline-block;
  margin-left: 2px;
  background: linear-gradient(to right, #0062E6, #33AEFF);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 300;
}


@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fade-left {
  animation: fade-left 0.6s ease-out forwards;
  opacity: 0;
}

.project-card {
  transition: all 0.3s ease;
}

.project-card.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

* {
  transition-property: background-color, border-color, color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.glass-card img {
  object-fit: cover;
  object-position: center;
}


.glass-card .text-slate-700 {
  color: #334155;
}

.glass-card .text-slate-600 {
  color: #475569;
}

@media (max-width: 768px) {
  .glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
  }
}

*:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

#navbar.scrolled {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor {
    animation: none !important;
  }
}

.bg-slate-50 .glass-card {
  background: rgba(255, 255, 255, 0.9);
}

section:not(.bg-slate-50) .glass-card {
  background: rgba(255, 255, 255, 0.85);
}