/* CSR Page Styles */

/* Hero Banner */
.hero-banner {
    position: relative;
    animation: fadeIn 1s ease;
}

/* Tab Navigation */
.csr-tab-btn {
    color: #6b7280;
    transition: all 0.3s ease;
}

.csr-tab-btn:hover {
    color: #1e3a8a;
    background: #f9fafb;
}

.csr-tab-btn.active {
    color: #1e3a8a;
    border-bottom-color: #fbbf24 !important;
    background: transparent;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Tab Content */
.csr-tab-content {
    animation: fadeInUp 0.5s ease;
}

.csr-tab-content.hidden {
    display: none;
}

.csr-tab-content.active {
    display: block;
}

/* MD Message Section */
.md-message-card {
    transition: all 0.3s ease;
}

.md-message-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.15s; }
.stats-card:nth-child(3) { animation-delay: 0.2s; }
.stats-card:nth-child(4) { animation-delay: 0.25s; }
.stats-card:nth-child(5) { animation-delay: 0.3s; }
.stats-card:nth-child(6) { animation-delay: 0.35s; }
.stats-card:nth-child(7) { animation-delay: 0.4s; }
.stats-card:nth-child(8) { animation-delay: 0.45s; }
.stats-card:nth-child(9) { animation-delay: 0.5s; }
.stats-card:nth-child(10) { animation-delay: 0.55s; }

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

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Stats Icon Animation */
.stats-card svg {
    transition: transform 0.3s ease;
}

.stats-card:hover svg {
    transform: scale(1.15) rotate(5deg);
}

/* CSR Projects Carousel */
.csr-projects-carousel {
    scroll-behavior: smooth;
}

.csr-projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.csr-projects-carousel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.csr-projects-carousel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.csr-projects-carousel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Project Card */
.project-card {
    transition: all 0.5s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card img {
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Hero Banner Carousel Dots */
.hero-carousel-dots button {
    transition: all 0.3s ease;
}

.hero-carousel-dots button:hover {
    transform: scale(1.2);
}

/* Sticky Tab Navigation */
.sticky {
    backdrop-filter: blur(8px);
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Prose Styling */
.prose {
    max-width: none;
}

.prose p {
    margin-bottom: 1rem;
}

/* Navigation Arrow Buttons */
.csr-projects-carousel + div button {
    transition: all 0.3s ease;
}

.csr-projects-carousel + div button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .stats-card {
        animation: none;
        opacity: 1;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .csr-tab-btn {
        font-size: 0.813rem;
        padding: 0.75rem 1rem;
    }
    
    .stats-card p {
        font-size: 0.813rem;
    }
    
    .stats-card .text-3xl {
        font-size: 1.5rem;
    }
}

/* Focus States */
.csr-tab-btn:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Print Styles */
@media print {
    .csr-tab-btn,
    .hero-carousel-dots,
    .csr-projects-carousel + div {
        display: none;
    }
}

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Text Shadow for Better Readability */
.hero-banner h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Project Card Title */
.project-card h4 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}