/* Base styles for Lenis */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Custom utilities */
.mix-blend-difference {
  mix-blend-mode: difference;
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hover effect on nav links */
.nav-link {
    position: relative;
    display: inline-block;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 4px;
    bottom: -8px;
    left: 0;
    background-color: #C19A6B;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Content Hero Section Specifics */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Horizontal Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container {
    display: flex;
    width: fit-content;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #C19A6B;
    z-index: 100;
}

/* Image Reveal Mask */
.img-reveal-wrapper {
    position: relative;
    overflow: hidden;
}
.img-reveal-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #C19A6B;
    z-index: 2;
    transform: translateX(0);
}

/* Text Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch-text::before {
    color: #ff00c1;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}
.glitch-text::after {
    color: #00fff9;
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* Audio Bars Animation */
.anim-bar-1, .anim-bar-2, .anim-bar-3 {
    animation: bar-dance 1s infinite alternate;
    transition: background-color 0.3s;
}
.anim-bar-2 { animation-delay: 0.2s; }
.anim-bar-3 { animation-delay: 0.4s; }

@keyframes bar-dance {
    0% { height: 4px; }
    100% { height: 16px; }
}
.audio-stopped .anim-bar-1, 
.audio-stopped .anim-bar-2, 
.audio-stopped .anim-bar-3 {
    animation-play-state: paused;
    height: 4px;
}

/* Liquid Button Effect */
.btn-liquid {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s;
}
.btn-liquid::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 150%;
    height: 300%;
    background: #C19A6B;
    border-radius: 40%;
    z-index: -1;
    transform: translate(-50%, 0) scale(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-liquid:hover::before {
    transform: translate(-50%, -85%) scale(1);
}
.btn-liquid:hover {
    color: #000 !important;
}
