 body {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    grid-template-rows: 100px 1fr 1fr .5fr 1fr 1fr 1fr;
    height: 100vh;
    column-gap: 1rem;
 }

 .header-container {
    padding: 2rem 2rem 3rem 2rem;
    grid-column: 2 / span 2;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    height: fit-content;

 }

 .header-container h1 {
    margin-top: 0;
    font-size: 4rem;
    font-family: "Archivo", sans-serif;
    color: #EDF060; 
 }

.education-title {
    font-size: 2rem;
    font-family: "Archivo", sans-serif;
    padding-left: 2rem;
    grid-area: 3 / 2 / 4 / 3;
    height: fit-content;
    align-self: start;
 }

 .fun-fact {
    color: #9c9c9c;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
 }
/* 
 .fun-fact::before { content: "("; }
 .fun-fact::after  { content: ")"; } */

 .header-container p {
    font-family: "Google Sans", sans-serif;
    font-size: 1.25rem;
    line-height: 1.7rem;
    color: white;
    font-weight: 400;
    width: 100%;
    padding-bottom: 1rem;
 }

 .social-links {
    font-size: 1.25rem;
    font-family: "Google Sans", sans-serif;
    color: white;
    font-weight: 400;
 }

 .social-links a {
    color: #EDF060;
    font-size: 1.25rem;
    text-decoration: underline;
    font-weight: 500;

 }

 .education-title {
    font-size: 2rem;
    font-family: "Archivo", sans-serif;
    padding: 0 2rem 0 2rem;
    grid-column: 2 / 4;
    height: fit-content;
    align-self: start;
    margin-bottom: 0;
    font-weight: 600;
 }


.tools-section {
    grid-area: 6 / 2 / 7 / 4;
    padding: 0 2rem 2rem 2rem;
    width: 100%;
 }

.tools-section h2 {
    padding-bottom: 0;
 }

.tools-title {
    font-size: 2rem;
    font-family: "Archivo", sans-serif;
    padding-bottom: .5rem;
    font-weight: 600;
 }

 .tools-section p {
    font-family: "Google Sans", sans-serif;
    line-height: 1.5rem;
    font-size: 1.25rem;
 }

.tools-progress h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #9c9c9c;
}

.tools-header {
    padding: 0 0 2rem 0;
}

.bar-background {
    background-color: #2b2b2b;
    display: flex;
    width: 100%;
    height: fit-content;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

@keyframes barFill {
    from { width: 0; }
    to   { width: var(--bar-width); }
}

.bar-complete {
    --bar-width: 50%;
    background-color: #EDF060;
    color: #100b00;
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    width: 0;
    height: fit-content;
    border-radius: 50px;
    padding-left: 2rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    box-shadow: 2px 2px 8px rgba(16, 11, 0, 0.15), 0 1px 3px rgba(16, 11, 0, 0.1);
    overflow: hidden;
}

.bar-complete.bar-animate {
    animation: barFill 1.2s ease-out forwards;
}

.tools-progress:nth-child(2) .bar-complete { --bar-width: 90%; }
.tools-progress:nth-child(3) .bar-complete { --bar-width: 95%; }
.tools-progress:nth-child(4) .bar-complete { --bar-width: 80%; }
.tools-progress:nth-child(5) .bar-complete { --bar-width: 70%; }
.tools-progress:nth-child(6) .bar-complete { --bar-width: 90%; }
.tools-progress:nth-child(7) .bar-complete { --bar-width: 95%; }

.education-section {
    grid-column: 2 / span 2;
    grid-row: 4 / 5;
    display: flex;
    gap: 2rem;
    padding: 2rem 2rem 3rem 2rem;
    flex-wrap: wrap;
 }
    .education-card {
        border-left: 2px solid #9c9c9c;
        padding: 0 2rem;
        flex: 1 1 calc(50% - 1rem);
        max-width: 500px;
    }
        .education-card h3 {
            margin-top: 0;
            font-size: 1.5rem;
            font-family: "Archivo", sans-serif;
            padding-bottom: 1rem;
            transition: ease-in-out 0.15s;
            font-weight: 600;
            color: #9c9c9c;
        }
        .education-card span {
            font-family: "Google Sans", sans-serif;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            font-size: 1rem;
            font-weight: 500;
            color: #9c9c9c;
            padding-bottom: 1.5rem;
            transition: ease-in-out 0.15s;
        }
        .education-card p {
            font-size: 1rem;
            font-family: "Google Sans", sans-serif;
            line-height: 1.4;
            color: #9c9c9c;
            transition: ease-in-out 0.15s;
            font-weight: 500;
        }
        .education-card a {
            display: inline-block;
            font-family: "Google Sans", sans-serif;
            font-weight: 500;
            font-size: 1rem;
            padding-top: 1.5rem;
            color: #9c9c9c;
            text-decoration: none;
            transition: ease-in-out 0.15s;
        }

 .education-section:hover {
    grid-column: 2 / span 2;
    grid-row: 4 / 5;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
 }
    .education-card:hover {
        border-left: 2px solid #EDF060;
        padding:0 2rem;
        flex: 1 1 calc(50% - 1rem);
        max-width: 500px;
    }
        .education-card:hover h3 {
            margin-top: 0;
            font-family: "Archivo", sans-serif;
            padding-left: .5rem;
            color: #EDF060;
        }
        .education-card:hover span{
            display: block;
            font-size: 1rem;
            color: #9c9c9c;
            padding-left: .5rem;
        }
        .education-card:hover p {
            color: white;
            font-size: 1rem;
            line-height: 1.4;
            padding-left: .5rem;
        }
        .education-card:hover a {
            display: inline-block;
            font-weight: 600;
            color: #EDF060;
            text-decoration: underline;
            padding-left: .5rem;
        }

/* ── Education Card Modal ── */
@keyframes cardFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.card-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(16, 11, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.card-overlay.open {
    display: flex;
    animation: cardFadeIn 0.25s ease;
}

.card-modal-wrapper {
    position: relative;
}

.close-card-btn {
    top: 0;
    right: 0;
    position: absolute;
    background-color: #100b00;
    border: none;
    border-right: #EDF060 2px solid ;
    border-top: #EDF060 2px solid ;
    border-top-right-radius: .5rem ;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-family: "Archivo", sans-serif;
    color: #EDF060;
    padding: .4rem .7rem;
    margin: 1rem;
}

.close-card-btn:hover {
    color: #100b00;
    background-color: #EDF060;
}

@media screen and (max-width: 768px) {

    
    .education-card {
        border-left: solid 2x #9c9c9c;
        flex: 1 1 calc(50% - 1rem);
        padding: 0 1rem;
    }
     .header-container h1 {
        font-size: 3rem;
        margin-top: 2rem;
 }
    .education-card a {
        display: inline-block;
        font-size: 1.25rem;
        color: #EDF060;
        text-decoration: underline;
        }

    .education-card span {
        padding-bottom: 1rem;
        flex-direction: column;
    }
    .education-card h3 {
        padding-bottom: .5rem;
    }

    .education-card:hover {
        border-left: 2px solid #EDF060;
        padding: 0 1rem;
    }
    .education-card:hover h3 {
        color: #EDF060;
    }
    .education-card:hover p {
        color: white;
    }
    .education-card:hover a {
        color: #EDF060;
        text-decoration: underline;
    }

    .tools-section {
    grid-area: 6 / 2 / 7 / 4;
    padding: 0 2rem 8rem 2rem;
    width: 100%;
 }
}