:root {
    --lightMode-backround: #fff;
    --lightMode-text: #000;
    --darkMode-backround: #333;
    --darkMode-text: #fff;
}

html {
    scroll-behavior: smooth;
}
.content {
    max-width: 600px;
    margin: auto;
    margin-bottom: 50px;
}
.top-spacing {
    margin-top: 80px;
}

body {
    background-color: var(--lightMode-backround);
    font-family: 'Courier New', monospace;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Courier New', monospace;
}

/* Link Styling */
a {
    color: #000;
    text-decoration: underline;
}

body.dark-mode a {
    color: #fff;
}

a:hover {
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 3px solid #333;
    position: relative;
}

.section-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
}

body.dark-mode .section-header {
    border-bottom-color: #fff;
}

body.dark-mode .section-header h3 {
    color: #fff;
}

/* Section Tiles */
.section-tile {
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 4px solid #333;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section-tile:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .section-tile {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #fff;
}

body.dark-mode .section-tile:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.education-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.education-column {
    display: flex;
    flex-direction: column;
}
.education-column p {
    margin: 0 0 10px 0;
}

.work-experience {
    margin-top: 30px;
}
.work-item {
    margin-bottom: 20px;
}
.work-item h6 {
    margin: 0;
    font-weight: bold;
}
.work-item p {
    margin: 5px 0;
}

/* Certification Items */
.cert-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cert-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.dark-mode .cert-item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Enhanced Experience Section Styles */
.experience-item {
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 4px solid #333;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .experience-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: #fff;
}

body.dark-mode .experience-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.experience-header h6 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    flex: 1;
    min-width: 200px;
}

body.dark-mode .experience-header h6 {
    color: #fff;
}

.experience-duration {
    margin: 0;
    font-style: italic;
    color: #666;
    white-space: nowrap;
    font-size: 14px;
    text-align: right;
}

body.dark-mode .experience-duration {
    color: #ccc;
}

.experience-company {
    margin: 0 0 4px 0;
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

body.dark-mode .experience-company {
    color: #ddd;
}

.experience-location {
    margin: 0 0 15px 0;
    color: #777;
    font-size: 14px;
}

body.dark-mode .experience-location {
    color: #bbb;
}

.experience-bullets {
    margin: 0;
    padding-left: 20px;
}

.experience-bullets li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.additional-experience {
    border-left-color: #666;
}

body.dark-mode .additional-experience {
    border-left-color: #999;
}

.additional-role {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.additional-role:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

body.dark-mode .additional-role {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.role-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

body.dark-mode .role-title {
    color: #fff;
}

body.dark-mode {
    background-color: var(--darkMode-backround);
    color: var(--darkMode-text);
}

body.dark-mode .content {
    background-color: var(--darkMode-backround);
    border-color: var(--darkMode-backround);
}
.nav-container {
    position: fixed;
    top: 10px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    align-items: flex-start;
}

.nav-link {
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
    color: #000;
}

body.dark-mode .nav-link {
    color: #fff;
}

.nav-link:hover {
    text-decoration: underline;
    font-size: 18px;
    font-weight: bold;
}

.nav-link.bottomRight {
    position: fixed;
    bottom: 10px;
    right: 10px;
    text-align: center;
    padding: 5px;
}
.nav-link.topRight {
    position: fixed;
    top: 10px;
    right: 10px;
    text-align: center;
    padding: 5px;
}
/*put here so the nav bar links scroll to center the subject*/
.anchor{
    display: block;
    height: 115px; 
    margin-top: -115px; 
    visibility: hidden;
}
.mobile-footer {
    background-color: var(--lightMode-backround);
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    gap: 15px;
    border-radius: 10px;
}
.mobile-footer .nav-link {
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    
}
body.dark-mode .mobile-footer{
    background-color: var(--darkMode-backround);
    color: var(--darkMode-text);
    border-radius: 10px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .content {
        margin: 0 auto;
        padding: 10px;
    }

    .nav-container {
        display: none;
    }

    .mobile-footer {
        display: flex;
        flex-direction: row;
    }
    
    /* Section headers mobile */
    .section-header h3 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    /* Experience section mobile styles */
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-duration {
        text-align: left;
        margin-top: 4px;
    }
    
    .experience-header h6 {
        min-width: auto;
    }
    
    /* Education layout mobile */
    .education-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}