/* Custom styles and animations */

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.fade-in-up.delay-100 {
    transition-delay: 0.1s;
}

.fade-in-up.delay-200 {
    transition-delay: 0.2s;
}

.fade-in-up.delay-300 {
    transition-delay: 0.3s;
}

.fade-in-up.delay-400 {
    transition-delay: 0.4s;
}

/* Pulse animation for hero dot */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover effects for cards */
.group:hover .group-hover\:bg-teal-600\/20 {
    background-color: rgba(20, 184, 166, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        text-align: center !important;
    }
    
    .hero-image {
        order: -1;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
