/* ========================================
   MIMIChat Official Website - Custom Styles
   ======================================== */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

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

/* Hero section background */
.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-section {
        min-height: 60vh;
    }
}

/* Feature cards hover effect */
.feature-card {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Download cards */
.download-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-card:hover {
    transform: translateY(-2px);
}

/* Scroll to top button transition */
#scrollTopBtn {
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    transform: translateY(-2px);
}

#scrollTopBtn.visible {
    opacity: 0.9 !important;
    visibility: visible !important;
}

/* Header shadow on scroll */
header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Selection color */
::selection {
    background-color: rgba(63, 116, 252, 0.15);
    color: inherit;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Announcement list item active state */
.announcement-item {
    transition: all 0.2s ease;
}

.announcement-item:hover {
    background-color: #f9fafb;
}

.announcement-item.active {
    background-color: #eff6ff;
    border-left: 4px solid #3F74FC;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Print styles */
@media print {
    header, footer, #scrollTopBtn {
        display: none !important;
    }
    body {
        background: white;
    }
}
