:root {
  --theme-color: #8b4de0;
  --theme-color-light: #9a8ae0;
  --theme-color-dark: #8b4de0;
}

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

/* Hero section with dramatic fig1 background */
.hero {
  position: relative;
  min-height: 10vh;
  overflow: hidden;
  padding: 1rem 0 !important;
}

.hero .hero-body {
  padding: 0.5rem 0 !important;
}

/* Parallax background element */
.parallax-background {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh; /* Will be dynamically adjusted by JavaScript */
  background-image: url('../images/joined_fig_compressed.jpg') !important;
  background-size: 100% auto !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  filter: contrast(1.0) brightness(0.7) saturate(0.8) !important;
  z-index: -1 !important;
  will-change: transform !important;
  transform: translateY(0px) !important;
  background-color: #333 !important; /* Fallback color if image doesn't load */
}

/* Remove the duplicate background from ::after since we're using a separate element */

/* Dramatic overlay for better text readability - only on hero section */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
}

/* Ensure content is above overlay and filtered background */
.hero .hero-body {
  position: relative;
  z-index: 3;
}

/* Make the large figure much bigger */
.large-figure {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Remove all animations and movements */
* {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Exception for parallax background */
.parallax-background {
  transform: translateY(0px) !important;
}

/* But allow smooth color transitions for buttons only */
.external-link {
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Theme color styling for buttons and interactive elements */
.external-link {
  border-color: var(--theme-color-dark) !important;
  background-color: var(--theme-color-light) !important;
  color: white !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.external-link:hover {
  background-color: var(--theme-color-dark) !important;
  color: white !important;
  transform: none !important;
  animation: none !important;
}

/* Add theme color only to SD 3.5-Flash */
.publication-title {
  color: white;
  font-size: 2.5rem !important;
  margin-bottom: 0.5rem !important;
  margin-top: 0 !important;
  line-height: 1.1 !important;
}

/* Override Bulma title defaults */
.hero .title.is-1 {
  margin-bottom: 0.5rem !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

.title-purple {
  color: var(--theme-color);
}

/* Other titles should be white */
.title {
  color: white;
}

/* Author links should be white */
.publication-authors a {
   color: white !important;
}

/* Reduce spacing for author section */
.publication-authors {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
  padding: 0 !important;
}

/* Use light color sparingly for subtle accents */
.publication-authors a:hover {
  color: var(--theme-color-light) !important;
  text-decoration: underline;
}

/* Theme color for links in footer */
.footer a {
  color: var(--theme-color);
}

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

/* Apply white to affiliation names with shadow */
.publication-authors .author-block {
  color: white;
}

/* Make markers purple */
.publication-authors sup {
  color: var(--theme-color);
}

/* Make abstract and all content text white */
.section .content,
.section .content p,
.section h2,
.section h3 {
  color: white !important;
}

/* Make generation pipeline background transparent */
.section {
  background: transparent !important;
  position: relative;
  z-index: 2;
}

/* Add semi-transparent background to all content sections for better text readability */
.section .content {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

/* Add dramatic styling to buttons */
.external-link {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid white !important;
  color: white !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.external-link:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--theme-color) !important;
  color: var(--theme-color) !important;
  box-shadow: 0 6px 20px rgba(139, 77, 224, 0.3);
}