/* Custom CSS styles for Jupiter website */

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

/* Custom gradient backgrounds for radial gradients */
.bg-gradient-radial {
    background: radial-gradient(var(--tw-gradient-stops));
}

/* Smooth transitions for keyword animations */
.keyword-animate {
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.5s ease-out;
}

/* Additional hover effects for better interactivity */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Custom scrollbar for webkit browsers */
#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.6);
    border-radius: 2px;
}

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

/* Ensure backdrop blur works properly */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Custom blur effects for visual elements */
.blur-3xl {
    filter: blur(64px);
}

.blur-2xl {
    filter: blur(40px);
}

/* Enhanced pulse animation for stars */
@keyframes enhanced-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.star-enhanced-pulse {
    animation: enhanced-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth orbital rotation */
@keyframes orbital-rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-orbital {
    animation: orbital-rotation 20s linear infinite;
}

.animate-orbital-reverse {
    animation: orbital-rotation 30s linear infinite reverse;
}

/* Text gradient effects */
.text-gradient-gold {
    background: linear-gradient(135deg, #FDBE02, #FEECB3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-space {
    background: linear-gradient(135deg, #928EBE, #FEECB3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

/* Focus states for accessibility */
button:focus,
a:focus {
    outline: 2px solid rgba(253, 190, 2, 0.8);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-white\/80 {
        color: white;
    }
    .text-white\/70 {
        color: white;
    }
    .bg-white\/10 {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .animate-spin,
    .animate-ping,
    .star-enhanced-pulse,
    .animate-orbital,
    .animate-orbital-reverse {
        animation: none;
    }
    
    .transition-all,
    .transition-colors,
    .transition-opacity,
    .transition-transform {
        transition: none;
    }
    
    #jupiter-planet {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .fixed {
        position: absolute;
    }
    
    .animate-pulse,
    .animate-spin,
    .animate-ping,
    #starfield,
    #mobile-starfield {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Dark mode adjustments (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark space theme */
}

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

/* Smooth scaling for touch devices */
@media (hover: none) and (pointer: coarse) {
    .hover\:transform:hover,
    .hover\:-translate-y-1:hover {
        transform: none;
    }
    
    .hover\:text-white:hover {
        color: rgb(255 255 255);
    }
}

/* Container query support for modern browsers */
@supports (container-type: inline-size) {
    .responsive-container {
        container-type: inline-size;
    }
}

/* Custom selection colors */
::selection {
    background-color: rgba(253, 190, 2, 0.3);
    color: white;
}

::-moz-selection {
    background-color: rgba(253, 190, 2, 0.3);
    color: white;
}