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

body {
    background: linear-gradient(135deg, #f9eed7 0%, #e8d9c4 40%, #cfba9b 100%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
    color: #2c241a;
    line-height: 1.5;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

/* ANIMAÇÃO DE FUNDO SUAVE (gradiente ondulante) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(173, 216, 230, 0.08) 0%, rgba(25, 40, 65, 0.08) 100%);
    pointer-events: none;
    z-index: 0;
    animation: gentleDrift 18s ease infinite alternate;
}

@keyframes gentleDrift {
    0% {
        background-position: 0% 0%;
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        background-position: 100% 20%;
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.bg-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.06"><path fill="none" stroke="%233d2b1a" stroke-width="1.2" d="M70 90 L130 90 M90 70 L90 130 M30 50 L170 50 M50 150 L150 150"/><circle cx="100" cy="100" r="28" stroke="%233d2b1a" fill="none" stroke-width="1"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.8rem 3rem;
}

/* ========== AUDIO CONTROLE DISCRETO ========== */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(245, 235, 220, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 60px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3e2a22;
    border: 1px solid rgba(140, 100, 70, 0.3);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.2s;
}
.audio-control:hover {
    background: #f4e8db;
    transform: scale(0.98);
}
.audio-icon {
    font-size: 1.35rem;
}
.audio-status {
    font-family: 'Inter', monospace;
    letter-spacing: 0.3px;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, .handwritten {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}
h1 {
    font-size: 3.3rem;
    color: #4a2c1a;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.05);
    letter-spacing: 1px;
    margin-top: 0.2rem;
}
.hero-sub {
    font-size: 1.25rem;
    color: #5e3e28;
    border-left: 4px solid #8b6b4d;
    padding-left: 20px;
    margin: 1rem 0 1.4rem;
    font-weight: 400;
}
h2 {
    font-size: 2.2rem;
    color: #3c2a1f;
    border-bottom: 2px dashed #b99e7c;
    display: inline-block;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

/* SECÇÕES */
section {
    margin: 5rem 0;
}
.greeting {
    font-family: 'Inter', monospace;
    background: rgba(255, 250, 240, 0.6);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    color: #4f3b2a;
    backdrop-filter: blur(2px);
    margin-bottom: 1rem;
}

/* CARTÕES DOS MOMENTOS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1.8rem;
}
.moment-card {
    background: #fffaf3;
    border-radius: 32px;
    padding: 1.8rem 1.2rem;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    text-align: center;
    border: 1px solid #eedbc9;
    backdrop-filter: blur(2px);
}
.moment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 36px -14px rgba(70, 40, 20, 0.2);
    background: #ffffff;
}
.moment-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}
.moment-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #8b5a3e;
    margin-bottom: 0.5rem;
}
.moment-card p {
    font-size: 0.9rem;
    color: #6a4e34;
    font-weight: 400;
}

/* LISTA ELEGANTE */
.love-list {
    background: rgba(250, 242, 232, 0.7);
    border-radius: 48px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(4px);
    list-style: none;
}
.love-list li {
    font-size: 1.2rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 450;
    color: #2f241b;
    border-bottom: 1px dotted #dac09f;
    padding-bottom: 8px;
}
.love-list li::before {
    content: "🤍";
    font-size: 1.4rem;
    color: #b47c4a;
}

/* BOTÃO PORTO SEGURO */
.porto-wrapper {
    text-align: center;
    margin: 3rem 0;
}
.porto-btn {
    background: linear-gradient(145deg, #8f6b46, #6a4c30);
    border: none;
    padding: 1.2rem 2.4rem;
    font-size: 1.35rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #fef3e4;
    border-radius: 80px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(119, 78, 45, 0.6);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    width: 90%;
    max-width: 520px;
    animation: heartPulse 1.8s infinite ease-in-out;
}
@keyframes heartPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 18px rgba(0,0,0,0.2), 0 0 0 0 rgba(205, 140, 85, 0.5);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 0 0 12px rgba(205, 140, 85, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 18px rgba(0,0,0,0.2), 0 0 0 0 rgba(205, 140, 85, 0);
    }
}
.porto-btn:hover {
    background: linear-gradient(145deg, #a57752, #7f593b);
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 18px #edcba9;
    animation: none;
    cursor: pointer;
}
.message-area {
    margin-top: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 250, 240, 0.85);
    border-radius: 2rem;
    padding: 1.3rem 1.6rem;
    min-height: 110px;
    font-size: 1.15rem;
    font-weight: 450;
    color: #35271d;
    border: 1px solid #e2cfb6;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.fade-message {
    animation: fadeGentle 0.4s ease-out;
}
@keyframes fadeGentle {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem 0 0.5rem;
    border-top: 1px solid #e0cbaf;
    font-size: 0.95rem;
    color: #6a4c31;
    font-weight: 500;
    letter-spacing: 0.4px;
}

/* FADE-IN NO SCROLL */
.fade-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s ease;
}
.fade-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVIDADE */
@media (max-width: 700px) {
    main {
        padding: 1rem 1.2rem 2rem;
    }
    h1 {
        font-size: 2.3rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .porto-btn {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
        width: 100%;
    }
    .love-list li {
        font-size: 1rem;
    }
    .moment-card h3 {
        font-size: 1.5rem;
    }
    .audio-control {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}
@media (max-width: 480px) {
    .cards-grid {
        gap: 1.2rem;
    }
    .love-list {
        padding: 1.2rem 1.5rem;
    }
}

.surprise-link {
    display: inline-block;
    background: rgba(245, 235, 220, 0.7);
    backdrop-filter: blur(4px);
    padding: 0.7rem 1.8rem;
    border-radius: 60px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #7a5a3e;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #dccdaf;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.surprise-link:hover {
    background: #f4e6d4;
    color: #4f351f;
    transform: translateY(-2px);
    border-color: #b68b5e;
}

/* Ajustes móveis para o controlo de áudio (não sobrepor conteúdo) */
@media (max-width: 480px) {
    .audio-control {
        top: auto;
        bottom: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 32px;
    }
    /* deixar o botão mais discreto e com pouco impacto no conteúdo */
    .audio-icon { font-size: 1rem; }
    .audio-status { display: none; }
}

/* Carousel spin animation and controls */
.photo-card { transition: transform 0.35s ease, opacity 0.35s ease; }
.photo-card.active { transform-origin: center center; }
.photo-card.active img { transform: none !important; }
.photo-card:not(.active) img { transform: none !important; }
.spin { animation: spin360 8s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }
.carousel-controls { text-align:center; margin-top: 0.8rem; }
.carousel-btn { background: rgba(255,255,255,0.06); border: none; color: #6a3d2a; font-size:1.1rem; padding: 0.45rem 0.9rem; margin: 0 6px; border-radius: 10px; cursor:pointer; box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.carousel-btn:hover { transform: translateY(-2px); }

/* ========== Surprise page styles (migrated from surpresa.html) ========== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.photo-card {
    background: rgba(255, 250, 240, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 1rem;
    box-shadow: 0 12px 25px -8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eedbc9;
    text-align: center;
}
.photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    background: #e2cfb6;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.4s ease;
    transform-origin: center center;
}
.photo-card.active img {
    transform: scale(1.06) translateY(-6px);
    box-shadow: 0 22px 40px rgba(0,0,0,0.22);
    opacity: 1;
}
.photo-card:not(.active) img { transform: scale(0.98); opacity: 0.55; }

.image-modal {
    position: fixed; inset: 0; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.6); z-index: 9999; cursor: pointer;
}
.image-modal .modal-inner { max-width: 90%; max-height: 90%; border-radius: 16px; overflow: hidden; }
.image-modal img { width: 100%; height: auto; display:block; border-radius:12px; }
.image-modal .close-tip { text-align:center; color:#fff; margin-top:8px; font-family:Inter; }

/* Falling hearts (background) */
.falling-heart {
    position: fixed;
    top: -140px;
    width: 90px;
    height: 90px;
    background-image: url('img/heart.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1; /* behind main (main z-index:2 / increased to 3 in romantic mode) */
    filter: blur(0.6px) saturate(0.9);
    transform-origin: center;
    animation: fallLinear 9s linear infinite;
}
.falling-heart.two { left: 62%; width: 70px; height: 70px; opacity: 0.18; animation-duration: 11s; animation-delay: 1.2s; }
.falling-heart.one { left: 14%; }
@keyframes fallLinear { 0% { transform: translateY(-220px) rotate(0deg) scale(0.9); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translateY(120vh) rotate(360deg) scale(1.05); opacity: 0; } }

/* Back button */
.back-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(250,240,230,0.95)); color: #6a3d2a; padding: 0.6rem 1.1rem; border-radius: 40px; border: 1px solid rgba(160,110,80,0.12); box-shadow: 0 8px 20px rgba(120,70,40,0.12); text-decoration: none; font-weight: 600; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.back-btn::before { content: ''; display:inline-block; width:20px; height:20px; background-image: url('img/heart.jpg'); background-size: cover; background-position:center; border-radius:6px; opacity:0.95; transform: translateY(0); }
.back-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(120,70,40,0.18); }

.photo-caption { margin-top: 0.7rem; font-size: 0.85rem; font-weight: 500; color: #8b694c; text-align: center; }

/* Proposal box and buttons */
.proposal-box { background: rgba(255, 248, 235, 0.85); backdrop-filter: blur(8px); border-radius: 48px; padding: 2rem 2rem 1.8rem; margin: 3rem 0 2rem; text-align: center; border: 1px solid #eedbc9; box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1); }
.proposal-text { font-family: 'Dancing Script', cursive; font-size: 2.5rem; color: #9b6a42; margin-bottom: 1.5rem; line-height: 1.2; }
.buttons-area { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 1rem 0; }
.btn-yes { background: linear-gradient(145deg, #b58b65, #916e48); border: none; padding: 1rem 2.8rem; font-size: 1.5rem; font-weight: bold; font-family: 'Dancing Script', cursive; color: #fff2e4; border-radius: 60px; cursor: pointer; transition: 0.2s; box-shadow: 0 8px 18px rgba(0,0,0,0.15); animation: gentlePulse 1.6s infinite ease-in-out; }
.btn-no { background: #e2cfb6; border: 2px solid #c7a87e; padding: 1rem 2rem; font-size: 1.3rem; font-weight: 600; font-family: 'Inter', sans-serif; color: #5e3e28; border-radius: 60px; cursor: pointer; transition: 0.1s linear; position: relative; }
.final-message { text-align: center; margin-top: 2rem; font-size: 1.6rem; font-family: 'Dancing Script', cursive; color: #9b4a2e; background: rgba(250, 240, 225, 0.8); padding: 1rem; border-radius: 60px; opacity: 0; transition: 0.4s; }

/* Confetti hearts used on SIM */
.heart-confetti { position: fixed; pointer-events: none; z-index: 999; font-size: 1.8rem; animation: fallHeart 2s ease-out forwards; }
@keyframes fallHeart { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; } }

/* Fade-in */
.fade-scroll { opacity: 0; transform: translateY(25px); transition: opacity 0.7s ease, transform 0.6s ease; }
.fade-scroll.visible { opacity: 1; transform: translateY(0); }

/* Romantic dark theme overrides */
body.romantic-theme { background: linear-gradient(135deg,#2b1620 0%, #301422 40%, #16080a 100%); color: #ffeef5; }
body.romantic-theme main { z-index: 3; }
body.romantic-theme .proposal-box { background: rgba(30,10,15,0.65); border: 1px solid rgba(255,200,220,0.05); box-shadow: 0 18px 40px rgba(10,5,10,0.6); color: #ffeef5; }
body.romantic-theme h1, body.romantic-theme .proposal-text { color: #ffd6e6; text-shadow: 0 4px 18px rgba(0,0,0,0.6); }
body.romantic-theme .photo-card { background: rgba(40,20,28,0.45); border: 1px solid rgba(255,200,220,0.03); color: #ffdfe7; }
body.romantic-theme .back-btn { background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); color:#ffdfe7; box-shadow: 0 8px 24px rgba(10,5,10,0.6); border: 1px solid rgba(255,200,220,0.04); }

@media (max-width: 680px) { .proposal-text { font-size: 1.8rem; } .btn-yes { font-size: 1.2rem; padding: 0.7rem 1.8rem; } .btn-no { font-size: 1rem; padding: 0.7rem 1.2rem; } .photo-gallery { gap: 1rem; } }
