/* Custom styles for Everyhope Foundation */

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

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

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Logo animation */
.nav-logo {
    animation: float 3s ease-in-out infinite;
}

/* Hero section animations */
.hero-content {
    animation: slideInUp 1s ease-out;
}

/* Countdown styles */
.countdown-item {
    @apply bg-white rounded-xl shadow-lg p-4 md:p-6 text-center min-w-0 flex-1 max-w-24 md:max-w-none;
    animation: fadeInScale 0.8s ease-out;
}

.countdown-value {
    @apply text-2xl md:text-4xl font-bold text-green-600;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    @apply text-sm md:text-base text-gray-600 font-medium;
}

/* Feature cards */
.feature-card {
    @apply bg-gray-50 rounded-xl p-6 text-center hover:bg-white hover:shadow-lg transition-all duration-300 transform hover:-translate-y-1;
}

.feature-icon {
    @apply w-16 h-16 bg-white rounded-full flex items-center justify-center mx-auto mb-4 shadow-md;
}

.feature-icon i {
    @apply text-2xl;
}

/* Statistics cards */
.stat-card {
    @apply bg-white rounded-xl p-6 shadow-lg;
    animation: fadeInScale 1s ease-out;
}

.stat-number {
    @apply text-4xl md:text-5xl font-bold text-green-600 mb-2;
    font-family: 'Courier New', monospace;
}

.stat-label {
    @apply text-gray-700 font-medium;
}

/* Form styles */
#email-form input:focus {
    @apply outline-none ring-2 ring-green-500 ring-opacity-50;
}

#email-form button:hover {
    @apply transform scale-105;
}

/* Social links */
.social-link {
    @apply w-10 h-10 bg-gray-700 rounded-full flex items-center justify-center text-gray-300 hover:bg-green-600 hover:text-white transition-all duration-300 transform hover:scale-110;
}

/* Coming soon badge animation */
.coming-soon-badge {
    animation: pulse-gentle 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .countdown-item {
        @apply p-3;
    }
    
    .countdown-value {
        @apply text-xl;
    }
    
    .stat-number {
        @apply text-3xl;
    }
}

/* Loading animation for buttons */
.btn-loading {
    @apply opacity-75 cursor-not-allowed;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error message styles */
.message-success {
    @apply text-green-600;
}

.message-error {
    @apply text-red-600;
}

/* Gradient background enhancement */
body {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 25%, #e0f2fe 100%);
    min-height: 100vh;
}

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

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-green-400 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-green-500;
}

/* Intersection observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hover effects for cards */
.card-hover {
    @apply transition-all duration-300 ease-in-out;
}

.card-hover:hover {
    @apply transform scale-105 shadow-xl;
}

/* Typography enhancements */
.hero-title {
    background: linear-gradient(135deg, #1f2937 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu styles (if needed later) */
.mobile-menu {
    @apply transform transition-transform duration-300 ease-in-out;
}

.mobile-menu.closed {
    @apply -translate-x-full;
}

.mobile-menu.open {
    @apply translate-x-0;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    @apply outline-none ring-2 ring-green-500 ring-opacity-50;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}