:root {
    --primary-blue: #1e3a8a;
    --light-blue: #60a5fa;
    --soft-blue: #dbeafe;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #1e293b;
    --bg-color: #f8fafc;
    --hero-overlay: rgba(30, 58, 138, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* 1. Hero Section */
.hero {
    background: url('Fundo.PNG') no-repeat center center/cover;
    position: relative;
    height: 100vh;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    backdrop-filter: blur(4px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: scale(0.95);
}

/* 2. Music Section */
.music-section {
    background: linear-gradient(135deg, var(--soft-blue), #ffffff);
}

.section-badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--light-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.music-text {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 3rem;
}

.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.disc-container {
    position: relative;
    width: 180px;
    height: 180px;
}

#music-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.15);
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}

.disc-container.playing #music-disc {
    animation-play-state: running;
}

.music-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.btn-music {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 3. Timeline Section */
.timeline-section {
    background: white;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--soft-blue);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2.5rem;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--light-blue);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--soft-blue);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-color);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid var(--soft-blue);
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.3rem;
}

.timeline-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: cover;
    display: block;
}

/* 4. Gallery Section */
.gallery-section {
    background: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.8), transparent);
    color: white;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
}

/* 5. Poems Section */
.poems-section {
    background: linear-gradient(to bottom, #ffffff, var(--soft-blue));
}

.poetry-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.poem-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.05);
    border: 1px solid var(--soft-blue);
}

.poem-card h3 {
    margin: 1rem 0;
    color: var(--primary-blue);
}

.poem-card p {
    font-style: italic;
    color: #64748b;
}

.poem-icon {
    font-size: 1.5rem;
}

/* 6. Special Section */
.special-section {
    background: var(--primary-blue);
    color: white;
}

.special-section h2 {
    color: white;
}

.surprise-box {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-heart {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

#surprise-message {
    margin-top: 2rem;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.hidden {
    display: none;
}

.surprise-box.revealed .btn-heart {
    display: none;
}

/* 7. Final Section */
.final-section {
    background: white;
}

.final-img-container {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 2rem;
    transform: rotate(3deg);
    border: 10px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.final-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-section h1 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.final-section p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Animations heart-pulse */
.heart-pulse {
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

@media (min-width: 600px) {
    .container {
        max-width: 500px;
    }
}