:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #a855f7;
    --dark: #1e293b;
    --darker: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { 
    width: 8px; height: 8px; top: 20%; left: 10%; 
    animation-delay: 0s; animation-duration: 8s;
}
.particle:nth-child(2) { 
    width: 12px; height: 12px; top: 60%; left: 80%; 
    animation-delay: 2s; animation-duration: 6s;
}
.particle:nth-child(3) { 
    width: 6px; height: 6px; top: 40%; left: 70%; 
    animation-delay: 4s; animation-duration: 10s;
}
.particle:nth-child(4) { 
    width: 10px; height: 10px; top: 80%; left: 20%; 
    animation-delay: 1s; animation-duration: 7s;
}
.particle:nth-child(5) { 
    width: 5px; height: 5px; top: 10%; left: 90%; 
    animation-delay: 3s; animation-duration: 9s;
}
.particle:nth-child(6) { 
    width: 14px; height: 14px; top: 70%; left: 50%; 
    animation-delay: 5s; animation-duration: 8s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg); 
        opacity: 0.8;
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: moveOrb 15s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, var(--secondary) 70%);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, var(--primary-dark) 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--secondary) 0%, var(--accent) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes moveOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.content {
    text-align: center;
    position: relative;
}

.text {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    background: linear-gradient(45deg, #ffffff, #e2e8f0, #ffffff);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    position: relative;
    cursor: default;
    user-select: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glow {
    from { 
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
        transform: scale(1.02);
    }
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
    animation: breathe 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes breathe {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.text:hover {
    animation-play-state: paused;
    background: linear-gradient(45deg, #a855f7, #6366f1, #8b5cf6);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .text {
        font-size: clamp(2rem, 12vw, 4rem);
        letter-spacing: 0.1em;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .particle {
        display: none;
    }
}

@media (max-height: 400px) {
    .text {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}