/* Loading state animation */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.page-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth page transitions */
.page-transition {
    animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add entrance animations to cards */
.platform-card,
.announcement-card,
.pricing-card,
.tutorial-card,
.quick-link-card {
    animation: fadeInScale 0.5s ease-out backwards;
}

.platform-card:nth-child(1) {
    animation-delay: 0.1s;
}

.platform-card:nth-child(2) {
    animation-delay: 0.2s;
}

.platform-card:nth-child(3) {
    animation-delay: 0.3s;
}

.platform-card:nth-child(4) {
    animation-delay: 0.4s;
}

.platform-card:nth-child(5) {
    animation-delay: 0.5s;
}

.pricing-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.3s;
}

.announcement-card:nth-child(1) {
    animation-delay: 0.1s;
}

.announcement-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px !important;
    }

    .hero-subtitle {
        font-size: 18px !important;
    }

    .btn {
        padding: 12px 24px !important;
        font-size: 15px !important;
    }

    .pricing-card.popular {
        transform: scale(1) !important;
    }

    .pricing-card.popular:hover {
        transform: translateY(-8px) !important;
    }
}