/* --- VARIAVEIS --- */
:root {
    --bg-dark: #070707;
    --bg-panel: #111111;
    --gold-primary: #d4af37;
    --gold-dark: #8c6d1a;
    --gold-light: #fbe58a;
    --text-white: #ffffff;
    --text-gray: #aaaaaa;

    --font-heading: 'Bebas Neue', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0; padding: 0; box-sizing: border-box; cursor: none;
}
html { scroll-behavior: smooth; }
body.dark-cinematic {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a, button { text-decoration: none; background: none; border: none; outline: none; }

/* --- TYPOGRAPHY --- */
.massive-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.gold-text {
    background: linear-gradient(to bottom right, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.dramatic-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-style: italic;
    color: var(--text-gray);
    margin: 2rem 0;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}
.text-center { text-align: center; }
.margin-b { margin-bottom: 4rem; }
.margin-t { margin-top: 4rem; }

/* --- CURSOR --- */
#custom-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor-dot {
    position: absolute; width: 6px; height: 6px; background: var(--text-white);
    border-radius: 50%; transform: translate(-50%, -50%); transition: transform 0.1s;
}
.cursor-glow {
    position: absolute; width: 40px; height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%; transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.cursor-hover .cursor-glow {
    width: 60px; height: 60px;
    background: rgba(212, 175, 55, 0.1);
}

/* --- NAV GLASS --- */
.main-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 2rem 0; transition: var(--transition-smooth);
}
.main-nav.scrolled {
    padding: 1rem 0; background: rgba(7, 7, 7, 0.8); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.logo { font-family: var(--font-heading); font-size: 2rem; color: var(--text-white); letter-spacing: 2px; }
.logo-dot { color: var(--gold-primary); }
.nav-links { display: flex; gap: 3rem; list-style: none; align-items: center; }
.nav-links a, .nav-links button {
    font-family: var(--font-sans); color: var(--text-white); text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 2px; transition: color 0.3s; font-weight: 600;
}
.nav-links a:hover, .nav-links button:hover { color: var(--gold-primary); }
.btn-nav { border: 1px solid var(--gold-primary); padding: 0.8rem 1.5rem; border-radius: 2px; }
.btn-nav:hover { background: var(--gold-primary); color: var(--bg-dark) !important; }

/* --- HERO PARALLAX --- */
.hero-parallax {
    position: relative; width: 100%; height: 100vh;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--bg-dark);
}
.layer {
    position: absolute; top: -5%; left: -5%; width: 110%; height: 110%;
    display: flex; align-items: center; justify-content: center;
    will-change: transform;
}
.layer-bg .vignette {
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, #000000 90%);
    z-index: 1;
}
.layer-fx .ambient-light {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
}
.light-1 { width: 400px; height: 400px; background: var(--gold-dark); top: 20%; left: 20%; }
.light-2 { width: 500px; height: 500px; background: #2a1b0a; bottom: 10%; right: 10%; }

.text-3d {
    font-family: var(--font-heading);
    font-size: clamp(8rem, 22vw, 25rem);
    color: var(--text-white);
    line-height: 0.8; margin: 0;
    /* Efeito 3D Massivo */
    text-shadow: 
        0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777,
        0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444,
        0px 7px 0px #333, 0px 8px 7px rgba(0,0,0,0.5),
        0px 20px 20px rgba(0,0,0,0.8);
    transform: translateY(-10%);
}

.layer-foreground { z-index: 10; pointer-events: none; }
.foreground-placeholder {
    width: 400px; height: 600px; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center; text-align: center;
    transform: translateY(10%); box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.foreground-placeholder span { font-family: var(--font-heading); color: var(--gold-primary); font-size: 2rem; }

.layer-text-front { z-index: 15; pointer-events: none; flex-direction: column; justify-content: flex-end; padding-bottom: 5vh; }
.text-front {
    font-family: var(--font-heading); font-size: clamp(5rem, 15vw, 15rem);
    color: transparent; -webkit-text-stroke: 2px var(--gold-primary);
    position: absolute; top: 45%;
}
.hero-bottom-info {
    width: 100%; max-width: 1400px; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 5%;
}
.hero-bottom-info .hero-desc {
    max-width: 300px; font-family: var(--font-sans); font-weight: 300; font-size: 1.1rem; color: var(--text-gray);
}
.scroll-indicator {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-indicator span { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 3px; color: var(--gold-primary); }
.scroll-indicator .line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--gold-primary), transparent); }

/* --- VAI BUSCAR --- */
.section-vai-buscar { padding: 150px 0; background: #0a0a0a; position: relative; z-index: 20; }
.dramatic-header { text-align: center; margin-bottom: 80px; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ebook-3d-wrapper {
    position: relative; width: 80%; aspect-ratio: 3/4; margin: 0 auto;
    transform: perspective(1000px) rotateY(-15deg); transform-style: preserve-3d;
}
.ebook-cover-face {
    position: absolute; width: 100%; height: 100%; background: #1a1a1a; border: 1px solid #333;
    display: flex; align-items: center; justify-content: center; box-shadow: 20px 20px 50px rgba(0,0,0,0.8);
}
.ebook-spine {
    position: absolute; width: 40px; height: 100%; background: #0f0f0f;
    transform: rotateY(-90deg); transform-origin: left; left: 0;
}
.cover-title { font-family: var(--font-heading); font-size: 5rem; color: var(--gold-primary); text-align: center; line-height: 0.9; }
.glow-under { position: absolute; bottom: -20px; left: 10%; width: 80%; height: 20px; background: var(--gold-primary); filter: blur(50px); opacity: 0.3; }

.glass-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    padding: 3rem; backdrop-filter: blur(20px); border-radius: 4px;
}
.glass-card h3 { font-family: var(--font-heading); font-size: 3rem; color: var(--text-white); margin-bottom: 1rem; }
.glass-card p { color: var(--text-gray); margin-bottom: 2rem; font-size: 1.1rem; }
.dramatic-list { list-style: none; margin-bottom: 2rem; }
.dramatic-list li { margin-bottom: 1rem; color: var(--text-gray); padding-left: 20px; position: relative; }
.dramatic-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--gold-primary); border-radius: 50%; }
.price-box { display: flex; flex-direction: column; margin-bottom: 2rem; border-left: 3px solid var(--gold-primary); padding-left: 1rem; }
.price-value { font-family: var(--font-heading); font-size: 4rem; color: var(--text-white); line-height: 1; }
.price-details { font-size: 0.8rem; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 1px; }

.btn-gold-glow {
    display: block; text-align: center; background: var(--gold-primary); color: #000;
    font-family: var(--font-heading); font-size: 1.5rem; padding: 1rem;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); transition: var(--transition-smooth);
}
.btn-gold-glow:hover { box-shadow: 0 0 40px rgba(212, 175, 55, 0.7); transform: translateY(-5px); }

/* --- PORTFÓLIO --- */
.section-portfolio { padding: 150px 0; background: var(--bg-dark); }
.cinematic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.cinematic-card {
    position: relative; overflow: hidden; aspect-ratio: 16/9; background: #111;
}
.card-image { width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); }
.image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 2rem; color: #333; background: #0a0a0a; }
.cinematic-card:hover .card-image { transform: scale(1.05); }
.card-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px); opacity: 0; transition: var(--transition-smooth);
}
.cinematic-card:hover .card-content { transform: translateY(0); opacity: 1; }
.card-content h3 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-white); }
.card-meta { font-size: 0.8rem; text-transform: uppercase; color: var(--gold-primary); letter-spacing: 2px; }

.btn-outline-gold {
    display: inline-block; padding: 1rem 3rem; border: 1px solid var(--gold-primary);
    color: var(--gold-primary); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 2px;
    transition: var(--transition-smooth);
}
.btn-outline-gold:hover { background: var(--gold-primary); color: #000; }

/* --- CONTATO --- */
.section-contato { padding: 150px 0; background: #050505; }
.contact-cards { display: flex; justify-content: center; gap: 30px; margin-top: 60px; }
.contact-card {
    position: relative; padding: 4rem; width: 400px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: var(--transition-smooth); overflow: hidden;
}
.contact-card:hover { transform: translateY(-10px); border-color: rgba(212, 175, 55, 0.3); }
.contact-title { font-family: var(--font-heading); font-size: 3rem; color: var(--text-white); z-index: 2; }
.contact-desc { font-size: 0.9rem; color: var(--text-gray); z-index: 2; }
.card-glow { position: absolute; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1), transparent 70%); opacity: 0; transition: var(--transition-smooth); }
.contact-card:hover .card-glow { opacity: 1; }

/* --- FOOTER --- */
footer { padding: 60px 0; background: #000; border-top: 1px solid #111; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-gray); font-size: 0.8rem; letter-spacing: 2px; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-primary); }
.footer-copy { color: #555; font-size: 0.8rem; }

/* --- ASIDE & MODALS --- */
.side-panel { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; z-index: 2000; visibility: hidden; pointer-events: none; }
.side-panel.active { visibility: visible; pointer-events: auto; }
.panel-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); opacity: 0; transition: 0.5s; }
.side-panel.active .panel-overlay { opacity: 1; }
.panel-content { position: absolute; top: 0; right: -600px; width: 600px; max-width: 100%; height: 100%; background: #0a0a0a; border-left: 1px solid #222; transition: right 0.6s cubic-bezier(0.25, 1, 0.5, 1); padding: 4rem; display: flex; align-items: center; }
.side-panel.active .panel-content { right: 0; }
.close-panel, .close-modal { position: absolute; top: 2rem; right: 2rem; font-size: 1.5rem; color: var(--text-gray); transition: 0.3s; }
.close-panel:hover, .close-modal:hover { color: var(--text-white); transform: rotate(90deg); }
.panel-image-wrapper { width: 100%; aspect-ratio: 1; background: #111; margin: 2rem 0; display: flex; align-items: center; justify-content: center; }
.bio-text { color: var(--text-gray); font-size: 1.1rem; line-height: 1.8; }
.subtitle-gold { font-family: var(--font-serif); font-style: italic; color: var(--gold-primary); font-size: 1.5rem; margin-bottom: 1rem; }

/* Modal */
.portfolio-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 90vw; height: 90vh; background: transparent; border: none; z-index: 2000; opacity: 0; visibility: hidden; transition: 0.5s; display: flex; align-items: center; justify-content: center; }
.portfolio-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(15px); }
.modal-content-glass { position: relative; width: 100%; height: 100%; padding: 4rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; }
.modal-header { margin-bottom: 2rem; text-align: center; flex-shrink: 0; }
.modal-gallery { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.modal-img-placeholder { width: 100%; height: 70vh; background: #111; border: 1px solid #222; }

/* --- REVEAL ANIMATIONS --- */
.reveal-3d { opacity: 0; transform: perspective(1000px) rotateX(30deg) translateY(50px); transition: 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-3d.active { opacity: 1; transform: perspective(1000px) rotateX(0deg) translateY(0); }
.reveal-fade { opacity: 0; filter: blur(10px); transition: 1s ease; }
.reveal-fade.active { opacity: 1; filter: blur(0); }
.reveal-slide { opacity: 0; transform: translateX(50px); transition: 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-slide.active { opacity: 1; transform: translateX(0); }
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.8s; }
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .split-layout { grid-template-columns: 1fr; }
    .ebook-3d-wrapper { width: 60%; }
}
@media (max-width: 768px) {
    .cinematic-grid { grid-template-columns: 1fr; }
    .contact-cards { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; }
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
    .text-3d { font-size: 30vw; }
    .text-front { font-size: 20vw; }
    .foreground-placeholder { width: 80%; }
    .hero-bottom-info { flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-bottom: 10vh; }
}
