/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a0000 0%, #4a0000 25%, #8b0000 50%, #4a0000 75%, #1a0000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    position: relative;
}

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

/* Container principal */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Seção do perfil */
.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.photo-frame {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    animation: photoGlow 3s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-frame:hover .profile-photo {
    transform: scale(1.1);
}

.photo-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff6b6b, #ff8e8e, #ffb3b3, #ff6b6b);
    opacity: 0.7;
    animation: rotate 4s linear infinite;
    z-index: -1;
}

@keyframes photoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 50px rgba(255, 107, 107, 0.8); }
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.name-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.nickname {
    font-size: 1.5rem;
    color: #ffb3b3;
    font-weight: 300;
}

@keyframes textGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 107, 107, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 107, 0.8); }
}

/* Contador de tempo */
.time-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 107, 107, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.counter-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
}

.time-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    text-align: center;
}

.time-unit {
    background: rgba(255, 107, 107, 0.2);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.time-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.time-label {
    display: block;
    font-size: 0.9rem;
    color: #ffb3b3;
    margin-top: 0.5rem;
}

/* Botão mágico */
.button-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.magic-button {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ff6b6b);
    background-size: 300% 300%;
    border: none;
    border-radius: 50px;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    animation: buttonPulse 2s ease-in-out infinite;
}

.magic-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.magic-button:active {
    transform: translateY(-2px);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-hearts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button-hearts span {
    position: absolute;
    font-size: 1.5rem;
    animation: heartFloat 2s ease-in-out infinite;
}

.button-hearts span:nth-child(1) {
    left: -30px;
    animation-delay: 0s;
}

.button-hearts span:nth-child(2) {
    left: 0px;
    animation-delay: 0.5s;
}

.button-hearts span:nth-child(3) {
    left: 30px;
    animation-delay: 1s;
}

@keyframes buttonPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.2); }
}

/* Carta de amor */
.love-letter {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid #ff6b6b;
    display: none;
    animation: letterAppear 1s ease-out;
    position: relative;
    overflow: hidden;
}

.love-letter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 1rem;
}

.letter-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff6b6b;
    margin: 0;
}

.letter-content {
    position: relative;
    z-index: 2;
}

.letter-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.final-message {
    font-weight: 600;
    color: #ff6b6b;
    text-align: center;
    font-size: 1.3rem !important;
}

.letter-signature {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #ff6b6b;
    position: relative;
    z-index: 2;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Informações especiais */
.special-info {
    display: none;
    animation: fadeInUp 1s ease-out;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 107, 107, 0.3);
    text-align: center;
}

.info-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
}

.favorites {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 107, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.favorite-icon {
    font-size: 1.5rem;
}

.favorite-text {
    font-weight: 500;
    color: #fff;
}

/* Partículas de coração */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart-particle {
    position: absolute;
    color: #ff6b6b;
    font-size: 20px;
    animation: heartFall 4s linear infinite;
    opacity: 0.8;
}

@keyframes heartFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Cupido voador */
.cupid {
    position: fixed;
    top: 20%;
    left: -100px;
    z-index: 5;
    animation: cupidFly 15s linear infinite;
}

.cupid-body {
    font-size: 3rem;
    animation: cupidBob 2s ease-in-out infinite;
}

.cupid-arrow {
    position: absolute;
    top: 50%;
    right: -30px;
    font-size: 1.5rem;
    color: #ff6b6b;
    animation: arrowShoot 1s ease-in-out infinite;
}

@keyframes cupidFly {
    0% { left: -100px; }
    25% { left: 25%; }
    50% { left: 50%; }
    75% { left: 75%; }
    100% { left: calc(100% + 100px); }
}

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

@keyframes arrowShoot {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(10px); }
}

/* Fogos de artifício */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* Animações de entrada */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .name-title {
        font-size: 2.5rem;
    }
    
    .counter-title {
        font-size: 2rem;
    }
    
    .time-display {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .magic-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .love-letter {
        padding: 2rem;
    }
    
    .favorites {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .photo-frame {
        width: 150px;
        height: 150px;
    }
    
    .name-title {
        font-size: 2rem;
    }
    
    .time-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-number {
        font-size: 1.5rem;
    }
}
