/* Animated Space Background with Social Media Icons */

/* Remove default background image and create space background */
.landing-page header.bgImageCustom {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-image: none !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

[data-pc-theme=dark].landing-page header.bgImageCustom {
    background: linear-gradient(135deg, #0a0a1e 0%, #0d1628 50%, #1a1f3a 100%) !important;
    box-shadow: none !important;
}

/* Stars Container */
.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Animated Stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

.star.small {
    width: 2px;
    height: 2px;
    opacity: 0.6;
}

.star.medium {
    width: 3px;
    height: 3px;
    opacity: 0.8;
}

.star.large {
    width: 4px;
    height: 4px;
    opacity: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: shoot 3s linear infinite;
    opacity: 0;
}

@keyframes shoot {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-300px) translateY(300px);
    }
}

/* Social Media Icons Container */
.social-icons-space {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Floating Social Media Icons */
.social-icon-float {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.4);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-icon-float:hover {
    transform: scale(1.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.6);
    background: rgba(255, 255, 255, 0.25);
}

.social-icon-float svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-icon-float svg path {
    fill: #ffffff;
}

/* Different floating animations for each icon */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) translateX(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(20px) translateX(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(40px) translateX(10px) rotate(5deg);
    }
    75% {
        transform: translateY(20px) translateX(-10px) rotate(-5deg);
    }
}

@keyframes float-horizontal {
    0%, 100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(20px) translateY(-10px) rotate(3deg);
    }
    50% {
        transform: translateX(40px) translateY(10px) rotate(-3deg);
    }
    75% {
        transform: translateX(20px) translateY(-10px) rotate(3deg);
    }
}

/* Apply different animations to icons */
.social-icon-float:nth-child(1) { animation: float 8s ease-in-out infinite; }
.social-icon-float:nth-child(2) { animation: float-reverse 7s ease-in-out infinite; }
.social-icon-float:nth-child(3) { animation: float-horizontal 9s ease-in-out infinite; }
.social-icon-float:nth-child(4) { animation: float 10s ease-in-out infinite; }
.social-icon-float:nth-child(5) { animation: float-reverse 8.5s ease-in-out infinite; }
.social-icon-float:nth-child(6) { animation: float-horizontal 7.5s ease-in-out infinite; }
.social-icon-float:nth-child(7) { animation: float 9.5s ease-in-out infinite; }
.social-icon-float:nth-child(8) { animation: float-reverse 11s ease-in-out infinite; }

/* Content Layer - ensure content is above background */
.landing-page header .container,
.landing-page header .container-fluid {
    position: relative;
    z-index: 10;
}

/* Nebula Effect */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: nebula-pulse 10s ease-in-out infinite;
}

.nebula-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.nebula-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.nebula-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

@keyframes nebula-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-icon-float {
        width: 40px;
        height: 40px;
    }
    
    .social-icon-float svg {
        width: 20px;
        height: 20px;
    }
    
    .nebula {
        filter: blur(40px);
    }
}

/* Ensure waves are above background but below content */
.wave {
    z-index: 5;
}