/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #feca57;
    --accent-color: #ff9ff3;
    --text-dark: #2c2c54;
    --text-light: #706c61;
    --bg-gradient-1: #ffeaa7;
    --bg-gradient-2: #fdcb6e;
    --bg-gradient-3: #fab1a0;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(255, 107, 157, 0.1);
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #ffeaa7 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 100%);
}

body.dark-mode .header,
body.dark-mode .poetry-card,
body.dark-mode .promise-item,
body.dark-mode .footer,
body.dark-mode .gallery-placeholder,
body.dark-mode .envelope,
body.dark-mode .playlist-item {
    background: rgba(30, 30, 60, 0.95);
    color: #f0f0f0;
}

body.dark-mode .poetry-text,
body.dark-mode .promise-item p,
body.dark-mode .footer-message {
    color: #e0e0e0;
}

/* Partículas de Fundo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: float-up 15s infinite;
}

.particle.heart::before {
    content: '❤️';
    font-size: 20px;
}

.particle.star::before {
    content: '✨';
    font-size: 16px;
}

.particle.flower::before {
    content: '🌸';
    font-size: 18px;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg);
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Cabeçalho */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.heart-symbol {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1.05);
    }
}

.site-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.love-languages {
    position: relative;
    height: 120px;
    margin-bottom: 2rem;
}

.love-phrase {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInOut 10s infinite;
}

.love-phrase[data-lang="pt"] { animation-delay: 0s; }
.love-phrase[data-lang="en"] { animation-delay: 1s; }
.love-phrase[data-lang="es"] { animation-delay: 2s; }
.love-phrase[data-lang="fr"] { animation-delay: 3s; }
.love-phrase[data-lang="it"] { animation-delay: 4s; }
.love-phrase[data-lang="de"] { animation-delay: 5s; }
.love-phrase[data-lang="jp"] { animation-delay: 6s; }
.love-phrase[data-lang="kr"] { animation-delay: 7s; }
.love-phrase[data-lang="ar"] { animation-delay: 8s; }
.love-phrase[data-lang="ru"] { animation-delay: 9s; }

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    5%, 15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    20% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2s ease-out;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Seção de Poesia */
.poetry-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.poetry-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.poetry-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.poetry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
}

.poetry-card:hover::before {
    opacity: 1;
    animation: shimmer 0.5s ease;
}

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

.poetry-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Seção de Promessas */
.promises-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.promises-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.promise-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.promise-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.95);
}

.promise-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.promise-item:nth-child(2) .promise-icon { animation-delay: 0.2s; }
.promise-item:nth-child(3) .promise-icon { animation-delay: 0.4s; }
.promise-item:nth-child(4) .promise-icon { animation-delay: 0.6s; }

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

.promise-item p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* Rodapé */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-heart {
    font-size: 2rem;
    animation: heartbeat 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

.footer-message {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-signature {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

/* Botão de Música */
.music-toggle {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.music-toggle.playing {
    animation: rotate 3s linear infinite;
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 5px 25px rgba(255, 107, 157, 0.8); }
}

/* Contador de Amor */
.love-counter {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.counter-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
}

.counter-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--white);
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Galeria de Momentos */
.gallery-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-placeholder {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    text-align: center;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 201, 87, 0.1));
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.gallery-item:nth-child(2) .gallery-icon { animation-delay: 0.5s; }
.gallery-item:nth-child(3) .gallery-icon { animation-delay: 1s; }
.gallery-item:nth-child(4) .gallery-icon { animation-delay: 1.5s; }
.gallery-item:nth-child(5) .gallery-icon { animation-delay: 2s; }
.gallery-item:nth-child(6) .gallery-icon { animation-delay: 2.5s; }

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

/* Carta de Amor */
.love-letter-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.letter-container {
    max-width: 600px;
    margin: 3rem auto;
    position: relative;
}

.envelope {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.5s ease;
}

.envelope-top {
    width: 0;
    height: 0;
    border-left: 250px solid transparent;
    border-right: 250px solid transparent;
    border-top: 150px solid #ff9ff3;
    position: relative;
    transition: all 0.5s ease;
}

.envelope-body {
    background: #fff;
    height: 300px;
    position: relative;
    top: -1px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.letter {
    padding: 2rem;
    background: linear-gradient(to bottom, #fff, #fef5f5);
    height: 100%;
    transform: translateY(100%);
    transition: all 0.8s ease;
}

.envelope.opened .envelope-top {
    transform: rotateX(180deg) translateY(-150px);
}

.envelope.opened .letter {
    transform: translateY(0);
}

.letter h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.letter p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.letter-signature {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--primary-color);
}

.open-letter-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.open-letter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.open-letter-btn.hidden {
    display: none;
}

/* Playlist Section */
.playlist-section {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

.playlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.playlist-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.playlist-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 201, 87, 0.1));
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.2);
}

.song-icon {
    font-size: 2rem;
    animation: musicNote 2s ease-in-out infinite;
}

.playlist-item:nth-child(2) .song-icon { animation-delay: 0.5s; }
.playlist-item:nth-child(3) .song-icon { animation-delay: 1s; }
.playlist-item:nth-child(4) .song-icon { animation-delay: 1.5s; }

@keyframes musicNote {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.song-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.song-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Botão de Tema */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
}

body.dark-mode .theme-toggle {
    background: rgba(30, 30, 60, 0.9);
    border-color: var(--accent-color);
    color: #ffd700;
}

body.dark-mode .theme-icon::before {
    content: '☀️';
}

/* Responsividade */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .love-phrase {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .poetry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .poetry-card {
        padding: 1.5rem;
    }
    
    .poetry-text {
        font-size: 1rem;
    }
    
    .counter-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .envelope-top {
        border-left-width: 150px;
        border-right-width: 150px;
        border-top-width: 100px;
    }
    
    .envelope-body {
        height: 250px;
    }
    
    .letter {
        padding: 1.5rem;
    }
    
    .letter h3 {
        font-size: 1.5rem;
    }
    
    .letter p {
        font-size: 0.9rem;
    }
    
    .playlist-container {
        grid-template-columns: 1fr;
    }
    
    .music-toggle {
        bottom: 80px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle {
        top: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .promises-container {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .footer-message {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .love-phrase {
        font-size: 2rem;
    }
    
    .love-languages {
        height: 80px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .poetry-card {
        padding: 1.2rem;
    }
    
    .poetry-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .counter-container {
        grid-template-columns: 1fr;
    }
    
    .counter-item {
        padding: 1rem;
    }
    
    .counter-number {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-placeholder {
        height: 200px;
        padding: 2rem;
    }
    
    .envelope {
        transform: scale(0.7);
        margin: -50px auto;
    }
    
    .open-letter-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .playlist-item {
        padding: 1rem;
    }
    
    .song-info h4 {
        font-size: 1rem;
    }
    
    .song-info p {
        font-size: 0.8rem;
    }
}

/* Animação de entrada suave para cards */
.poetry-card,
.promise-item {
    animation: fadeInUp 0.8s ease-out backwards;
}

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

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

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}
