.links-projects {
    display: flex;
    gap: 22px;
    position: relative;
}

.experience-main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(280px, 90vw, 1300px);
    max-height: clamp(280px, 60vh, 700px);
    z-index: 100;
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
    margin: 0 auto;
    flex-direction: column;
}

.experience-expandable {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: clamp(280px, 80vw, 1500px);
    max-height: clamp(500px, 80vh, 900px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 1rem;
    box-sizing: border-box;
    flex-direction: row;
}


.section {
    flex: 1 1 clamp(100px, 60vh, 300px);
    margin: 4px;
    border: solid 2px white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    animation: glow-border 7s infinite alternate, bob 5s infinite ease-in-out alternate;
    overflow: hidden;
    height: clamp(280px, 70vh, 600px);
    box-sizing: border-box;
}

.section.active {
    flex-grow: 100;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.section:not(.active):hover::before,
.section:not(.active):focus::before {
    transform: scale(5);
}

.section:not(.active):hover,
.section:not(.active):focus {
    border-color: #666;
    background-color: #292929;
    color: #fff;
    z-index: 1;
}

.section.active {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.section.active p {
    display: block;
    margin: 4px 0;
}

.section p {
    font-size: clamp(9px, 2vh, 18px);
    color: rgba(0, 0, 0, 0.7);
    max-width: min(600px, 90%);
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: Arial, Helvetica, sans-serif;
    display: none;
}

.section-experience {
    text-align: left;
    font-size: clamp(9px, 2vh, 14px);

}

.section h2 {
    text-align: center;
    color: #a5a5a5;
    margin-top: 20px;
    font-size: clamp(10px, 3vh, 30px);
    margin-bottom: 40px;
    font-family: Arial, Helvetica, sans-serif;
    align-items: center;
    animation: bob 5s infinite ease-in-out alternate;
}

.section h3 {
    text-align: center;
    color: #a5a5a5;
    font-size: clamp(10px, 3vh, 18px);
    font-family: Arial, Helvetica, sans-serif;
    align-items: center;
    display: none;
    padding: 0 10px;
}

.section.active h2 {
    animation: none;
    color: rgba(0, 0, 0, 0.7);
    display: block;
    padding-top: 20px;
}

.section.active h3 {
    animation: none;
    color: rgba(0, 0, 0, 0.7);
    display: block;
}

.section-experience h3{
    padding-bottom: 20px;
}

.academics-section.active h3{
    padding-top: 30px;
}


.skill-bar {
    margin: 8px 0;
    width: 100%;
    display: none;
}

.skill-bar {
    margin: 8px 0;
    width: 90%;
    display: none;
    align-items: center;
    justify-content: space-between;
}

.skill-bar p {
    display: inline-block;
    width: 150px;
    margin: 0;
}

.bar {
    display: inline-block;
    height: 15px;
    width: 60%;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.active .skill-bar {
    display: flex;
}

.tools-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.active .tools-grid {
    display: grid;
}

.tool-item img {
    width: clamp(20px, 8vw, 60px);
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

.extra-tools {
    display: none;
}

.extra-tools {
    display: none;
}

#toggleTools:checked ~ .tools-grid .extra-tools {
    display: block;
}

.show-more-label {
    background: rgba(0, 0, 0, 0);
    color: rgba(0, 0, 0, 0.7);
    font-family: Arial, Helvetica, sans-serif;
    padding: clamp(8px, 1.2vw, 16px);
    font-size: clamp(9px, 2vw, 18px);
    cursor: pointer;
    border-radius: 15px 30px;
    transition: all 1s ease;
    outline: none;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    text-decoration: none;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.7);
}

.active .show-more-label {
    display: inline-block;
}

.show-more-label::after {
    content: "Show More";
}

#toggleTools:checked ~ div > .show-more-label::after {
    content: "Show Less";
    margin-top: 20px;
}

.show-more-label::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.show-more-label:hover::before,
.show-more-label:focus::before {
    transform: scale(2);
}

.show-more-label:hover,
.show-more-label:focus {
    border-color: #666;
    background-color: #292929;
    color: #fff;
    z-index: 1;
}

@media (max-height: 500px) and (orientation: landscape) {
    .experience-main {
        top: 75%;
    }
}