/* ================================================
   LEVVE - ENHANCEMENTS CSS
   Melhorias visuais e animações modernas
   ================================================ */

/* ================================================
   ANIMAÇÕES AVANÇADAS
   ================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   CLASSES DE ANIMAÇÃO
   ================================================ */

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

/* ================================================
   MELHORIAS EM CARDS
   ================================================ */

.card-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s;
}

.card-enhanced:hover::before {
    left: 100%;
}

.card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 102, 0, 0.1);
}

.card-enhanced .card-image {
    overflow: hidden;
    position: relative;
}

.card-enhanced .card-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-enhanced:hover .card-image img {
    transform: scale(1.15);
}

.card-enhanced .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-enhanced:hover .card-overlay {
    opacity: 1;
}

/* ================================================
   BOTÕES MELHORADOS
   ================================================ */

.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
}

.btn-enhanced:active {
    transform: translateY(0);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.btn-gradient:hover::after {
    left: 100%;
}

/* ================================================
   EFEITOS DE HOVER EM IMAGENS
   ================================================ */

.image-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-hover-effect img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                filter 0.6s ease;
}

.image-hover-effect:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.image-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 102, 0, 0.1) 0%,
        rgba(255, 102, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-hover-effect:hover::after {
    opacity: 1;
}

/* ================================================
   LOADING STATES
   ================================================ */

.loading-shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 102, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate 0.8s linear infinite;
}

/* ================================================
   EFEITOS DE GLOW
   ================================================ */

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* ================================================
   GRADIENTES MODERNOS
   ================================================ */

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* ================================================
   EFEITOS DE PARALLAX SUAVE
   ================================================ */

.parallax-element {
    transition: transform 0.3s ease-out;
}

/* ================================================
   BADGES E TAGS MELHORADOS
   ================================================ */

.badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
}

.badge-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.4);
}

/* ================================================
   INPUTS MELHORADOS
   ================================================ */

.input-enhanced {
    position: relative;
    transition: all 0.3s ease;
}

.input-enhanced:focus-within {
    transform: translateY(-2px);
}

.input-enhanced input:focus,
.input-enhanced textarea:focus,
.input-enhanced select:focus {
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1),
                0 4px 12px rgba(255, 102, 0, 0.15);
    border-color: var(--primary);
}

/* ================================================
   NAVEGAÇÃO MELHORADA
   ================================================ */

.nav-link-enhanced {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-enhanced::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-link-enhanced:hover::after,
.nav-link-enhanced.active::after {
    width: 100%;
}

/* ================================================
   EFEITOS DE SCROLL SUAVE
   ================================================ */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ================================================
   MODAL E OVERLAY MELHORADOS
   ================================================ */

.modal-enhanced {
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================================
   EFEITOS DE PARTÍCULAS (OPCIONAL)
   ================================================ */

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

/* ================================================
   RESPONSIVIDADE
   ================================================ */

@media (max-width: 768px) {
    .card-enhanced:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .btn-enhanced:hover {
        transform: translateY(-1px);
    }
}

/* ================================================
   BACK TO TOP BUTTON
   ================================================ */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 998;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.5);
}

/* ================================================
   CUSTOM CURSOR (OPCIONAL)
   ================================================ */

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.cursor-hover {
    transform: scale(1.5);
    background: var(--primary);
}

/* ================================================
   COUNTER ANIMATION
   ================================================ */

.counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

/* ================================================
   TYPING EFFECT
   ================================================ */

.typing-effect {
    display: inline-block;
    border-right: 2px solid var(--primary);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: var(--primary);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ================================================
   LAZY LOADING
   ================================================ */

img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* ================================================
   UTILITÁRIOS
   ================================================ */

.shadow-enhanced {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

.shadow-enhanced-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-enhanced-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 102, 0, 0.1);
}

.border-gradient {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--primary), var(--primary-light)) border-box;
}

/* ================================================
   MELHORIAS NO WHATSAPP FLOAT
   ================================================ */

.whatsapp-float {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ================================================
   MELHORIAS EM NAVBAR
   ================================================ */

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Garantir que o menu mobile não seja afetado pelo backdrop-filter */
@media (max-width: 768px) {
    .navbar {
        backdrop-filter: none;
        background: var(--white);
    }
    
    .nav-menu {
        backdrop-filter: none !important;
        background: var(--white) !important;
        background-color: var(--white) !important;
        opacity: 1 !important;
    }
}

/* ================================================
   MELHORIAS EM SEARCH BOX
   ================================================ */

.search-box {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ================================================
   MELHORIAS EM DESTINOS E PACOTES
   ================================================ */

.destination-card,
.package-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.destination-card:hover,
.package-card:hover {
    transform: translateY(-10px);
}

/* ================================================
   RESPONSIVIDADE ADICIONAL
   ================================================ */

@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 20px;
    }
    
    .custom-cursor {
        display: none;
    }
}

