/* Astronomy Theme CSS */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
    color: #e0e6ff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Starfield background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 95%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

header {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid #4a5fc1;
    box-shadow: 0 4px 20px rgba(74, 95, 193, 0.3);
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    margin-bottom: 0.5rem;
}

header p {
    color: #b8c5ff;
    font-size: 1.1rem;
    font-style: italic;
}

main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(26, 26, 62, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #4a5fc1;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(74, 95, 193, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

h2 {
    color: #a8b8ff;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(168, 184, 255, 0.5);
}

h3 {
    color: #c5d0ff;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #d0d9ff;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: #d0d9ff;
}

a {
    color: #8b9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b8c5ff;
    text-shadow: 0 0 8px rgba(139, 158, 255, 0.6);
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

footer {
    background: rgba(10, 14, 39, 0.9);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #4a5fc1;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

footer p {
    color: #b8c5ff;
}

/* Glowing accent */
.glow {
    text-shadow: 0 0 10px rgba(139, 158, 255, 0.8);
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 0 1rem;
        margin: 2rem auto;
    }
    
    .card {
        padding: 1.5rem;
    }
}