/* Define Variables*/

[data-theme="dark"] {
    --common-text-color: var(--color);
    --common-hover-bg-color: #58626a;
}

[data-theme="light"] {
    --common-text-color: var(--color);
    --common-hover-bg-color: #f0f8ff;
}

/* Base reset and body styling */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif
}

body {
    background: var(--background-color);
    color: var(--color);
}

main {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: inline;
}


/* Override .container values */
.container {
    max-width: 77vw;
}

.container h1 {
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.container h3 {
    margin-bottom: 1rem;
    letter-spacing: 0.7px;
}

.container p {
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .container {
        max-width: 90vw;
    }
}

.theme-toggle-container {
    display: flex;
    justify-content: right;
    padding: 2rem 0;
}

.bio-container {
    background-color: var(--background-color);
    color: var(--color);
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
    height: 90vh;
    width: 90%;
}

.bio h1 {
    font-size: 2.2rem;
}

.bio p {
    font-size: 1.1rem;
}

.bio-container img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}


@media (max-width: 768px) {

    p, a {
        font-size: 0.8rem;
    }

    .bio-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        justify-items: center;
    }

    .bio-container img {
        max-width: 50%;
    }

    .bio p {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}


.social-icons {
    width: 35px;
    height: 35px;
    margin: 1rem;
    margin-left: 0;
    transition: transform 0.2s ease-in-out;
}

.social-icons :hover {
    transform: scale(1.1);
    cursor: pointer;
}

[data-theme="dark"] .social-icons path {
    fill: white;
}

[data-theme="light"] .social-icons path {
    fill: black; 
}


/* Timeline styling */
.timeline {
    position: relative;
    margin: 4rem auto;
    margin-bottom: 8rem;
    padding: 0 0;
    width: 100%;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    z-index: 1;
    background: var(--primary);
}

.timeline ul {
    list-style: none;
}

.timeline ul li {
    list-style-type: none;
    position: relative;
    margin-bottom: 5rem;
    padding-left: 35px;
}

.timeline ul li::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: -8px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(58, 112, 239, 0.2);
    z-index: 2;
}

.timeline .date {
    display: block;
    margin-bottom: 0.2rem;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }

    .timeline ul li {
        padding-left: 40px;
    }

    .timeline ul li::before {
        left: 2px;
    }
}


.slides-item {
    display: inline-block;
    position: relative;
    width: 300px;
    margin: 2em 1.5em;
    text-align: center;
    vertical-align: top;
}

.slides-item embed {
    border: 2px solid #999;
    border-radius: 5%;
    width: 100%;
    height: 209px;
    z-index: 1;
}

.slides-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 209px;
    z-index: 2;
    background: transparent;
}

.slides-item p {
    text-decoration: none;
    color: var(--common-text-color);
    padding: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .slides-item {
        width: 300px;
        margin: 2em 0.2em;
    }
}

.notes-container {
    margin: 6rem 0rem;
}


.notes-container a {
    color: var(--common-text-color);
    margin: 0rem 0rem;
    padding: 1.5rem 1.2rem;
    display: block;
    border-bottom: 1px solid #bbb;
    transition: background-color 0.2s ease;
    width: 80%;

}

.notes-container a:hover {
    background-color: var(--common-hover-bg-color);
}

@media (max-width: 768px) {
    .notes-container a {
        padding: 1rem 0rem;
        width: 100%;
    }
}


.tag {
    background-color: var(--common-hover-bg-color);
    color: var(--common-text-color);
    border-radius: 1.5rem;
    padding: 0.2em 1em;
    margin: 0.2rem;
    font-size: 0.75em;
    letter-spacing: 1px;
}

.tag-container {
    display: flex;
    justify-content: right;
    margin: 8rem 0rem;
    margin-bottom: 5.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-links {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--muted-border-color, #ccc);
    margin-top: 2rem;
}

.footer-links a {
    margin: 0 1rem;
    text-decoration: underline;
    color: #999;
}