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

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background: radial-gradient(ellipse at center, #0a0f2a 0%, #000000 100%);
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Звёздный фон */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxjaXJjbGUgY3g9IjUlIiBjeT0iMTAlIiByPSIxIiBmaWxsPSJ3aGl0ZSIvPjxjaXJjbGUgY3g9Ijg1JSIgY3k9IjIwJSIgcj0iMS41IiBmaWxsPSJ3aGl0ZSIvPjxjaXJjbGUgY3g9IjE1JSIgY3k9IjcwJSIgcj0iMSIgZmlsbD0id2hpdGUiLz48Y2lyY2xlIGN4PSI5MCUiIGN5PSI4MCUiIHI9IjIiIGZpbGw9IndoaXRlIi8+PC9zdmc+') repeat;
    opacity: 0.6;
    animation: twinkle 3s infinite;
}

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

/* Навигация */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff6600;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffaa44;
    text-shadow: 0 0 10px #ff6600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ffaa44;
    text-shadow: 0 0 5px #ff6600;
}

/* Главный экран */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    position: relative;
    z-index: 5;
}

h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.glitch {
    animation: glitch 1s infinite;
    color: #ffaa44;
}

@keyframes glitch {
    0%, 100% { text-shadow: -2px 0 red, 2px 0 blue; }
    50% { text-shadow: 2px 0 red, -2px 0 blue; }
}

.pig-astronaut {
    font-size: 150px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px #ffaa44);
}

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

.tagline {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #ddd;
}

.cta-button {
    background: linear-gradient(45deg, #ff6600, #ffaa00);
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    margin: 20px 0;
    font-family: monospace;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff6600;
}

.counter {
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 30px;
}

/* Контентные страницы */
.content {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.content h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.mission-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid #ff6600;
}

.mission-card h2 {
    color: #ffaa44;
    margin-bottom: 15px;
}

.mission-card ul {
    padding-left: 25px;
}

.mission-card li {
    margin: 10px 0;
}

.progress-bar {
    background: #333;
    border-radius: 20px;
    height: 30px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #ff6600, #ffaa00);
    height: 100%;
    border-radius: 20px;
    transition: width 1s;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.gallery-item {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255,102,0,0.5);
}

.image-placeholder {
    font-size: 80px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 15px;
}

.gallery-subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
}

.upload-hint {
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    padding: 20px;
    margin-top: 40px;
    border: 1px dashed #ff6600;
}

.upload-hint code {
    background: #000;
    padding: 5px;
    border-radius: 5px;
    color: #ffaa44;
}

/* Подвал */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0,0,0,0.8);
    margin-top: 50px;
    position: relative;
    z-index: 5;
    border-top: 1px solid #ff6600;
}

/* Адаптация под телефон */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .pig-astronaut {
        font-size: 80px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .content h1 {
        font-size: 1.8rem;
    }
}
