@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

/* --- Variáveis --- */
:root {
    --bg-color: #0b0c10;
    --text-main: #ffffff;
    --text-secondary: #9ca3af;
    --accent-red: #DC1C2E;
    --accent-blue: #45a29e;
    --border-light: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: -15px 15px 30px rgba(0, 0, 0, 0.4);
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none;
    /* Esconde o cursor padrão */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Custom Cursor (Com Blur) --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s, filter 0.3s;
}

/* 
   Estado Hover: Pequeno Blur
   Aumenta o tamanho, adiciona fundo suave e aplica filtro de blur
*/
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    /* O efeito de blur solicitado */
    filter: blur(3px);
    opacity: 0.8;
}

/* --- Loading Animation (Tradicional Spinner) --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    /* Fundo do anel */
    border-top: 3px solid var(--accent-red);
    /* Parte giratória colorida */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Ambient Background Blobs --- */
.ambient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.15;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -10%;
    right: -5%;
    animation-duration: 25s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-red);
    bottom: 10%;
    left: -10%;
    animation-duration: 30s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #ffffff;
    top: 40%;
    left: 40%;
    opacity: 0.05;
    animation: floatBlob 15s infinite alternate-reverse;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* --- Canvas Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* --- Navegação --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(11, 12, 16, 0.7);
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-red);
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.logo:hover span::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 60px 8%;
    position: relative;
    min-height: 100vh;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-right: 40px;
}

.intro-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-red);
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    padding: 5px 12px;
    background: rgba(220, 28, 46, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(220, 28, 46, 0.2);
}

/* Animação de Texto Escalonada */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 500;
    color: var(--text-main);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.split-char {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

h1.active .split-char {
    transform: translateY(0);
    opacity: 1;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 95%;
    font-weight: 300;
}

/* Botão Normal */
.btn-portfolio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--accent-red);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    background: transparent;
    position: relative;
    width: fit-content;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.btn-portfolio:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-portfolio:hover {
    color: white;
}

.slogan-divider {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
    border-left: 1px solid var(--accent-red);
}

.contact-clean {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
    padding: 10px;
    border-radius: 8px;
}

.contact-row:hover {
    background: var(--hover-bg);
    color: var(--accent-red);
    transform: translateX(10px);
}

.c-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: 0.3s;
}

.contact-row:hover .c-icon {
    background: var(--accent-red);
    color: white;
}

.c-data {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.c-value {
    font-size: 1rem;
    font-weight: 400;
}

/* Lado Direito - Imagem 3D Tilt */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.img-container {
    width: 380px;
    height: 520px;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px 0 20px 0;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transform: rotateY(0deg) rotateX(0deg);
    transition: transform 0.1s ease-out;
}

.img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    border-radius: 20px 0 20px 0;
    pointer-events: none;
    z-index: 10;
}

.img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 20px 0;
    transform: translateZ(20px);
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.5s ease;
}

.img-container:hover .img-main {
    filter: grayscale(0%) contrast(100%);
}

.remax-float {
    position: absolute;
    top: 40px;
    right: -60px;
    background: rgba(255, 255, 255, 1);
    color: #DC1C2E;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    font-family: sans-serif;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateZ(50px);
    animation: floatBadge 6s infinite ease-in-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Footer --- */
footer {
    position: fixed;
    bottom: 30px;
    right: 40px;
    text-align: right;
    z-index: 50;
    padding: 0;
    border-top: none;
    background: transparent;
    width: auto;
    pointer-events: none;
}

.copyright-link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.copyright-link:hover {
    color: white;
    opacity: 1;
    border-color: var(--accent-red);
}

/* --- Keyframes --- */
@keyframes floatBadge {

    0%,
    100% {
        transform: translateZ(50px) translateY(0);
    }

    50% {
        transform: translateZ(50px) translateY(-12px);
    }
}

/* Classes para JS Reveal Padrão */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    * {
        cursor: auto;
    }

    /* Volta cursor normal no mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .navbar {
        padding: 15px 20px;
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 100px;
        padding-bottom: 40px;
        text-align: left;
        justify-content: center;
    }

    .hero-content {
        margin-top: 40px;
        padding-right: 0;
        align-items: flex-start;
        max-width: 100%;
        gap: 40px;
    }

    .img-container {
        width: 280px;
        height: 380px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .contact-clean {
        width: 100%;
    }

    .btn-portfolio {
        width: 100%;
    }

    .slogan-divider {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding-top: 15px;
        display: block;
    }

    footer {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        text-align: center;
        margin-top: 30px;
        padding-bottom: 30px;
    }

    .copyright-link {
        background: transparent;
        border: none;
    }

    .copyright-link:hover {
        background: transparent;
        border: none;
    }

    .img-container {
        transform: none !important;
    }
}