/* style.css - Updated with new animations and styles */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Inter:wght@300;400;600;700&display=swap');

/* Custom Tailwind Configuration (using CSS variables for classes in HTML) */
:root {
    /* Mapped from Tailwind config for use in custom CSS */
    --primary-mauve: #8B6B9D;
    --accent-coral: #FF7F6B;
}

/* Applying font definitions for consistency */
.font-cursive {
    font-family: 'Dancing Script', cursive;
}

/* Navigation & View Transitions */
.view-transition {
    transition: opacity 0.7s ease-in-out;
}

/* Initial Confetti Setup */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--accent-coral);
    opacity: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 50;
}

/* Loading Spinner CSS */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-mauve); /* Use primary color for visibility */
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Heart Animation for Landing Page (Unchanged) */
@keyframes heart-fall {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh) scale(1.2) rotate(360deg); opacity: 0.5; }
}

.heart {
    position: absolute;
    bottom: -10vh;
    animation: heart-fall linear infinite;
    z-index: 10;
    color: var(--primary-mauve);
}

.heart:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 2s; }
.heart:nth-child(3) { left: 30%; animation-duration: 18s; animation-delay: 4s; }
.heart:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 6s; }
.heart:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 8s; }
.heart:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 10s; }
.heart:nth-child(7) { left: 70%; animation-duration: 17s; animation-delay: 12s; }
.heart:nth-child(8) { left: 80%; animation-duration: 19s; animation-delay: 14s; }

/* Optional: Add a smooth animate pulse keyframe */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Lightbox styling */
#lightbox {
    transition: opacity 0.3s ease;
}

/* --- Responsive Timeline specific styles --- */
.timeline-item {
    position: relative;
    /* On mobile, items are always full width */
    width: 100%;
    padding-left: 1.5rem; /* Space for the mobile indicator dot */
    margin-bottom: 2rem;
}

/* Timeline vertical line and dots (Desktop/Tablet+) */
@media (min-width: 768px) {
    #timeline-view::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%; /* Center the main line */
        transform: translateX(-50%);
        width: 2px;
        background: linear-gradient(to bottom, transparent, var(--primary-mauve), transparent);
        z-index: 0;
    }

    .timeline-item {
        width: 50%;
        margin-bottom: 3rem;
        padding-left: 0; /* Remove mobile padding */
        z-index: 1;
    }

    /* Items on the left side */
    .timeline-item:nth-child(odd) {
        margin-right: 50%; /* Pushes content to the left of the center line */
        text-align: right;
        transform: translateX(-1rem); /* Space for the dot indicator */
    }

    /* Items on the right side */
    .timeline-item:nth-child(even) {
        margin-left: 50%; /* Pushes content to the right of the center line */
        text-align: left;
        transform: translateX(1rem); /* Space for the dot indicator */
    }

    /* Dot indicator */
    .timeline-item::after {
        content: '';
        position: absolute;
        top: 20px; /* Aligns with the card top */
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: var(--accent-coral);
        border: 3px solid white;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        z-index: 2;
        /* Position relative to the center line (50% of parent width) */
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Timeline dot indicator (Mobile only) */
@media (max-width: 767px) {
    /* Vertical line on the left edge for mobile */
    #timeline-view::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 1rem; /* Place the line on the far left */
        width: 2px;
        background-color: var(--primary-mauve);
        z-index: 0;
    }

    /* Dot indicator for mobile */
    .timeline-item::before {
        content: '';
        position: absolute;
        left: 1rem; /* Match line position */
        top: 20px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: var(--accent-coral);
        border: 3px solid white;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        transform: translateX(-50%);
        z-index: 2;
    }
}