/* Custom Styles for RareStack.cloud */

/* Logo Styles */
.logo-container {
    animation: fadeInDown 1.2s ease-out;
}

.logo-icon svg {
    filter: drop-shadow(0 4px 12px rgba(147, 197, 253, 0.4));
    animation: float 6s ease-in-out infinite;
}

.logo-text {
    text-shadow: 0 2px 8px rgba(147, 197, 253, 0.3), 0 0 20px rgba(196, 181, 253, 0.2);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(147, 51, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
    }
}

/* Utility classes */
.floating {
    animation: float 6s ease-in-out infinite;
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-in {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

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

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.cta-button-white {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #6366f1;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-button-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    background: #f8fafc;
}

/* Card Animations */
.problem-card,
.benefit-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.problem-card:hover,
.benefit-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.problem-card.animate,
.benefit-card.animate,
.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Step animations */
.step-item > div {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.step-item.animate > div {
    opacity: 1;
    transform: translateX(0);
}

.step-item > div:nth-child(1) { transition-delay: 0.1s; }
.step-item > div:nth-child(2) { transition-delay: 0.3s; }
.step-item > div:nth-child(3) { transition-delay: 0.5s; }

/* FAQ Animations */
.faq-item {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-left-color: #6366f1;
    background-color: #fafafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
}

.faq-question .fa-chevron-down {
    transition: transform 0.3s ease;
}

.faq-question.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fade-in,
    .slide-in {
        animation-delay: 0.2s;
    }
    
    .problem-card,
    .benefit-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

/* Background patterns for better visual appeal */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Loading animation for initial page load */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #581c87);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
} 