/* Additional enhancements for CSR section and page */

/* Animated elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.focus-item {
    animation: fadeInUp 0.6s ease forwards;
}

.focus-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.focus-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* Enhanced hover effects */
.csr-btn {
    position: relative;
    overflow: hidden;
}

.csr-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.csr-btn:hover::before {
    left: 100%;
}

/* Improved accessibility */
.csr-btn:focus,
.focus-item:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Print styles for CSR page */
@media print {
    .csr-hero {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
            /* Vendor-prefixed version */ /* For Safari */  /* For Firefox */
/* -webkit-print-color-adjust: exact;     
-moz-print-color-adjust: exact;    */

/* Standard property */
print-color-adjust: exact;
    }

    
    .csr-btn,
    footer {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .csr-page {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .content-section h2,
    .content-section h3 {
        color: #ffffff;
    }
    
    .highlight-box {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e0e0e0;
    }
    
    .stat-card {
        background: #2d3748;
        color: #e0e0e0;
    }
}

/* Loading animation for dynamic content */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .csr-hero {
        padding: 50px 0;
    }
    
    .csr-hero h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .content-section {
        margin-bottom: 30px;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .highlight-box {
        padding: 20px;
        margin: 20px 0;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .csr-btn {
        border: 2px solid currentColor;
    }
    
    .focus-item {
        border: 1px solid #000;
    }
    
    .highlight-box {
        border: 2px solid #007bff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
