/* 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: 10; /* 16px * 0.67 */
  background-color: transparent;
  -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 {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.teaser { 
  margin-top: -5rem;
  font-family: 'Inter', sans-serif;
}

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


/* 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: -0.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: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.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;
}

/* Takeaways Block */
.takeaways-block {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid #4f46e5;
}

.takeaways-content {
  color: white;
}

.takeaways-title {
  color: white !important;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.takeaways-text {
  color: white !important;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  font-family: 'Inter', sans-serif !important;
}

/* Footer Improvements */
.footer {
  background: rgba(248, 250, 252, 0.85);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.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: rgba(255, 255, 255, 0.95);
  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;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: slideInDown 0.6s ease-out 0.5s both;
}

.more-works-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgba(248, 250, 252, 0.98);
  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: rgba(255, 255, 255, 0.98);
  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;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.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: 1.2rem;
  }

  .publication-authors {
    font-size: 1.1rem !important;
  }

  .award-banner {
    font-size: 1rem !important;
  }
}

@media screen and (max-width: 480px) {
  .publication-title {
    font-size: 2.2rem !important;
  }

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

  .content.has-text-justified {
    font-size: 1.1rem;
  }

  .publication-authors {
    font-size: 1rem !important;
  }

  .award-banner {
    font-size: 0.95rem !important;
  }
  
  .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;
  }

  .publication-title {
    font-size: 2.8rem !important;
  }

  .publication-authors {
    font-size: 1.15rem !important;
  }

  .award-banner {
    font-size: 1.05rem !important;
  }

  .content.has-text-justified {
    font-size: 1.25rem;
  }
}

/* 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;
  background: transparent !important;
}

/* Центральная колонка с контентом - белый фон для читаемости */
.container.is-max-desktop {
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
  z-index: 1;
}

/* 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;
  }
}


/* ========================================
   ANIMATED PARALLAX BACKGROUND
   ======================================== */

/* Main parallax container */
.parallax-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  pointer-events: none;
}

/* Parallax layers for depth effect */
.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Floating shapes with different forms and sizes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation-duration: 20s, 25s, 30s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  transform-origin: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Different shape types */
.floating-shape.circle {
  border-radius: 50%;
}

.floating-shape.square {
  border-radius: 20%;
}

.floating-shape.triangle {
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid;
}

/* Size variations */
.floating-shape.small {
  width: 60px;
  height: 60px;
}

.floating-shape.medium {
  width: 120px;
  height: 120px;
}

.floating-shape.large {
  width: 180px;
  height: 180px;
}

.floating-shape.triangle.small {
  border-left-width: 30px;
  border-right-width: 30px;
  border-bottom-width: 52px;
}

.floating-shape.triangle.medium {
  border-left-width: 60px;
  border-right-width: 60px;
  border-bottom-width: 104px;
}

.floating-shape.triangle.large {
  border-left-width: 90px;
  border-right-width: 90px;
  border-bottom-width: 156px;
}

/* Color variations - different shades of gray */
.parallax-layer:nth-child(1) .floating-shape {
  background: #e2e8f0;
  border-bottom-color: #94a3b8;
  animation-name: float1, rotate1, pulse1;
}

.parallax-layer:nth-child(2) .floating-shape {
  background: #cbd5e1;
  border-bottom-color: #64748b;
  animation-name: float2, rotate2, pulse2;
}

.parallax-layer:nth-child(3) .floating-shape {
  background: #94a3b8;
  border-bottom-color: #475569;
  animation-name: float3, rotate3, pulse3;
}

.parallax-layer:nth-child(4) .floating-shape {
  background: #64748b;
  border-bottom-color: #334155;
  animation-name: float4, rotate4, pulse4;
}

.parallax-layer:nth-child(5) .floating-shape {
  background: #475569;
  border-bottom-color: #1e293b;
  animation-name: float5, rotate5, pulse5;
}

/* Floating animations with different speeds for parallax effect */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  25% { transform: translateY(-20px) translateX(10px) scale(1.05); }
  50% { transform: translateY(-10px) translateX(-5px) scale(0.95); }
  75% { transform: translateY(-30px) translateX(15px) scale(1.02); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  20% { transform: translateY(15px) translateX(-10px) scale(1.1); }
  40% { transform: translateY(-5px) translateX(8px) scale(0.9); }
  60% { transform: translateY(25px) translateX(-15px) scale(1.05); }
  80% { transform: translateY(-15px) translateX(5px) scale(0.95); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  30% { transform: translateY(-25px) translateX(20px) scale(1.08); }
  60% { transform: translateY(10px) translateX(-12px) scale(0.92); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  15% { transform: translateY(20px) translateX(-8px) scale(1.12); }
  35% { transform: translateY(-10px) translateX(15px) scale(0.88); }
  65% { transform: translateY(30px) translateX(-20px) scale(1.03); }
}

@keyframes float5 {
  0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
  33% { transform: translateY(-15px) translateX(12px) scale(1.15); }
  66% { transform: translateY(20px) translateX(-18px) scale(0.85); }
}

/* Rotation animations */
@keyframes rotate1 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

@keyframes rotate2 {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(90deg); }
  50% { transform: rotate(180deg); }
  75% { transform: rotate(270deg); }
}

@keyframes rotate3 {
  0%, 100% { transform: rotate(0deg); }
  33% { transform: rotate(120deg); }
  66% { transform: rotate(240deg); }
}

@keyframes rotate4 {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(72deg); }
  40% { transform: rotate(144deg); }
  60% { transform: rotate(216deg); }
  80% { transform: rotate(288deg); }
}

@keyframes rotate5 {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-180deg); }
}

/* Pulsing scale animations */
@keyframes pulse1 {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.4; }
}

@keyframes pulse2 {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.45; }
}

@keyframes pulse3 {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.38; }
}

@keyframes pulse4 {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.25; }
}

@keyframes pulse5 {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* Responsive adjustments for mobile devices */
@media screen and (max-width: 768px) {
  .floating-shape.small {
    width: 40px;
    height: 40px;
  }

  .floating-shape.medium {
    width: 80px;
    height: 80px;
  }

  .floating-shape.large {
    width: 120px;
    height: 120px;
  }

  .floating-shape.triangle.small {
    border-left-width: 20px;
    border-right-width: 20px;
    border-bottom-width: 35px;
  }

  .floating-shape.triangle.medium {
    border-left-width: 40px;
    border-right-width: 40px;
    border-bottom-width: 70px;
  }

  .floating-shape.triangle.large {
    border-left-width: 60px;
    border-right-width: 60px;
    border-bottom-width: 104px;
  }

  /* Reduce animation complexity on mobile */
  @keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-10px) translateX(5px) scale(1.02); }
  }
  @keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-10px) translateX(5px) scale(1.02); }
  }
  @keyframes float3 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-10px) translateX(5px) scale(1.02); }
  }
  @keyframes float4 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-10px) translateX(5px) scale(1.02); }
  }
  @keyframes float5 {
    0%, 100% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-10px) translateX(5px) scale(1.02); }
  }
}

/* Like Button Styles - Bottom Left Corner */
.like-container-bottom-left {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideInUp 0.6s ease-out 0.3s both;
}

.like-container-bottom-left:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.98) !important;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#likeBtn {
  font-family: 'Inter', sans-serif !important;
  gap: 0.5rem !important;
}

#likeBtn:hover {
  transform: none !important;
}

#likeIcon {
  transition: var(--transition);
  flex-shrink: 0;
}

#likeText {
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

#likeStats {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600;
  color: var(--text-secondary) !important;
  white-space: nowrap;
}

/* Interactive image containers */
.image-container {
  cursor: pointer;
  margin: 1rem 0;
}

.interactive-image {
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Enhanced hover effects for images */
.publication-body img:hover,
img[alt*="results"]:hover,
.interactive-image:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* Interactive section animations */
.section {
  transition: all 0.3s ease;
}

.section:hover {
  background: rgba(248, 250, 252, 0.3) !important;
}

/* Enhanced takeaway block */
.takeaways-block {
  position: relative;
  overflow: hidden;
}

.takeaways-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.8s ease;
}

.takeaways-block:hover::before {
  left: 100%;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-shape {
    animation: none !important;
  }

  .parallax-background {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  }

  /* Make sure content containers remain readable for reduced motion users */
  .container.is-max-desktop {
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .footer {
    background: rgba(248, 250, 252, 0.95) !important;
  }

  /* Disable like button animations for reduced motion */
  .like-container-bottom-left:hover,
  #likeBtn {
    transform: none !important;
  }

  /* Disable interactive effects for reduced motion */
  .interactive-image:hover,
  .section:hover,
  .takeaways-block:hover::before,
  .like-container-bottom-left,
  .more-works-btn {
    animation: none !important;
    transform: none !important;
  }
}

/* Mobile responsiveness for like button */
@media screen and (max-width: 768px) {
  .like-container-bottom-left {
    bottom: 1.5rem;
    left: 1rem;
    padding: 0.75rem 1rem;
  }

  #likeBtn {
    font-size: 0.9rem;
  }

  #likeIcon {
    font-size: 1.25rem;
  }

  #likeText {
    font-size: 0.9rem;
  }

  /* Like stats hidden from UI */
}

@media screen and (max-width: 480px) {
  .like-container-bottom-left {
    bottom: 1rem;
    left: 0.75rem;
    padding: 0.6rem 0.8rem;
  }

  #likeBtn {
    gap: 0.3rem;
  }

  #likeText {
    display: none; /* Hide text on very small screens */
  }

  /* Like stats hidden from UI */
}



