:root {
    /* Frutiger Aero Color Palette */
    --aero-blue: #00A3E8;
    --aero-light-blue: #70D1FF;
    --aero-green: #7AC142;
    --aero-white: #FFFFFF;
    --aero-glass: rgba(255, 255, 255, 0.4);
    --aero-glass-dark: rgba(255, 255, 255, 0.1);
    --text-main: #111111; /* Mais escuro para dar contraste */
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&display=swap');

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

body {
    /* Fonte clássica, super limpa e extremamente legível */
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Fundo Rosa com GIF de Estrelas por cima */
    background-image: url('3f5aab1f5fcccbfb49c7e8c19815ceb4.gif'), linear-gradient(135deg, #fff0f5 0%, #ffb6c1 50%, #ff69b4 100%);
    background-repeat: repeat, no-repeat;
    background-attachment: fixed, fixed;
    background-size: auto, cover;
    min-height: 100vh;
}

/* ==================
   START OVERLAY (Para Música)
================== */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff0f5 0%, #ffb6c1 50%, #ff69b4 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.start-overlay h2 {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==================
   FLOATING HEARTS
================== */
.hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -100px;
    font-size: 30px;
    animation: rise infinite ease-in;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.5));
}

.heart:nth-child(1) { font-size: 50px; left: 10%; animation-duration: 8s; }
.heart:nth-child(2) { font-size: 30px; left: 30%; animation-duration: 5s; animation-delay: 1s; }
.heart:nth-child(3) { font-size: 80px; left: 60%; animation-duration: 12s; animation-delay: 2s; }
.heart:nth-child(4) { font-size: 40px; left: 80%; animation-duration: 7s; animation-delay: 0.5s; }
.heart:nth-child(5) { font-size: 25px; left: 50%; animation-duration: 6s; animation-delay: 3s; }

@keyframes rise {
    0% { transform: translateY(0) scale(1) rotate(-10deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.2) rotate(10deg); opacity: 0; }
}


#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ==================
   GLASSMORPHISM (AERO) PANELS
================== */
.glass-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 2px 2px rgba(255, 255, 255, 0.8);
    padding: 40px;
}

/* ==================
   HERO SECTION
================== */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    color: var(--aero-blue);
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 1.2rem;
    color: #111;
    font-weight: 600;
}

.hero-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 5px solid rgba(255, 255, 255, 0.8);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Polaroide grande do topo */
.hero-polaroid {
    width: 280px !important;
    padding: 15px 15px 50px 15px !important;
}

/* The Gloss Overlay (Creates the classic reflection) */
.gloss-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.hero-image-container .gloss-overlay {
    border-radius: 50% 50% 0 0;
}

/* ==================
   MESSAGE SECTION
================== */
.message-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.polaroid-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-panel {
    flex: 1;
    max-width: 500px;
}

.message-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--aero-green);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.msg-content p {
    font-size: 1.15rem;
    font-weight: 700;
    color: #c2185b; /* Rosa escuro/magenta elegante e legível */
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 1);
    margin-bottom: 15px;
    text-align: center;
}

.signature {
    font-weight: 800;
    color: #e91e63; /* Rosa vibrante */
    margin-top: 30px;
}

/* ==================
   GALLERY SECTION
================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--aero-blue);
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.gallery-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.glossy-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 260px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glossy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.glossy-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
}

.glossy-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #444;
}

/* ==================
   SURPRISE SECTION (AERO BUTTON)
================== */
.surprise-section {
    text-align: center;
    padding: 20px;
}

.btn-aero {
    position: relative;
    background: linear-gradient(180deg, var(--aero-light-blue) 0%, var(--aero-blue) 100%);
    border: 1px solid #0078D7;
    border-radius: 30px;
    padding: 15px 40px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 163, 232, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.5);
    transition: transform 0.1s;
}

.btn-aero:active {
    transform: scale(0.97);
}

.btn-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.2rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
}

#surprise-message {
    margin-top: 30px;
    padding: 20px;
}

#surprise-message h3 {
    font-size: 2rem;
    color: var(--aero-green);
    font-weight: 300;
}

.hidden {
    display: none;
}

/* ==================
   FOOTER
================== */
.footer {
    text-align: center;
    padding-top: 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.polaroid-bg {
    background: #fff;
    padding: 10px 10px 40px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 4px;
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-bg:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 15px 40px rgba(0, 163, 232, 0.4);
    z-index: 10;
}

.polaroid-bg img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Para ficar quadradinho igual foto de polaroide */
    object-fit: cover;
    border: 1px solid #ddd;
    display: block;
}

.polaroid-bg.tilt-left { transform: rotate(-6deg); }
.polaroid-bg.tilt-right { transform: rotate(5deg); }
.polaroid-bg.tilt-left-more { transform: rotate(-8deg); }
.polaroid-bg.tilt-right-more { transform: rotate(7deg); }

/* ==================
   POLAROID GALLERY
================== */
.polaroid-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 0;
}

.gallery-polaroid {
    width: 250px !important;
    padding: 12px 12px 45px 12px !important;
}

/* ==================
   GLITTER TEXT EFFECT
================== */
.glitter-text {
    background: linear-gradient(90deg, #c2185b, #ff4081, #ff80ab, #ff4081, #c2185b); /* Tons de Rosa */
    background-size: 200% auto;
    color: #ff4081;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.5px #fff; /* Borda mais grossa para destacar */
    animation: shine 2.5s linear infinite;
    font-weight: 800;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3); /* Sombra mais forte */
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* ==================
   RESPONSIVIDADE (CELULAR)
================== */
@media (max-width: 768px) {
    /* Ajustes Gerais */
    .wrapper {
        padding: 20px 10px;
        gap: 30px;
    }
    
    /* Fontes Menores para caber na tela */
    .title {
        font-size: 2.2rem;
    }
    .start-overlay h2 {
        font-size: 1.8rem;
    }
    .message-section h2 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Empilhar as polaroides em vez de ficar lado a lado */
    .message-section {
        flex-direction: column;
    }
    
    .polaroid-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Reduzir um pouco o tamanho das fotos */
    .polaroid-bg {
        width: 140px;
        padding: 8px 8px 30px 8px;
    }
    
    .hero-polaroid {
        width: 240px !important;
        padding: 12px 12px 40px 12px !important;
    }
    
    .gallery-polaroid {
        width: 150px !important;
        padding: 8px 8px 35px 8px !important;
    }
}
