/**
 * Animações e Efeitos Customizados
 * 
 * @package colativo
 */

/* ===================================
   SCROLLBAR CUSTOMIZADA
   =================================== */

/* Firefox */
.cta-site{
    width: 100%;
    text-align: center;
}

a.main-button{
    display: inline-block;
    position: relative;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--magenta)!important;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: medium;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 106, 0.4);
}

.main-button:active {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 0, 106, 0.3);
}


* {
	scrollbar-width: thin;
	scrollbar-color: var(--magenta) rgba(255, 255, 255, 0.05);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: var(--magenta);
	border-radius: 10px;
	transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
	background: #ff006a;
	box-shadow: 0 0 10px rgba(255, 0, 106, 0.5);
}

::-webkit-scrollbar-thumb:active {
	background: #e6005f;
}

/* ===================================
   CURSOR CUSTOMIZADO
   =================================== */

body {
	cursor: none;
}

/* Ocultar cursor padrão em elementos interativos */
a, button, input[type="submit"], input[type="button"], 
.servico-link, .cliente-logo {
	cursor: none !important;
}

/* Cursor principal - ponto pequeno */
.cursor-dot {
	width: 8px;
	height: 8px;
	background-color: var(--magenta);
	border-radius: 50%;
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 10000;
	transform: translate(-50%, -50%);
	transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
	mix-blend-mode: difference;
}

/* Cursor seguidor - círculo grande com atraso */
.cursor-circle {
	width: 40px;
	height: 40px;
	border: 2px solid var(--magenta);
	border-radius: 50%;
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%, -50%);
	transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
	opacity: 0.8;
}

/* Efeito ao passar em links/botões */
body.cursor-hover .cursor-dot {
	width: 16px;
	height: 16px;
	background-color: var(--amarelo);
}

body.cursor-hover .cursor-circle {
	width: 60px;
	height: 60px;
	border-color: var(--amarelo);
	opacity: 1;
}

/* Efeito ao clicar */
body.cursor-active .cursor-dot {
	width: 6px;
	height: 6px;
}

body.cursor-active .cursor-circle {
	width: 35px;
	height: 35px;
}

/* Ocultar cursor customizado em dispositivos touch */
@media (pointer: coarse) {
	body {
		cursor: auto;
	}
	
	.cursor-dot,
	.cursor-circle {
		display: none;
	}
}

/* ===================================
   ANIMAÇÕES AUXILIARES
   =================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.05);
		opacity: 0.8;
	}
}

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

/* Classe utilitária para fade in */
.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}

.fade-in {
	animation: fadeIn 0.6s ease-out;
}

/* Suavização de scroll */
html {
	scroll-behavior: smooth;
}

/* Desabilitar cursor customizado em desktop se preferir */
@media (max-width: 991px) {
	body {
		cursor: auto;
	}
	
	a, button, input[type="submit"], input[type="button"] {
		cursor: pointer !important;
	}
	
	.cursor-dot,
	.cursor-circle {
		display: none;
	}
}
