/* Modern CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-subtle: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Modern Button Styles */
.button {
  border-radius: var(--border-radius) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
}

.button.is-dark {
  background: var(--text-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.button.is-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--primary-color) !important;
}

.button.is-dark:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.footer .icon-link {
    font-size: 25px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer .icon-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link-block a {
    margin: 8px 4px;
}

.dnerf {
  font-variant: small-caps;
}


/* Hero Section Modernization */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.teaser {
  font-family: 'Inter', sans-serif;
}


/* Publication Content Styling */
.publication-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
}

.publication-banner {
  max-height: 70vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin: 2rem 0;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-lg);
}

.publication-header .hero-body {
  padding: 6rem 1.5rem 4rem;
}

.publication-authors {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.publication-venue {
    color: var(--text-secondary);
    width: fit-content;
    font-weight: 600;
    background: var(--background-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: inline-block;
}

.publication-awards {
    color: #ef4444;
    width: fit-content;
    font-weight: 700;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #ef4444;
    margin-top: 1rem;
}

.publication-authors a {
   color: var(--primary-color) !important;
   text-decoration: none;
   font-weight: 600;
   transition: var(--transition);
   position: relative;
}

.publication-authors a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-accent);
    transition: var(--transition);
}

.publication-authors a:hover::after {
    width: 100%;
}

.publication-authors a:hover {
    color: var(--primary-hover) !important;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

.publication-banner img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.publication-banner img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Modern Video and Carousel Styling */
.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.publication-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
}

.publication-body img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.publication-body img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.results-carousel {
  overflow: hidden;
  padding: 1rem 0;
}

.results-carousel .item {
  margin: 1rem;
  overflow: hidden;
  padding: 1.5rem;
  font-size: 0;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.results-carousel .item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.results-carousel .item img,
.results-carousel video {
  margin: 0;
  border-radius: var(--border-radius);
  width: 100%;
  height: auto;
}

.results-carousel .subtitle {
  font-size: 1rem !important;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 500;
}

/* Pagination and Misc Improvements */
.slider-pagination .slider-page {
  background: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.slider-pagination .slider-page.is-active {
  background: var(--primary-hover);
  transform: scale(1.2);
}

.eql-cntrb { 
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* Section Titles */
.title.is-3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  color: var(--text-primary);
  margin-bottom: 2rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Content Improvements */
.content.has-text-justified {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 1.5rem;
}

/* Footer Improvements */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

.footer .content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* BibTeX Styling */
pre {
  background: var(--background-accent) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--border-radius) !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

code {
  background: var(--background-accent) !important;
  color: var(--text-primary) !important;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace !important;
}

/* BibTeX Section Improvements */
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

.copy-bibtex-btn.copied .copy-text::after {
  content: "ied!";
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}


/* More Works Dropdown */
.more-works-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.more-works-btn {
  background: var(--background-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--background-secondary);
  border-color: var(--primary-color);
}

.more-works-btn .dropdown-arrow {
  transition: var(--transition);
  font-size: 0.8rem;
}

.more-works-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.more-works-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 400px;
  max-width: 90vw;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  max-height: 70vh;
  overflow-y: auto;
}

.more-works-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--background-accent);
  color: var(--text-primary);
}

.works-list {
  padding: 1rem;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.work-item:hover {
  background: var(--background-accent);
  transform: translateX(4px);
}

.work-info h5 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.work-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.work-venue {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

.work-item .fas {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}


/* Mobile Responsive Improvements */
@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-header .hero-body {
    padding: 3rem 1rem 2rem;
  }
  
  .publication-title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .publication-authors {
    font-size: 1rem !important;
  }
  
  .button {
    margin: 0.25rem !important;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
  
  .more-works-container {
    bottom: 2rem;
    right: 1rem;
    top: auto;
  }
  
  .more-works-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .more-works-dropdown {
    width: calc(100vw - 2rem);
    right: -1rem;
    bottom: calc(100% + 0.5rem);
    top: auto;
  }
  
  .results-carousel .item {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .teaser .hero-body {
    padding: 1rem;
  }
  
  .content.has-text-justified {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2rem !important;
  }
  
  .hero-body {
    padding: 1.5rem 0.75rem;
  }
  
  .more-works-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 1000;
  }
  
  .more-works-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .more-works-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    width: calc(100vw - 2rem);
    max-width: 90vw;
  }
  
  .link-block {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet Responsive */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-body {
    padding: 3rem 2rem;
  }
  
  .publication-header .hero-body {
    padding: 4rem 2rem 3rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .section {
  animation: fadeInUp 0.6s ease-out;
}

/* Improved focus states for accessibility */
.button:focus,
.related-works-btn:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


/* Print styles */
@media print {
  .more-works-container {
    display: none;
  }

  .hero, .section {
    animation: none;
  }

  .button {
    background: transparent !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
  }
}


/* =========================================================
   Narrative Weaver — custom polish
   ========================================================= */

/* Global page background: soft white with a faint dot grid */
body {
  background-color: #fbfcff;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(99, 102, 241, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  background-attachment: fixed;
}

/* Hero (title) section: layered mesh-gradient blobs + soft fade-out at bottom */
section.hero:first-of-type {
  position: relative;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(55% 55% at 85% 5%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(70% 70% at 50% 100%, rgba(56, 189, 248, 0.18), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  overflow: hidden;
}

/* Floating glow blobs behind the hero content */
section.hero:first-of-type::before,
section.hero:first-of-type::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
section.hero:first-of-type::before {
  width: 480px; height: 480px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  animation: floatBlob 14s ease-in-out infinite alternate;
}
section.hero:first-of-type::after {
  width: 420px; height: 420px;
  top: -80px; right: -100px;
  background: radial-gradient(circle, #f0abfc 0%, transparent 70%);
  animation: floatBlob 16s ease-in-out infinite alternate-reverse;
}
@keyframes floatBlob {
  0%   { transform: translate(0, 0)        scale(1);   }
  100% { transform: translate(40px, 30px)  scale(1.1); }
}
section.hero:first-of-type > * { position: relative; z-index: 1; }

/* Soft fade between hero and teaser */
section.hero:first-of-type::after {
  /* keep existing blob; fade handled below by teaser */
}

section.hero:first-of-type .hero-body {
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.publication-title {
  font-size: 2.6rem !important;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1e293b 0%, #2563eb 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CVPR 2026 venue badge */
.venue-badge {
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Author / affiliation polish */
.publication-authors {
  font-size: 1.05rem !important;
  margin-bottom: 0.75rem !important;
}
.publication-authors .author-block {
  margin: 0 0.4rem;
}
.publication-authors a {
  color: #1e293b !important;
}
.publication-authors a:hover {
  color: #2563eb !important;
}
.affiliations {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Action buttons row */
.publication-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.publication-links .button.is-dark {
  padding: 0.55rem 1.25rem !important;
  font-size: 0.95rem !important;
}

/* ---------- Teaser video: smaller + centered ---------- */
.teaser {
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
}
.teaser .hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.teaser-video-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.35);
  background: #0f172a;
}
.teaser-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}
.teaser .subtitle {
  max-width: 760px;
  margin: 1.25rem auto 0 !important;
  font-size: 1.05rem !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
  line-height: 1.65;
}

/* ---------- Alternating section backgrounds ---------- */
/* Override Bulma's flat is-light with a soft tinted gradient */
.hero.is-light,
section.hero.is-light {
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 50%, #faf5ff 100%) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.15) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
}

/* Default section (white) gets a barely-there gradient too */
section.section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

/* ---------- Section figures (method / dataset / results) ---------- */
.figure-card {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 35px -18px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.figure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -20px rgba(15, 23, 42, 0.45);
}
.figure-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Demo video carousel: tighter cards, capped video size ---------- */
.demo-carousel .item {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background-primary);
  padding: 1rem;
}
.demo-carousel video {
  width: 100%;
  max-width: 640px;
  max-height: 420px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--border-radius);
  background: #0f172a;
}

/* Section vertical rhythm */
.section { padding: 4rem 1.5rem; }
.section .title.is-3 { margin-bottom: 1.5rem !important; }

/* Abstract: tighter reading column */
#abstract .content,
.abstract-content {
  max-width: 820px;
  margin: 0 auto;
}

/* BibTeX block */
#BibTeX {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
#BibTeX pre {
  font-size: 0.85rem !important;
  line-height: 1.6;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #e2e8f0 !important;
  border: none !important;
  box-shadow: 0 14px 35px -18px rgba(15, 23, 42, 0.55) !important;
}
#BibTeX pre code {
  background: transparent !important;
  color: #e2e8f0 !important;
}

/* Footer: top accent line + soft gradient */
.footer {
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%) !important;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
}

/* Mobile tweaks for new elements */
@media screen and (max-width: 768px) {
  .publication-title { font-size: 1.9rem !important; }
  .teaser-video-wrap { max-width: 100%; }
  .demo-carousel video { max-height: 320px; }
  .venue-badge { font-size: 0.85rem; padding: 0.35rem 0.9rem; }
  body { background-size: 18px 18px; }
  section.hero:first-of-type::before,
  section.hero:first-of-type::after { display: none; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  section.hero:first-of-type::before,
  section.hero:first-of-type::after { animation: none; }
}


/* =========================================================
   Glassmorphism layer
   ========================================================= */

/* Base glass utility */
.glass-card {
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
}

/* --- Abstract glass card --- */
.abstract-section {
  position: relative;
  overflow: hidden;
  /* stronger gradient so the blur has something to show */
  background:
    radial-gradient(ellipse at 20% 40%, rgba(99, 102, 241, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 60%, rgba(236, 72, 153, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #ecfeff 100%) !important;
  border-top: none !important;
  border-bottom: none !important;
}

/* Floating decorative blobs behind the abstract to feed the blur */
.abstract-section::before,
.abstract-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.abstract-section::before {
  width: 340px; height: 340px;
  top: -60px; left: -40px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45), transparent 70%);
  filter: blur(60px);
}
.abstract-section::after {
  width: 280px; height: 280px;
  bottom: -50px; right: -30px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.40), transparent 70%);
  filter: blur(60px);
}
.abstract-section > * { position: relative; z-index: 1; }

.abstract-card {
  padding: 2.5rem 2.5rem 2rem;
  transition: var(--transition);
}
.abstract-card:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 12px 40px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}
.abstract-card .title.is-3 {
  margin-bottom: 1.25rem !important;
}

/* --- Hero action buttons: subtle glass pill --- */
.publication-links .button.is-dark {
  background: rgba(30, 41, 59, 0.72) !important;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.publication-links .button.is-dark:hover {
  background: rgba(37, 99, 235, 0.82) !important;
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* --- Demo video carousel items: glass border --- */
.demo-carousel .item {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 8px 28px rgba(31, 38, 135, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.demo-carousel .item:hover {
  background: rgba(255, 255, 255, 0.60) !important;
  box-shadow:
    0 12px 36px rgba(31, 38, 135, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Make the demo section background richer so the glass shows up */
section.hero.is-small.is-light {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 40%, rgba(244, 114, 182, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #ecfeff 100%) !important;
}

/* Mobile: tone down the glass (perf + readability) */
@media screen and (max-width: 768px) {
  .abstract-card { padding: 1.5rem 1.25rem 1.25rem; }
  .abstract-section::before,
  .abstract-section::after { display: none; }
  .glass-card {
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
  }
}



