* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: auto !important;
}

html, body {
  min-height: 100vh;
  height: 100%;
  width: 100%;
  margin: 0; padding: 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
}

body {
  font-family: "Lato", sans-serif;
  overflow-x: hidden;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: auto;
  touch-action: manipulation;
}

canvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  /* Disable momentum scrolling on canvas elements */
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
  touch-action: manipulation;
  will-change: transform;
  backface-visibility: hidden;
}

.details {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
}

.ball-text {
  position: fixed;
  z-index: 2;
  color: white;
  font-size: 5rem;
  right: 20%;
  bottom: 40%;
  transform: translate(-20%, -40%);
}

@media screen and (max-width: 1024px) {
  .ball-text {
    font-size: 2rem;
    right: 50%;
    bottom: 25%;
    transform: translate(50%, 50%);
  }
  h1 {
    font-size: 2rem;
  }
}

@import url('https://fonts.cdnfonts.com/css/trajan-pro');

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Trajan Pro', serif;
  flex-direction: column;
  gap: 1.5rem;
}

.loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxsaW5lIHgxPSIwIiB5MT0iMCIgeDI9IjQwIiB5Mj0iMCIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
  opacity: 0.5;
}

.loader h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(255,255,255,0.2);
  animation: glow 2s infinite;
  font-weight: normal;
}

#progress {
  font-size: 2.8rem;
  font-weight: normal;
  color: #B8860B;
  position: relative;
  margin-top: 0.25rem;
  text-shadow: 0 0 20px rgba(184,134,11,0.5);
}

.loading-bar {
  width: 280px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  margin: 0.5rem 0;
}

.loading-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.5s infinite;
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #B8860B, #DAA520);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-top-color: #B8860B;
  border-right-color: #B8860B;
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 15px rgba(184,134,11,0.3);
}

.loading-ornament {
  position: absolute;
  width: 100%;
  top: 30px;
  left: 0;
  text-align: center;
}

.loading-ornament::before,
.loading-ornament::after {
  content: '❧';
  color: rgba(184,134,11,0.5);
  font-size: 18px;
  margin: 0 15px;
  animation: float 3s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
  }
  50% {
    text-shadow: 0 2px 20px rgba(255,255,255,0.4);
  }
  100% {
    text-shadow: 0 2px 10px rgba(255,255,255,0.2);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media screen and (max-width: 768px) {
  .loader h2 {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  #progress {
    font-size: 2.2rem;
  }

  .loading-bar {
    width: 200px;
  }

  .loading-spinner {
    width: 30px;
    height: 30px;
  }

  .loading-ornament::before,
  .loading-ornament::after {
    font-size: 14px;
    margin: 0 10px;
  }
}

.forest-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1542273917363-3b1817f69a2d?auto=format&fit=crop&q=80') center/cover no-repeat;
  z-index: 1;
}

.forest-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.canvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
  transform: translateZ(0);
}

.text-canvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform 0.3s ease-out;
  opacity: 0;
}

@keyframes float {
  0% {
    transform: translate(var(--x, 0), var(--y, 0)) rotate(0deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: translate(var(--x, 0), calc(var(--y, 0) - 10px)) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: translate(var(--x, 0), var(--y, 0)) rotate(0deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .ball-text {
    font-size: 2rem;
    right: 50%;
    bottom: 25%;
    transform: translate(50%, 50%);
  }
  h1 {
    font-size: 2rem;
  }
  
  /* Additional mobile momentum scrolling fixes */
  html, body {
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
    overscroll-behavior-x: none !important;
    touch-action: manipulation !important;
  }
  
  /* Disable momentum scrolling on all scrollable elements */
  * {
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: none !important;
  }
}

/* Remove custom cursor styles */
.cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
}

/* Remove custom cursor element styles */
.custom-cursor {
  display: none;
}

/* Restore default cursor */
* {
  cursor: auto !important;
}

/* Disable momentum scrolling globally for all devices */
*, *::before, *::after {
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
}

/* iOS Safari specific momentum scrolling fixes */
@supports (-webkit-touch-callout: none) {
  html, body {
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    overscroll-behavior: none !important;
  }
  
  /* Disable momentum scrolling on all scrollable elements in iOS */
  * {
    -webkit-overflow-scrolling: auto !important;
    overscroll-behavior: none !important;
  }
}

/* Hover effect for cursor */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor {
  width: 25px;
  height: 25px;
  background: rgba(144, 238, 144, 0.8);
  box-shadow: 0 0 30px rgba(144, 238, 144, 0.6);
}

.meditation-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 80px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  font-family: 'Trajan Pro', serif;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  display: none;
  animation: buttonAppear 1s ease forwards;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  padding: 15px 25px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  letter-spacing: 1.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  font-weight: 500;
}

@keyframes buttonAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.meditation-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .meditation-btn {
    width: 280px;
    height: 70px;
    border-radius: 35px;
    font-size: 16px;
    letter-spacing: 1.1px;
    padding: 12px 20px;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .meditation-btn {
    width: 260px;
    height: 65px;
    border-radius: 32px;
    font-size: 15px;
    letter-spacing: 1px;
    padding: 10px 18px;
  }
}

/* Floating UI Bar Styles */
.floating-ui-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  pointer-events: none;
  padding: 0 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.floating-ui-bar.show {
  opacity: 0.92;
  visibility: visible;
}

.floating-ui-bar.show:hover {
  opacity: 1;
}

.floating-ui-bar > div {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  opacity: 0.92;
  transition: opacity 0.2s;
  font-weight: 100 !important;
  padding: 8px 12px;
  border-radius: 8px;
}

.floating-ui-bar > div:hover {
  opacity: 1;
}

.floating-ui-menu {
  justify-content: flex-start;
}

.floating-ui-scroll {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.floating-ui-label {
  display: block;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #fff;
  opacity: 0.85;
  text-align: center;
  margin-bottom: 0.2em;
  font-family: 'Poppins', Arial, sans-serif !important;
  font-weight: 100 !important;
}

.floating-ui-scroll-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1em;
  animation: floating-arrow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}

.floating-ui-scroll-circle svg {
  display: block;
  width: 40px !important;
  height: 40px !important;
}

.floating-ui-arrow {
  display: block;
  font-size: 1.5em;
  margin-top: 0.1em;
  animation: floating-arrow 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}

@keyframes floating-arrow {
  0% { transform: translateY(0); opacity: 0.7; }
  100% { transform: translateY(10px); opacity: 1; }
}

.floating-ui-sound {
  justify-content: flex-end;
}

.floating-ui-sound-icon {
  font-size: 1.2em;
  margin-left: 0.2em;
  transition: color 0.2s;
}

.floating-ui-sound.muted .floating-ui-sound-icon {
  color: #aaa;
  text-decoration: line-through;
}

@media (max-width: 700px) {
  .floating-ui-bar {
    bottom: 20px;
    padding: 0 2vw;
  }
  .floating-ui-bar > div {
    font-size: 1rem;
    padding: 12px 16px;
    margin: 4px;
  }
  .floating-ui-scroll-circle svg {
    width: 36px !important;
    height: 36px !important;
    transform: rotate(180deg);
  }
  .sound-bars {
    height: 14px;
    gap: 2px;
    margin-left: 8px;
  }
  .sound-bars .bar {
    width: 2.5px;
  }
}

/* Extra mobile padding for very small screens */
@media (max-width: 480px) {
  .floating-ui-bar > div {
    padding: 14px 18px;
    margin: 6px;
  }
  .floating-ui-label {
    margin-bottom: 0.3em;
  }
  .sound-bars {
    margin-left: 10px;
  }
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  margin-left: 6px;
}

.sound-bars .bar {
  width: 3px;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  transform: scaleY(0.1);
  transition: transform 0.2s cubic-bezier(.4,0,.2,1);
}

.floating-ui-sound.active .sound-bars .bar {
  animation: soundBarAnim 1s infinite;
}

.floating-ui-sound.active .sound-bars .bar:nth-child(2) { animation-delay: 0.1s; }
.floating-ui-sound.active .sound-bars .bar:nth-child(3) { animation-delay: 0.2s; }
.floating-ui-sound.active .sound-bars .bar:nth-child(4) { animation-delay: 0.3s; }
.floating-ui-sound.active .sound-bars .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundBarAnim {
  0%, 100% { transform: scaleY(0.2);}
  50% { transform: scaleY(1);}
}

/* Link Buttons */
.link-buttons-container {
  position: fixed;
  bottom: 35%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 90%;
  max-width: 700px;
  z-index: 1001;
  opacity: 0;
  display: none;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.link-button {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  color: white;
  padding: 15px 30px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  flex: 1;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Single button styling - make it shorter */
.link-buttons-container:has(.link-button:only-child) .link-button {
  max-width: 300px;
  flex: none;
}

/* Fallback for browsers that don't support :has() */
.link-buttons-container .link-button:only-child {
  max-width: 300px;
  flex: none;
}

#floatingScrollBtn {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  /* Add these additional styles for better visibility and centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
}

.floating-ui-scroll-circle {
  margin-top: 8px; /* Space between label and circle */
  display: flex;
  align-items: center;
  justify-content: center;
}