.content-scaled {
    zoom: 0.9;
    -moz-transform: scale(0.9);
    -moz-transform-origin: top center;
}

/* --- Custom Animations --- */

/* Initial states for intersection observer animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Stagger animation delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Final states applied by JavaScript */
.is-visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Scroll indicator animation */
.scroll-indicator-line {
    animation: scrollDown 1.5s infinite linear;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* --- Luxury UI Utilities --- */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.text-glow {
    text-shadow: 0 0 15px rgba(41, 211, 208, 0.5);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(41, 211, 208, 0.3);
    border-color: rgba(41, 211, 208, 0.4);
}

.masonry-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-line-active {
    height: 100%;
    transition: height 1s ease-out;
}

/* Floating animation */
.float-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Custom horizontal scroll hide */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Infinite Scroll Animation --- */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Pause animation when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-scroll {
        animation: none;
        overflow-x: auto;
    }
}

/* --- Infinite Scroll Animation --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* --- Video Cover Engine --- */
.video-cover {
    width: 100vw;
    height: 56.25vw; /* 9/16 of width */
    min-height: 100vh;
    min-width: 177.77vh; /* 16/9 of height */
    transform: translate(-50%, -50%) scale(1.05); /* Slight scale to hide edges */
}

/* Ensure looping videos act like GIFs on mobile */
video {
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix for rounded corners on some Safari versions */
}

