:root {
    --primary: #8be9fd;
    --secondary: #ff79c6;
    --dark: #1a1b27;
    --darker: #16161e;
    --light: #f8f8f2;
    --accent: #50fa7b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    border-bottom: 1px solid rgba(139, 233, 253, 0.1);
}

h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(139, 233, 253, 0.3);
}

h2 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

h2:hover::after {
    transform: scaleX(1);
}

.section {
    background-color: var(--darker);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--primary);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.languages-box {
    background: var(--darker);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    border-left: 3px solid var(--secondary);
    max-width: 320px;
    min-width: 250px;   /* Add this for consistent width */
    flex: 1 1 0;        /* Allow boxes to grow/shrink equally */
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Stretch content to fill height */
}

.languages-box h3 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.languages-box table {
    width: 100%;
    border-collapse: collapse;
}

.languages-box td {
    padding: 6px 0;
    vertical-align: middle;
}

.flag {
    font-size: 1.3em;
    margin-right: 8px;
}

.lang-skill {
    text-align: right;
    color: var(--primary);
    font-weight: bold;
}

.blueter {
    color: var(--primary);
    font-weight: bold;
}

/* For the contribution link inside the td */
.contribution-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.contribution-link i {
    font-size: 1rem;
    color: var(--secondary);
}

/* Optional hover effect for the link */
.contribution-link:hover {
    text-decoration: underline;
    color: var(--accent, var(--secondary));
}


.github-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

.github-profile img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(139, 233, 253, 0.4);
    transition: transform 0.3s ease;
}

.github-profile img:hover {
    transform: scale(1.05);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.stat-card {
    background: var(--dark);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 233, 253, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 233, 253, 0.2);
    border-color: var(--primary);
}

.stat-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

nav {
    display: flex;
    justify-content: center;
    background: var(--darker);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

nav a {
    margin: 0 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--secondary);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 1.5rem;
}

.skill {
    background: rgba(139, 233, 253, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--darker);
    border-radius: 10px;
    margin-top: 2rem;
}

.centered-boxes {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Made all boxes the same height */
    gap: 30px;
    margin: 30px 0 40px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.project-card {
    background: var(--dark);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 233, 253, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(139, 233, 253, 0.2);
    border-color: var(--primary);
}

.project-card h3 {
    color: var(--primary);
    margin-top: 0;
}

.project-card .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.project-card .tech {
    background: rgba(80, 250, 123, 0.1);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.coming-soon {
    background-color: rgba(80, 250, 123, 0.15); /* light green bg */
    color: #50fa7b; /* green text */
    border: 1px solid #50fa7b;
}

.wip {
    background-color: rgba(255, 184, 108, 0.15); /* light orange bg */
    color: #ffb86c; /* orange text */
    border: 1px solid #ffb86c;
}


@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 1rem 0;
    }

    .github-profile img {
        width: 100px;
        height: 100px;
    }

    .skills {
        gap: 8px;
        font-size: 0.95rem;
    }

    .stats-container,
    .project-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card,
    .project-card {
        padding: 10px;
    }

    .section {
        padding: 15px;
        margin-bottom: 18px;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
    }

    nav a {
        margin: 4px 0;
        font-size: 1rem;
        padding: 8px 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    footer {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .languages-box {
        max-width: 100%;
        margin: 0 0 18px 0;
        padding: 12px 10px;
        font-size: 0.98rem;
    }



}

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

.section {
    animation: fadeIn 0.6s ease forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
