/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 25%, #0f0f23 50%, #000000 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    color: #e2e8f0;
}

/* Space Background Elements */
.space-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Nebula clouds */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: drift 20s infinite linear;
}

.nebula1 {
    width: 300px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(75, 0, 130, 0.2) 50%, transparent 100%);
    top: 20%;
    left: 10%;
    animation-duration: 25s;
}

.nebula2 {
    width: 400px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3) 0%, rgba(138, 43, 226, 0.2) 50%, transparent 100%);
    top: 60%;
    right: 15%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.nebula3 {
    width: 250px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.4) 0%, rgba(30, 144, 255, 0.2) 50%, transparent 100%);
    top: 10%;
    right: 30%;
    animation-duration: 35s;
}

@keyframes drift {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-15px) rotate(90deg); }
    50% { transform: translateX(-10px) translateY(-30px) rotate(180deg); }
    75% { transform: translateX(-25px) translateY(-10px) rotate(270deg); }
    100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.shooting-star::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
}

.shooting-star1 {
    top: 20%;
    right: 100%;
    animation: shoot 4s linear infinite;
    animation-delay: 2s;
}

.shooting-star2 {
    top: 60%;
    right: 100%;
    animation: shoot 3s linear infinite;
    animation-delay: 5s;
}

.shooting-star3 {
    top: 80%;
    right: 100%;
    animation: shoot 5s linear infinite;
    animation-delay: 8s;
}

@keyframes shoot {
    0% { right: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: -150px; opacity: 0; }
}

/* Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    animation: orbit 40s infinite linear;
}

.planet1 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #ee5a24, #d63031);
    top: 30%;
    left: 80%;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.planet2 {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #74b9ff, #0984e3, #2d3436);
    top: 70%;
    left: 20%;
    box-shadow: 0 0 15px rgba(116, 185, 255, 0.4);
    animation-duration: 60s;
    animation-direction: reverse;
}

@keyframes orbit {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(15px) translateY(-10px) rotate(90deg); }
    50% { transform: translateX(-10px) translateY(-20px) rotate(180deg); }
    75% { transform: translateX(-20px) translateY(5px) rotate(270deg); }
    100% { transform: translateX(0) translateY(0) rotate(360deg); }
}

/* Glowing rings */
.ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 50s linear infinite;
}

.ring1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(138, 43, 226, 0.2);
}

.ring2 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 20, 147, 0.1);
    animation-duration: 80s;
    animation-direction: reverse;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}

/* Logo Container */
.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
}

.logo-part {
    position: absolute;
    opacity: 0;
    transform-origin: center;
    filter: drop-shadow(0 0 5px currentColor);
}

#part1 {
    fill: #FF0000; /* Red */
    color: #FF0000;
    animation: popIn 1.4s forwards 0.5s cubic-bezier(0.23, 1, 0.32, 1),
               colorChange1 2s forwards 1.5s;
}

#part2 {
    fill: #FFD700; /* Gold */
    color: #FFD700;
    animation: popIn 1.4s forwards 1.1s cubic-bezier(0.23, 1, 0.32, 1),
               colorChange2 2s forwards 2.1s;
}

#part3 {
    fill: #1E90FF; /* Blue */
    color: #1E90FF;
    animation: popIn 1.4s forwards 1.7s cubic-bezier(0.23, 1, 0.32, 1),
               colorChange3 2s forwards 2.7s;
}

@keyframes colorChange1 {
    0% { 
        fill: #FF0000;
        color: #FF0000;
        filter: drop-shadow(0 0 5px #FF0000);
    }
    100% { 
        fill: #FFFFFF;
        color: #FFFFFF;
        filter: drop-shadow(0 0 15px #FFFFFF);
    }
}

@keyframes colorChange2 {
    0% { 
        fill: #FFD700;
        color: #FFD700;
        filter: drop-shadow(0 0 5px #FFD700);
    }
    100% { 
        fill: #FFFFFF;
        color: #FFFFFF;
        filter: drop-shadow(0 0 15px #FFFFFF);
    }
}

@keyframes colorChange3 {
    0% { 
        fill: #1E90FF;
        color: #1E90FF;
        filter: drop-shadow(0 0 5px #1E90FF);
    }
    100% { 
        fill: #FFFFFF;
        color: #FFFFFF;
        filter: drop-shadow(0 0 15px #FFFFFF);
    }
}

#complete-logo {
    opacity: 0;
    animation: fadeIn 1s forwards 2.8s;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

#complete-logo path {
    fill: white;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(5deg);
    }
    70% {
        transform: scale(0.98) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    to { 
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    }
}

h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s forwards 3.2s;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    background: linear-gradient(45deg, #ff6b6b, #74b9ff, #a29bfe, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.brand-subtitle {
    color: #94a3b8;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s forwards 3.5s;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
}

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

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0;
}

.social-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s forwards 3.8s;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.2);
}

/* Social media specific colors */
.social-link.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: rgba(0, 136, 204, 0.5);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.5);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.social-link.email:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    z-index: -1;
}

#pulse1 {
    animation: pulse 3s infinite 4s;
}

#pulse2 {
    animation: pulse 3s infinite 4.3s;
}

#pulse3 {
    animation: pulse 3s infinite 4.6s;
}

@keyframes pulse {
    0% {
        width: 450px;
        height: 450px;
        opacity: 0.7;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

.tagline {
    margin-top: 1.5rem;
    font-style: italic;
    color: #cbd5e1;
    opacity: 0;
    animation: fadeIn 1s forwards 4s;
    text-shadow: 0 0 8px rgba(203, 213, 225, 0.5);
}

/* Development Status */
.development-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeIn 1s forwards 4.5s;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.5px;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, rgba(255, 215, 0, 0.2) 30%, rgba(30, 144, 255, 0.2) 60%, transparent 80%);
    opacity: 0;
    animation: glowPulse 4s infinite 3s;
    z-index: -1;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
}

/* Enhanced glow effects */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    animation: logoGlow 3s infinite 3s;
    z-index: -1;
    pointer-events: none;
}

@keyframes logoGlow {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.logo-light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    opacity: 0;
    animation: fadeIn 1s forwards 3s;
    pointer-events: none;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 250px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    transform-origin: center bottom;
}
