/* ========================================
   JOOBLY PUBLIC SITE STYLES
   ======================================== */

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Hero section enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.btn-secondary {
    transition: all 0.3s ease;
    border: 2px solid #EF4444;
    color: #EF4444;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
    background: #EF4444;
    color: white;
}

/* Navigation enhancements */
nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

/* Card hover effects */
.feature-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
}

/* Community avatars animation */
.avatar-group {
    animation: float 3s ease-in-out infinite;
}

.avatar-group img:nth-child(1) { animation-delay: 0s; }
.avatar-group img:nth-child(2) { animation-delay: 0.5s; }
.avatar-group img:nth-child(3) { animation-delay: 1s; }
.avatar-group img:nth-child(4) { animation-delay: 1.5s; }
.avatar-group img:nth-child(5) { animation-delay: 2s; }

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

/* Feature icons pulse */
.feature-icon {
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Step numbers animation */
.step-number {
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.testimonial-card:hover {
    border-left-color: #EF4444;
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007AFF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056CC;
}

/* Print styles */
@media print {
    nav,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Enhanced modern animations */
@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.animate-scale-pulse {
    animation: scale-pulse 2s ease-in-out infinite;
}

/* Enhanced card effects */
.modern-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Gradient backgrounds */
.gradient-bg-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.gradient-bg-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.gradient-bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-bg-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
} 