/* Reset și setări generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #fff;
}

/* Ecran de întâmpinare */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

/* Stele animate în fundal */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 80px 10px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: moveStars 100s linear infinite;
}

@keyframes moveStars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Rachetă animată */
.rocket {
    position: absolute;
    font-size: 80px;
    animation: rocketFly 15s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

@keyframes rocketFly {
    0% { transform: translate(-100px, 100vh) rotate(45deg); }
    50% { transform: translate(50vw, -100px) rotate(45deg); }
    100% { transform: translate(100vw, 100vh) rotate(45deg); }
}

/* Planete animate */
.planets {
    position: absolute;
    width: 100%;
    height: 100%;
}

.planet {
    position: absolute;
    font-size: 60px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.planet1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.planet2 {
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.planet3 {
    bottom: 20%;
    left: 30%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.welcome-content {
    text-align: center;
    z-index: 10;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.welcome-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 30px #00ffff, 0 0 60px #0088ff;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 30px #00ffff, 0 0 60px #0088ff; }
    50% { text-shadow: 0 0 40px #00ffff, 0 0 80px #0088ff, 0 0 100px #00ffff; }
}

.welcome-date {
    font-size: 1.5rem;
    color: #ffeb3b;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
}

.open-button {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 20px 40px;
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 30px rgba(131, 56, 236, 0.4);
}

.open-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(131, 56, 236, 0.6);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(131, 56, 236, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(131, 56, 236, 0); }
    100% { box-shadow: 0 0 0 0 rgba(131, 56, 236, 0); }
}

/* Invitația principală */
.invitation {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

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

.hidden {
    display: none;
}

/* Hero section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    z-index: 1;
}

.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 0 0 10px white;
    animation: shootingStar 3s linear infinite;
}

.shooting-stars::after {
    animation-delay: 1.5s;
    left: 30%;
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(300px, 300px);
        opacity: 0;
    }
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    z-index: 3;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 90%;
    max-width: 800px;
}

.birthday-name {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 40px #00ffff, 0 0 80px #0088ff;
    margin-bottom: 20px;
    animation: floatText 4s ease-in-out infinite;
}

@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.birthday-date {
    font-size: 2rem;
    color: #ffeb3b;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 235, 59, 0.8);
}

.birthday-location {
    font-size: 1.5rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}

.astronaut-float {
    position: absolute;
    font-size: 60px;
    animation: astronautFloat 20s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

@keyframes astronautFloat {
    0% { transform: translate(-200px, 100px) rotate(0deg); }
    25% { transform: translate(200px, -50px) rotate(90deg); }
    50% { transform: translate(100px, 150px) rotate(180deg); }
    75% { transform: translate(-100px, -100px) rotate(270deg); }
    100% { transform: translate(-200px, 100px) rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 5;
}

.scroll-indicator svg {
    width: 40px;
    height: 40px;
    fill: #00ffff;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px #00ffff);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Secțiuni */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.galaxy-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    position: relative;
    overflow: hidden;
}

.galaxy-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 50s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #00ffff;
    text-shadow: 0 0 30px #00ffff;
}

.mission-badge {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mission-badge span {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid #ff6b6b;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

.message-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
}

.space-divider {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Event cards */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.card-header {
    background: linear-gradient(45deg, #8338ec, #3a86ff);
    padding: 20px;
    text-align: center;
}

.card-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.card-content {
    padding: 30px;
    position: relative;
}

.event-time,
.event-date,
.event-address {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.space-activities {
    list-style: none;
}

.space-activities li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #ffeb3b;
    transition: all 0.3s ease;
}

.space-activities li:hover {
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

.alien-decoration,
.ufo-decoration {
    position: absolute;
    font-size: 40px;
    opacity: 0.3;
    animation: float 5s ease-in-out infinite;
}

.alien-decoration {
    bottom: 10px;
    right: 10px;
}

.ufo-decoration {
    top: 10px;
    right: 10px;
}

/* Galerie foto */
.space-gallery {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
    padding: 3px;
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(131, 56, 236, 0.4);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay span {
    color: #00ffff;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* RSVP Section */
.cosmic-rsvp {
    background: radial-gradient(ellipse at center, #1b2735 0%, #090a0f 100%);
    text-align: center;
}

.rsvp-text {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.contact-info {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    display: inline-block;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
}

.dress-code {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.dress-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}

/* Footer */
.space-footer {
    background: #0a0a0a;
    text-align: center;
    padding: 40px 0;
    color: #00ffff;
    font-size: 1.2rem;
}

.mission-code {
    font-family: 'Orbitron', monospace;
    margin-top: 10px;
    opacity: 0.7;
}

/* Music control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: none;
}

.music-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8338ec, #3a86ff);
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(131, 56, 236, 0.4);
}

.music-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(131, 56, 236, 0.6);
}

/* Modal imagini */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2) rotate(90deg);
    text-shadow: 0 0 20px #00ffff;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .birthday-name {
        font-size: 2rem;
    }
    
    .birthday-date {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .rocket {
        font-size: 50px;
    }
    
    .planet {
        font-size: 40px;
    }
}