/* cosmic-smoke-effect.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000; /* Deep black for space aesthetic */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Modern font stack */
    color: #ffffff; /* White text for contrast */
    overflow-x: hidden;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Full-screen container for content and canvas */
}

#cosmic-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Canvas for stars and nebula, behind content */
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    max-width: 800px;
    /* Centers and constrains content for readability */
}

.smoke-text {
    font-size: 5.5rem; /* Large, bold title */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2); /* Subtle glow */
    /* Styling for impactful headline */
}

.smoke-text span {
    display: inline-block;
    transition: transform 0.6s ease, opacity 0.6s ease;
    /* Smooth animation for individual letters */
}

.smoke-text:hover span {
    transform: translateY(-12px); /* Letters lift on hover */
    opacity: 0.4; /* Slight fade for smoky effect */
}

.description {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    /* Light, readable tagline */
}

.additional-content {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
    /* Polished content block */
}

/* Nebula glow (CSS enhancement) */
#cosmic-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(60, 60, 120, 0.25), transparent 70%);
    z-index: 1;
    /* Subtle nebula effect with offset center */
}

/* Smoke particle animation */
@keyframes smokeDissolve {
    0% {
        opacity: 0.8;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(60px, -60px) scale(1.6);
        /* Particles drift and expand */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .smoke-text {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }
    .description {
        font-size: 1.2rem;
    }
    .additional-content {
        font-size: 1rem;
    }
    /* Scales text for smaller screens */
}