/* Non-critical CSS - Below the fold / Interactive elements */

/* Lenis smooth scroll */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Add missing keyframes for pulseGlow animation */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Grid pattern background */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 191, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 191, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Fix for main container to ensure proper scrolling */
main {
  position: relative;
  z-index: 1;
}

/* Hash span for section navigation */
.hash-span {
  margin-top: -100px;
  padding-bottom: 100px;
  display: block;
}

/* Line clamp utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Certificate grid styles */
.certificates-grid article {
  margin: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(145deg, rgba(21, 16, 48, 0.95), rgba(3, 0, 20, 0.95));
}

.certificates-grid article:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 
              0 0 20px rgba(0, 191, 255, 0.2);
}

/* Remove or adjust backdrop effects */
.certificates-grid > div[style*="backdrop-filter"] {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Improve image contrast */
.certificates-grid img {
  transition: transform 0.5s ease;
  filter: contrast(1.05) brightness(1.05);
}

.certificates-grid article:hover img {
  transform: scale(1.05);
}

/* Add a subtle pulsing effect to card borders on hover */
@keyframes pulseBorder {
  0% { border-color: rgba(0, 191, 255, 0.4); }
  50% { border-color: rgba(0, 191, 255, 0.8); }
  100% { border-color: rgba(0, 191, 255, 0.4); }
}

.certificates-grid article:hover {
  animation: pulseBorder 2s infinite;
}

/* Hide scrollbars utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
