/* Custom styles for FusionSpace Coming Soon Page */

/* Smooth scrolling and base styles */
* {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Floating animation for background elements */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Glow effect for interactive elements */
.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* Shimmer effect for gradient text */
.shimmer {
    background: linear-gradient(
        90deg,
        #06b6d4 0%,
        #8b5cf6 25%,
        #06b6d4 50%,
        #8b5cf6 75%,
        #06b6d4 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #06b6d4, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0891b2, #7c3aed);
}

/* Enhanced focus states */
input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

/* Hover effects for social links */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(6, 182, 212, 0.3));
}

/* Countdown timer enhancements */
.countdown-item {
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Email form enhancements */
.email-form {
    transition: all 0.3s ease;
}

.email-form:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Loading animation for form submission */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Success and error message styles */
.message {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.message.show {
    transform: translateY(0);
    opacity: 1;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .countdown-item {
        padding: 1rem;
    }
    
    .countdown-item div:first-child {
        font-size: 2rem;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
    }
}

/* Print styles */
@media print {
    .floating-elements,
    .background-elements {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .countdown-item {
        border: 2px solid white;
    }
    
    input, button {
        border: 2px solid white;
    }
}
