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

body {
    font-family: 'Segoe UI', sans-serif;
    color: #cbd5e1;
    background-color: #0f172a;
    display: flex;
    justify-content: center;
    line-height: 1.6;
    padding-top: 2rem;
    font-size: 16px;
}

.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    margin-top: 2rem;
}

.sidebar {
    width: 300px;
    position: sticky;
    top: 2rem;
    height: fit-content;
    padding-right: 3rem;
}

.sidebar h1 {
    font-size: 1.8rem;
    color: #f8fafc;
}

.sidebar h2 {
    font-size: 1.1rem;
    color: #94a3b8;
}

.sidebar p {
    margin-top: 0.1rem;
    color: #94a3b8;
}

.sidebar nav ul {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}

.sidebar nav li {
    margin-bottom: 1rem;
    position: relative;
}

.sidebar nav a {
    text-decoration: none;
    color: #38bdf8;
    padding-left: 1rem;
    position: relative;
    display: block;
}

.sidebar nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 0;
    background: #38bdf8;
    transition: width 0.3s ease;
}

.sidebar nav a.active::before {
    width: 15px;
}

.profile-pic {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.content {
    flex: 1;
    padding-left: 3.5rem;
    margin-left: 2.5rem;
}

.section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
    padding-bottom: 2rem;
}

.section:not(:last-child)::after {
    content: "";
    display: block;
    height: 100px;
}

.date-range {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.sub-roles {
    color: #64748b;
    margin-bottom: 1rem;
}

.description {
    margin: 1rem 0;
    color: #cbd5e1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background-color: #1e293b;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #7dd3fc;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project img {
    max-width: 100%;
    border-radius: 1rem;
    border: 1px solid #334155;
    object-fit: cover;
}

.project-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-thumb {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid #334155;
    flex-shrink: 0;
}

.project-text {
    flex: 1;
    color: #cbd5e1;
}

.project-text p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.socials img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.socials img:hover {
    transform: scale(1.1);
}

.tech-stack span {
    font-size: 0.8rem;
}

.project-thumb:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

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

    .sidebar {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
    }

    .content {
        padding-left: 0;
        margin-left: 0;
    }

    .project-row {
        flex-direction: column;
        align-items: center;
    }

    .project-thumb {
        /*width: 100%;*/
        width: 300px;
        height: 170px;
        object-fit: cover;
    }

    .project img {
        /*width: 100%;*/
        width: 300px;
        height: 170px;
        object-fit: cover;
    }

    .section {
        padding: 0 1rem;
    }
}





