:root {
    --gradient-primary: linear-gradient(135deg, #8e44ad 0%, #e91e63 50%, #ff6b9d 100%);
    --gradient-accent: linear-gradient(135deg, #8e44ad, #e91e63);
    --text-white: rgba(255, 255, 255, 0.9);
    --text-white-secondary: rgba(255, 255, 255, 0.7);
    --text-white-tertiary: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    opacity: 0;
    animation: logoAppear 2s ease-out 0.5s forwards;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                    var(--gradient-accent);
    background-origin: border-box;
    background-clip: content-box, border-box;
    font-size: 42px;
    font-weight: 300;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.logo-placeholder {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.tagline {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 300;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Floating names */
.floating-names {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-name {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: 300;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    animation: fadeFloat 12s ease-in-out infinite;
    white-space: nowrap;
    transition: font-size 0.3s ease;
}

/* Size variations for depth */
.floating-name.size-small {
    font-size: 15px;
    font-weight: 300;
    animation-name: fadeFloatSmall;
}

.floating-name.size-medium {
    font-size: 18px;
    font-weight: 300;
    animation-name: fadeFloatMedium;
}

.floating-name.size-large {
    font-size: 21px;
    font-weight: 300;
    animation-name: fadeFloatLarge;
}

.floating-name.size-xlarge {
    font-size: 24px;
    font-weight: 200;
    animation-name: fadeFloatXLarge;
}

/* Different timing for each name - balanced flow */
.floating-name:nth-child(1) {
    animation-delay: 0s;
}

.floating-name:nth-child(2) {
    animation-delay: 2.5s;
}

.floating-name:nth-child(3) {
    animation-delay: 5s;
}

.floating-name:nth-child(4) {
    animation-delay: 7.5s;
}

.floating-name:nth-child(5) {
    animation-delay: 10s;
}

.floating-name:nth-child(6) {
    animation-delay: 12.5s;
}

.floating-name:nth-child(7) {
    animation-delay: 15s;
}

.floating-name:nth-child(8) {
    animation-delay: 17.5s;
}

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

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

/* Base animation for fallback */
@keyframes fadeFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.92); }
    15% { opacity: 0.85; transform: translateY(-6px) scale(1); }
    50% { opacity: 0.85; transform: translateY(0) scale(1.02); }
    85% { opacity: 0.85; transform: translateY(6px) scale(1); }
    100% { opacity: 0; transform: translateY(0) scale(0.92); }
}

/* Smaller text - appears more distant */
@keyframes fadeFloatSmall {
    0% { opacity: 0; transform: translateY(0) scale(0.9); }
    15% { opacity: 0.65; transform: translateY(-4px) scale(0.95); }
    50% { opacity: 0.65; transform: translateY(0) scale(0.97); }
    85% { opacity: 0.65; transform: translateY(4px) scale(0.95); }
    100% { opacity: 0; transform: translateY(0) scale(0.9); }
}

/* Medium text - standard depth */
@keyframes fadeFloatMedium {
    0% { opacity: 0; transform: translateY(0) scale(0.92); }
    15% { opacity: 0.75; transform: translateY(-5px) scale(1); }
    50% { opacity: 0.75; transform: translateY(0) scale(1.01); }
    85% { opacity: 0.75; transform: translateY(5px) scale(1); }
    100% { opacity: 0; transform: translateY(0) scale(0.92); }
}

/* Large text - appears closer */
@keyframes fadeFloatLarge {
    0% { opacity: 0; transform: translateY(0) scale(0.95) rotate(-0.5deg); }
    15% { opacity: 0.85; transform: translateY(-7px) scale(1.02) rotate(0deg); }
    50% { opacity: 0.85; transform: translateY(0) scale(1.03) rotate(0.3deg); }
    85% { opacity: 0.85; transform: translateY(7px) scale(1.02) rotate(0deg); }
    100% { opacity: 0; transform: translateY(0) scale(0.95) rotate(0.5deg); }
}

/* Extra large text - prominent and closest */
@keyframes fadeFloatXLarge {
    0% { opacity: 0; transform: translateY(0) scale(0.96) rotate(-0.8deg); }
    15% { opacity: 0.9; transform: translateY(-8px) scale(1.04) rotate(0deg); }
    50% { opacity: 0.9; transform: translateY(0) scale(1.05) rotate(0.5deg); }
    85% { opacity: 0.9; transform: translateY(8px) scale(1.04) rotate(0deg); }
    100% { opacity: 0; transform: translateY(0) scale(0.96) rotate(0.8deg); }
}

/* Subtle particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-15px) scale(1.05);
        opacity: 0.4;
    }
}

/* Transition effect when clicked */
.fade-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.8s ease-out;
}

.fade-transition.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .tagline {
        font-size: 20px;
        padding: 0 20px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
        font-size: 36px;
    }
    
    /* Hide some messages on mobile */
    .floating-name:nth-child(5),
    .floating-name:nth-child(6),
    .floating-name:nth-child(7),
    .floating-name:nth-child(8) {
        display: none;
    }
    
    /* Adjust text sizes for mobile */
    .floating-name.size-small {
        font-size: 13px;
    }
    
    .floating-name.size-medium {
        font-size: 15px;
    }
    
    .floating-name.size-large {
        font-size: 17px;
    }
    
    .floating-name.size-xlarge {
        font-size: 19px;
    }
    
    /* Reduce animation movement on mobile */
    .floating-name {
        animation-duration: 15s;
    }
}