:root {
    --primary-color: #000714;
    --secondary-color: #00ffbb;
    --tag-color: #0057bb;

    --card-color: #181f30;

    --text-color:    #c9e4ff;
    --text-brighter: #f0f8ff;
    --text-muted:    #8dc6ff;

    --display-font: 'JetBrains Mono', monospace;
    --body-font: 'Inter', sans-serif;

    --border-curve: 10px;

    --space-1: 0.1rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 2.5rem;

    --shadow: 0 4px 8px 0 rgba(3, 83, 164, 0.3);
    --shadow-hover: 0 8px 16px 0 rgba(3, 83, 164, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    padding: var(--space-3);
    margin: 0 auto;
}

#navbar ul {
    border-radius: var(--border-curve);
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    overflow: hidden;
    background-color: var(--card-color);
    font-family: var(--display-font);
}


#navbar ul li a {
    display: block;
    color: var(--text-brighter);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
}

#navbar ul li a:hover {
    background-color: #39445d;
}

h1, h2, h3 {
    font-family: var(--display-font);
}

section {
    border-bottom: 1px solid rgba(201, 228, 255, 0.15);
    margin-bottom: var(--space-4);
}

section:last-of-type {
    border-bottom: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.card-body {
    display: flex;
    flex-direction: column;
    background-color: var(--card-color);
    border-radius: var(--border-curve);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.card-body:hover {
    box-shadow: var(--shadow-hover);
}

.card-body img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-curve);
}

.card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content a {
    color: var(--text-color);
}

.card-content a h3 {
    font-weight: 700;
}

.card-subtitle {
    font-weight: 700;
    font-style: italic;
}

.project-title {
    color: var(--secondary-color);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.tag {
    padding: 0.35rem;
    border-radius: var(--border-curve);
    background-color: var(--tag-color);
    font-family: var(--display-font);
    opacity: 0.8;
    transition: 0.3s;
}

.tag:hover {
    opacity: 1;
}

.repo-link {
    color: var(--text-muted);
    opacity: 0.8;
    text-decoration: none;
    transition: 0.3s;
    margin-top: auto;
}

.repo-link:hover {
    color: var(--text-brighter);
    opacity: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-3);
}

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

#building-blocks .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    padding: var(--space-2);
}

@media (max-width: 700px) {
    #building-blocks .card-grid {
        grid-template-columns: 1fr;
    }
}

#building-blocks .card-body img {
    object-fit: contain;
    border-radius: 0;
}

#building-blocks .card-content {
    padding: var(--space-2);
    text-align: center;
}

#building-blocks .card-body a h3 {
    font-size: 90%;
}

#building-blocks .card-body p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 80%;
    margin-top: auto;
}

#education-experience .card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-3);
}

#education-experience .card-body {
    padding: var(--space-4);
    line-height: 1.3;
}

#education-experience h4,
#education-experience .entry-date {
    font-family: var(--display-font);
}

#education-experience p {
    font-style: italic;
    color: var(--text-muted);
}

#education-experience h4,
#education-experience .entry-date,
#education-experience p {
    margin: 0;
}

#education-experience .entry-date,
#education-experience .card-body p {
    margin-top: var(--space-2);
}

#about-me .card-content {
    display: flex;
    flex-direction: row;
    flex: 1;
}

@media (max-width: 700px) {
    #about-me .card-content {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}

#about-me img {
    width: 250px;
    object-fit: contain;
    height: auto;
    border-radius: var(--border-curve);
    margin-right: var(--space-3);
    flex-shrink: 0;
}

#about-me p {
    font-family: var(--body-font);
}

/*--Timeline--*/

.repo-header {
    font-family: var(--display-font);
    color: var(--secondary-color);
    text-decoration: none;
}

.repo-subtitle {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
    font-size: 10;
}

.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 0 8px 2px #39445d;
}

.circle:hover {
    filter: brightness(1.3);
}

.ongoing {
    background-color: #d4a72c;
}

.merged {
    background-color: var(--secondary-color);
}

.closed {
    background-color: var(--card-color);
}

.timeline-body {
    position: relative;
    padding-left: 30px;
}

.timeline-body::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--text-muted);
}

.timeline-entry {
    position: relative;
    padding-left: 25px;
    margin-bottom: var(--space-4);
}

.timeline-entry p, .timeline-entry a{
    margin-bottom: var(--space-1);
}

.timeline-entry a {
    color: var(--text-color);
    font-weight: bold;

}

.timeline-entry p {
    color: var(--text-muted);
    font-style: italic;
}

.timeline-entry .circle {
    position: absolute;
    left: -30.5px;
    top: 4px;
    z-index: 1;
    border: 2px solid var(--primary-color);
}

/*--Timeline--*/



#resume p {
    font-family: var(--display-font);
}
.resume-actions {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.resume-btn svg {
    width: 48px;
    height: 48px;
    fill: var(--text-brighter);
    transition: 0.3s;
}

.resume-btn:hover svg {
    fill: var(--secondary-color);
}



.social-links, 
#connections h2 {
    display: flex;
    justify-content: center;
    color: var(--secondary-color);
    padding-bottom: 0;
}

@keyframes shimmer {
    0% { background-position: -200% center; };
    100% { background-position: 200% center; };
}

#connections h2 {
    background: linear-gradient(90deg, #bcffed 20%, var(--secondary-color) 40%, #87ffdf 60%, var(--secondary-color) 80%, #bcffed 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    #connections h2 {
        animation: none;
    }
}

.social-link {
    padding: var(--space-3);
}

.social-link svg {
    width: 48px;
    height: 48px;
    fill: var(--text-brighter);
    transition: 0.6s;
    border-radius: 18px;
}

.social-link:hover svg {
    fill: var(--secondary-color);
}