/* Celestial Theme - Written in the Stars */

:root {
    --cosmos-dark: #0a0a1a;
    --cosmos-deep: #0f0f2d;
    --cosmos-blue: #1a1a3e;
    --nebula-purple: #2d1b4e;
    --nebula-pink: #4a1c40;
    --star-gold: #ffd700;
    --star-light: #fff8dc;
    --planet-blue: #4169e1;
    --planet-purple: #8a2be2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--cosmos-dark);
    color: var(--star-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Infant', serif;
}

/* Starfield Canvas */
.starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Shooting Stars */
.shooting-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--star-gold), transparent);
    animation: shoot 2s linear forwards;
    opacity: 0;
}

@keyframes shoot {
    0% { transform: translateX(-100px) rotate(-45deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw) rotate(-45deg); opacity: 0; }
}

/* Navigation */
.cosmic-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.cosmic-nav.scrolled {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
}

.cosmic-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.star-icon {
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.brand-name {
    font-family: 'Cormorant Infant', serif;
    font-size: 1.5rem;
    color: var(--star-gold);
    font-weight: 600;
}

.cosmic-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.cosmic-link {
    color: var(--star-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.cosmic-link:hover {
    color: var(--star-gold);
}

.cosmic-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.cosmic-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, var(--cosmos-blue) 0%, var(--cosmos-dark) 70%);
}

.nebula-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(65, 105, 225, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 40%);
    animation: nebula-shift 20s ease-in-out infinite;
}

@keyframes nebula-shift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.cosmic-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 20px;
}

.zodiac-ring {
    margin-bottom: 30px;
    animation: spin 60s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.star-name {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--star-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.constellation-line {
    stroke: var(--star-gold);
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 3s ease forwards;
}

@keyframes draw-line {
    to { stroke-dashoffset: 0; }
}

.countdown-cosmos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.orbit-ring {
    width: 100px;
    height: 100px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: rotate 20s linear infinite;
}

.cosmic-number {
    font-family: 'Cormorant Infant', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--star-gold);
}

/* Couple Section */
.couple-cosmos {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--cosmos-dark) 0%, var(--cosmos-deep) 100%);
}

.section-title-cosmos {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--star-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.star-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.star-card:hover {
    border-color: var(--star-gold);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
}

.planet-surface {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    margin: 0 auto 30px;
}

.venus-surface {
    background: radial-gradient(circle at 30% 30%, #ffd700, #daa520);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.mars-surface {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #c0392b);
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.5);
}

.trait {
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--star-gold);
}

/* Events Section */
.cosmic-events {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--cosmos-deep) 0%, var(--nebula-purple) 100%);
}

.event-cosmic-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.event-cosmic-card:hover {
    transform: translateY(-10px);
    border-color: var(--star-gold);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

.planet-visual {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.mercury {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.5);
}

.saturn {
    background: linear-gradient(135deg, #daa520, #b8860b);
    box-shadow: 0 0 30px rgba(218, 165, 32, 0.5);
}

.neptune {
    background: linear-gradient(135deg, #4169e1, #0000cd);
    box-shadow: 0 0 30px rgba(65, 105, 225, 0.5);
}

/* RSVP Section */
.rsvp-cosmos {
    padding: 120px 0;
    background: var(--cosmos-dark);
}

.cosmic-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
}

.cosmic-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    color: var(--star-light);
    font-size: 1rem;
}

.cosmic-input:focus {
    outline: none;
    border-color: var(--star-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.btn-cosmic-submit {
    background: linear-gradient(135deg, var(--star-gold), #daa520);
    color: var(--cosmos-dark);
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cosmic-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Footer */
.footer-cosmos {
    background: var(--cosmos-dark);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .cosmic-menu {
        display: none;
    }
    
    .cosmic-toggle {
        display: block;
    }
    
    .star-name {
        font-size: 3rem;
    }
    
    .countdown-cosmos {
        gap: 20px;
    }
    
    .orbit-ring {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .section-title-cosmos {
        font-size: 2.5rem;
    }
}