/* Custom Styles for EatSmart */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Blob animation for Hero Section */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom gradient backgrounds */
.gradient-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scrollbar styles removed - using default browser scrollbar */

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-out;
}

#mobile-menu.hidden {
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Article card enhancements */
.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Timeline responsive styles */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px !important;
    }
    
    .timeline-item {
        padding-left: 60px !important;
    }
    
    .timeline-dot {
        left: 20px !important;
    }
}

/* Statistics counter animation */
[data-count] {
    transition: all 0.3s ease;
}

/* Enhanced card hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Research card animations */
.research-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.research-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Enhanced input focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #10b981;
}

/* Backdrop blur support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Smooth transitions for all interactive elements */
a, button, input, select {
    transition: all 0.2s ease;
}

