/* Custom Styles for Celestial Cycles Symphony */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom gradient animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background: linear-gradient(-45deg, #0ea5e9, #d946ef, #0ea5e9, #d946ef);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Celestial body glow effects */
.sun-glow {
    box-shadow: 0 0 60px 30px rgba(255, 255, 0, 0.3),
                 0 0 100px 60px rgba(255, 165, 0, 0.2),
                 0 0 140px 90px rgba(255, 69, 0, 0.1);
}

.moon-glow {
    box-shadow: 0 0 40px 20px rgba(192, 192, 192, 0.2),
                 0 0 80px 40px rgba(169, 169, 169, 0.1);
}

/* Star twinkle animation */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

/* Horizon line animation */
@keyframes horizon-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.horizon {
    animation: horizon-pulse 8s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d946ef;
}

/* Loading animation */
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Text shadow for better readability */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse animation for interactive elements */
@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Responsive text sizing */
@media (max-width: 768px) {
    .responsive-text {
        font-size: 0.875rem;
    }
}

/* Custom button hover effects */
.btn-hover-effect {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Fade in animations for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Celestial body movement transitions */
.celestial-transition {
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}