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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fundo simples */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 192, 203, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.3);
    border: 2px solid rgba(255, 192, 203, 0.5);
}

.main-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: none;
    animation: gentle-bounce 3s ease-in-out infinite;
    font-weight: 700;
}

.emoji {
    display: inline-block;
    animation: rotate 3s linear infinite;
}

.subtitle {
    font-size: 1.5rem;
    color: #d63384;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Confetes animados - reduzidos para melhor performance */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff6b9d;
    animation: confetti-fall 4s linear infinite;
    border-radius: 50%;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: #ff6b9d;
}

.confetti:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    background: #ffc0cb;
}

.confetti:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    background: #ffb6c1;
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 3s;
    background: #ffc0cb;
}

.confetti:nth-child(5) {
    left: 80%;
    animation-delay: 1.5s;
    background: #ff6b9d;
}


/* Seção de mensagens */
.messages-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.message-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.9));
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 192, 203, 0.3);
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.message-card:hover::before {
    left: 100%;
}

.message-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 182, 193, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: gentle-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 182, 193, 0.3));
}

.message-card h3 {
    background: linear-gradient(45deg, #d63384, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.message-card p {
    color: #6c5ce7;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 500;
}


/* Seção especial sobre beleza */
.beauty-section {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.beauty-card {
    background: linear-gradient(145deg, rgba(255, 182, 193, 0.9), rgba(255, 240, 245, 0.95), rgba(255, 192, 203, 0.9));
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(255, 182, 193, 0.4);
    border: 3px solid rgba(255, 105, 180, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 20px;
    animation: beauty-glow 4s ease-in-out infinite;
}

.beauty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: beauty-shine 3s ease-in-out infinite;
}

.beauty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: beauty-heartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(255, 105, 180, 0.5));
}

.beauty-card h2 {
    background: linear-gradient(45deg, #ff69b4, #ff1493, #ff6b9d, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: none;
    animation: beauty-title-glow 3s ease-in-out infinite;
}

.beauty-card p {
    color: #2c2c2c;
    font-size: 1.3rem;
    line-height: 1.8;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.beauty-sparkles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.beauty-sparkles span {
    font-size: 2rem;
    animation: beauty-sparkle-float 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.6));
}

.beauty-sparkles span:nth-child(1) { animation-delay: 0s; }
.beauty-sparkles span:nth-child(2) { animation-delay: 0.5s; }
.beauty-sparkles span:nth-child(3) { animation-delay: 1s; }
.beauty-sparkles span:nth-child(4) { animation-delay: 1.5s; }

/* Galeria em Carrossel */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-section h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.2);
    border: 2px solid rgba(255, 192, 203, 0.3);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    border-radius: 0 0 20px 20px;
}

.carousel-slide-number {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.carousel-slide-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-btn i {
    font-size: 1.2rem;
    color: #d63384;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: #d63384;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(214, 51, 132, 0.5);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.carousel-info {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Otimização para telas grandes */
@media (min-width: 1200px) {
    .carousel-slide img {
        height: 600px;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
    }
}

/* Otimização para telas médias */
@media (min-width: 769px) and (max-width: 1199px) {
    .carousel-slide img {
        height: 450px;
        object-fit: contain;
        object-position: center;
    }
}

/* Seção de desejos */
.wishes-section {
    margin-bottom: 60px;
}

.wishes-section h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.wish-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wish-item:hover {
    transform: scale(1.05);
}

.wish-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.wish-item span {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mensagem final */
.final-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.heart-animation {
    font-size: 4rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

.final-message h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.final-message p {
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.final-wish {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin-top: 20px !important;
}


.birthday-cake {
    font-size: 3rem;
    animation: gentle-bounce 3s ease-in-out infinite;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.footer p {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.age {
    font-size: 1.3rem !important;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animações otimizadas */
@keyframes gentle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

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

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


@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confetti-fall-heart {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes confetti-fall-star {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    75% {
        transform: translateY(75vh) rotate(270deg) scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.6);
        opacity: 0;
    }
}

@keyframes confetti-fall-circle {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    30% {
        transform: translateY(30vh) rotate(120deg) scale(1.1);
        opacity: 0.9;
    }
    70% {
        transform: translateY(70vh) rotate(240deg) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes beauty-glow {
    0%, 100% {
        box-shadow: 0 25px 50px rgba(255, 182, 193, 0.4);
    }
    50% {
        box-shadow: 0 30px 60px rgba(255, 182, 193, 0.6);
    }
}

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

@keyframes beauty-heartbeat {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 16px rgba(255, 105, 180, 0.5));
    }
    25% {
        transform: scale(1.1);
        filter: drop-shadow(0 10px 20px rgba(255, 105, 180, 0.7));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 12px 24px rgba(255, 105, 180, 0.8));
    }
    75% {
        transform: scale(1.08);
        filter: drop-shadow(0 10px 20px rgba(255, 105, 180, 0.7));
    }
}

@keyframes beauty-title-glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@keyframes beauty-sparkle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) rotate(180deg) scale(0.8);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(1.1);
        opacity: 1;
    }
}

@keyframes float-heart {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) rotate(5deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) rotate(-3deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) rotate(8deg) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes float-star {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-12px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-6px) rotate(180deg) scale(0.8);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-18px) rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes float-circle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-15px) scale(1.05);
        opacity: 0.7;
    }
}



/* Responsividade */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .messages-section {
        grid-template-columns: 1fr;
    }
    
    .wishes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .beauty-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .beauty-card h2 {
        font-size: 2rem;
    }
    
    .beauty-card p {
        font-size: 1.1rem;
    }
    
    .beauty-icon {
        font-size: 3rem;
    }
    
    .beauty-sparkles span {
        font-size: 1.5rem;
    }
    
    .final-message h2 {
        font-size: 2rem;
    }
    
    .final-message p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    
    /* Carrossel responsivo */
    .carousel-container {
        padding: 15px;
        margin: 0 10px;
    }
    
    .carousel-slide img {
        height: 400px;
        object-fit: contain;
        object-position: center;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .carousel-indicators {
        gap: 8px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .message-card {
        padding: 20px;
    }
    
    .final-message p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .footer p {
        font-size: 1.1rem;
    }
    
    .beauty-card {
        padding: 25px 15px;
        margin: 0 5px;
    }
    
    .beauty-card h2 {
        font-size: 1.8rem;
    }
    
    .beauty-card p {
        font-size: 1rem;
    }
    
    .beauty-icon {
        font-size: 2.5rem;
    }
    
    .beauty-sparkles {
        gap: 15px;
    }
    
    .beauty-sparkles span {
        font-size: 1.2rem;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
    }
    
    /* Carrossel mobile */
    .carousel-container {
        padding: 10px;
        margin: 0 5px;
    }
    
    .carousel-slide img {
        height: 300px;
        object-fit: contain;
        object-position: center;
    }
    
    .carousel-wrapper {
        gap: 10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-indicators {
        gap: 6px;
        margin: 20px 0 15px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Estilos adicionais para a galeria */
.gallery-overlay i {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-overlay span {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
