/*
  Bespoke Styles
  ==============
  These styles are for custom components and layouts that are not
  part of the standard MkDocs Material theme, such as the hero
  section and feature displays.
*/

/*body:has(.strands-splash-welcome) main.md-main {*/
/*  padding-top: 0 !important;*/
/*  margin-top: 0 !important;*/
/*}*/

/*body:has(.strands-splash-welcome) main.md-main .md-main__inner {*/
/*  margin: 0;*/
/*  max-width: unset;*/
/*}*/

/*body:has(.strands-splash-welcome) .md-top{*/
/*  display: none;*/
/*}*/

.md-content__inner:before {
  content: none !important;
}

/*body:has(.strands-splash-welcome) .md-content__inner {*/
/*  width: 100%;*/
/*  height: 100%;*/
/*  max-width: unset !important;*/
/*  margin: 0 !important;*/
/*  padding: 0 !important;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  align-items: center;*/
/*}*/

header[data-md-component="header"] {
  box-shadow: 0px 8px 16px 0px #0000000D;
}

.strands-splash-welcome {
  width: 100%;
  position: relative;
}

.strands-splash-welcome * {
  text-align: left !important;
}

.strands-splash-welcome-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 48px;
  margin: 200px 20px;
  margin-bottom: 80px;
  margin-top: 120px;
  position: relative;

  /* Frosted glass effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);

  /* Glass panel styling */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.strands-splash-welcome-content h1 {
  font-family: Figtree, sans-serif !important;
  font-weight: 500 !important;
  font-size: 4rem !important;
  line-height: 110.00000000000001% !important;
  letter-spacing: -3% !important;
  color: #0E0E0E !important;
  margin: 0 !important;
  -webkit-text-fill-color: unset !important;
}

.strands-splash-welcome-content-highlight {
  font-weight: 600;
}

.strands-splash-welcome-content-description {
  font-family: Figtree, sans-serif !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  line-height: 150% !important;
  letter-spacing: 0% !important;
  color: #1F1F1F !important;
  margin: 0 !important;
  max-width: unset !important;
}

/* Specific layout for the Get Started button to align the icon */
.strands-splash-welcome-content-cta .md-button--primary {
    transform: none !important;
}

.strands-section-wrap {
  width: 100vw;
  display: flex;
  justify-content: center;
}

.strands-hero-wrap {
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strands-splash-welcome {
  max-width: 1440px;
}

/* Feature cards in hero section */
.strands-hero-wrap .strands-features-list {
  padding: 64px 90px;
  padding-top: 0;
  max-width: 1440px;
  width: 100%;
  display: flex;
  gap: 25px;
  position: relative;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

.strands-feature {
  position: relative;
  list-style: none;
  min-width: 240px;
  height: 140px;
  /* Frosted glass effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  padding: 20px;
  flex: 1;
  overflow: hidden;
}

.strands-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: 0.5s;
}

.strands-feature::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
  opacity: 0;
}

.strands-feature:hover {
  flex: 1.5;
}

.strands-feature:hover::before {
  opacity: 1;
}

.strands-feature:hover::after {
  opacity: 0.5;
}

.strands-feature-icon {
  color: #777;
  transition: 0.5s;
  transition-delay: 0.25s;
  position: relative;
}

.strands-feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #777;
}

.strands-feature:hover .strands-feature-icon {
  transform: scale(0);
  transition-delay: 0s;
}

.strands-feature:hover .strands-feature-icon svg {
  stroke: var(--strands-dark-text);
}

.strands-feature-title {
  font-family: Figtree !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 120% !important;
  letter-spacing: 0% !important;
  color: #1F1F1F !important;
  margin-top: 12px !important;
  text-align: center;
  transition: 0.5s;
  transition-delay: 0.25s;
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
  max-width: 200px;
}

.strands-feature:hover .strands-feature-title {
  transform: scale(0);
  color: var(--strands-dark-text) !important;
  transition-delay: 0s;
}

.strands-feature-description {
  position: absolute;
  color: var(--strands-dark-text) !important;
  font-family: Figtree !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 150% !important;
  letter-spacing: 0% !important;
  text-align: center;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
  z-index: 1;
  padding: 0 20px;
}

.strands-feature:hover .strands-feature-description {
  transform: scale(1);
  transition-delay: 0.25s;
}

/* Responsive layouts for feature cards */
/* Desktop/Widest: 4x1 (default behavior above) */

/* Tablet/Middle: 2x2 layout */
@media (max-width: 1024px) {
  .strands-feature {
    flex: 1 1 calc(50% - 12.5px);
    min-width: 280px;
  }

  .strands-feature:hover {
    flex: 1 1 calc(50% - 12.5px);
  }

  .strands-hero-wrap .strands-features-list {
    justify-content: center;
  }
}

/* Mobile/Smallest: 1x4 layout (full width) */
@media (max-width: 768px) {
  .strands-feature {
    flex: 1 1 100%;
    min-width: unset;
    max-width: 100%;
  }

  .strands-feature:hover {
    flex: 1 1 100%;
  }

  .strands-hero-wrap .strands-features-list {
    padding: 32px 20px;
    padding-top: 0;
    gap: 20px;
  }
}

/* Infinite Scrolling Curves - CSS-Tricks Method */
.strands-curves-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: blur(4px);
  overflow: hidden;
}

.strands-curve-secondary {
  background: url("curve-secondary.svg") repeat-y;
  height: 200vw;
  width: 291px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(110deg) scale(2);
  animation: scroll-secondary 90s linear infinite;
  z-index: -1;
}

.strands-curve-primary {
  background: url("curve-primary.svg") repeat-y;
  height: 200vw;
  width: 290px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(110deg) scale(1.5);
  animation: scroll-primary 36s linear infinite;
}

@keyframes scroll-primary {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -344px; /* Move one image height */
  }
}

@keyframes scroll-secondary {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -344px; /* Move one image height */
  }
}

[data-md-color-scheme="slate"] .strands-splash-welcome-content h1 {
    color: white !important;
}

[data-md-color-scheme="slate"] .strands-splash-welcome-content-description {
    color: white !important;
}

[data-md-color-scheme="slate"] .strands-splash-welcome-content {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Icon Styling */
.strands-theme-toggle svg {
  fill: #555555;
}

[data-md-color-scheme="slate"] .strands-theme-toggle svg {
  fill: #777777;
}

[data-md-color-scheme="slate"] .strands-feature {
    /* Frosted glass effect for dark mode */
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-md-color-scheme="slate"] .strands-feature:hover .strands-feature-icon svg {
    stroke: var(--strands-light-text);
}

[data-md-color-scheme="slate"] .strands-feature-title {
    color: var(--strands-light-text) !important;
}

[data-md-color-scheme="slate"] .strands-feature:hover .strands-feature-title {
    color: var(--strands-dark-text) !important;
}

[data-md-color-scheme="slate"] .strands-feature-description {
    color: var(--strands-light-text) !important;
}

/* Responsive font sizing for hero h1 */
@media (max-width: 1024px) {
  .strands-splash-welcome-content h1 {
    font-size: 3rem !important;
  }

  .strands-splash-welcome-content {
    margin-top: 60px;
    margin-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .strands-splash-welcome-content h1 {
    font-size: 2rem !important;
  }

  .strands-splash-welcome-content {
    margin-top: 40px;
    margin-bottom: 40px;
  }
}
