/*
 * Desenvolvido por Misael Neto
 * Behance: https://www.behance.net/misaelneto1
 */

/* Custom Styles */
:root {
    --font-georgia: 'Georgia', serif;
    --font-segoe: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-playfair: 'Playfair Display SC', serif;
}

.font-georgia, .font-serif { font-family: var(--font-georgia); }
.font-segoe, .font-sans { font-family: var(--font-segoe); }
.font-playfair { font-family: var(--font-playfair); }
.font-bebas { font-family: 'Bebas Neue', cursive; }

@layer utilities {
    .animate-fade-in {
        animation: fadeIn 0.8s ease-out forwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Texture Noise Global */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: normal;
    animation: filmNoise 0.3s steps(3) infinite;
}

@keyframes filmNoise {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-2%, 2%);
    }

    40% {
        transform: translate(-2%, -2%);
    }

    60% {
        transform: translate(2%, 2%);
    }

    80% {
        transform: translate(2%, -2%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Stagger Text Animations */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.3s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.5s;
}

.reveal-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.7s;
}

@media (min-width: 1024px) {
    [role="button"], a, button, .cursor-pointer {
        cursor: none !important;
    }
}

body {
    font-family: inherit;
    background-color: #050505;
    color: white;
}

::selection {
    background-color: white;
    color: black;
}

/* Custom Cursor - Desktop Only */
@media (min-width: 1024px) {
    #lux-cursor {
        width: 46px;
        height: 46px;
        mix-blend-mode: difference;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
    }

    #lux-cursor div {
        width: 100%;
        height: 100%;
        border-radius: 9999px;
        border: 1px solid white;
        box-sizing: border-box;
        transition: all 0.3s ease-out;
        transform: scale(0.8);
        background-color: transparent;
    }
}

/* Hide on Mobile */
@media (max-width: 1023px) {
    #lux-cursor {
        display: none !important;
    }
}

/* Mobile Menu Side Drawer */
#mobile-menu-backdrop {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 80;
    display: block !important;
}

#mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
    display: flex !important;
    background-color: #050505;
    z-index: 90;
    pointer-events: none;
    border-left: 1px solid rgba(255,255,255,0.05);
}

#mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

/* Hamburger Icon Animation */
.menu-icon {
    width: 24px;
    height: 14px;
    position: relative;
    cursor: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    display: block;
    height: 1.5px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: .3s ease-in-out;
}

.menu-icon.open span:nth-child(1) {
    transform: translateY(6.25px) rotate(45deg);
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-icon.open span:nth-child(3) {
    transform: translateY(-6.25px) rotate(-45deg);
}

/* Preloader Minimalist Reveal */
@keyframes luxury-reveal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-luxury-reveal {
    animation: luxury-reveal 1.5s ease-in-out forwards;
}

#preloader {
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

/* Safari Compatibility for Backdrop Filter */
.backdrop-blur-xl {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

/* Instagram Widget Watermark Hack */
.instagram-mask {
    /* Ajusta a altura para cortar exatamente a bordinha branca/link do Elfsight */
    margin-bottom: -45px; 
    padding-bottom: 0;
}

/* Garante que o fundo do site (preto) cubra qualquer resquício do anúncio */
.instagram-mask::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #050505; /* Cor oficial do site PTZ (#050505) */
    z-index: 20;
    pointer-events: none;
}
