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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #172441;
    line-height: 1.6;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    padding: 80px 40px;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
}

.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #2563eb;
}

.sidebar a {
    display: block;
    color: #334155;
    text-decoration: none;
    margin: 1rem 0;
    transition: all 0.25s ease;
}

.sidebar a:hover {
    color: #2563eb;
}

.sidebar a.active {
    color: #2563eb;
    font-weight: 600;
    padding-left: 12px;
    /*transform: translateX(8px);*/
    border-left: 3px solid #2563eb;
}


main {
    margin-left: 240px;
    padding: 80px;
    padding-top: 0px;
}

hr {
    border: none;
    height: 1px;
    /*background: #cfcfcf;*/
    background: linear-gradient(to right,
            transparent,
            #bdbdbd,
            transparent);
    margin-bottom: 30px;
}

section {
    min-height: 100vh;
    padding: 70px 0;
    /*border-bottom: 1px solid #e2e8f0;*/
}

h1 {
    margin-bottom: 10px;
    color: #2563eb;
}


.about-header {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 100px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
}

.headline {
    color: #475569;
    margin: 10px 0 10px;
}

.socials a {
    margin-right: 12px;
    text-decoration: none;
    color: #003ab6;
    font-weight: 500;
}

.socials a:hover {
    color: #2563eb;
}

#glazeDiv {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 30px;
}


/* Projects */

.project {
    background: white;
    width: 50vw;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    margin-top: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.project span {
    font-size: 0.9rem;
    color: #64748b;
}

.project div {
    display: flex;
    flex-direction: row;
}

.project a {
    margin-right: 50px;
}

/* Contact */

#contact div {
    max-width: 600px;
}

input,
textarea {
    width: 100%;
    max-height: 50vh;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    resize: vertical;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}


/* Education */
.timeline {
    position: relative;
    margin-top: 30px;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    /* bottom → top journey */
    gap: 60px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    /*background: #e2e8f0;*/
    background: linear-gradient(to top,
            transparent,
            #d3d3d3,
            transparent);
}

.milestone {
    position: relative;
}

.circle {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
}

.edu-content h3 {
    margin-bottom: 5px;
}

.edu-content p {
    margin-bottom: 5px;
}

.edu-content span {
    font-size: 0.9rem;
    color: #64748b;
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    main {
        margin-left: 0;
    }
}