/* Base Setup */
body {
    background-color: #050510;
    /* Deep dark blue */
}

/* Glassmorphism Utilities */
.glass-nav {
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Orbit Radius */
.orbit-ring-container {
    --orbit-radius: 150px;
    /* Mobile Radius */
}

@media (min-width: 768px) {
    .orbit-ring-container {
        --orbit-radius: 300px;
        /* Desktop Radius */
    }
}

.planet {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
}

.glass-card-high {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Perspective for 3D effects if needed */
.perspective-1000 {
    perspective: 1000px;
}

/* Custom Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.animate-shine {
    animation: shine 1.5s infinite;
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

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

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

::-webkit-scrollbar-track {
    background: #050510;
}

::-webkit-scrollbar-thumb {
    background: #24BCFF;
    border-radius: 4px;
}


/* Product Card Animations */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:rotate-3 {
    transform: rotate(3deg);
}

.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-8px);
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* Timeline Animation */
@keyframes flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.animate-flow-line {
    background: linear-gradient(90deg, rgba(36, 188, 255, 0.2) 0%, #24BCFF 50%, rgba(36, 188, 255, 0.2) 100%);
    background-size: 200% 100%;
    animation: flow 3s linear infinite;
    box-shadow: 0 0 15px rgba(36, 188, 255, 0.4);
}

.animate-flow-line-vertical {
    background: linear-gradient(180deg, rgba(36, 188, 255, 0.2) 0%, #24BCFF 50%, rgba(36, 188, 255, 0.2) 100%);
    background-size: 100% 200%;
    animation: flow 3s linear infinite;
    box-shadow: 0 0 15px rgba(36, 188, 255, 0.4);
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}

/* Orbit Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

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

.animate-spin-reverse-slow {
    animation: spin-reverse 60s linear infinite;
}

.group:hover .pause-animation,
.hover\:pause-animation:hover {
    animation-play-state: paused;
}

/* Ensure planets stay upright by inheriting the reverse animation */
.planet .animate-spin-reverse-slow {
    animation: spin-reverse 60s linear infinite;
}

/* Float Animation for Center Image */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float-slow {
    animation: float-slow 4s ease-in-out infinite;
}

/* Chat Bubble Animation - Appear and Stay */
@keyframes chat-appear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Full chat sequence: appear one by one, stay visible, then fade all out and restart */
@keyframes chat-sequence {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    /* Appear */
    5% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    /* Stay visible until near end */
    85% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    /* Fade out */
    95%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.95);
    }
}

.chat-bubble {
    opacity: 0;
}

/* Total cycle: 24s, each bubble appears 2s after previous */
.chat-bubble-1 {
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: 0s;
}

.chat-bubble-2 {
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: 2s;
}

.chat-bubble-3 {
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: 4s;
}

.chat-bubble-4 {
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: 6s;
}

.chat-bubble-5 {
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: 8s;
}

.chat-bubble-6 {
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: 10s;
}

/* Legacy class for backwards compatibility */
.animate-chat-cycle {
    opacity: 0;
    animation: chat-sequence 24s ease-out infinite;
    animation-delay: var(--delay);
}

.glass-bubble {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow Pulse Animation for Hero Card */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(36, 188, 255, 0.1);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 0 40px rgba(36, 188, 255, 0.25), 0 0 60px rgba(36, 188, 255, 0.1);
    }
}

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

/* Chat Bubble Pulse Animation */
@keyframes bubble-pulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(36, 188, 255, 0);
    }
    50% {
        box-shadow: 0 0 15px rgba(36, 188, 255, 0.2);
    }
}

.animate-bubble-pulse {
    animation: bubble-pulse 3s ease-in-out infinite;
}

.animate-bubble-pulse-delay-1 {
    animation: bubble-pulse 3s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-bubble-pulse-delay-2 {
    animation: bubble-pulse 3s ease-in-out infinite;
    animation-delay: 2s;
}