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

body {
    background-color: #0a0a0a; /* Deep, rich black */
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    overflow: hidden; /* Prevent scrolling from particles */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Background canvas for particles */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* The central card */
.invitation-container {
    position: relative;
    z-index: 2;
    background: rgba(20, 20, 20, 0.7);
    padding: 3.5rem; /* Increased padding */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(192, 192, 192, 0.1);
    text-align: center;
    border: 1px solid #332a10;
    max-width: 600px; /* Increased from 450px */
    width: 100%;
    backdrop-filter: blur(8px);
    animation: fadeUp 1.5s ease-out forwards;
    opacity: 0;
}

/* Inner decorative border */
.border-frame {
    border: 1px solid rgba(192, 192, 192, 0.4);
    padding: 2rem;
    border-radius: 8px;
}

.pre-title {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #a0a0a0;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.main-title {
    font-family: 'Style Script', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #8a8a8a, #ffffff, #b0b0b0, #ffffff, #8a8a8a);
    /* These two lines are crucial — they force the gradient inside the text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    /* Optional: A tiny glow to make the silver pop against the dark background */
    filter: drop-shadow(0px 2px 4px rgba(255, 255, 255, 0.15));
}

.divider {
    height: 1px;
    width: 60px;
    background: #c0c0c0; /* Base silver */
    margin: 1.5rem auto;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.details {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* Base particle class */
.particle {
    position: absolute;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
}

/* Shape 1: Circle */
.particle.circle {
    border-radius: 50%;
    box-shadow: 0 0 8px #fcf6ba, 0 0 15px #d4af37; 
}

/* Shape 2: Sharp 4-point star using clip-path */
.particle.star {
    clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
    background: #fcf6ba;
}

/* Entrance Animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Particle Animation */
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(10vh) scale(0.5); }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); } /* Peaks brightly */
    100% { opacity: 0; transform: scale(0.5); }
}

/* The new levitating twinkle animation */
@keyframes twinkleLevitate {
    0% { 
        opacity: 0; 
        transform: scale(0.5) translateY(0); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5) translateY(-15px); /* Glows and lifts up */
    }
    100% { 
        opacity: 0; 
        transform: scale(0.5) translateY(-30px); /* Fades out while continuing up */
    }
}