/* Modern Home Page Styles */
/* ======================== */

/* Modern hero section */
.modern-hero {
    background: linear-gradient(135deg, #47DA96 0%, #39BDC4 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.modern-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(240, 253, 244, 0.3), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modern-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.modern-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-image {
    filter: brightness(1.1) contrast(1.1);
}

/* Modern stats cards */
.stats-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9fffe 50%, #ffffff 100%);
    padding: 100px 0;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #47DA96 0%, #39BDC4 100%);
    border-radius: 20px 20px 0 0;
}

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

.stats-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 35px;
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 35px 0;
}

.stat-item h4 {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: .8rem;
    font-weight: 700;
    color: #111827;
    min-height: 24px;
}

.stats-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin: 30px 0;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-image {
    transform: scale(1.05);
}

/* Stats icon styling */
.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(71, 218, 150, 0.12), rgba(57, 189, 196, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(71, 218, 150, 0.2);
}

.stats-card:hover .stats-icon {
    transform: rotate(5deg) scale(1.1);
    background: linear-gradient(135deg, rgba(71, 218, 150, 0.2), rgba(57, 189, 196, 0.2));
    border-color: rgba(71, 218, 150, 0.3);
}

.percentage-display {
    font-size: 2.5rem !important;
    font-weight: 800;
    /* background: linear-gradient(45deg, #47DA96 0%, #39BDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
    margin: 25px 0;
    padding: 10px 0;
    /* text-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.modern-btn-secondary {
    background: linear-gradient(45deg, #47DA96 0%, #39BDC4 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(71, 218, 150, 0.3);
}

.modern-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(71, 218, 150, 0.4);
    color: white;
    background: linear-gradient(45deg, #3EBE87 0%, #32A8B3 100%);
}

/* Modern data section */
.data-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fffe 50%, #ffffff 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 25px;
}

.section-title p {
    font-size: 1.2rem;
    color: #374151;
    max-width: 600px;
    margin: 0 auto;
}

.data-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(71, 218, 150, 0.08), rgba(57, 189, 196, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-card:hover::before {
    opacity: 1;
}

.data-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(71, 218, 150, 0.15);
    border-color: rgba(71, 218, 150, 0.3);
}

.data-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.data-card:hover .data-icon {
    transform: scale(1.1) rotate(5deg);
}

.data-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.data-card p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.data-btn {
    background: linear-gradient(45deg, #47DA96 0%, #39BDC4 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(71, 218, 150, 0.3);
}

.data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 218, 150, 0.4);
    color: white;
    background: linear-gradient(45deg, #3EBE87 0%, #32A8B3 100%);
}

/* Animation classes */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

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

/* Loading states */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.stats-card.loaded {
    animation: pulse-success 0.5s ease-out;
}

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

/* Button hover effects */
.modern-btn::before, 
.modern-btn-secondary::before, 
.data-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.modern-btn:hover::before, 
.modern-btn-secondary:hover::before, 
.data-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Progress bar styling */
.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(90deg, #47DA96, #39BDC4);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    .stats-card {
        padding: 45px 35px;
    }
    .data-card {
        padding: 35px 25px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
    .stats-section {
        padding: 80px 0;
    }
    .data-section {
        padding: 80px 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-card {
        padding: 40px 30px;
        margin-bottom: 25px;
    }
    .data-card {
        padding: 35px 25px;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        min-height: 80vh;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .stats-section {
        padding: 70px 0;
    }
    .data-section {
        padding: 70px 0;
    }
    .stats-card {
        margin-bottom: 40px;
        padding: 35px 25px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .section-title p {
        font-size: 1.1rem;
    }
    .data-card {
        padding: 35px 25px;
        margin-bottom: 35px;
    }
    .data-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .percentage-display {
        font-size: 2rem !important;
    }
    .stats-card h3 {
        font-size: 1.1rem;
    }
    .data-card h3 {
        font-size: 1.2rem;
    }
    .modern-btn, .modern-btn-secondary, .data-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .stats-section {
        background: #1a1a1a;
    }
    .stats-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    .stats-card h3, 
    .data-card h3 {
        color: #ffffff;
    }
    .stat-value {
        color: #e0e0e0 !important;
    }
    .data-section {
        background: #121212;
    }
    .data-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    .data-card p {
        color: #b0b0b0 !important;
    }
    .section-title h2 {
        color: #ffffff;
    }
    .section-title p {
        color: #b0b0b0;
    }
} */

/* Print styles */
@media print {
    .modern-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: black !important;
    }
    .stats-card,
    .data-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    .modern-btn,
    .modern-btn-secondary,
    .data-btn {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stats-card,
    .data-card {
        border: 2px solid #000;
    }
    .modern-btn,
    .modern-btn-secondary,
    .data-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Badge styling */
.bg-gradient-success-info {
    background: linear-gradient(45deg, #47DA96 0%, #39BDC4 100%) !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 12px rgba(71, 218, 150, 0.3);
    transition: all 0.3s ease;
}

.bg-gradient-success-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(71, 218, 150, 0.4);
}

/* Enhanced section title styling */
.section-title .display-5 {
    background: linear-gradient(45deg, #47DA96 0%, #39BDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved progress bar for green/blue theme */
.progress-modern .progress-bar {
    background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Stats card enhancements */
.stats-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 150, 105, 0.15);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.08);
}

.stats-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(5, 150, 105, 0.25);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
}

/* Data card enhancements */
.data-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 150, 105, 0.12);
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.06);
}

.data-card:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 35px rgba(5, 150, 105, 0.12);
}

.data-card-header {
    text-align: center;
}

.data-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 50%, #fafafa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(5, 150, 105, 0.1);
}

.data-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(8, 145, 178, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-card:hover .data-icon-wrapper::before {
    opacity: 1;
}

.data-card:hover .data-icon-wrapper {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
    border-color: rgba(5, 150, 105, 0.3);
}

.data-card-body {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.data-card-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
}

/* Floating animation for hero section */
.hero-image {
    animation: float 6s ease-in-out infinite;
}

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

/* Gradient text for headings */
.gradient-text {
    background: linear-gradient(45deg, #059669, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced glassmorphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Stats value animation */
.stat-value {
    transition: all 0.3s ease;
}

.stats-card:hover .stat-value {
    transform: scale(1.05);
    color: #047857;
    font-weight: 800;
}

/* Parallax background for sections */
.stats-section {
    position: relative;
    background-attachment: fixed;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced button ripple effect */
.data-btn {
    position: relative;
    overflow: hidden;
}

.data-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.data-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Container spacing improvements */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Better spacing for grid columns */
.col-lg-4, .col-lg-3, .col-md-6 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .col-lg-4, .col-lg-3, .col-md-6 {
        margin-bottom: 30px;
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #059669 0%, #0891b2 50%, #2563eb 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #047857 0%, #0284c7 50%, #1d4ed8 100%);
}