:root {
    --midnight-blue: #191970;
    --deep-violet: #4B0082;
    --gold: #FFD700;
    --silver: #E0E0E0;
    --white: #FFFFFF;
}

body {
    font-family: 'Cinzel', serif;
    color: var(--silver);
    background-color: var(--midnight-blue);
    overflow-x: hidden;
}

.script-font {
    font-family: 'Pinyon Script', cursive;
}

.names-font {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}

.serif-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.section-padding {
    padding: 5rem 0;
}

/* Music Control */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.btn-music-celestial {
    background-color: rgba(25, 25, 112, 0.5);
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.btn-music-celestial:hover {
    background-color: var(--gold);
    color: var(--midnight-blue);
    transform: rotate(360deg);
}

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

/* Starry Background Animation */
@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -10000px 5000px;
    }
}

@keyframes move-clouds-back {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 10000px 0;
    }
}

.stars,
.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('http://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: 0;
}

.twinkling {
    background: transparent url('http://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    z-index: 1;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.5;
}

.relative-z {
    position: relative;
    z-index: 2;
}

.hero-image-frame {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 5px;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background-color: rgba(25, 25, 112, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.date-font {
    font-size: 1.5rem;
    color: var(--silver);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.location-font {
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.countdown-star {
    background-color: rgba(25, 25, 112, 0.5);
    border: 1px solid var(--gold);
    border-radius: 50%;
    padding: 1.5rem;
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    position: relative;
}

.countdown-star::before {
    content: '★';
    position: absolute;
    top: -10px;
    color: var(--gold);
    font-size: 1.2rem;
}

.countdown-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery */
.celestial-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 80%, rgba(25, 25, 112, 0.5));
    pointer-events: none;
}

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

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

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '★';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background-color: var(--midnight-blue);
    color: var(--gold);
    border: 2px solid var(--gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--gold);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--gold);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--gold);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--gold) transparent transparent;
}

.right::after {
    left: -15px;
}

.content {
    padding: 20px 30px;
    background-color: rgba(25, 25, 112, 0.8);
    position: relative;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
}

.content h3 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 5px;
}

.content p {
    color: var(--silver);
}

/* Cards */
.celestial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.celestial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
}

.icon-star {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--gold);
    font-size: 1.5rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.time-text {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2rem;
}

/* Buttons */
.btn-celestial {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-celestial:hover {
    background-color: var(--gold);
    color: var(--midnight-blue);
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-celestial-outline {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    color: var(--silver);
    border: 1px solid var(--silver);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-celestial-outline:hover {
    background-color: var(--silver);
    color: var(--midnight-blue);
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-celestial-light {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--gold);
    color: var(--midnight-blue);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.btn-celestial-light:hover {
    background-color: white;
    color: var(--midnight-blue);
    text-decoration: none;
    transform: scale(1.05);
}

/* Footer Section */
.footer-section {
    background-color: var(--midnight-blue);
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .names-font {
        font-size: 2.5rem;
    }

    .countdown-container {
        gap: 1rem;
    }

    .countdown-star {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid var(--gold);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--gold) transparent transparent;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }
}