/* Home Page Specific Styles */

/* Additional styles for better animations on home page */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
    min-width: 60px;
}

.progress-fill {
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for forms */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Loading States */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Updated Values Grid for 8 items */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* For desktop - 4 columns */
@media (min-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For tablets - 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile - 1 column */
@media (max-width: 767px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}