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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

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

#stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.8"/></svg>') repeat;
    background-size: 100px 100px;
    animation: starsMove 200s linear infinite;
}

#stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="70" r="0.8" fill="white" opacity="0.6"/></svg>') repeat;
    background-size: 150px 150px;
    animation: starsMove 150s linear infinite;
}

#stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="70" cy="30" r="0.5" fill="aqua" opacity="0.4"/></svg>') repeat;
    background-size: 200px 200px;
    animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
}

.title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite, float 6s ease-in-out infinite;
    text-shadow: 0 0 60px rgba(255,107,107,0.5);
    letter-spacing: 0.1em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    letter-spacing: 0.5em;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

.story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
}

.story-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,107,107,0.3), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.story-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255,107,107,0.5);
    box-shadow: 0 20px 60px rgba(255,107,107,0.3);
}

.story-card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.story-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff9ff3, #48dbfb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-card p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }

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

.gallery {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #feca57, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #feca57, transparent);
    margin: 20px auto 0;
}

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

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

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

.nebula-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
}

.nebula-bg::after {
    content: '🌌';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    animation: twinkle 3s ease-in-out infinite;
}

.blackhole-bg {
    background: radial-gradient(circle, #000 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
    position: relative;
}

.blackhole-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid rgba(255,200,0,0.5);
    animation: spin 10s linear infinite;
}

.blackhole-bg::after {
    content: '🕳️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.aurora-bg {
    background: linear-gradient(180deg, #0c0c1e 0%, #1a1a3e 50%);
    position: relative;
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(120deg, rgba(0,255,136,0.3) 0%, transparent 50%),
        linear-gradient(240deg, rgba(0,191,255,0.3) 0%, transparent 50%),
        linear-gradient(360deg, rgba(255,0,255,0.2) 0%, transparent 50%);
    animation: aurora 8s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { opacity: 0.5; transform: translateY(0) skewX(0deg); }
    50% { opacity: 1; transform: translateY(-10px) skewX(5deg); }
}

.aurora-bg::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    animation: twinkle 2s ease-in-out infinite;
}

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

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    text-align: center;
    font-size: 1.1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.footer {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.heartbeat {
    font-size: 3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.footer p:nth-child(2) {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 40px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
    
    .story {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 10px;
    }
    
    .gallery {
        padding: 40px 10px;
    }
}