/* GitHub Showcase Section Styles */
.github-showcase {
    background-color: var(--bg-color);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.github-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(79, 70, 229, 0.1), transparent 40%);
    z-index: 0;
}

.github-showcase-container {
    position: relative;
    z-index: 1;
}

.github-header {
    text-align: center;
    margin-bottom: 3rem;
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .github-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.25rem;
    }

    .repo-card.featured {
        grid-column: span 6;
    }

    .repo-card.medium {
        grid-column: span 6;
    }

    .repo-card.small {
        grid-column: span 3;
    }
}

@media (max-width: 576px) {
    .github-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .repo-card.featured,
    .repo-card.medium,
    .repo-card.small {
        grid-column: span 1;
    }

    .repo-card {
        padding: 1.25rem;
    }

    .repo-header h3 {
        font-size: 1.1rem;
    }

    .repo-description {
        font-size: 0.9rem;
    }

    .repo-tags {
        flex-wrap: wrap;
    }

    .repo-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.25rem;
    }
}

/* Repository Cards */
.repo-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.3);
}

.repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), rgba(79, 70, 229, 0.5));
    opacity: 0.8;
}

.repo-card.featured {
    grid-column: span 6;
    grid-row: span 2;
}

.repo-card.medium {
    grid-column: span 4;
    grid-row: span 2;
}

.repo-card.small {
    grid-column: span 3;
    grid-row: span 1;
}

@media (max-width: 1200px) {
    .repo-card.featured {
        grid-column: span 6;
    }
    .repo-card.medium {
        grid-column: span 6;
    }
    .repo-card.small {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .repo-card.featured {
        grid-column: span 12;
    }
    .repo-card.medium {
        grid-column: span 12;
    }
    .repo-card.small {
        grid-column: span 6;
    }
}

@media (max-width: 576px) {
    .repo-card.small {
        grid-column: span 12;
    }
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.repo-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.repo-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.repo-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    font-size: 0.85rem;
}

.repo-meta-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.repo-meta-item i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.repo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.repo-tag {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.repo-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.repo-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.repo-link:hover {
    color: var(--primary-color-dark);
}

.repo-link:hover i {
    transform: translateX(3px);
}

/* Contribution Graph */
.contribution-graph {
    grid-column: span 12;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contribution-graph::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), rgba(79, 70, 229, 0.5));
    opacity: 0.8;
}

.contribution-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contribution-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.contribution-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.contribution-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.contribution-placeholder p {
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.3);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* GitHub CTA */
.github-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.github-cta .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Animation for the cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.repo-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.repo-card:nth-child(1) { animation-delay: 0.1s; }
.repo-card:nth-child(2) { animation-delay: 0.2s; }
.repo-card:nth-child(3) { animation-delay: 0.3s; }
.repo-card:nth-child(4) { animation-delay: 0.4s; }
.repo-card:nth-child(5) { animation-delay: 0.5s; }
.repo-card:nth-child(6) { animation-delay: 0.6s; }

.stat-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.7s; }
.stat-card:nth-child(2) { animation-delay: 0.8s; }
.stat-card:nth-child(3) { animation-delay: 0.9s; }
.stat-card:nth-child(4) { animation-delay: 1s; }

/* Contribution graph animation */
.contribution-graph {
    animation: fadeInUp 0.6s ease forwards 0.3s;
    opacity: 0;
}

/* Hexagon grid background */
.hexagon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background-image:
        linear-gradient(var(--primary-color) 1px, transparent 1px),
        linear-gradient(to right, var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

@media (max-width: 768px) {
    .hexagon-bg {
        background-size: 15px 15px;
        opacity: 0.03;
    }
}

@media (max-width: 576px) {
    .hexagon-bg {
        background-size: 10px 10px;
        opacity: 0.02;
    }
}

/* Code animation */
.code-animation {
    position: absolute;
    top: 10%;
    right: 5%;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.2;
    z-index: 0;
    white-space: pre;
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .code-animation {
        font-size: 0.7rem;
        top: 5%;
        right: 3%;
    }
}

@media (max-width: 992px) {
    .code-animation {
        font-size: 0.6rem;
        top: 3%;
        right: 2%;
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    .code-animation {
        display: none;
    }
}

/* Pulse animation for featured repo */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.repo-card.featured {
    animation: pulse 2s infinite;
}

/* Floating animation for icons */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.repo-icon, .stat-icon {
    animation: float 3s ease-in-out infinite;
}