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

html {
    height: 100%;
    overflow: hidden;
}

:root {
    --bg-color: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent-glow: rgba(255, 255, 255, 0.1);
    /* Nebula opacity control - tweak this value (0 to 1) */
    --nebula-opacity: 0.4;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

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

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

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

/* Nebula background with subtle texture */
#nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: var(--nebula-opacity);
    background: 
        /* Main soft clouds - reduced opacity */
        radial-gradient(ellipse 80% 60% at 30% 35%, rgba(100, 60, 160, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 80% at 65% 60%, rgba(60, 90, 180, 0.3) 0%, transparent 50%),
        /* Subtle texture detail - lighter opacity */
        radial-gradient(ellipse 50% 40% at 50% 25%, rgba(140, 100, 200, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse 40% 50% at 25% 70%, rgba(80, 110, 190, 0.25) 0%, transparent 40%);
    filter: blur(80px) url(#nebula-distort);
    animation: nebula-drift 90s ease-in-out infinite;
}

@keyframes nebula-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(1%, 0.5%) scale(1.01);
    }
    66% {
        transform: translate(-0.5%, 1%) scale(1);
    }
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 160px);
    padding: 2rem;
    text-align: center;
}

.rive-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

#rive-canvas {
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    height: auto;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-transform: none;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 80px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.tagline {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover .social-icon {
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        height: calc(100vh - 140px);
    }
    
    #rive-canvas {
        max-height: 40vh;
    }
    
    .footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        height: calc(100vh - 120px);
        padding: 1rem;
    }
    
    #rive-canvas {
        max-height: 35vh;
    }
}

.rive-fallback {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #2a2a2a 0%, #000000 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.1),
        0 0 120px rgba(255, 255, 255, 0.05),
        inset 0 0 60px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rive-fallback::after {
    content: '';
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.logo {
    position: fixed;
    top: 2rem;
    right: 2rem;
    height: 40px;
    width: auto;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .logo {
        height: 32px;
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 28px;
        top: 1rem;
        right: 1rem;
    }
}
