/* Custom CSS for Homepage - Jupiter */

/* Star animations */
.star {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.star.yellow {
    background: #FDBE02;
}

.star.twinkle {
    background: #FEECB3;
}

.star.normal {
    background: white;
}

/* Planet float animation */
@keyframes planet-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

#jupiter-planet {
    animation: planet-float 8s ease-in-out infinite;
}

/* Moving circle animations based on scroll */
#moving-circle {
    transition: all 0.5s ease-out;
}

/* Station fade in animations */
.station-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.station-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyword hover effects */
.keyword-hover {
    transition: all 0.5s ease-out;
}

.keyword-hover:hover {
    color: white;
    transform: translateY(-4px);
}

/* Mobile menu animations */
#mobile-menu {
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

#mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

#mobile-menu.hide {
    opacity: 0;
    visibility: hidden;
}

/* Star pulse animations */
@keyframes star-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes star-pulse-yellow {
    0%, 100% { 
        opacity: 0.6; 
        box-shadow: 0 0 6px rgba(253, 190, 2, 0.6), 0 0 12px rgba(253, 190, 2, 0.3);
    }
    50% { 
        opacity: 1; 
        box-shadow: 0 0 15px rgba(253, 190, 2, 0.8), 0 0 30px rgba(253, 190, 2, 0.4);
    }
}

@keyframes star-pulse-twinkle {
    0%, 100% { 
        opacity: 0.4; 
        box-shadow: 0 0 4px rgba(254, 236, 179, 0.5);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 0 10px rgba(254, 236, 179, 0.7);
    }
}

.star.normal {
    animation: star-pulse 2s ease-in-out infinite;
}

.star.yellow {
    animation: star-pulse-yellow 3s ease-in-out infinite;
}

.star.twinkle {
    animation: star-pulse-twinkle 2.5s ease-in-out infinite;
}

/* Abstract visual elements animations */
@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.05); }
}

.abstract-glow {
    animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes abstract-float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes abstract-float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(-1deg); }
    66% { transform: translateY(5px) rotate(1deg); }
}

@keyframes abstract-float-3 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.abstract-element-1 {
    animation: abstract-float-1 6s ease-in-out infinite;
}

.abstract-element-2 {
    animation: abstract-float-2 8s ease-in-out infinite 1s;
}

.abstract-element-3 {
    animation: abstract-float-3 7s ease-in-out infinite 2s;
}

/* Hero section content animations */
.hero-content {
    animation: hero-fade-in 1.5s ease-out 0.5s both;
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Station content animations */
.station-content {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.station-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.station-content.delay-1 {
    transition-delay: 0.2s;
}

.station-content.delay-2 {
    transition-delay: 0.4s;
}

/* Jupiter planet enhancements */
@keyframes orbit-ring-1 {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

#orbit-ring-1 {
    animation: orbit-ring-1 20s linear infinite;
}

#orbit-ring-2 {
    animation: orbit-ring-2 30s linear infinite;
}

/* Jupiter planet glow effect */
@keyframes jupiter-glow {
    0%, 100% { 
        box-shadow: 0 0 60px rgba(146, 142, 190, 0.3), inset -15px -15px 45px rgba(0, 0, 0, 0.3);
    }
    50% { 
        box-shadow: 0 0 90px rgba(146, 142, 190, 0.5), inset -15px -15px 45px rgba(0, 0, 0, 0.3);
    }
}

/* Navigation hover effects */
nav a {
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

nav a:hover::after {
   /* width: 100%;*/
}

/* Mobile menu button animation */
#mobile-menu-btn {
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.05);
}

#mobile-menu-btn.active .w-full:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .w-full:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .w-full:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
#main-container::-webkit-scrollbar {
    width: 4px;
}

#main-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#main-container::-webkit-scrollbar-thumb {
    background: rgba(253, 190, 2, 0.5);
    border-radius: 2px;
}

#main-container::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 190, 2, 0.7);
}

/* Station visibility animations */
@keyframes station-slide-up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.station-animate {
    /*animation: station-slide-up 0.8s ease-out;*/
}

/* Keyword animations */
@keyframes keyword-glow {
    0%, 100% { text-shadow: none; }
    50% { text-shadow: 0 0 10px rgba(254, 236, 179, 0.5); }
}

.keyword-glow {
    animation: keyword-glow 3s ease-in-out infinite;
}

/* Abstract background elements */
.abstract-bg {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

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

.abstract-bg-animate {
    animation: abstract-bg-float 10s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .star {
        animation-duration: 3s;
    }
    
    #moving-circle {
        width: 16px !important;
        height: 16px !important;
        box-shadow: 0 0 20px rgba(253, 190, 2, 0.6), 0 0 40px rgba(253, 190, 2, 0.3) !important;
    }
    
    #jupiter-planet {
        width: 120px !important;
        height: 120px !important;
    }
    
    #orbit-ring-1 {
        width: 200px !important;
        height: 200px !important;
    }
    
    #orbit-ring-2 {
        width: 250px !important;
        height: 250px !important;
    }
}

/* Performance optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Loading state */
.loading {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.loaded {
    opacity: 1;
}

/* Intersection observer fade-in */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Special effects for final station */
.final-station-glow {
    position: relative;
}

.final-station-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(146, 142, 190, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: final-glow-pulse 8s ease-in-out infinite;
}

@keyframes final-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Enhanced text animations */
.text-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.7) 0%, 
        rgba(254, 236, 179, 0.9) 50%, 
        rgba(255, 255, 255, 0.7) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* Star field density control */
.star-field-dense .star {
    animation-duration: 2s;
}

.star-field-sparse .star {
    animation-duration: 4s;
}

/* Orbit line enhancement */
.orbit-line {
    position: relative;
}

.orbit-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(254, 236, 179, 0.3) 20%, 
        rgba(254, 236, 179, 0.6) 50%, 
        rgba(254, 236, 179, 0.3) 80%, 
        transparent 100%);
    transform: translateX(-50%);
    filter: blur(1px);
    animation: orbit-line-pulse 4s ease-in-out infinite;
}

@keyframes orbit-line-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}