/* Color Variables - Valentine's palette + her favorite accents */
:root {
    /* Primary palette from image */
    --valentine-deep: #C00645;
    --valentine-rose: #D05D65;
    --valentine-warm: #E1848C;
    --valentine-soft: #EAA8AC;
    --valentine-light: #E7CDCE;

    /* Her favorite accent colors */
    --midnight-blue: #0a0e27;
    --midnight-blue-light: #1a1f3a;
    --maroon: #8b1538;
    --black: #000000;

    /* Neutrals */
    --white: #ffffff;
    --text-dark: #2d2d2d;
    --text-muted: #777777;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--valentine-light) 0%, var(--valentine-soft) 40%, var(--valentine-warm) 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

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

/* Authentication Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--valentine-soft) 0%, var(--valentine-warm) 60%, var(--valentine-rose) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

html.authenticated .auth-overlay {
    opacity: 0;
    visibility: hidden;
}

.auth-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-content {
    background: rgba(255, 255, 255, 0.96);
    padding: 40px;
    border-radius: 15px;
    box-shadow:
        0 0 0 1px rgba(10, 14, 39, 0.1),
        0 8px 32px rgba(139, 21, 56, 0.15),
        0 2px 8px rgba(10, 14, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
}

.auth-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.1), rgba(139, 21, 56, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--midnight-blue);
    text-align: center;
    margin-bottom: 10px;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--midnight-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--midnight-blue-light);
    border-radius: 8px;
    color: var(--midnight-blue);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(192, 6, 69, 0.2);
    background: rgba(255, 255, 255, 1);
}

.auth-button {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--valentine-deep) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
}

.auth-button:hover {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--valentine-deep) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
}

.auth-button:active {
    transform: translateY(0);
}

.auth-error {
    color: #ff6b6b;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
    margin-top: -10px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow:
        3px 3px 25px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(139, 21, 56, 0.4),
        0 0 60px rgba(139, 21, 56, 0.2);
    letter-spacing: 1px;
    line-height: 1.2;
    text-align: center;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow:
        2px 2px 20px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(139, 21, 56, 0.3),
        0 0 10px rgba(10, 14, 39, 0.4);
    opacity: 0.95;
    text-align: center;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.heart {
    position: absolute;
    color: var(--valentine-deep);
    font-size: 1.5rem;
    opacity: 0;
    text-shadow: 0 0 10px rgba(139, 21, 56, 0.5);
    bottom: 0;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(-100vh - 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Fade-in Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

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

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Section */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--valentine-light) 0%, var(--valentine-soft) 50%, var(--valentine-warm) 100%);
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--midnight-blue);
    margin-bottom: 80px;
    font-weight: 700;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--midnight-blue);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(10, 14, 39, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
}

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

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

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--midnight-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px rgba(10, 14, 39, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    background: var(--maroon);
    box-shadow: 0 0 20px rgba(139, 21, 56, 0.7);
}

.timeline-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.40);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(10, 14, 39, 0.08),
        0 4px 20px rgba(139, 21, 56, 0.12),
        0 2px 6px rgba(10, 14, 39, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(135deg,
        rgba(10, 14, 39, 0.03) 0%,
        transparent 50%,
        rgba(139, 21, 56, 0.03) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(139, 21, 56, 0.15),
        0 12px 40px rgba(139, 21, 56, 0.25),
        0 4px 12px rgba(10, 14, 39, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.timeline-item:hover .timeline-content::after {
    opacity: 1;
}

.timeline-date {
    color: var(--midnight-blue);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--maroon);
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.timeline-photo-thumb-wrapper {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
    gap: 10px;
    /* padding: 20px; */
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
}

/* Timeline Photo Thumbnail */
.timeline-photo-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(10, 14, 39, 0.15),
        0 4px 12px rgba(139, 21, 56, 0.2),
        0 2px 4px rgba(10, 14, 39, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-photo-thumb img,
.timeline-photo-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.timeline-photo-thumb.video-thumb {
    position: relative;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.timeline-photo-thumb:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 0 0 1px rgba(139, 21, 56, 0.25),
        0 8px 20px rgba(139, 21, 56, 0.35),
        0 4px 8px rgba(10, 14, 39, 0.15);
}

/* Anniversary Section */
.anniversary-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--valentine-soft) 0%, var(--valentine-warm) 50%, var(--valentine-rose) 100%);
    position: relative;
}

.anniversary-content {
    max-width: 800px;
    margin: 0 auto;
}

.anniversary-card {
    background: rgba(255, 255, 255, 0.40);
    padding: 60px 50px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow:
        0 0 0 1px rgba(10, 14, 39, 0.1),
        0 8px 32px rgba(139, 21, 56, 0.2),
        0 4px 12px rgba(10, 14, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    position: relative;
}

.anniversary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at top left,
        rgba(139, 21, 56, 0.05) 0%,
        transparent 50%),
        radial-gradient(circle at bottom right,
        rgba(10, 14, 39, 0.05) 0%,
        transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anniversary-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(139, 21, 56, 0.2),
        0 16px 48px rgba(139, 21, 56, 0.3),
        0 6px 16px rgba(10, 14, 39, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.anniversary-card:hover::before {
    opacity: 1;
}

.anniversary-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--maroon);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.anniversary-message {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: justify;
}

.anniversary-signature {
    margin-top: 40px;
    text-align: right;
    color: var(--text-dark);
}

.signature-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--maroon);
    margin-top: 10px;
    font-weight: 700;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
}

.lightbox.hidden {
    display: none;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    border: none;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

#lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    display: none;
}

#lightbox-video.visible {
    display: block;
}

#lightbox-image.hidden {
    display: none;
}

/* Lightbox Navigation Arrows */
.lightbox-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11001;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.lightbox-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.lightbox-arrow-left {
    left: 0;
}

.lightbox-arrow-right {
    right: 0;
}

.lightbox-arrow.hidden {
    display: none;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--valentine-rose) 0%, var(--valentine-deep) 100%);
    text-align: center;
    /* border-top: 3px solid var(--midnight-blue); */
}

.footer-text {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-date {
    color: var(--white);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }

    .anniversary-card {
        padding: 40px 30px;
    }

    .anniversary-title {
        font-size: 2rem;
    }

    .anniversary-message {
        font-size: 1rem;
        text-align: left;
    }

    .auth-content {
        padding: 30px 25px;
    }

    .auth-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

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

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 1.4rem;
    }

    .anniversary-card {
        padding: 30px 20px;
    }

    .anniversary-title {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    /* Most browsers don't support gradients here, so use a solid color */
    background-color: var(--valentine-rose);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--valentine-rose);
    color: var(--white);
}
