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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #e0e6ed;
    overflow-x: hidden;
}

.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><circle cx="1" cy="1" r="1" fill="white"/></svg>') repeat;
    animation: animateStars 50s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="3" height="3"><circle cx="1.5" cy="1.5" r="1" fill="white"/></svg>') repeat;
    animation: animateStars 100s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><circle cx="2" cy="2" r="1.5" fill="white"/></svg>') repeat;
    animation: animateStars 150s linear infinite;
}

@keyframes animateStars {
    from { transform: translateY(0); }
    to { transform: translateY(-2000px); }
}

.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d3561 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.opening-content {
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

.moon {
    font-size: 8rem;
    margin-bottom: 40px;
    animation: glow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.opening-title {
    font-size: 3.5rem;
    color: #fff;
    margin: 30px 0;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.opening-title span {
    display: block;
    font-size: 2rem;
    margin: 15px 0;
    color: #a8b2d1;
}

.opening-date {
    font-size: 1.3rem;
    color: #a8b2d1;
    margin-bottom: 40px;
}

.open-button {
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.open-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.main-content {
    display: none;
    position: relative;
    z-index: 1;
}

.main-content.visible {
    display: block;
    animation: fadeIn 1s ease;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2d3561 100%);
    position: relative;
}

.hero-content {
    text-align: center;
    color: #fff;
    animation: fadeInScale 1.2s ease;
}

.constellation {
    font-size: 5rem;
    animation: twinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #a8b2d1;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 5rem;
    margin: 30px 0;
    font-weight: 300;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.hero-date {
    font-size: 1.5rem;
    margin-top: 30px;
    color: #a8b2d1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 60px;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.section-title::after {
    content: '✨';
    display: block;
    margin-top: 15px;
    font-size: 2rem;
}

.couple-section {
    background: linear-gradient(to bottom, #0f1629, #1a1f3a);
}

.couple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.couple-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease;
    backdrop-filter: blur(10px);
}

.couple-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.star-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: twinkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.couple-card h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 300;
}

.role {
    font-size: 1.2rem;
    color: #a8b2d1;
    font-style: italic;
    margin-bottom: 20px;
}

.couple-card p {
    color: #8892b0;
    line-height: 1.8;
}

.event-section {
    background: linear-gradient(to bottom, #1a1f3a, #2d3561);
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px;
    text-align: center;
    border-radius: 30px;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease;
    backdrop-filter: blur(10px);
}

.comet {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: shoot 3s ease-in-out infinite;
}

.event-card h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 300;
}

.event-time,
.event-location,
.event-address {
    color: #a8b2d1;
    margin: 15px 0;
    font-size: 1.2rem;
}

.countdown-section {
    background: linear-gradient(135deg, #2d3561 0%, #4a5a8a 100%);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.countdown-item span {
    display: block;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.countdown-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a8b2d1;
}

.gallery-section {
    background: linear-gradient(to bottom, #0f1629, #0a0e27);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    animation: fadeInScale 0.6s ease;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsvp-section {
    background: linear-gradient(to bottom, #0a0e27, #1a1f3a);
}

.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
    backdrop-filter: blur(10px);
}

.guest-name {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.3rem;
    color: #fff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #a8b2d1;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.8));
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

@keyframes shoot {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(20px) rotate(10deg);
    }
}

@media (max-width: 768px) {
    .opening-title { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .moon { font-size: 6rem; }
    .countdown { gap: 20px; }
    .countdown-item { min-width: 100px; padding: 20px; }
    .countdown-item span { font-size: 3rem; }
}

/* Navigation Menu */
#navbar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 30px;
    transition: all 0.5s ease;
    width: max-content;
    max-width: 90vw;
}

#navbar a {
    color: #4a5568;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#navbar a:hover {
    color: #667eea;
    transform: translateY(-5px);
    background: rgba(102, 126, 234, 0.1);
}

#navbar a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    #navbar {
        gap: 15px;
        padding: 12px 20px;
    }

    #navbar a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
