/* ==========================================================================
   CSS de Design Premium - Amor da Minha Vida (Rodrigo & Gabrielle)
   ========================================================================== */

/* Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #08060f;
    --bg-secondary: #130a21;
    --bg-card: rgba(22, 15, 34, 0.5);
    --accent-pink: #ff5e7e;
    --accent-red: #e63946;
    --accent-gold: #dfb257;
    --gold-gradient: linear-gradient(135deg, #ffe5b4 0%, #dfb257 50%, #b58925 100%);
    --text-light: #f1f2f6;
    --text-muted: #a5b1c2;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.45);
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', 'Caveat', cursive;
}

body {
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 10% 20%, #170d2b 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, #2b0e36 0%, transparent 50%),
                      linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px; /* Offset for fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Canvas */
#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header & Navigation Bar */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(8, 6, 15, 0.75);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 2.2rem;
    font-weight: 500;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: default;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a i {
    font-size: 0.85rem;
    color: var(--accent-pink);
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.main-nav a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.main-nav a:hover i {
    transform: scale(1.2);
}

/* Header Controls & Music Visualizer */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(223, 178, 87, 0.15);
    border-color: var(--accent-gold);
    color: white;
}

.music-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 20px;
    height: 15px;
}

.music-visualizer span {
    display: block;
    width: 3px;
    height: 100%;
    background-color: var(--accent-gold);
    border-radius: 3px;
    transform-origin: bottom;
    transform: scaleY(0.2);
    transition: transform 0.3s ease;
}

.music-visualizer.playing span {
    animation: visualize 1.2s ease infinite alternate;
}

.music-visualizer.playing span:nth-child(2) {
    animation-delay: 0.2s;
    animation-duration: 0.8s;
}

.music-visualizer.playing span:nth-child(3) {
    animation-delay: 0.4s;
    animation-duration: 1.4s;
}

.music-visualizer.playing span:nth-child(4) {
    animation-delay: 0.1s;
    animation-duration: 1.0s;
}

@keyframes visualize {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}

/* Mobile Nav Styles */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(8, 6, 15, 0.9);
    border: 1px solid var(--glass-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 6, 15, 0.96);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 30px 40px;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.mobile-nav a i {
    color: var(--accent-pink);
    font-size: 1rem;
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

/* Typography Styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
}

.section-icon {
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
    text-shadow: 0 0 15px rgba(223, 178, 87, 0.3);
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 16px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 60px 24px;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

.love-badge {
    background: rgba(223, 178, 87, 0.1);
    border: 1px solid rgba(223, 178, 87, 0.3);
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 20%, #ffe5b4 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Countdown Regressivo Widget */
.countdown-wrapper {
    background: rgba(22, 15, 34, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 45px;
    box-shadow: 0 15px 45px var(--glass-shadow);
}

.countdown-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-pink);
    margin-bottom: 6px;
}

.countdown-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.counter-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.counter-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.counter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.75;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 0.9rem;
    color: var(--accent-gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gold-gradient);
    color: #110822;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(223, 178, 87, 0.35);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--gold-gradient);
    border-color: var(--accent-gold);
    color: #110822;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(223, 178, 87, 0.25);
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.animate-title {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* Section 2: A Soberana (Tribute to Gabrielle) */
.soberana-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.noble-quote {
    background: rgba(223, 178, 87, 0.03);
    border-left: 4px solid var(--accent-gold);
    border-right: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: 0 16px 16px 0;
    padding: 30px 40px;
    margin: 40px auto 60px;
    max-width: 800px;
    position: relative;
    text-align: center;
}

.quote-icon-left {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5rem;
    color: rgba(223, 178, 87, 0.08);
}

.noble-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.5;
}

.noble-quote cite {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-style: normal;
}

.gallery-title-internal {
    text-align: center;
    font-size: 1.8rem;
    margin: 60px 0 10px 0;
    text-transform: uppercase;
    color: white;
}

.gallery-subtitle-internal {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.polaroid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.polaroid-card {
    background: #ffffff;
    padding: 16px 16px 40px 16px;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 1px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    transform: rotate(var(--rot));
    display: flex;
    flex-direction: column;
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.06) translateY(-10px);
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.25);
}

.polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f7f7f7;
    border: 1px solid #e1e1e1;
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img {
    transform: scale(1.04);
}

.polaroid-caption {
    font-family: var(--font-script);
    color: #1c1d22;
    font-size: 1.8rem;
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

/* Section 3: Nossa Jornada (Linha do Tempo) */
.timeline-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
                rgba(223, 178, 87, 0.1) 0%, 
                var(--accent-gold) 20%, 
                var(--accent-pink) 80%, 
                rgba(255, 94, 126, 0.1) 100%);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        padding-left: 60px;
    }
}

.timeline-img-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: var(--bg-primary);
    padding: 5px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .timeline-img-container {
        left: 30px;
        transform: translateX(-50%);
    }
}

.timeline-dot {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #110822;
    font-size: 1.15rem;
    box-shadow: 0 0 15px rgba(223, 178, 87, 0.35);
    border: 3px solid var(--bg-primary);
}

.timeline-content {
    width: 45%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
}

@media (max-width: 768px) {
    .timeline-content {
        width: 100%;
    }
}

/* Cards scroll animations */
.card-reveal {
    opacity: 0;
}

.card-reveal.left {
    transform: translateX(-40px);
}

.card-reveal.right {
    transform: translateX(40px);
}

@media (max-width: 768px) {
    .card-reveal.left, .card-reveal.right {
        transform: translateY(40px);
    }
}

.card-reveal.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(even) {
        flex-direction: column;
    }
}

.timeline-date {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.timeline-event-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
    font-family: var(--font-heading);
}

.timeline-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    aspect-ratio: 4 / 3;
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-content:hover .timeline-image {
    transform: scale(1.05);
}

.timeline-empty-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(223, 178, 87, 0.03);
    border: 2px dashed rgba(223, 178, 87, 0.25);
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    gap: 12px;
}

.timeline-empty-media i {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(223, 178, 87, 0.3));
}

.timeline-empty-media p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-content:hover {
    border-color: rgba(223, 178, 87, 0.25);
    transform: translateY(-5px);
}

/* Section 4: Santuário de Paz */
.santuario-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.santuario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .santuario-grid {
        grid-template-columns: 1fr;
    }
}

.santuario-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 35px var(--glass-shadow);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.santuario-card:hover {
    transform: translateY(-5px);
    border-color: rgba(223, 178, 87, 0.2);
}

.santuario-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.santuario-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 18px;
    font-family: var(--font-heading);
}

.santuario-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Memorial styling specific */
.memorial-card {
    border-top: 3px solid var(--accent-gold);
}

.memorial-card .card-icon {
    color: var(--accent-gold);
}

.memorial-text {
    font-style: italic;
}

.memorial-divider {
    width: 60px;
    height: 1px;
    background: rgba(223, 178, 87, 0.3);
    margin: 20px 0;
}

.sub-memo {
    font-weight: 600;
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
}

/* Pet styling specific */
.nana-card {
    border-top: 3px solid var(--accent-pink);
}

.nana-card .card-icon {
    color: var(--accent-pink);
}

/* Faith styling specific */
.faith-card {
    border-top: 3px solid #6c5ce7;
}

.faith-card .card-icon {
    color: #a29bfe;
}

.faith-text {
    font-family: var(--font-heading);
    font-size: 1.1rem !important;
    color: var(--accent-gold) !important;
    margin-bottom: 12px;
}

.faith-subtext {
    font-size: 0.85rem !important;
}

/* Love Jar Wrapper */
.love-jar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 950px;
    margin: 60px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 12px 40px var(--glass-shadow);
}

@media (max-width: 768px) {
    .love-jar-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
    }
}

.jar-visual {
    flex-shrink: 0;
}

.glass-jar {
    position: relative;
    width: 180px;
    height: 240px;
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    border-radius: 10px 10px 60px 60px;
    box-shadow: inset 0 10px 20px rgba(255,255,255,0.1),
                inset -10px -10px 30px rgba(0,0,0,0.2),
                0 15px 35px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-jar::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 20px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    filter: blur(2px);
}

.glass-jar:hover {
    transform: scale(1.05) rotate(3deg);
}

.glass-jar:active {
    transform: scale(0.98) rotate(-2deg);
}

.glass-jar.pulse {
    animation: jarShake 0.5s ease-in-out;
}

@keyframes jarShake {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.08) rotate(-5deg); }
    40% { transform: scale(1.08) rotate(5deg); }
    60% { transform: scale(1.08) rotate(-3deg); }
    80% { transform: scale(1.08) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.jar-lid {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: linear-gradient(90deg, #8c6d58, #bfa088, #8c6d58);
    border-radius: 8px 8px 4px 4px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.jar-lid::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10px;
    right: 10px;
    height: 6px;
    background: #6d513e;
    border-radius: 0 0 4px 4px;
}

.jar-label {
    background: #fdfaf0;
    color: #5d4037;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    transform: rotate(-3deg);
    border: 1px dashed #5d4037;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
    pointer-events: none;
    z-index: 2;
    text-transform: uppercase;
    white-space: nowrap;
}

.hearts-inside {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.jar-heart {
    position: absolute;
    bottom: -20px;
    font-size: 1.25rem;
    left: var(--l);
    animation: floatHeart 4s infinite linear;
    animation-delay: var(--d);
    opacity: 0.8;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-110px) scale(1.1) rotate(360deg);
        opacity: 0;
    }
}

.jar-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .jar-content {
        align-items: center;
        text-align: center;
    }
}

.jar-content-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.jar-content-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.love-note-box {
    width: 100%;
    min-height: 110px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 4px solid var(--accent-gold);
    border-radius: 4px 16px 16px 4px;
    padding: 24px;
    margin: 20px 0 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.love-note-box.pulse {
    animation: notePulse 0.5s ease-out;
}

@keyframes notePulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); }
}

/* Section 5: A Carta de Amor (Love Letter) */
.love-letter-section {
    padding: 100px 0 160px 0;
    position: relative;
    z-index: 1;
}

.envelope-wrapper {
    height: 380px;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope {
    position: relative;
    width: 320px;
    height: 220px;
    background: #e63946;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
}

.envelope:hover {
    transform: translateY(-8px);
}

.envelope .flap {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 115px solid #e63946;
    border-bottom: 0 solid transparent;
    transform-origin: top;
    transition: transform 0.4s ease 0.2s, z-index 0.2s ease 0.2s;
    z-index: 4;
}

.envelope .pocket {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 160px solid #f25562;
    border-right: 160px solid #f25562;
    border-top: 110px solid transparent;
    border-bottom: 110px solid #f25562;
    border-radius: 0 0 12px 12px;
    z-index: 3;
}

.envelope .letter {
    position: absolute;
    bottom: 0;
    width: 290px;
    height: 195px;
    background: #fffdf9;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
    transition: transform 0.5s ease 0s, height 0.5s ease 0s;
    overflow: hidden;
    color: #1c1d22;
}

.letter-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.letter-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.letter-body {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #3f444f;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 12px;
    padding-right: 4px;
}

.letter-body::-webkit-scrollbar {
    width: 4px;
}
.letter-body::-webkit-scrollbar-thumb {
    background: rgba(230, 57, 70, 0.3);
    border-radius: 4px;
}

.letter-signature {
    text-align: right;
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: #1c1d22;
    line-height: 1.2;
}

.signature-name {
    font-weight: 600;
    color: var(--accent-red);
}

.envelope-heart {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    color: var(--accent-red);
    font-size: 1.4rem;
    transition: transform 0.3s ease 0.4s;
}

/* Envelope Open State */
.envelope.open {
    transform: translateY(60px);
}

.envelope.open .flap {
    transform: rotateX(180deg);
    z-index: 1;
    transition: transform 0.4s ease 0s, z-index 0.2s ease 0.1s;
}

.envelope.open .letter {
    height: 320px;
    transform: translateY(-160px);
    z-index: 3;
    transition: transform 0.5s ease 0.3s, height 0.5s ease 0.3s;
}

.envelope.open .envelope-heart {
    transform: translateX(-50%) translateY(40px) scale(0);
    transition: transform 0.3s ease 0s;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(6, 4, 12, 0.96);
    backdrop-filter: blur(8px);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.lightbox-img {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-light);
    padding: 20px 0;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

/* Footer styling */
.main-footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 6, 15, 0.7);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-motto {
    font-family: var(--font-heading);
    color: var(--accent-gold) !important;
    font-size: 0.95rem !important;
    letter-spacing: 1px;
}

.footer-heart {
    color: var(--accent-red);
    font-size: 1.25rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Click Spark Hearts */
.click-heart {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 99999;
    animation: burst 0.8s ease-out forwards;
}

@keyframes burst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Header is hidden, mobile-nav-toggle is used instead */
    }
    
    .app-header {
        display: none; /* Hide top header on mobile */
    }

    .mobile-nav-toggle {
        display: flex; /* Show hamburger button */
    }

    .mobile-nav {
        display: block; /* Enable panel */
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .counter-number {
        font-size: 2.2rem;
    }
    
    .countdown-wrapper {
        padding: 20px 12px;
    }
    
    .counter-grid {
        gap: 8px;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .timeline-event-title {
        font-size: 1.3rem;
    }
}
