:root {
    --bg-dark: #0a0c10;
    --text-main: #fcfcfc;
    --text-muted: #95a0ac;
    --accent-gold: #e5b642;
    --accent-gold-glow: rgba(229, 182, 66, 0.4);
    --glass-bg: rgba(200, 200, 200, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Restarts & Lenis Overrides */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    cursor: none; /* Esconder cursor nativo! */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografia Estilizada */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
.gold { color: var(--accent-gold); }

/* ==== CUSTOM CURSOR ==== */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-dot {
    width: 6px; height: 6px;
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}

.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(229, 182, 66, 0.5);
    transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1),
                width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease;
}

/* ==== PRELOADER CINEMÁTICO ==== */
#loader {
    position: fixed; inset: 0;
    background: #000;
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.loader-content { text-align: center; }
.loading-scape { font-family: var(--font-heading); font-size: 3rem; letter-spacing: 0.2em; color: #fff; margin-bottom: 20px; text-transform: uppercase; }
.loader-bar-bg { width: 300px; height: 1px; background: rgba(255,255,255,0.2); position: relative; margin: 0 auto 15px; }
.loader-bar { width: 0%; height: 100%; background: var(--accent-gold); position: absolute; left: 0; top: 0; transition: width 0.1s ease; box-shadow: 0 0 10px var(--accent-gold); }
.loading-prog { font-size: 0.9rem; color: var(--text-muted); letter-spacing: 2px; }

/* ==== CANVAS PARTICLES ==== */
#particle-canvas {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 1; /* Acima do fundo, abaixo do conteúdo */
}

/* ==== HERO SECTION ==== */
.hero-section {
    position: relative; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; text-align: center; z-index: 2;
}
.hero-bg {
    position: absolute; inset: -5%;
    width: 110%; height: 110%;
    background: url('../assets/images/scape-hero.jpg') center 30%/cover no-repeat;
    z-index: 1; filter: sepia(0.3) contrast(1.1); /* Toque retrô luxuoso */
}
.hero-overlay {
    position: absolute; inset: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(10,12,16,0.1) 0%, rgba(10,12,16,0.8) 100%);
    z-index: 2;
}
.hero-content { position: relative; z-index: 3; padding: 0 20px; mix-blend-mode: screen; }

/* GSAP ANIMATION PRESETS */
.title-wrapper { overflow: hidden; }
.subtitle-wrapper { overflow: hidden; margin-top: 10px; }
.hero-title {
    font-size: clamp(4rem, 15vw, 10rem);
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--accent-gold);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: inline-block;
}
.char { display: inline-block; /* GSAP SplitText simulado */ }
.hero-subtitle { font-size: clamp(1rem, 3vw, 1.8rem); font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 15px; opacity: 0; }
.scroll-indicator span { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }

/* ==== MAIN SECTIONS ==== */
.main-content { position: relative; z-index: 5; background: var(--bg-dark); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }

/* SECTION: ABOUT & 3D TILT */
.about-section { padding: 180px 0; }
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); border-radius: 30px;
    padding: 80px; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.clip-mask-wrapper { overflow: hidden; margin-bottom: 24px; padding-bottom: 10px; }
.clip-text-header { font-size: 3.5rem; color: var(--text-main); line-height: 1.1; }
.fade-up-text { font-size: 1.25rem; color: var(--text-muted); line-height: 1.8; font-weight: 300; opacity: 0; transform: translateY(30px); }

/* Fator UAU: 3D Tilt Card */
.tilt-box {
    position: relative; width: 100%; max-width: 500px; margin: 0 auto;
    perspective: 1500px; /* Perspectiva profunda */
}
.about-photo-inner {
    width: 100%; position: relative;
    border-radius: 20px; overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(229, 182, 66, 0.3);
}
.about-photo {
    width: 100%; height: 600px; object-fit: cover;
    transform: translateZ(50px) scale(1.05); /* Salta pra fora do card no 3D */
    transition: filter 0.4s ease;
    filter: sepia(0.2) contrast(1.1);
}
.tilt-glare {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 20px; mix-blend-mode: color-dodge;
}
.tilt-glare-inner {
    position: absolute; top: 50%; left: 50%; padding: 200%;
    background-image: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 70%, rgba(255,255,255,0) 100%);
    transform: translate(-50%, -50%) rotate(0deg); opacity: 0; transition: opacity 0.5s ease;
}

/* SECTION: HORIZONTAL GALLERY SCROLL */
.horizontal-gallery-section {
    position: relative; width: 100vw; height: 100vh; overflow: hidden;
    background: #020202;
}
.horizontal-scroll-wrapper {
    position: relative;
    height: 100%; width: max-content;
    display: flex; align-items: center; padding-left: 10vw;
}
.horizontal-title-container {
    width: 40vw; min-width: 400px; padding-right: 100px;
    display: flex; flex-direction: column; justify-content: center;
}
.horizontal-title-container h2 { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; margin-bottom: 20px; color: #fff;}
.horizontal-title-container p { font-size: 1.2rem; color: var(--text-muted); font-weight: 300; max-width: 300px; }

.horizontal-track {
    display: flex; gap: 40px; padding-right: 10vw; height: 60vh;
}
.h-card {
    position: relative; width: 35vw; min-width: 300px; max-width: 450px; height: 100%;
    border-radius: 20px; overflow: hidden; cursor: none;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.h-card-img-wrapper {
    width: 100%; height: 100%; overflow: hidden; position: relative;
}
/* Parallax Interno nas Imagens do Horizontal Scroll */
.h-card img {
    position: absolute; 
    left: -20%; width: 140%; height: 100%; object-fit: cover;
    filter: brightness(0.7) sepia(0.2); transition: filter 0.6s ease, transform 0.6s ease;
}
.h-card:hover img { filter: brightness(1.1) sepia(0); transform: scale(1.02); }

/* ENDING SECTION */
.ending-section {
    height: 80vh; position: relative;
    display: flex; justify-content: center; align-items: center;
}
.ending-bg {
    position: absolute; inset: 0;
    background: url('../assets/images/scape-hero.jpg') center bottom/cover no-repeat;
    filter: brightness(0.2) blur(5px); z-index: -1;
}

/* MODAL LUXUOSO */
.modal { display: none; position: fixed; inset: 0; z-index: 20000; align-items: center; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(5,6,8,0.98); backdrop-filter: blur(15px); }
.modal-content-wrapper { position: relative; z-index: 2; width: 90%; max-width: 1200px; text-align: center; }
.modal-content { max-height: 85vh; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.close-modal { position: absolute; top: 40px; right: 50px; font-size: 3rem; color: #fff; z-index: 3; font-weight: 100; transition: transform 0.3s ease; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; padding: 40px 24px; gap: 40px;}
    .h-card { width: 60vw; }
    .horizontal-title-container { width: 80vw; }
}
