* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: #f8f9fa;
    padding: 30px 20px;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.profile-photo {
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo img {
    width: 150px;
    height: 200px;
    border-radius: 0%;
    object-fit: cover;
    background-color: #e0e0e0;
    border: 2px solid #ccc;
}

.sidebar h1 {
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 5px;
    font-weight: normal;
}

.sidebar p {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 30px;
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 5px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.2s, font-weight 0.2s, color 0.2s;
}

nav ul li a:hover {
    background-color: #eaeaea;
}

nav ul li a.active {
    background-color: #e2e2e2;
    font-weight: bold;
    color: #000;
}

.content {
    margin-left: 280px;
    padding: 50px;
    max-width: 900px;
    width: 100%;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: normal;
    color: #222;
}

p {
    margin-bottom: 15px;
}

.item {
    margin-bottom: 30px;
}

.item h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #222;
}

.subtitle {
    margin: 0;
    font-weight: bold;
    color: #444;
}

.date {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.item ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.cert-link {
    display: inline-block;
    margin-top: 5px;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9em;
}

.cert-link:hover {
    text-decoration: underline;
    color: #003d82;
}

.submenu {
    display: none;
    list-style-type: none;
    padding-left: 15px;
}

.submenu.open {
    display: block;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
    color: #0056b3;
}

.dropdown-toggle:hover {
    color: #0056b3;
}

.sem-link {
    display: inline-block;
    margin-top: 5px;
    color: #0056b3;
    text-decoration: none;
    font-size: 0.9em;
}

.sem-link:hover {
    text-decoration: underline;
    color: #003d82;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

.tag-list span {
    font-size: 12.5px;
    background: #e8f0fe;
    color: #1a73e8;
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid #c5d8f5;
}

.projects-subheading {
    margin: 0 0 5px;
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
}


.github-projects-grid {
    display: block;
    margin-top: 0;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    margin-bottom: 22px;
}

.github-project-card {
    display: block;
    margin-bottom: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    min-width: 0;
    overflow-wrap: anywhere;
}

.github-project-card:last-child {
    margin-bottom: 0;
}

.featured-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 190px;
    margin: 0;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
}

.featured-project-card:hover {
    border-color: #c8c8c8;
}

.github-project-card.featured-project-card h3 {
    font-size: 1em;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.featured-project-card .github-project-description {
    font-size: 0.92em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.featured-project-card .github-project-details {
    gap: 8px;
    font-size: 0.82em;
    margin-top: auto;
}

.featured-project-card .github-project-links {
    gap: 10px;
    padding-top: 8px;
    font-size: 0.85em;
}

.github-project-card h3 {
    margin: 0 0 5px;
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
}

.github-project-card h3 a {
    color: #222;
    text-decoration: none;
}

.github-project-card h3 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.github-project-card a {
    color: #0056b3;
    text-decoration: none;
}

.github-project-card a:hover {
    text-decoration: underline;
    color: #003d82;
}


.github-project-description {
    line-height: 1.6;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.github-project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #777;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.github-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 4px;
    font-size: 0.9em;
}


.github-projects-dropdown {
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.github-projects-dropdown summary {
    cursor: pointer;
    color: #0056b3;
    font-weight: bold;
    padding: 12px 0;
    list-style-position: inside;
    user-select: none;
}

.github-projects-dropdown summary:hover {
    color: #003d82;
    text-decoration: underline;
}

.github-projects-dropdown[open] summary {
    margin-bottom: 18px;
}


.github-projects-dropdown .github-project-card {
    margin-left: 18px;
}

.github-projects-dropdown .github-project-card:last-child {
    margin-bottom: 20px;
}

@media (max-width: 1100px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        padding-bottom: 0;
    }

    .content {
        margin-left: 0;
        padding: 30px 20px;
    }

    nav ul#nav-links {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0;
        margin: 15px 0 0 0;
        border-bottom: 1px solid #e0e0e0;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    nav ul#nav-links::-webkit-scrollbar {
        display: none;
    }

    nav ul#nav-links li {
        margin-bottom: 0;
    }

    nav ul#nav-links li a {
        display: inline-block;
        padding: 12px 20px;
        border-radius: 0;
        background-color: transparent;
        font-weight: 500;
        border-bottom: 3px solid transparent;
    }

    nav ul#nav-links li a:hover {
        background-color: transparent;
        color: #0056b3;
    }

    nav ul#nav-links li a.active {
        background-color: transparent;
        color: #0056b3;
        border-bottom: 3px solid #0056b3;
    }
}

