@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #5ee7d3 0%, #013b10 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-name: float1;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-name: float2;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    top: 30%;
    right: 10%;
    animation-name: float3;
    animation-delay: 2s;
}

.floating-card:nth-child(4) {
    bottom: 25%;
    left: 10%;
    animation-name: float4;
    animation-delay: 3s;
}

.floating-card:nth-child(5) {
    top: 10%;
    left: 60%;
    animation-name: float5;
    animation-delay: 4s;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 30px) rotate(-3deg); }
    75% { transform: translate(20px, 10px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-25px, 20px) rotate(-4deg); }
    50% { transform: translate(15px, -25px) rotate(6deg); }
    75% { transform: translate(-20px, -10px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 25px) rotate(3deg); }
    50% { transform: translate(-30px, -15px) rotate(-5deg); }
    75% { transform: translate(10px, -20px) rotate(4deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -30px) rotate(-6deg); }
    50% { transform: translate(25px, 15px) rotate(4deg); }
    75% { transform: translate(-15px, 25px) rotate(-3deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, 20px) rotate(2deg); }
    50% { transform: translate(-20px, -10px) rotate(-4deg); }
    75% { transform: translate(25px, -25px) rotate(5deg); }
}


.text-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 80px 120px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    text-align: center;
}

.flash-text {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.word {
    position: absolute;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    animation: flashIn 2s infinite;
}

.word:nth-child(1) {
    animation-delay: 0s;
}

.word:nth-child(2) {
    animation-delay: .5s;
}

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

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

.subtitle {
    margin-top: 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes flashIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    12.5% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    25% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.accent-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite;
    z-index: 5;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .text-container {
        padding: 60px 80px;
        min-width: 300px;
    }
    
    .flash-text {
        font-size: 3rem;
        min-height: 100px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .text-container {
        padding: 40px 60px;
        min-width: 250px;
    }
    
    .flash-text {
        font-size: 2.5rem;
        min-height: 80px;
    }
}