* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    padding: 20px 10px;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.couple-names {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff3385;
    text-shadow: 0 0 20px rgba(255, 51, 133, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.underline {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ff3385, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Contador de tempo */
.time-counter {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 51, 133, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    animation: fadeIn 1.2s ease-out;
}

.hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.heart {
    animation: heartBeat 1.5s infinite;
    display: inline-block;
}

.heart:nth-child(2) { animation-delay: 0.1s; }
.heart:nth-child(3) { animation-delay: 0.2s; }
.heart:nth-child(4) { animation-delay: 0.3s; }
.heart:nth-child(5) { animation-delay: 0.4s; }
.heart:nth-child(6) { animation-delay: 0.5s; }

.time-display {
    text-align: center;
}

.time-label {
    font-size: 1.2rem;
    color: #ff3385;
    margin-bottom: 10px;
    font-weight: 600;
}

.time-values {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
}

.time-values span:not(.label) {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff3385;
}

.time-values .label {
    font-size: 1rem;
    color: #aaa;
}

/* Carrossel */
.carousel-container {
    position: relative;
    margin-bottom: 40px;
    animation: fadeIn 1.4s ease-out;
}

.carousel {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 51, 133, 0.3);
    background: #000;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 51, 133, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.carousel-btn:hover {
    background: rgba(255, 51, 133, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    background: rgba(255, 51, 133, 1);
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.indicator.active {
    background: #ff3385;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 51, 133, 0.6);
}

.indicator:hover {
    background: rgba(255, 51, 133, 0.7);
}

.indicator:active {
    transform: scale(0.9);
}

/* Área de mensagem */
.message-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 51, 133, 0.3);
    border-radius: 20px;
    padding: 30px 20px 25px 20px;
    margin-bottom: 30px;
    animation: fadeIn 1.6s ease-out;
}

.message-title {
    font-size: 1.8rem;
    color: #ff3385;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Coração Neon Pulsante */
.heart-neon {
    display: inline-block;
    font-size: 2rem;
    animation: heartNeonPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 51, 133, 0.8))
            drop-shadow(0 0 20px rgba(255, 51, 133, 0.6))
            drop-shadow(0 0 30px rgba(255, 51, 133, 0.4));
}

.message-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    min-height: 150px;
}

#messageText {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-box p {
    font-size: 1rem;
    line-height: 1.85;
    color: #f0f0f0;
    text-align: left;
    letter-spacing: 0.3px;
    word-spacing: 1px;
    margin: 0;
}

.message-box p.final {
    text-align: center;
    font-weight: 600;
    color: #ff3385;
    font-size: 1.05rem;
    margin-top: 5px;
}

/* Botão Ver História Completa com Efeito Neon Pulsante */
.btn-historia {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #ff3385, #ff6b9d);
    border: 2px solid #ff3385;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 51, 133, 0.6),
        0 0 40px rgba(255, 51, 133, 0.4),
        0 4px 15px rgba(255, 51, 133, 0.3);
    animation: pulseNeon 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-historia::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
}

.btn-historia:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(255, 51, 133, 0.8),
        0 0 60px rgba(255, 51, 133, 0.6),
        0 6px 25px rgba(255, 51, 133, 0.5);
    animation: pulseNeonFast 1s ease-in-out infinite;
}

.btn-historia:active {
    transform: translateY(0) scale(0.98);
}

/* Seção História Completa */
.historia-section {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 51, 133, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    margin: 20px 0 30px 0;
    animation: fadeIn 1s ease-out;
}

.historia-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 51, 133, 0.3);
}

.historia-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff3385;
    text-shadow: 0 0 20px rgba(255, 51, 133, 0.5);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.historia-subtitulo {
    font-size: 1.2rem;
    color: #ffc4d6;
    font-style: italic;
    font-weight: 400;
}

.historia-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Capítulos */
.capitulo {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #ff3385;
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

.capitulo:hover {
    background: rgba(0, 0, 0, 0.4);
    border-left-width: 6px;
    transform: translateX(5px);
}

.capitulo-icone {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s infinite;
}

.capitulo-titulo {
    font-size: 1.4rem;
    color: #ff6b9d;
    margin-bottom: 15px;
    font-weight: 600;
}

.capitulo-texto {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.capitulo-texto p {
    font-size: 1rem;
    line-height: 1.8;
    color: #e8e8e8;
    margin: 0;
}

.palavras-destaque {
    background: rgba(255, 51, 133, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.palavras-destaque p {
    margin: 8px 0;
}

.palavras-destaque strong {
    color: #ff3385;
    font-weight: 700;
}

.capitulo-final {
    background: linear-gradient(135deg, rgba(255, 51, 133, 0.15), rgba(255, 107, 157, 0.1));
    border-left-color: #ff6b9d;
    border-left-width: 6px;
}

.frase-final {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
    border: 2px solid rgba(255, 51, 133, 0.3);
}

.frase-final p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc4d6;
    line-height: 1.9;
}

/* Botão Voltar ao Início (no topo da página história) */
.btn-voltar-inicio {
    display: inline-block;
    padding: 12px 20px;
    margin-bottom: 20px;
    background: rgba(255, 51, 133, 0.2);
    border: 2px solid #ff3385;
    border-radius: 10px;
    color: #ff3385;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-voltar-inicio:hover {
    background: rgba(255, 51, 133, 0.3);
    transform: translateX(-3px);
    box-shadow: 0 3px 15px rgba(255, 51, 133, 0.3);
}

/* Botão Voltar (no final da página história) */
.btn-voltar {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px;
    background: linear-gradient(135deg, #ff3385, #ff6b9d);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 133, 0.3);
}

.btn-voltar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 51, 133, 0.5);
}

.btn-voltar:active {
    transform: translateY(0);
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulseNeon {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 51, 133, 0.6),
            0 0 40px rgba(255, 51, 133, 0.4),
            0 4px 15px rgba(255, 51, 133, 0.3);
        border-color: #ff3385;
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 51, 133, 0.9),
            0 0 60px rgba(255, 51, 133, 0.6),
            0 0 80px rgba(255, 51, 133, 0.4),
            0 4px 20px rgba(255, 51, 133, 0.5);
        border-color: #ff6b9d;
    }
}

@keyframes pulseNeonFast {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 51, 133, 0.8),
            0 0 60px rgba(255, 51, 133, 0.6),
            0 6px 25px rgba(255, 51, 133, 0.5);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 51, 133, 1),
            0 0 80px rgba(255, 51, 133, 0.8),
            0 0 100px rgba(255, 51, 133, 0.6),
            0 6px 30px rgba(255, 51, 133, 0.7);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

@keyframes heartNeonPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 51, 133, 0.8))
                drop-shadow(0 0 20px rgba(255, 51, 133, 0.6))
                drop-shadow(0 0 30px rgba(255, 51, 133, 0.4));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px rgba(255, 51, 133, 1))
                drop-shadow(0 0 40px rgba(255, 51, 133, 0.8))
                drop-shadow(0 0 60px rgba(255, 51, 133, 0.6));
    }
}

/* Responsividade da História */
@media (max-width: 480px) {
    .btn-voltar-inicio {
        font-size: 0.95rem;
        padding: 10px 15px;
    }

    .historia-section {
        padding: 30px 15px;
        margin: 20px 0 20px 0;
    }

    .historia-titulo {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .historia-subtitulo {
        font-size: 1rem;
    }

    .historia-content {
        gap: 25px;
    }

    .capitulo {
        padding: 20px 15px;
    }

    .capitulo-icone {
        font-size: 2rem;
    }

    .capitulo-titulo {
        font-size: 1.2rem;
    }

    .capitulo-texto p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .frase-final p {
        font-size: 1rem;
    }

    .btn-historia {
        font-size: 1rem;
        padding: 13px;
        box-shadow: 
            0 0 15px rgba(255, 51, 133, 0.6),
            0 0 30px rgba(255, 51, 133, 0.4),
            0 4px 15px rgba(255, 51, 133, 0.3);
    }

    .btn-voltar {
        font-size: 1rem;
        max-width: 250px;
    }
}

@media (max-width: 360px) {
    .historia-titulo {
        font-size: 1.8rem;
    }

    .historia-subtitulo {
        font-size: 0.95rem;
    }

    .capitulo-titulo {
        font-size: 1.1rem;
    }

    .capitulo-texto p {
        font-size: 0.9rem;
    }

    .btn-historia {
        font-size: 0.95rem;
        box-shadow: 
            0 0 12px rgba(255, 51, 133, 0.6),
            0 0 25px rgba(255, 51, 133, 0.4),
            0 4px 12px rgba(255, 51, 133, 0.3);
    }

    .btn-voltar {
        font-size: 0.95rem;
        max-width: 220px;
    }

    .btn-voltar-inicio {
        font-size: 0.9rem;
        padding: 9px 12px;
    }
}

/* Rodapé */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
    animation: fadeIn 1.8s ease-out;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Responsividade Mobile-First */
@media (max-width: 480px) {
    body {
        padding: 15px 5px;
    }

    .container {
        padding: 0 10px;
    }

    .couple-names {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .underline {
        width: 120px;
    }

    .time-counter {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .time-label {
        font-size: 1.1rem;
    }

    .time-values {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .time-values span:not(.label) {
        font-size: 1.3rem;
    }

    .carousel {
        height: 500px;
        border-radius: 15px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .message-section {
        padding: 25px 15px 20px 15px;
        margin-bottom: 20px;
    }

    .message-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
        gap: 8px;
    }

    .heart-neon {
        font-size: 1.8rem;
    }

    .message-box {
        padding: 20px 15px;
    }

    #messageText {
        gap: 12px;
    }

    .message-box p {
        font-size: 0.95rem;
        line-height: 1.75;
        letter-spacing: 0.2px;
    }

    .message-box p.final {
        font-size: 1rem;
        margin-top: 3px;
    }

    footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 390px) {
    .couple-names {
        font-size: 1.85rem;
    }

    .message-title {
        font-size: 1.45rem;
    }

    .heart-neon {
        font-size: 1.6rem;
    }

    .carousel {
        height: 470px;
    }

    .time-values {
        font-size: 0.85rem;
    }

    .time-values span:not(.label) {
        font-size: 1.2rem;
    }

    #messageText {
        gap: 10px;
    }

    .message-box p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .message-box p.final {
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .couple-names {
        font-size: 1.75rem;
    }

    .message-title {
        font-size: 1.35rem;
    }

    .heart-neon {
        font-size: 1.5rem;
    }

    .carousel {
        height: 450px;
    }

    .hearts {
        gap: 5px;
        font-size: 1.3rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    #messageText {
        gap: 9px;
    }

    .message-box p {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .message-box p.final {
        font-size: 0.92rem;
    }
}

/* Tablets e telas maiores */
@media (min-width: 768px) {
    .carousel {
        height: 650px;
    }

    #messageText {
        gap: 18px;
        padding: 0 10px;
    }

    .message-box p {
        font-size: 1.1rem;
        line-height: 2;
    }

    .message-box p.final {
        font-size: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .carousel {
        height: 750px;
    }

    .message-box {
        padding: 30px 25px;
    }
}

