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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at center, #0f0f1e 0%, #0a0a1a 50%, #050512 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    z-index: 0;
    min-height: 100vh;
}


.star {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 2s infinite ease-in-out;
    box-shadow: 0 0 3px currentColor;
}

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

.star:nth-child(2n) {
    animation-delay: 0.5s;
}

.star:nth-child(3n) {
    animation-delay: 1s;
}

.star:nth-child(4n) {
    animation-delay: 1.5s;
}

.star:nth-child(5n) {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: twinkle 2s infinite ease-in-out, rainbow 4s infinite linear;
}

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

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.cloud-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    animation: cloudDrift 200s linear infinite;
    filter: hue-rotate(0deg);
    animation: cloudDrift 200s linear infinite, subtleRainbow 15s ease-in-out infinite;
}

.cloud-puff {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: inherit;
}

@keyframes cloudDrift {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

@keyframes subtleRainbow {
    0% { filter: hue-rotate(0deg) saturate(0.3); }
    16.66% { filter: hue-rotate(60deg) saturate(0.3); }
    33.33% { filter: hue-rotate(120deg) saturate(0.3); }
    50% { filter: hue-rotate(180deg) saturate(0.3); }
    66.66% { filter: hue-rotate(240deg) saturate(0.3); }
    83.33% { filter: hue-rotate(300deg) saturate(0.3); }
    100% { filter: hue-rotate(360deg) saturate(0.3); }
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}


.title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, 
        #ff0000 0%, #ff7f00 14%, #ffff00 28%, 
        #00ff00 42%, #0000ff 57%, #4b0082 71%, 
        #9400d3 85%, #ff0000 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 6s linear infinite, glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    to {
        text-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4);
    }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 0.5px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 0.8; transform: translateY(0); }
}

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .title {
        margin-bottom: 0.75rem;
    }
}


@media (max-width: 768px) {
    .cloud-layer {
        height: 100px;
    }
}

.scrollable-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 100vh;
}

.background-cloud {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 200px;
    background: linear-gradient(45deg, 
        rgba(255, 0, 0, 0.08) 0%,
        rgba(255, 127, 0, 0.08) 14%,
        rgba(255, 255, 0, 0.08) 28%,
        rgba(0, 255, 0, 0.08) 42%,
        rgba(0, 0, 255, 0.08) 57%,
        rgba(75, 0, 130, 0.08) 71%,
        rgba(148, 0, 211, 0.08) 85%,
        rgba(255, 0, 0, 0.08) 100%);
    background-size: 300% 300%;
    border-radius: 100px;
    z-index: -1;
    animation: backgroundCloudFloat 12s ease-in-out infinite, rainbowCloudShift 8s linear infinite;
    filter: blur(2px);
}

.background-cloud::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 140px;
    background: linear-gradient(60deg, 
        rgba(0, 255, 0, 0.06) 0%,
        rgba(0, 0, 255, 0.06) 25%,
        rgba(75, 0, 130, 0.06) 50%,
        rgba(148, 0, 211, 0.06) 75%,
        rgba(255, 0, 0, 0.06) 100%);
    background-size: 250% 250%;
    border-radius: 70px;
    top: -40px;
    left: 60px;
    animation: backgroundCloudFloat 12s ease-in-out infinite, rainbowCloudShift 10s linear infinite reverse;
}

.background-cloud::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 100px;
    background: linear-gradient(120deg, 
        rgba(255, 255, 0, 0.07) 0%,
        rgba(255, 127, 0, 0.07) 33%,
        rgba(255, 0, 0, 0.07) 66%,
        rgba(148, 0, 211, 0.07) 100%);
    background-size: 200% 200%;
    border-radius: 50px;
    top: -30px;
    right: 80px;
    animation: backgroundCloudFloat 12s ease-in-out infinite, rainbowCloudShift 6s linear infinite;
}

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

@keyframes backgroundCloudFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
    }
    33% { 
        transform: translateY(-20px) translateX(10px);
    }
    66% { 
        transform: translateY(10px) translateX(-5px);
    }
}

.content-container {
    max-width: 1066px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

#markdown-content {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#markdown-content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#markdown-content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: white; /* fallback for emojis */
}

#markdown-content h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 500;
    margin: 2rem 0 1rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#markdown-content h2 + p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

#markdown-content a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

#markdown-content a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

#markdown-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin: 1.5rem 0 0.75rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#markdown-content p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
}

#markdown-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

#markdown-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

#markdown-content em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

@media (max-width: 768px) {
    .content-container {
        padding: 3rem 1rem;
    }
    
    #markdown-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .star {
        opacity: 0.6;
    }
}