/* Alquimia Cigana - Custom Styles */

/* Logo do header */
.logo-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(45deg, #C8875D, #D89A9E);
    padding: 2px;
    box-shadow: 0 4px 15px rgba(200, 135, 93, 0.3);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(200, 135, 93, 0.5);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #F3E5D0;
}

/* Animações de entrada */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-delay {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes mystical-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(200, 135, 93, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(200, 135, 93, 0.6);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Classes de animação */
.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-fade-in-delay {
    animation: fade-in-delay 1.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-mystical-glow {
    animation: mystical-glow 2s ease-in-out infinite;
}

/* Efeitos de hover personalizados */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #C8875D, #D89A9E);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Botões mágicos */
.magical-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #D89A9E, #C8875D);
    box-shadow: 0 4px 15px rgba(216, 154, 158, 0.4);
}

.magical-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.magical-btn:hover::before {
    left: 100%;
}

.magical-btn-outline {
    position: relative;
    overflow: hidden;
}

.magical-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 135, 93, 0.1), transparent);
    transition: left 0.5s;
}

.magical-btn-outline:hover::before {
    left: 100%;
}

/* Cards de serviço */
.service-card {
    background: linear-gradient(135deg, rgba(158, 124, 166, 0.8), rgba(216, 154, 158, 0.8));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 135, 93, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 13, 50, 0.3);
}

/* Partículas místicas */
.mystical-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.mystical-particles::before,
.mystical-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #C8875D;
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

.mystical-particles::before {
    left: 20%;
    animation-delay: 0s;
    box-shadow: 0 0 6px #C8875D;
}

.mystical-particles::after {
    left: 80%;
    animation-delay: 7s;
    box-shadow: 0 0 6px #D89A9E;
}

/* Efeitos de texto brilhante */
.text-glow {
    text-shadow: 0 0 10px rgba(200, 135, 93, 0.5);
}

/* Gradientes personalizados */
.bg-mystical-gradient {
    background: linear-gradient(135deg, #3B0D32 0%, #9E7CA6 50%, #3B0D32 100%);
}

.bg-warm-gradient {
    background: linear-gradient(135deg, #D89A9E 0%, #F3E5D0 50%, #C8875D 100%);
}

/* Efeitos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Responsividade personalizada */
@media (max-width: 768px) {
    .mystical-particles::before,
    .mystical-particles::after {
        display: none;
    }
    
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* Estados de foco para acessibilidade */
.magical-btn:focus,
.magical-btn-outline:focus {
    outline: 2px solid #C8875D;
    outline-offset: 2px;
}

.nav-link:focus {
    outline: 2px solid #D89A9E;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Estilos para formulários */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(200, 135, 93, 0.3);
}

/* Efeitos de loading */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F3E5D0;
    border-top: 4px solid #C8875D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efeitos de parallax suave */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* Estilo para elementos de destaque */
.highlight-box {
    background: linear-gradient(135deg, rgba(243, 229, 208, 0.1), rgba(200, 135, 93, 0.1));
    border-left: 4px solid #C8875D;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Animação de entrada para seções */
.section-entrance {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-entrance.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efeitos de hover para imagens */
.mystical-image {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.mystical-image:hover {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.05);
}

/* Estilo para citações */
.mystical-quote {
    position: relative;
    font-style: italic;
    color: #3B0D32;
    font-weight: 600;
}

.mystical-quote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -20px;
    top: -10px;
    color: #3B0D32;
    opacity: 0.5;
}

.mystical-quote::after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    right: -20px;
    bottom: -30px;
    color: #3B0D32;
    opacity: 0.5;
}

/* Estilos para divisores decorativos */
.mystical-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C8875D, transparent);
    margin: 2rem auto;
}

.mystical-divider::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #D89A9E;
    background: #3B0D32;
    padding: 0 10px;
    font-size: 1.2rem;
}

/* Efeitos para cards de testemunhos */
.testimonial-card {
    background: rgba(243, 229, 208, 0.05);
    border: 1px solid rgba(200, 135, 93, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(200, 135, 93, 0.5);
    background: rgba(243, 229, 208, 0.1);
}

/* Estilo para elementos de numeração */
.number-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #C8875D, #D89A9E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B0D32;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(200, 135, 93, 0.3);
}

/* Efeitos de transição para mudanças de estado */
.state-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo para alertas e notificações */
.mystical-alert {
    background: linear-gradient(135deg, rgba(216, 154, 158, 0.9), rgba(200, 135, 93, 0.9));
    border: 1px solid rgba(243, 229, 208, 0.3);
    color: #3B0D32;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Media queries adicionais para dispositivos muito pequenos */
@media (max-width: 480px) {
    .mystical-quote::before,
    .mystical-quote::after {
        display: none;
    }
    
    .number-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Estilo para modo escuro (se necessário) */
@media (prefers-color-scheme: dark) {
    .mystical-particles::before {
        box-shadow: 0 0 8px #C8875D;
    }
    
    .mystical-particles::after {
        box-shadow: 0 0 8px #D89A9E;
    }
}

/* Blog Section */
.blog-card {
    box-shadow: 0 10px 30px rgba(34, 11, 38, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(199, 175, 168, 0.2);
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 11, 38, 0.25);
}

.mystical-image {
    transition: transform 0.3s ease;
}

.blog-card:hover .mystical-image {
    transform: scale(1.1);
}

.blog-card h3 {
    background: linear-gradient(135deg, var(--roxo-profundo), var(--rosa-queimado));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.blog-card p {
    color: rgba(34, 11, 38, 0.8);
}

.blog-card button:hover {
    transform: translateX(5px);
}

/* Responsividade para blog */
@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1.125rem;
    }
    
    .blog-card p {
        font-size: 0.875rem;
    }
}
