/* Linktree Landing Page - Level 1 - Inspired by linktree-template */
body,
html {
  -ms-scroll-chaining: none;
  overscroll-behavior: none;
  margin: 0;
  padding: 0;
  background-color: #191d2b;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

/* Snowfall / Stars Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#stars1 {
  width: 1px;
  height: 1px;
  background: transparent;
  animation: animStar 120s linear infinite;
  box-shadow:
    779px 1331px #fff,
    324px 42px #fff,
    303px 586px #fff,
    1312px 276px #fff,
    451px 625px #fff,
    521px 1931px #fff,
    1087px 1871px #fff,
    36px 1546px #fff,
    132px 934px #fff,
    1698px 901px #fff,
    1418px 664px #fff,
    1448px 1157px #fff,
    1084px 232px #fff,
    347px 1776px #fff,
    1722px 243px #fff,
    1629px 835px #fff,
    479px 969px #fff,
    1231px 960px #fff,
    586px 384px #fff,
    164px 527px #fff,
    8px 646px #fff,
    1150px 1126px #fff,
    665px 1357px #fff,
    1556px 1982px #fff,
    1260px 1961px #fff,
    1675px 1741px #fff,
    1843px 1514px #fff,
    718px 1628px #fff,
    242px 1343px #fff,
    1497px 1880px #fff;
}

#stars2 {
  width: 2px;
  height: 2px;
  background: transparent;
  animation: animStar 180s linear infinite;
  box-shadow:
    1935px 816px #fff,
    1428px 60px #fff,
    355px 335px #fff,
    1594px 158px #fff,
    90px 60px #fff,
    1553px 162px #fff,
    1239px 1825px #fff,
    1945px 587px #fff,
    749px 1785px #fff,
    1987px 1172px #fff,
    1301px 1237px #fff,
    1039px 342px #fff,
    1585px 1481px #fff,
    995px 1048px #fff,
    524px 932px #fff,
    214px 413px #fff,
    1701px 1300px #fff,
    1037px 1613px #fff,
    1871px 996px #fff,
    1360px 1635px #fff,
    1110px 1313px #fff,
    412px 1783px #fff,
    1949px 177px #fff,
    903px 1854px #fff,
    700px 1936px #fff,
    378px 125px #fff,
    308px 834px #fff,
    1118px 962px #fff,
    1350px 1929px #fff,
    781px 1811px #fff,
    561px 137px #fff,
    757px 1148px #fff,
    1670px 1979px #fff,
    343px 739px #fff,
    945px 795px #fff,
    576px 1903px #fff,
    1078px 1436px #fff,
    1583px 450px #fff,
    1366px 474px #fff,
    297px 1873px #fff,
    192px 162px #fff,
    1624px 1633px #fff,
    59px 453px #fff,
    82px 1872px #fff,
    1933px 498px #fff,
    1966px 1974px #fff,
    1975px 1688px #fff;
}

#stars3 {
  width: 3px;
  height: 3px;
  background: transparent;
  animation: animStar 240s linear infinite;
  box-shadow:
    779px 314px #fff,
    1858px 1543px #fff,
    73px 1507px #fff,
    1693px 975px #fff,
    1683px 108px #fff,
    1768px 1654px #fff,
    654px 14px #fff,
    494px 171px #fff,
    1689px 1895px #fff,
    1660px 263px #fff,
    1031px 903px #fff,
    1203px 1393px #fff,
    1333px 1421px #fff,
    1113px 41px #fff,
    1206px 1645px #fff,
    1325px 1635px #fff,
    142px 388px #fff,
    572px 215px #fff,
    1535px 296px #fff,
    1419px 407px #fff,
    1379px 1003px #fff,
    329px 469px #fff,
    1791px 1652px #fff,
    935px 1802px #fff,
    1330px 1820px #fff,
    421px 1933px #fff,
    828px 365px #fff,
    275px 316px #fff,
    707px 960px #fff,
    1605px 1554px #fff,
    625px 58px #fff,
    717px 1697px #fff;
}

@-webkit-keyframes animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}
@keyframes animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

.min-h-full {
  min-height: 100vh;
  width: 100%;
}

.flex-h-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.flex-both-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.m-auto {
  margin: auto;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-48 {
  margin-top: 48px;
}

.py-10 {
  padding: 10px;
}

.text-center {
  text-align: center;
}

.background-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-full-wrap {
  max-width: 500px;
  width: calc(100% - 40px);
  z-index: 10;
  padding: 0 20px 176px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-full-wrap {
    width: calc(100% - 30px);
    max-width: 100%;
    padding: 0 15px 100px;
  }
}

@media (max-width: 480px) {
  .page-full-wrap {
    width: calc(100% - 20px);
    padding: 0 10px 80px;
  }
}

.display-image {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: "Inter", sans-serif;
  text-transform: none;
  margin-bottom: 0;
}

.page-item-wrap {
  margin: 16px 0;
  transition: transform 0.2s cubic-bezier(0.17, 0.67, 0.29, 2.71) 0s;
  border-radius: 12px;
}

.page-item-wrap:hover {
  transform: translate3d(0px, 0px, 0px) scale(1.015);
}

.page-item-wrap:last-child {
  margin-bottom: 0;
}

.page-item {
  border: 0px solid #ffffff;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0px 6px 14px -6px rgba(24, 39, 75, 0.12),
    0px 10px 32px -4px rgba(24, 39, 75, 0.1),
    inset 0px 0px 2px 1px rgba(24, 39, 75, 0.05);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.page-item-each {
  text-decoration: none;
  color: #1f365c;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
  border-radius: 12px;
  min-height: 60px;
  overflow: hidden;
  z-index: 10;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.link-each-image {
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.item-title {
  flex: 1;
  word-break: break-word;
  text-align: center;
}

.page-text-font {
  font-family: "Inter", sans-serif;
  text-transform: none;
}

.page-text-color {
  color: #fff;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.landing-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* Hide default Grav elements */
.lt-landing #preloader,
.lt-landing .navbar,
.lt-landing header,
.lt-landing footer:not(.landing-footer) {
  display: none !important;
}

/* Animated Footer from footerlanding.html.twig */
.footer {
  position: relative;
  width: 100%;
  background: #94c7d5;
  min-height: 100px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 100px;
}

.social-icon,
.menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
  padding: 0;
}

.social-icon__item,
.menu__item {
  list-style: none;
}

.social-icon__link {
  font-size: 2rem;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
}

.social-icon__link:hover {
  transform: translateY(-10px);
}

.menu__link {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 10px;
  display: inline-block;
  transition: 0.5s;
  text-decoration: none;
  opacity: 0.75;
}

.menu__link:hover {
  opacity: 1;
}

.footer p.copyright {
  color: #fff;
  margin: 15px 0 10px 0;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
}

.wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"%3E%3Cpath fill="%2394c7d5" opacity="1" d="M0,50 C150,100 350,0 500,50 C650,100 850,0 1000,50 L1000,100 L0,100 Z" /%3E%3C/svg%3E');
  background-size: 1000px 100px;
}

.wave#wave1 {
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWaves 4s linear infinite;
}

.wave#wave2 {
  z-index: 999;
  opacity: 0.5;
  bottom: 10px;
  animation: animate 4s linear infinite !important;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"%3E%3Cpath fill="%23efc1e6" opacity="1" d="M0,50 C150,100 350,0 500,50 C650,100 850,0 1000,50 L1000,100 L0,100 Z" /%3E%3C/svg%3E');
  background-size: 1000px 100px;
}

.wave#wave3 {
  z-index: 1000;
  opacity: 0.2;
  bottom: 15px;
  animation: animateWaves 3s linear infinite;
}

.wave#wave4 {
  z-index: 999;
  opacity: 0.7;
  bottom: 20px;
  animation: animate 3s linear infinite;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100"%3E%3Cpath fill="%23efc1e6" opacity="1" d="M0,50 C150,100 350,0 500,50 C650,100 850,0 1000,50 L1000,100 L0,100 Z" /%3E%3C/svg%3E');
  background-size: 1000px 100px;
}

@keyframes animateWaves {
  0% {
    background-position-x: 1000px;
  }
  100% {
    background-position-x: 0px;
  }
}

@keyframes animate {
  0% {
    background-position-x: -1000px;
  }
  100% {
    background-position-x: 0px;
  }
}

/* Light Theme Styles */
html.theme-light body {
  background-color: #f3f4f6;
  transition: background-color 0.3s ease;
}

html.theme-light .page-title,
html.theme-light .page-text-color {
  color: #1f2937;
  transition: color 0.3s ease;
}

html.theme-light .animated-background {
  filter: invert(0.8);
  transition: filter 0.3s ease;
}

html.theme-light .theme-toggle {
  color: #1f2937;
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

html.theme-light .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
}

html.theme-light .page-item {
  box-shadow:
    0px 6px 14px -6px rgba(0, 0, 0, 0.1),
    0px 10px 32px -4px rgba(0, 0, 0, 0.05);
}

/* Dark Theme Styles (default) */
body {
  transition: background-color 0.3s ease;
}

.page-title,
.page-text-color {
  transition: color 0.3s ease;
}

.animated-background {
  transition: filter 0.3s ease;
}
