#about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
    padding: var(--gap-xl) 0;
    border-bottom: 1px solid var(--border);
}

.about-hero-left {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}
.profile-pic{
    width: 240px;
    height: 240px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--accent); 
    margin-bottom: var(--gap-md);
    box-shadow: 0 10px 25px var(--boxshadows);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-pic:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.about-hero-left h1 {
    font-size: calc(var(--text-xl) * 1.5);
    line-height: 1.05;
    margin-bottom: 0;
}

.about-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    width: 100%;
}

.about-stat {
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xs);
}
.stat-number {
    font-family: var(--font-head);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-head);
    font-size: var(--text-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    padding: var(--gap-xl) 0;
    border-bottom: 1px solid var(--border);
}

.facts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.facts-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--gap-sm);
    border-bottom: 1px solid var(--border);
}

.fact-label {
    font-family: var(--font-head);
    font-size: var(--text-xs);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fact-value {
    font-family: var(--font-head);
    font-size: var(--text-sm);
    color: var(--text);
    font-weight: 600;
}

#skills {
    padding: var(--gap-xl) 0;
    border-bottom: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
}

.skill-group {
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--gap-lg);
}

#timeline {
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#timeline.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}

#timeline.visible {
    opacity: 1;
    transform: translateY(0);
}

#timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

#timeline-list li {
    padding: var(--gap-md) var(--gap-lg);
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-year {
    font-family: var(--font-head);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    margin-bottom: var(--gap-xs);
    transition: color 0.3s ease;
}
.timeline-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: var(--font-head);
    font-size: var(--text-lg);
    color: var(--text);
    margin-bottom: var(--gap-xs);
    transition: color 0.3s ease;
    
}


@keyframes timelineGlow {
    0% {
        box-shadow: 0 0 0px var(--accent);
    }
    100% {
        box-shadow: 0 0 15px var(--accent);
    }
}

#timeline-list li:hover {
    transform: translateX(8px);
    border-color: var(--accent);
    animation: timelineGlow 0.8s alternate infinite ease-in-out;
}

#timeline-list li:hover .timeline-year {
    color: var(--text);
}
.timeline-toggle{
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.timeline-toggle h3{
    display: flex;
    justify-content: space-between;
}
.js-enabled .timeline-content{
    font-size: var(--text-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.js-enabled .timeline-toggle[aria-expanded="true"] + .timeline-content{
    max-height: 200px; 
}

@media (max-width: 768px) {
    #about-hero, .about-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    .about-hero-right {
        margin-top: var(--gap-lg);
        display: flex;
        width: 100%;
    }
}