/* Globals & Resets */
:root {
    --primary: #d90429;
    --primary-light: #ef233c;
    --secondary: #ff8fa3;
    --light-pink: #ffb3c6;
    --gold: #d4af37;
    --white: #ffffff;
    --bg-base: #fdfafb; /* Very soft light pinkish white */
    --text-dark: #4a1523;
    --text-light: #fff;
    
    /* Modern Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(217, 4, 41, 0.05);
    --glass-blur: blur(14px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Background Animated Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    animation: floatBlob 25s infinite ease-in-out alternate;
    opacity: 0.6;
}
.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--light-pink);
    animation-delay: 0s;
}
.blob-2 {
    top: 30%; right: -15%;
    width: 60vw; height: 60vw;
    background: rgba(239,35,60,0.12);
    animation-delay: -5s;
}
.blob-3 {
    bottom: -15%; left: 15%;
    width: 45vw; height: 45vw;
    background: rgba(212,175,55,0.15);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.05); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

/* Modern Typography */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 60px;
    font-weight: 300;
}

/* Base Sections */
section {
    padding: 120px 0;
    position: relative;
}

/* Audio Player Btn */
.music-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    box-shadow: var(--glass-shadow);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.15);
    background-color: var(--white);
    color: var(--primary-light);
    box-shadow: 0 10px 40px rgba(217, 4, 41, 0.15);
}

.music-btn.playing {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    animation: softPulse 2s infinite;
}

@keyframes softPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(217, 4, 41, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0); }
}

/* Hero Section */
.hero {
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 40px 40px; /* Modern bottom curve */
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(89, 13, 34, 0.6) 0%, rgba(217, 4, 41, 0.2) 100%);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.4);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.8;
}
.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.scroll-line {
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 15px;
    background: var(--white);
    animation: scrollDown 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollDown {
    0% { transform: translateY(-15px); }
    100% { transform: translateY(40px); }
}

/* Contador Section Modernizado */
.contador-section {
    background: transparent;
}

.contador {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.tempo-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 35px 30px;
    border-radius: 30px;
    min-width: 140px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tempo-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tempo-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(217, 4, 41, 0.1);
}

.tempo-box:hover::before {
    opacity: 1;
}

.tempo-box span {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tempo-box p {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Timeline Section Modernizada */
.timeline-section {
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0;
}

/* Modern Gradient Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-light), var(--secondary), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
    margin-bottom: 80px;
}

.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

/* Elegant Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-base);
    border: 4px solid var(--primary);
    top: 50px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 6px rgba(217, 4, 41, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background-color: var(--primary);
    box-shadow: 0 0 0 8px rgba(217, 4, 41, 0.2);
}

.timeline-item:nth-child(even)::after { left: -10px; }

/* Glass Panel for entries */
.timeline-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:hover .timeline-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.timeline-img {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 240px;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-item:hover .timeline-img img {
    transform: scale(1.1);
}

.timeline-img video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-content {
    padding: 0 10px 10px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: rgba(217, 4, 41, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0.85;
}

/* Galeria Section Modernizada */
.galeria-section {
    background: transparent;
}

.swiper {
    width: 100%;
    padding-top: 60px;
    padding-bottom: 80px;
}

.swiper-slide {
    width: 320px;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    /* Glass border effect for images */
    border: 8px solid var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.5s ease;
    background: var(--white);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    transition: transform 0.7s ease;
}

.swiper-slide-active {
    box-shadow: 0 30px 60px rgba(217, 4, 41, 0.2);
}

.swiper-slide:hover img {
    transform: scale(1.08);
}

.swiper-pagination-bullet {
    background: rgba(217, 4, 41, 0.3) !important;
    width: 10px; height: 10px;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    transform: scale(1.5);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--text-dark) !important;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--white);
    color: var(--primary) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.5rem !important;
}

/* Carta Section Modernizada */
.carta-section {
    background: transparent;
    padding: 150px 0;
}

.carta-box {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    max-width: 850px;
    margin: 0 auto;
    padding: 80px 60px;
    border-radius: 40px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.carta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    margin-bottom: -20px;
    display: block;
}

.carta-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
}

.carta-texto {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 50px;
    font-style: italic;
    position: relative;
}

.assinatura {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
    display: block;
}

/* Footer Section */
.footer-section {
    padding: 100px 0 80px;
    background: linear-gradient(to bottom, transparent, rgba(217, 4, 41, 0.03));
}

.final-message {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.heart {
    font-size: 5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(217, 4, 41, 0.3));
    animation: heartbeat 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

/* Modal Images */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 0, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: zoom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes zoom {
    from {transform: translate(-50%, -50%) scale(0.9); opacity: 0;}
    to {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; padding-left: 90px; padding-right: 0; margin-bottom: 60px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 30px !important; }
}

@media screen and (max-width: 768px) {
    .hero-title { font-size: 3.5rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-title { font-size: 2.5rem; }
    
    .contador { gap: 20px; }
    .tempo-box { min-width: 120px; padding: 25px 20px; border-radius: 20px; }
    .tempo-box span { font-size: 2.8rem; }
    
    .timeline-item { padding-left: 70px; }
    .timeline::after { left: 20px; }
    .timeline-item::after { left: 10px !important; width: 16px; height: 16px; top: 40px; }
    
    .carta-box { padding: 50px 30px; border-radius: 30px; }
    .carta-title { font-size: 3.5rem; }
    .carta-texto { font-size: 1.2rem; }
    
    .final-message { font-size: 2rem; }
    
    .swiper-button-next, .swiper-button-prev { display: none; } /* Hide arrows on mobile */
}

@media screen and (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .tempo-box { min-width: 46%; }
    .carta-box { padding: 40px 20px; }
    .carta-title { font-size: 3rem; }
    .swiper-slide { width: 280px; height: 400px; border-width: 5px; }
}
