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

:root {
  --color-octo-red: #da2851;
  --color-tools-blue: #246cae;
  --color-tool-cards-orange: #e89a1e;
  --color-planner-red: #da2851;
  --color-executor-blue: #246cae;
}

.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.link-block a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(102, 126, 234, 0.4);
    background-color: #4a4a4a !important;
    border-color: #667eea !important;
}

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

.link-block a:active {
    transform: translateY(-4px) scale(1.02);
    transition: all 0.1s ease;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

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

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.results-carousel,
#main-results-carousel {
  overflow: hidden;
  position: relative;
}

.results-carousel .carousel-container,
#main-results-carousel .carousel-container {
  overflow: visible;
}

.results-carousel .box,
#main-results-carousel .box {
  display: flex;
  flex-direction: column;
  max-width: 95%;
  margin: 0 auto;
}

.results-carousel .box .content,
#main-results-carousel .box .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.results-carousel .box .content p,
#main-results-carousel .box .content p {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.results-carousel .box img,
#main-results-carousel .box img {
  height: 600px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Move carousel arrows outside the box */
.results-carousel .slider-navigation-previous,
.results-carousel .slider-navigation-next,
#main-results-carousel .slider-navigation-previous,
#main-results-carousel .slider-navigation-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(102, 126, 234, 0.9) !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1000 !important;
  color: white !important;
  font-size: 24px !important;
  cursor: pointer !important;
  border: none !important;
}

.results-carousel .slider-navigation-previous,
#main-results-carousel .slider-navigation-previous {
  left: 10px !important;
}

.results-carousel .slider-navigation-next,
#main-results-carousel .slider-navigation-next {
  right: 10px !important;
}

.results-carousel .slider-navigation-previous:hover,
.results-carousel .slider-navigation-next:hover,
#main-results-carousel .slider-navigation-previous:hover,
#main-results-carousel .slider-navigation-next:hover {
  background: rgba(102, 126, 234, 1) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.stats-image {
  max-height: 250px;
}

#org-banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.org-banner-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.org-banner-row-centered {
  justify-content: center;
}

.org-banner {
  max-width: 100%;
  height: 5em;
  margin: 0;
  padding: 10px;
  transition: transform 0.3s ease;
}

.org-banner:hover {
  transform: scale(1.05);
}

/* Case Study Styles */
.case-btn {
  margin: 0.25rem;
  transition: all 0.3s ease;
  border: 2px solid #3273dc;
  background-color: white;
  color: #3273dc;
  font-weight: 500;
}

.case-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.case-btn.is-primary {
  background-color: #3273dc;
  border-color: #3273dc;
  color: white;
}

.view-toggle-btn {
  transition: all 0.3s ease;
  font-weight: 600;
  border-width: 2px;
}

.view-toggle-btn.active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.view-toggle-btn.is-success {
  background-color: white;
  color: #48c774;
  border-color: #48c774;
}

.view-toggle-btn.is-success.active {
  background-color: #48c774;
  color: white;
}

.view-toggle-btn.is-danger {
  background-color: white;
  color: #f14668;
  border-color: #f14668;
}

.view-toggle-btn.is-danger.active {
  background-color: #f14668;
  color: white;
}

#case-content {
  min-height: 300px;
  padding: 1.5rem;
  line-height: 1.8;
}

#case-details-container {
  transition: all 0.4s ease;
}

@media screen and (max-width: 768px) {
  .org-banner-row {
    flex-direction: column;
    gap: 1rem;
  }

  .org-banner {
    height: 4em;
  }
}

.octotools::before {
  content: "OctoTools";
  font-weight: bold;
}

/* If you want the two-color version */
.octotools-colored::before {
  content: "Octo";
  color: var(--color-octo-red);
  font-weight: bold;
}

.octotools-colored::after {
  content: "Tools";
  color: var(--color-tools-blue);
  font-weight: bold;
}

/* AgentFlow Title Interactive Effects */
.clickable-title {
  transition: transform 0.3s ease;
  display: inline-block;
}

.clickable-title:hover {
  transform: scale(1.05);
}

.clickable-title:active {
  transform: scale(0.98);
}

/* Floating icons animation for Agent */
@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.3);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -40px) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100px) scale(1);
  }
}

.float-icon {
  position: absolute;
  font-size: 1.5rem;
  pointer-events: none;
  animation: floatUp 1.5s ease-out forwards;
  z-index: 100;
}

/* Flow wave SVG animation */
.flow-wave-svg {
  animation: flowSvgAppear 3.5s ease-in-out forwards;
}

@keyframes flowSvgAppear {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Individual curve animations with stroke-dashoffset */
.flow-curve {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation-name: drawCurve;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  /* Duration is set dynamically in JS based on curve length */
}

.flow-curve-1 {
  animation-delay: 0s;
  opacity: 0.9;
}

.flow-curve-2 {
  animation-delay: 0.1s;
  opacity: 0.7;
}

.flow-curve-3 {
  animation-delay: 0.2s;
  opacity: 0.85;
}

@keyframes drawCurve {
  0% {
    stroke-dashoffset: 1000;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -1000;
  }
}

/* Math equation overflow handling - only for specific equations */
.math-scrollable {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.5rem 0;
  display: block;
}

/* Add scrollbar styling for specific equations */
.math-scrollable::-webkit-scrollbar {
  height: 8px;
}

.math-scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.math-scrollable::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.math-scrollable::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Image hover effect - float up slightly (only for specific images) */
img.hover-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

img.hover-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


