/* NVIDIA Sans Font */
@font-face {
  font-family: 'NVIDIA Sans';
  src: url('../font/NVIDIASansVF_NALA_W_Wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Global Reset and Font Application */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'NVIDIA Sans', 'Arial', sans-serif !important;
  background: transparent;
  color: white;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
}

.title, .subtitle, h1, h2, h3, h4, h5, h6, p, div, span, a, button {
  font-family: 'NVIDIA Sans', 'Arial', sans-serif !important;
}

/* Black Background Theme */
.hero, .section, .hero-body {
  background: transparent !important;
  color: white;
}

.hero.is-light {
  background: transparent !important;
}

.content, .content p, .title, .subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.title.is-1, .title.is-3 {
  color: white !important;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #76b900 0%, #56ab2f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  font-size: 5rem;
  color: white;
  margin-bottom: 3rem;
  letter-spacing: 4px;
  font-weight: 600;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-family: 'NVIDIA Sans', sans-serif;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .loading-text {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
}

.loading-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
  border-top-color: rgba(255, 255, 255, 0.7);
  animation-duration: 2s;
  animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
  border-top-color: rgba(255, 255, 255, 0.5);
  animation-duration: 2.5s;
  animation-delay: -0.6s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* NVIDIA Green Gradient Text */
.gradient-text {
  background: linear-gradient(120deg, #76b900, #a8e063, #56ab2f, #76b900);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
  display: inline-block;
  filter: brightness(1.2);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Video Hover Effects */
.video-hover-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-hover-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(118, 185, 0, 0.3);
}

.video-hover-container video {
  transition: transform 0.3s ease;
}

.video-hover-container:hover video {
  transform: scale(1.02);
}

/* Fade In Sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Title Styles */
.publication-title {
  opacity: 1;
  transform: none;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  font-size: 3.5rem !important;
  line-height: 1.3 !important;
}

@media (max-width: 768px) {
  .publication-title {
    font-size: 2rem !important;
  }
}

html {
  scroll-behavior: smooth;
  background: #000;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(118, 185, 0, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 75% 70%, rgba(10, 61, 10, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(86, 171, 47, 0.1) 0%, transparent 70%);
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: gradientMesh 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientMesh {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  25% {
    background-position: 50% 30%, 60% 40%, 80% 20%;
  }
  50% {
    background-position: 100% 60%, 20% 0%, 30% 80%;
  }
  75% {
    background-position: 30% 100%, 80% 60%, 60% 30%;
  }
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
}

/* Section Titles */
.title.is-3 {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem !important;
  padding-bottom: 1rem;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
}

.hero .title.is-3 {
  display: block;
  text-align: center;
}

#abstract .title.is-3::after,
#video .title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #76b900, #a8e063, #56ab2f);
}

/* Spacing */
.hero.is-light.is-small {
  padding: 2rem 1.5rem;
  margin-bottom: 1rem;
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.hero-body {
  padding: 2rem 1.5rem !important;
}

.columns.is-centered.has-text-centered.fade-in-section {
  margin-bottom: 1.5rem;
}

.columns.is-centered.fade-in-section {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: #000 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer a:hover {
  color: #76b900 !important;
}

.title.is-5 {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 400 !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Pipeline Images */
.pipeline-image-container {
  position: relative;
  overflow: visible;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.pipeline-image-container:hover {
  transform: scale(1.02);
}

.pipeline-image-container img {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(118, 185, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.pipeline-image-container:hover img {
  box-shadow: 0 8px 30px rgba(118, 185, 0, 0.4);
}

/* Arrow Overlay */
.arrow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.flow-arrow {
  width: 60px;
  height: 60px;
  opacity: 0;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  z-index: 100;
  letter-spacing: 0.5px;
  font-weight: 400;
  text-align: center;
  opacity: 0;
  animation: fadeInScroll 1.5s ease 1s forwards, bounce 2s ease-in-out 2s infinite;
}

@keyframes fadeInScroll {
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll-indicator.hidden {
  opacity: 0 !important;
}

/* Robot Icon */
.animated-icon {
  display: inline-block;
  margin: 2rem auto;
  text-align: center;
}

.robot-icon {
  width: 80px;
  height: 80px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Data Particles */
.data-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #76b900;
  border-radius: 50%;
  opacity: 0;
  animation: particleFlow 4s linear infinite;
}

@keyframes particleFlow {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(100%, 100%);
  }
}

.particle:nth-child(1) { animation-delay: 0s; top: 20%; left: 0; }
.particle:nth-child(2) { animation-delay: 0.5s; top: 40%; left: 0; }
.particle:nth-child(3) { animation-delay: 1s; top: 60%; left: 0; }
.particle:nth-child(4) { animation-delay: 1.5s; top: 80%; left: 0; }
.particle:nth-child(5) { animation-delay: 2s; top: 30%; left: 0; }
.particle:nth-child(6) { animation-delay: 2.5s; top: 50%; left: 0; }
.particle:nth-child(7) { animation-delay: 3s; top: 70%; left: 0; }
.particle:nth-child(8) { animation-delay: 3.5s; top: 35%; left: 0; }

/* Glowing Border */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #76b900, #a8e063, #56ab2f, #76b900);
  background-size: 300% 300%;
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  animation: glowRotate 4s linear infinite;
  transition: opacity 0.3s ease;
}

.glow-border:hover::before {
  opacity: 0.6;
}

@keyframes glowRotate {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #76b900, transparent);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #a8e063, transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Pulse Dot */
.pulse-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #76b900;
  border-radius: 50%;
  margin: 0 0.5rem;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.7);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 10px rgba(118, 185, 0, 0);
  }
}

/* Video Grid */
.video-grid-item {
  opacity: 0;
  transform: translateY(30px);
}

.video-grid-item.visible {
  animation: slideUp 0.6s ease forwards;
}

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

/* Vertical Green Bar for Sections */
.section-with-bar {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.vertical-bar {
  width: 10px;
  min-width: 10px;
  height: 120px;
  background: #76b900;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.section-with-bar .title.is-3 {
  margin-bottom: 0.5rem !important;
}

/* Highlight Text Animation (like Bootstrap) */
.highlight-text {
  display: inline-block;
  position: relative;
  font-weight: 700;
  background: linear-gradient(120deg, #76b900, #a8e063, #56ab2f, #76b900);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite, pulseScale 2s ease-in-out infinite;
  filter: brightness(1.2);
}

/* Better Video Grid Layout */
.video-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.video-grid-2col video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(118, 185, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-grid-2col video:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(118, 185, 0, 0.4);
}

@media (max-width: 768px) {
  .video-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-with-bar {
    gap: 1rem;
  }
  
  .vertical-bar {
    height: 80px;
  }
}


/* Bulma carousel dark theme overrides */
.results-carousel .item {
  border-color: rgba(118, 185, 0, 0.3) !important;
}

.results-carousel video {
  display: block;
}

.slider-navigation-previous,
.slider-navigation-next {
  background-color: rgba(118, 185, 0, 0.85) !important;
  border-color: rgba(118, 185, 0, 0.85) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  width: 44px !important;
  height: 44px !important;
}

.slider-navigation-previous:hover,
.slider-navigation-next:hover {
  background-color: #76b900 !important;
  border-color: #76b900 !important;
  -webkit-transform: scale(1.15) !important;
  transform: scale(1.15) !important;
}

.slider-navigation-previous svg,
.slider-navigation-next svg {
  fill: white !important;
}

.slider-pagination .slider-page {
  background: rgba(255, 255, 255, 0.4) !important;
}

.slider-pagination .slider-page.is-active,
.slider-pagination .slider-page:hover {
  background: #76b900 !important;
}

