/*
Theme Name: Kadinho Móveis
Theme URI: https://kadinhomoveis.com.br
Author: Kadinho Móveis
Author URI: https://kadinhomoveis.com.br
Description: Tema cinematográfico e premium para Kadinho Móveis - Design Autoral e Exclusividade Nacional
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadinho-moveis
Tags: custom-background, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* 
   COPIE AQUI TODOS OS ESTILOS DO ARQUIVO index.html 
   (tudo o que está dentro das tags <style> no index.html original)
*/

/* ==========================================================================
   Tema Kadinho Móveis - Estilos Cinematográficos
   ========================================================================== */

:root {
    --kadinho-red: #931111;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: #F5F5F0;
}

#preloader {
    background: linear-gradient(135deg, #0a0a0a 0%, #171716 100%);
}

.glass-header {
    background: rgba(245, 245, 240, 0.01);
    backdrop-filter: blur(0px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.glass-header.scrolled {
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.15);
}

.reveal-on-scroll {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(40px) translateZ(-30px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) translateZ(0);
}

.reveal-on-glitch {
    position: relative;
}

.reveal-on-glitch::before,
.reveal-on-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s;
}

.reveal-on-glitch::before {
    color: #931111;
    transform: translateX(-2px);
    z-index: -1;
}

.reveal-on-glitch::after {
    color: #0a0a0a;
    transform: translateX(2px);
    z-index: -2;
}

.reveal-on-glitch.active::before,
.reveal-on-glitch.active::after {
    animation: glitchLayers 0.3s ease-out forwards;
}

@keyframes glitchLayers {
    0%, 100% { opacity: 0; transform: translateX(0); }
    10%, 30%, 50% { opacity: 0.8; transform: translateX(-1px); }
    20%, 40% { opacity: 0.8; transform: translateX(1px); }
}

.nav-link-premium {
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.nav-link-premium::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kadinho-red), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link-premium:hover::before {
    transform: translateX(100%);
}

.parallax-layer {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background-color: #171716;
    color: white;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.btn-premium:hover {
    background-color: var(--kadinho-red);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 30px 60px -20px rgba(147, 17, 17, 0.5);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: skewX(-20deg);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-premium:hover::before {
    left: 150%;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #931111, transparent, #931111);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-premium:hover::after {
    opacity: 1;
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.text-mask-effect {
    background: linear-gradient(
        110deg,
        white 0%,
        white 40%,
        #931111 45%,
        white 50%,
        white 100%
    );
    background-size: 250% 100%;
    background-position: 100% 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textMaskCinematic 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.5s;
}

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

.portfolio-item {
    opacity: 0;
    transform: perspective(1200px) rotateY(15deg) translateY(60px) translateZ(-80px);
    transition: all 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.portfolio-item.active {
    opacity: 1;
    transform: perspective(1200px) rotateY(0) translateY(0) translateZ(0);
}

.portfolio-item img {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s;
}

.portfolio-item:hover img {
    transform: scale(1.15);
    filter: saturate(1.1) contrast(1.05);
}

.portfolio-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.4) 40%,
        transparent 100%
    );
    transform: translateY(20%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.micro-hover {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.micro-hover:hover {
    transform: translateY(-3px);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    outline: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
}

.form-label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.5rem;
    font-size: 0.6rem;
    color: var(--kadinho-red);
    letter-spacing: 0.3em;
}

.form-input:focus {
    border-bottom-color: var(--kadinho-red);
    box-shadow: 0 10px 30px -10px rgba(147, 17, 17, 0.2);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #F5F5F0, #EBEBE6);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #931111, #5a0a0a);
    border-radius: 0;
}

.hero-layer-back {
    transform: translateZ(-300px) scale(2);
}

.hero-layer-mid {
    transform: translateZ(-150px) scale(1.5);
}

.hero-layer-front {
    transform: translateZ(0) scale(1);
}

.light-sweep {
    position: relative;
    overflow: hidden;
}

.light-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 60%
    );
    animation: lightSweepMove 4s infinite;
    pointer-events: none;
}

@keyframes lightSweepMove {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.depth-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.depth-card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

.whatsapp-float {
    animation: floatCinematic 3s ease-in-out infinite;
    box-shadow: 0 20px 60px -10px rgba(37, 211, 102, 0.4);
}

@keyframes floatCinematic {
    0%, 100% { 
        transform: translateY(0);
        box-shadow: 0 20px 60px -10px rgba(37, 211, 102, 0.4);
    }
    50% { 
        transform: translateY(-10px);
        box-shadow: 0 30px 80px -15px rgba(37, 211, 102, 0.6);
    }
}