/* GitHub Integration CSS Optimizations */

/* Performance optimizations */
.github-stats-container {
    will-change: transform;
}

.stat-card {
    will-change: transform;
}

/* Smooth performance with GPU acceleration */
#github-section {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Optimize animations for mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .navbar {
        background: rgba(30, 30, 30, 0.95) !important;
    }

    .resume-wrap {
        background: #2a2a2a;
    }

    .resume-wrap:hover {
        background: #333;
    }
}

/* Print styles */
@media print {
    .navbar,
    #github-section,
    #contact-section {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}

/* High resolution displays */
@media (min-width: 1920px) {
    body {
        font-size: 18px;
    }

    #home-section h1 {
        font-size: 4rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #home-section h1 {
        font-size: 1.8rem;
    }

    #home-section h2 {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .nav-link {
        margin-left: 0.2rem;
        font-size: 0.8rem;
    }

    .progress-wrap h3 {
        font-size: 0.9rem;
    }
}