body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 62.5%;
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

body, html, .portfolio-container {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #03001c;
    z-index: -1;
}

.portfolio-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}

.portfolio-base {
    background-color: rgba(4, 0, 28, 0.8);
    display: flex;
    width: 100%;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    background-color: rgba(4, 0, 28, 0.9);
    width: 100%;
    color: #fff;
    padding: 1.4rem 1.9rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hero {
    width: 100%;
    color: #fff;
    padding: 12rem 4.2rem;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
}

.content-wrapper {
    width: 100%;
    max-width: 120rem;
    margin: 4.7rem auto 0;
    padding: 0 1.2rem;
}

.content-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.roles-section {
    flex-grow: 1;
}

.roles-grid {
    gap: 1rem;
    display: flex;
}

.main-column {
    flex: 2;
    order: 2;
}

.role-content {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.section-title {
    font-size: 4rem; 
    font-weight: 700;
    align-self: start;
    margin-bottom: 1rem; 
}

.secondary-column:first-child {
    order: 1;
}

.secondary-column:last-child {
    order: 3;
}

.schoolwork-title {
    color: #fff;
    margin-top: 0.7rem;
    font-size: 3rem;
    font-weight: 700;
}

.schoolwork-card {
    background-color: rgba(6, 0, 42, 0.8);
    border-radius: 1.3rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schoolwork-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.6rem 0.6rem rgba(0, 0, 0, 0.3);
}

.schoolwork-card h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.schoolwork-info {
    font-size: 1.6rem;
    color: #fff;
    margin: 0.5rem 0;
}

#show-more-schoolwork-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
}

#show-more-schoolwork-btn:hover {
    background-color: #45a049;
}

.role-card {
    border-radius: 0.8rem;
    background-color: rgba(6, 0, 42, 0.8);
    box-shadow: 0 0.2rem 0.2rem rgba(0, 0, 0, 0.25);
    display: flex;
    margin-top: 2rem; 
    flex-direction: column;
    padding: 1rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.3);
}

.role-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.role-description {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
}

.secondary-column {
    flex: 1;
}

.projects-title {
    color: #fff;
    margin-top: 0.7rem;
    font-size: 3rem;
    font-weight: 700;
}

.blue-text {
    color: #5855ff;
}

.red-text {
    color: #f51818;
}

.green-text {
    color: #00ff57;
}

.tag {
    background-color: #5855ff;
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 1.4rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.project-card {
    background-color: rgba(6, 0, 42, 0.8);
    border-radius: 1.3rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.6rem 0.6rem rgba(0, 0, 0, 0.3);
}

.project-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.project-info {
    font-size: 1.6rem;
    color: #fff;
    margin: 0.5rem 0;
}

#show-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.6rem;
    transition: background-color 0.3s ease;
}

#show-more-btn:hover {
    background-color: #45a049;
}

/* Projects page specific styles */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.projects-container .project-card {
    width: calc(33.33% - 2rem);
    margin-top: 0;
}

@media (max-width: 991px) {
    .portfolio-base, .top-bar, .hero, .content-wrapper, .content-grid, .main-column, .roles-section, .roles-grid, .role-column, .role-content, .role-card, .secondary-column {
        max-width: 100%;
    }
    .top-bar {
        padding: 0 2rem;
    }
    .hero {
        font-size: 4rem;
        padding: 10rem 2rem 11rem;
    }
    .content-wrapper {
        padding: 0 1rem;
    }
    .content-grid, .roles-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-column, .role-column, .secondary-column {
        width: 100%;
        margin-left: 0;
    }
    .roles-section, .role-content, .projects-title {
        margin-top: 4rem;
    }
    .section-title, .projects-title {
        font-size: 4rem;
    }
    .role-card {
        padding-left: 2rem;
        margin-top: 4rem;
    }
    .projects-container .project-card {
        width: 100%;
    }
}