/* VARIÁVEIS E RESET */
:root {
    --gold: #d4af37;
    --dark-bg: #050505;
    --glass: rgba(15, 15, 15, 0.95);
    --text-primary: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, .serif { font-family: 'Playfair Display', serif; }

/* NAVEGAÇÃO */
.minimal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    z-index: 2000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.logo {
    font-size: 1.8rem;
    color: var(--gold);
    text-shadow: 2px 2px 10px #000;
    text-decoration: none;
    letter-spacing: 3px;
}

/* HERO COM IMAGEM bg_hero.jpg */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('/static/img/bg_hero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* STORY SPLIT (Daniel & Thais) */
.story-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.portrait-box {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.portrait-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
    transition: 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portrait-box:hover img {
    filter: grayscale(0%) brightness(0.8);
    transform: scale(1.05);
}

.portrait-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    text-align: center;
}

/* PLAYER DE MÚSICA */
.music-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#play-btn {
    background: var(--gold);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

#play-btn:hover { transform: scale(1.1); }

/* ANIMAÇÕES SUTIS */
@keyframes thais-pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* CHATBOT TRIGGER (AVATAR) */
#chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    z-index: 3000;
    background: #000;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: thais-pulse 3s infinite;
    overflow: hidden;
}

#chat-trigger img { width: 100%; height: 100%; object-fit: cover; }

/* JANELA DO CHAT */
.chat-window {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 380px;
    height: 75vh;
    max-height: 580px;
    background: #111;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    z-index: 3000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.hidden { display: none !important; }

/* BALÃO DE CONVITE */
.chat-invite-bubble {
    position: fixed;
    bottom: 115px;
    right: 30px;
    background: var(--gold);
    color: #000;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    pointer-events: none;
    max-width: 200px;
    line-height: 1.3;
}

.chat-invite-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-invite-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--gold);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .hero { background-attachment: scroll; height: 80vh; }
    .story-split { grid-template-columns: 1fr; }
    .portrait-box { height: 60vh; }
    .chat-window { width: 92%; right: 4%; bottom: 100px; }
    .music-bar span { display: none; }
}