/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { width: 100%; height: 100%; overflow: hidden; font-family: 'Outfit', sans-serif; background: #050505; color: #fff; }

/* LAYER 1: Cinematic Background */
.bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden;
}
.bg-image {
    width: 100%; height: 100%; 
    position: absolute; top: 0; left: 0;
    background: url('public/assets/WhatsApp_Image_2026-10-07_at_16.11.44.jpeg_20261008004143.jpg') center/cover no-repeat;
    /* Blur reduzido para 10px: a casa fica visível, mas os defeitos de compressão somem */
    filter: blur(10px) brightness(0.6);
    transform: scale(1.05); /* Esconde as bordas do blur */
}
.bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Gradiente clareado para revelar mais a foto do fundo */
    background: radial-gradient(circle at 30% 50%, rgba(5, 5, 10, 0.4) 0%, rgba(2, 3, 5, 0.85) 100%);
}

/* LAYER 1.5: Brand Atmosphere */
.brand-atmosphere {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: hidden;
}
.floating-brand {
    position: absolute; opacity: 0.25; /* Mais sutil, atuando como marca d'água elegante */
    mix-blend-mode: screen; /* Integra melhor com o fundo escuro, dando um aspecto iluminado */
    transition: margin 0.1s ease-out; 
}
/* Beija flor - Marca d'água enorme no canto superior esquerdo (cortada) */
.f-brand-1 { top: -10%; left: -10%; width: 500px; animation: floatObj1 15s infinite alternate ease-in-out; }

/* Elemento circular - Girando lentamente atrás do Card 3D */
.f-brand-2 { top: 15%; right: 0%; width: 700px; opacity: 0.15; animation: floatObj2 30s infinite linear; }

/* Folha/Adorno - Ancorando a base da tela no centro-esquerda */
.f-brand-3 { bottom: -15%; left: 25%; width: 400px; opacity: 0.2; animation: floatObj3 12s infinite alternate ease-in-out; }

@keyframes floatObj1 {
    0% { transform: translateY(0px) rotate(-5deg); }
    100% { transform: translateY(-30px) rotate(5deg); }
}
@keyframes floatObj2 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes floatObj3 {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    100% { transform: translateY(30px) translateX(-20px) rotate(15deg); }
}

/* LAYER 2: Three.js Atmosphere */
#webgl-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
}

/* LAYER 3: Frontend Hero */
.hero-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0 5%; perspective: 1500px;
}
.site-header {
    position: absolute; top: 40px; left: 5%; z-index: 4;
}
.main-logo { height: 45px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }

.hero-content {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1400px; gap: 4rem; margin-top: 60px;
}

/* Typography & Content */
.text-content { flex: 1; max-width: 600px; transform-style: preserve-3d; }
.eyebrow { font-size: 1rem; text-transform: uppercase; letter-spacing: 4px; color: #fff; opacity: 0.8; margin-bottom: 1rem; font-weight: 500; }
.glitch-title {
    font-size: 6rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #dcdcdc); -webkit-background-clip: text; color: transparent;
    position: relative;
    text-shadow: 0px 10px 30px rgba(255, 255, 255, 0.1);
}
.subtitle { font-size: 1.4rem; color: #d0d0d0; font-weight: 300; margin-bottom: 3rem; line-height: 1.5; }

/* Staggered Animations */
.stagger-item { opacity: 0; transform: translateY(50px); animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.text-content { animation-delay: 0.3s; }
.card-wrapper { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* CTA Magnetic Button */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 1.2rem 3rem;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px; color: #fff; text-decoration: none; font-weight: 500; font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: 2px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform-style: preserve-3d; overflow: hidden;
    transition: transform 0.1s ease-out; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.btn-text { position: relative; z-index: 2; pointer-events: none; transform: translateZ(20px); }
.btn-glow {
    position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%); border-radius: 50%; transition: width 0.3s, height 0.3s; z-index: 1;
    pointer-events: none;
}
.cta-button:hover .btn-glow { width: 250px; height: 250px; }

/* Monumental 3D Card */
.card-wrapper { flex: 1; display: flex; justify-content: flex-end; perspective: 2000px; z-index: 5; }
.magnetic-card {
    width: 480px; height: 680px; transform-style: preserve-3d; cursor: pointer;
    transition: transform 0.1s ease-out;
}
.card-inner {
    width: 100%; height: 100%; border-radius: 24px; position: relative;
    background: rgba(10, 15, 25, 0.6); border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    overflow: hidden; transform-style: preserve-3d; box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.card-image {
    position: absolute; top: 15px; left: 15px; right: 15px; bottom: 120px; border-radius: 16px;
    background: url('public/assets/WhatsApp_Image_2026-10-07_at_16.11.44.jpeg_20261008004143.jpg') center/cover;
    transform: translateZ(40px); transition: transform 0.3s; box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.card-info {
    position: absolute; bottom: 35px; left: 30px; transform: translateZ(60px); pointer-events: none;
    display: flex; flex-direction: column;
}
.card-simbolo { width: 40px; margin-bottom: 10px; /* removed invert so it shows its original colors */ opacity: 0.9; }
.card-info h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; text-shadow: 0 5px 10px rgba(0,0,0,0.5); }
.card-info p { color: #d0d0d0; font-size: 1rem; }
.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; mix-blend-mode: screen;
}
.magnetic-card:hover .card-glow { opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
    body, html { overflow-y: auto; overflow-x: hidden; }
    .hero-layer { position: relative; height: 100vh; padding: 5vh 5%; overflow: hidden; }
    .hero-content { flex-direction: column; text-align: center; justify-content: center; height: 100%; }
    .glitch-title { font-size: 4rem; }
    .card-wrapper { display: none; }
    .bg-layer { position: fixed; }
    #webgl-canvas { position: fixed; }
}
