/* Reset & Base */
html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.font-cinematic {
    font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes cinematicZoom {
    0% { transform: scale(1.1); opacity: 0; filter: blur(5px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes fadeUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.animate-zoom {
    animation: cinematicZoom 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

#loader video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 1;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Slider Overlays */
.overlay-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
}

/* Hover effects */
.hover-underline-anim {
    position: relative;
}
.hover-underline-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}
.hover-underline-anim:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Cinematic Core Overrides & Advanced Animations */
.text-mask { overflow: hidden; display: block; }

.reveal-up {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease-out;
}
.active .reveal-up, .reveal-up.active {
    transform: translateY(0);
    opacity: 1;
}

.img-reveal {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.active .img-reveal, .img-reveal.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.parallax-container {
    overflow: hidden;
    position: relative;
}
.parallax-img {
    transition: transform 0.1s linear;
    transform-origin: center;
    will-change: transform;
    height: 120%; /* Give room for parallax */
    width: 100%;
}

/* Tailwind Prose Overrides for Dark Mode */
.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
}
.prose-invert p, .prose-invert li {
    color: #d4d4d8;
    line-height: 1.8;
}
.prose-invert strong {
    color: #fff;
}
.prose-invert a {
    color: #eab308;
}
