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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #f06292;
    --accent-color: #e91e63;
    --light-color: #fff5f5;
    --dark-color: #4a4a4a;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.heart-loader {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    position: relative;
    transform: rotate(45deg);
    animation: heartbeat 1.2s infinite;
}

.heart-loader:before,
.heart-loader:after {
    content: "";
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.heart-loader:before {
    top: -25px;
    left: 0;
}

.heart-loader:after {
    top: 0;
    left: -25px;
}

@keyframes heartbeat {
    0% { transform: rotate(45deg) scale(0.8); }
    5% { transform: rotate(45deg) scale(0.9); }
    10% { transform: rotate(45deg) scale(0.8); }
    15% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(0.8); }
    100% { transform: rotate(45deg) scale(0.8); }
}

.loading-screen p {
    margin-top: 2rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 10px 15px;
    box-shadow: var(--shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.music-player:hover {
    transform: translateY(-5px);
}

.music-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.song-title {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.controls {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.play-pause {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-pause:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.volume-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.volume-container i {
    font-size: 0.8rem;
    margin-right: 5px;
}

#volume {
    width: 60px;
    height: 5px;
}

/* Header */
header {
    height: 100vh;
    background: linear-gradient(135deg, #ffafbd, #ffc3a0);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    z-index: 2;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 90%;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    color: var(--secondary-color);
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    background-color: rgba(255, 107, 107, 0.1);
}

/* Main Content */
main {
    min-height: 100vh;
}

.section {
    padding: 4rem 0;
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 1s;
}

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

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Love Letter */
.love-letter {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #f8d7da;
}

.love-letter:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.love-letter:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.love-letter h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.love-letter p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.signature {
    text-align: right;
    font-style: italic;
    margin-top: 2rem;
}

.signature-name {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.heart-animation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e91e63"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Cats Gallery */
.cats-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cat-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cat-image {
    height: 200px;
    overflow: hidden;
}

.cat-info {
    padding: 1.5rem;
}

.cat-info h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Photo Placeholders */
.photo-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
    transition: var(--transition);
}

.photo-placeholder:hover {
    background-color: #e9ecef;
    cursor: pointer;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.caption {
    padding: 1rem;
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
}

/* Memory Box */
.memory-box {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    border: 1px solid #f8d7da;
}

.memory-box h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-align: center;
}

.heart-decoration {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
}

.heart-decoration:before,
.heart-decoration:after {
    content: "";
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.heart-decoration:before {
    top: -15px;
    left: 0;
}

.heart-decoration:after {
    top: 0;
    left: -15px;
}

/* Message Card */
.message-card {
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.envelope {
    width: 100%;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.envelope.open {
    transform: rotateY(180deg);
}

.front, .card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.front {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.mail {
    width: 80%;
    height: 80%;
    background-color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.mail p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.card {
    background-color: white;
    padding: 2rem;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.card h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.love-signature {
    text-align: right;
    font-style: italic;
    margin-top: 2rem;
}

.love-name {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Interactive Hearts */
.interactive-hearts {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    header h1 {
        font-size: 3rem;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        width: 100%;
    }
    
    .cats-gallery, .gallery {
        grid-template-columns: 1fr;
    }
    
    .music-player {
        bottom: 10px;
        right: 10px;
    }
    
    .song-title {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .love-letter, .memory-box, .card {
        padding: 1.5rem;
    }
}
