:root {
    --color-night: #0a1128;
    --color-midnight: #1c2541;
    --color-celestial: #3a506b;
    --color-gold: #ffd700;
    --color-stardust: #e8dcc4;
    --color-white: #ffffff;
}

body {
    background: linear-gradient(to bottom, #0a1128 0%, #1c2541 50%, #2d3561 100%);
    font-family: "Raleway", sans-serif;
    color: var(--color-stardust);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* Animated Starry Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

/* Shooting Star Animation */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shoot 3s linear infinite;
    opacity: 0;
    z-index: 1;
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: 30%;
    left: 60%;
    animation-delay: 2s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(300px) translateY(300px);
        opacity: 0;
    }
}

/* Typography */
.dancing-script {
    font-family: "Dancing Script", cursive;
    font-weight: 400;
}

.raleway-light {
    font-family: "Raleway", sans-serif;
    font-weight: 300;
}

.raleway-bold {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

.big-font {
    font-size: 5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.medium-font {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Floating Sections */
.section-container {
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.celestial-card {
    background: rgba(58, 80, 107, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.celestial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.celestial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.2);
}

/* Moon Divider */
.moon-divider {
    font-size: 3rem;
    color: var(--color-gold);
    margin: 2rem 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Buttons */
.btn-celestial {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ffed4e 100%);
    color: var(--color-night);
    border: none;
    padding: 15px 40px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-celestial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    text-decoration: none;
    color: var(--color-night);
}

.btn-celestial-outline {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    padding: 12px 35px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
}

.btn-celestial-outline:hover {
    background: var(--color-gold);
    color: var(--color-night);
    text-decoration: none;
}

/* Photo Frame */
.couple-photo-frame {
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--color-gold);
    display: inline-block;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    margin-bottom: 2rem;
}

.couple-photo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Countdown with Glow */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    min-width: 80px;
}

.countdown-number {
    font-size: 3rem;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-stardust);
    margin-top: 8px;
}

/* RSVP */
.rsvp-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .rsvp-buttons {
        flex-direction: row;
    }

    .big-font {
        font-size: 6rem;
    }
}

/* Music Button */
.music-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.music-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

/* Constellation Gallery */
.constellation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.constellation-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.constellation-item::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.constellation-item:hover::before {
    opacity: 1;
}

.constellation-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

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

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

/* Stellar Timeline */
.stellar-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.stellar-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-left: 120px;
}

.stellar-time {
    position: absolute;
    left: 0;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stellar-dot {
    position: absolute;
    left: 90px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    z-index: 2;
}

.stellar-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.stellar-item::after {
    content: '';
    position: absolute;
    left: 99px;
    top: 25px;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.5), transparent);
}

.stellar-item:last-child::after {
    display: none;
}

.stellar-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-stardust);
}

.stellar-content p {
    margin-bottom: 0;
    color: rgba(232, 220, 196, 0.7);
}

/* Stellar Hotel Cards */
.stellar-hotel {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stellar-hotel:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}