:root {
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 25, 0.6);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(67, 97, 238, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-color: #4361ee;
    --success-color: #4cc9f0;
    --gradient-vox: linear-gradient(90deg, #e63946, #f1c40f, #43aa8b, #4361ee, #b5179e);
    --gradient-glow: radial-gradient(circle at top right, rgba(67, 97, 238, 0.15), transparent 40%);
    --font-primary: 'Poppins', sans-serif;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(67, 97, 238, 0.2);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(67, 97, 238, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(247, 37, 133, 0.15) 0px, transparent 50%);
    color: var(--text-primary);
    margin: 0;
    padding: 2rem;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-vox);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    margin: 0;
    filter: drop-shadow(0 0 15px rgba(67, 97, 238, 0.3));
    animation: gradient-flow 5s ease infinite;
    background-size: 200% 100%;
}

.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.cta-button-header {
    background: var(--gradient-vox);
    background-size: 200% 100%;
    animation: gradient-flow 4s ease infinite;
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-header:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(67, 97, 238, 0.5);
}

.header-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

.social-link img {
    width: 24px;
    height: 24px;
    opacity: 0.9;
    transition: transform 0.2s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.social-link:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.button,
.button-hf {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover,
.button-hf:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}


.button-hf img {
    filter: none;
}

.button img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}


.hero-mobile {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.cta-button-mobile {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gradient-vox);
    background-size: 200% 100%;
    animation: gradient-flow 3s ease infinite;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
}


.info-grid {
    display: grid;

    grid-template-columns: 1.5fr minmax(280px, 1fr) 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    perspective: 1000px;
    align-items: stretch;

}

.stacked-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;

    height: 100%;

}


.card-fullwidth,
.stat-card,
.about-section {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1em;
    height: 100%;

}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;

    flex: 1;

    height: auto;

}



.about-section,
.tech-stack-section,
.contributing-section {
    margin-bottom: 3rem;
    height: auto !important;
    overflow: visible !important;
}

.info-grid .card-fullwidth {
    height: 100%;
}

.card-fullwidth::before,
.stat-card::before,
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.card-fullwidth:hover,
.stat-card:hover,
.about-section:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

#changelog-card {
    display: flex;
    flex-direction: column;
    max-height: 650px;
}

.card-fullwidth h2,
.stat-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.card-icon {
    color: var(--accent-color);
    stroke-width: 2.5px;
}

.content-md {
    font-size: 0.95rem;
    color: #d4d4d8;
    line-height: 1.7;
    overflow-y: auto;
    flex-grow: 1;
}

.content-md::-webkit-scrollbar {
    width: 6px;
}

.content-md::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.stat-card .value {
    font-size: clamp(2rem, 3.5vw, 3.5rem);

    font-weight: 800;
    background: var(--gradient-vox);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;

    margin-bottom: 0.5rem;
    word-break: break-word;

}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.card-link:hover {
    gap: 0.8rem;
    color: #fff;
}


.about-section h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: var(--gradient-vox);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-column h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.about-column p {
    color: #d4d4d8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.2s;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.team-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #e5e5e5;
}

.team-tag.leader {
    border-color: var(--accent-color);
    color: var(--accent-color);
}


.tech-stack-section {
    text-align: center;
    align-items: center;
    padding: 2rem !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    margin-bottom: 3rem !important;
}

.tech-stack-section h2 {
    justify-content: center;
    border: none;
    margin-bottom: 1.5rem;
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tech-badges img {
    height: 40px;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.tech-badges img:hover {
    transform: scale(1.1) rotate(2deg);
}


.contributing-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(247, 37, 133, 0.05));
    border-color: rgba(67, 97, 238, 0.2);
    margin-bottom: 3rem !important;
    height: auto;
}

.cta-button-secondary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: var(--accent-color);
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6);
}

footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;

    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.loading {
    animation: pulse 1.5s infinite ease-in-out;
    color: var(--accent-color);
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@media (max-width: 1200px) {
    .info-grid {

        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "changelog metrics"
            "changelog info";
    }

    #changelog-card {
        grid-area: changelog;
        height: 100%;
        max-height: 1350px;
        overflow-y: auto;
    }

    .stacked-cards:nth-of-type(2) {
        grid-area: metrics;
    }

    .stacked-cards:nth-of-type(3) {
        grid-area: info;
    }
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "changelog"
            "metrics"
            "info";

        gap: 2rem;
    }

    #changelog-card {

        height: auto;
        max-height: 600px;

    }

    .card-fullwidth,
    .stat-card,
    .about-section {
        height: auto;

    }

    .stacked-cards {
        height: auto;
        gap: 1.5rem;
    }
}

@media (max-width: 1037px) {
    .nav-center {
        display: none;
    }

    header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-mobile {
        display: block;
    }

    .stacked-cards {
        gap: 1rem;
    }
}


.info-grid>div {
    min-width: 0;

}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding: 1rem;
        padding-bottom: 6rem;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .header-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }


    .button,
    .button-hf,
    .social-link {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .card-fullwidth,
    .stat-card,
    .about-section {
        padding: 1.5rem;
        height: auto;
    }


    .stat-card .value {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}