:root {
    --primary-color: #071426; /* Deep night blue */
    --gold-light: #F9E596;
    --gold-mid: #D4AF37;
    --gold-dark: #996515;
    --text-light: #F0F0F0;
    --parchment: #F5E6D3;
    
    --font-serif: 'Cinzel', serif;
    --font-serif-secondary: 'Playfair Display', serif;
    --font-script: 'Pinyon Script', cursive;
    --font-script-alt: 'Great Vibes', cursive;
}

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

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-serif-secondary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

#app-container {
    position: relative;
    width: 100%;
    max-width: 480px; /* Mobile width */
    min-height: 100vh;
    background-color: var(--primary-color);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    overflow-x: hidden;
    transform: translateZ(0); /* Create containing block for fixed children */
}

.hidden {
    display: none !important;
}

.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography & Effects */
.gold-text {
    background: linear-gradient(to bottom, var(--gold-light), var(--gold-mid), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.glow {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
}

.script-title {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: 400;
}

/* UI Elements */
.gold-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid), var(--gold-light), var(--gold-mid));
    background-size: 300% 100%;
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--gold-light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: goldShimmer 4s infinite linear;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.4);
}

@keyframes goldShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Entrance Overlay */
#entrance-overlay, #intro-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    background-image: radial-gradient(circle at center, #112a4f 0%, var(--primary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.5s ease-in-out;
}

.intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Previne que a imagem seja arrastada acidentalmente pelo navegador */
}

/* removed hover */

.shoe-overlay {
    position: absolute;
    bottom: 5%;
    left: 60%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    z-index: 1001;
    animation: floatShoe 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.6));
    cursor: grab;
    touch-action: none; /* Previne scroll ao arrastar no celular */
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none; /* Evita menu de salvar imagem no iOS */
    user-select: none;
    -webkit-user-select: none;
}

.shoe-overlay.dragging {
    animation: none; /* Para de flutuar enquanto arrasta */
    cursor: grabbing;
    transition: none; /* Move instantaneamente com o dedo/mouse */
}

.shoe-overlay.returning {
    transition: all 0.5s ease-out; /* Suaviza a volta pro lugar */
}

#shoe-drop-zone {
    position: absolute;
    bottom: 25%; /* Aproximadamente 3cm acima do salto */
    left: 60%; /* Mesma direção do salto */
    transform: translate(-50%, 50%);
    width: 150px;
    height: 150px;
    z-index: 1000;
    /* border: 2px dashed red; /* Descomente para testar e ver onde a zona alvo está */
}

@keyframes floatShoe {
    0% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-15px); }
    100% { transform: translateX(-50%) translateY(0px); }
}

.envelope {
    text-align: center;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(7, 20, 38, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.envelope-title {
    font-family: var(--font-script-alt);
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--gold-light);
}

.envelope-subtitle {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #ccc;
}

/* Particles */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Main Content & Sections */
#main-content {
    position: relative;
    z-index: 1;
}

.section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glass-panel {
    background: rgba(7, 20, 38, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin: 20px;
    border-radius: 15px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Section 1: Cover */
.video-cover {
    padding: 0;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.full-section-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.cover-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* Keeps it above the video */
    padding: 20px;
}

.cover-overlay-img {
    width: 100%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.top-overlay-content {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
    padding: 0 20px;
}

.top-overlay-img {
    width: 90%;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.center-overlay-content {
    position: absolute;
    top: 10%; /* Movido substancialmente mais para cima */
    left: 0%; /* 1cm para a direita */
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding: 0 20px;
}

.center-overlay-img {
    width: 90%;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Old cover styles removed as they are no longer used */
/* End of old cover styles */

/* Section 2: Location */
.night-garden {
    background-image: radial-gradient(circle at top, rgba(17,42,79,0.4) 0%, transparent 70%),
                      url('assets/bg-stars.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-wrapper {
    position: relative;
    width: 100%;
    padding: 40px 20px;
}

.scroll-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: fill;
    z-index: -1;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
}

.scroll-content {
    color: #4a3b2c; /* Dark brown ink */
    text-align: center;
    position: relative;
    z-index: 2;
}

.scroll-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin: 15px 0 10px;
    color: #2c1a0e;
}

.scroll-content p {
    font-family: var(--font-serif-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.8;
    color: #3e2723;
}

.wax-seal {
    width: 60px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.carriage-container {
    margin-top: 50px;
    width: 100%;
    max-width: 400px;
}

.carriage {
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(173, 216, 230, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section 3: Gifts */
.inner-panel {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
    margin-top: 50px;
}

.small-caps {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 4px;
    color: #aaa;
}

.gift-intro {
    margin: 30px 0;
    font-style: italic;
    color: var(--gold-light);
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.icon.jewel {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--gold-mid);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent),
                rgba(7, 20, 38, 0.8);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.gift-item:hover .icon.jewel {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

/* Placeholder for icons since we don't have font-awesome */
.icon.perfume::after { content: '✨'; }
.icon.makeup::after { content: '💄'; }
.icon.clothes::after { content: '👗'; }
.icon.shoes::after { content: '👠'; }
.icon.accessories::after { content: '👜'; }
.icon.jewelry::after { content: '💎'; }
.icon.pix::after { content: '💠'; }

.info-blocks {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-block {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 25px;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
}

.info-block h3 {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--gold-mid);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-block.forbidden h3 {
    color: #e74c3c;
}

.final-message {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.script-message {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--gold-light);
    line-height: 1.4;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .debutante-name { font-size: 6rem; }
    .portrait-frame { width: 250px; height: 350px; }
    .clock-container { width: 160px; height: 160px; }
    .roses { width: 120px; }
    .script-title { font-size: 4rem; }
    .gift-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}
