.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1da1f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #000;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.bg-image.loaded {
    opacity: 1;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
    pointer-events: none;
}

.floating-particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><circle cx="1" cy="1" r="1" fill="white"/></svg>');
    background-size: 3px 3px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.character {
    width: 180px;
    height: 180px;
    margin: 2rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(135, 206, 250, 0.8);
    box-shadow: 
        0 0 30px rgba(135, 206, 250, 0.5),
        0 0 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    animation: characterEntrance 1.5s ease-out forwards;
    display: block;
    left: auto;
    transform: none;
}

.character-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.character-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(135,206,250,0.2) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes characterEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.container {
    position: fixed;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    opacity: 0;
    animation: containerFadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

.title {
    font-size: 5.5rem;
    margin: 0 0 2rem 0;
    color: white;
    font-weight: bold;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(135, 206, 250, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.9);
}

.title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(135, 206, 250, 0.8),
        rgba(135, 206, 250, 0.8),
        transparent
    );
}

.subtitle {
    font-size: 1.8rem;
    margin: 2rem 0 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    opacity: 0;
    animation: slideIn 1s ease-out forwards;
    animation-delay: 1s;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.1em;
}

.subtitle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(135, 206, 250, 0.3),
        transparent
    );
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    position: relative;
}

.button-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, 
        rgba(135, 206, 250, 0.3),
        transparent
    );
}

.button {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: 2px solid rgba(135, 206, 250, 0.5);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, rgba(135,206,250,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover::before {
    opacity: 1;
}

.button:hover {
    background: rgba(135, 206, 250, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(135, 206, 250, 0.3);
}

#twitter-button {
    background-color: rgba(29, 161, 242, 0.8);
    border-color: #1da1f2;
}

#twitter-button:hover {
    background-color: rgba(29, 161, 242, 0.9);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(42, 42, 42, 0.95);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #1da1f2;
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.3);
    z-index: 1000;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.popup-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.popup-close {
    padding: 8px 20px;
    background-color: rgba(29, 161, 242, 0.8);
    border: 1px solid #1da1f2;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background-color: rgba(29, 161, 242, 0.9);
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
