body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
}

/* Layout */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    box-sizing: border-box;
}

/* Header */
#dhead {
    margin-top: 40px;
    margin-bottom: 25px;
}

#dpic {
    grid-column: span 6;
    text-align: right;
    padding-right: 25px;
    box-sizing: border-box;
}

#ddesc {
    padding-top: 25px;
    padding-left: 20px;
    grid-column: span 6;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    #dpic {
        grid-column: span 12;
        text-align: center;
        padding-right: 0;
    }
    #ddesc {
        grid-column: span 12;
        padding-top: 20px;
        padding-left: 0;
        text-align: center;
    }
    #dico {
        justify-content: center;
    }
}

h1 {
    font-size: 34px;
    font-weight: normal;
    padding: 0;
    margin: 0;
    color: #000;
}

h2 {
    font-weight: normal;
    font-style: italic;
    font-size: 18px;
    margin-top: 6px;
    margin-bottom: 14px;
    color: #555;
    line-height: 1.4;
}

.ppic {
    border-radius: 50%;
    width: 195px;
    height: 195px;
    object-fit: cover;
    display: inline-block;
}

#dico {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.iico {
    width: 28px;
    height: 28px;
    cursor: pointer;
    vertical-align: middle;
    transition: opacity 0.15s ease;
}

.iico:hover {
    opacity: 0.75;
}

#demail {
    margin-top: 10px;
    font-family: monospace;
    font-size: 14.5px;
    color: #333;
    min-height: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px auto;
    max-width: 970px;
}

/* Section Titles */
.sec-head {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin: 40px 0 24px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
    letter-spacing: -0.2px;
}

/* History / Timeline */
#history {
    margin-top: 15px;
    margin-bottom: 80px;
}

.timeline-block {
    margin-bottom: 45px;
}

.entry {
    margin-bottom: 34px;
}

.entry:last-child {
    margin-bottom: 10px;
}

.timespan {
    grid-column: span 2;
    text-align: right;
    padding-right: 20px;
    font-size: 14px;
    color: #888;
    padding-top: 2px;
    white-space: nowrap;
}

.ico {
    grid-column: span 1;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

/* Continuous unbroken vertical line */
.ico::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: -36px;
    left: 50%;
    width: 2px;
    background-color: #cbd5e1;
    transform: translateX(-50%);
    z-index: 1;
}

.entry:last-child .ico::before {
    display: none;
}

.entry-dot {
    width: 8px;
    height: 8px;
    background-color: #64748b;
    border-radius: 50%;
    margin-top: 6px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 5px #ffffff;
}

.ico img {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: contain;
    background-color: #ffffff;
    box-shadow: 0 0 0 5px #ffffff;
}

.desc {
    grid-column: span 9;
    font-size: 15px;
    line-height: 1.55;
    color: #333;
    padding-left: 8px;
}

.desc a {
    color: #0066cc;
    text-decoration: underline;
}

.desc a:hover {
    color: #004499;
}

.desc ol, .desc ul {
    margin: 8px 0 10px 22px;
    padding: 0;
}

.desc li {
    margin-bottom: 5px;
}

.htxt {
    margin-bottom: 6px;
}

/* Project Screenshot Previews */
.project-preview {
    margin-top: 14px;
    margin-bottom: 8px;
}

.preview-img {
    width: 100%;
    max-width: 540px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 991px) {
    .timespan {
        grid-column: span 12;
        text-align: left;
        font-weight: bold;
        color: #666;
        margin-bottom: 4px;
        padding-right: 0;
        padding-top: 0;
    }
    .ico {
        grid-column: span 2;
        justify-content: flex-start;
        align-items: center;
    }
    .ico::before {
        left: 50%;
    }
    .desc {
        grid-column: span 10;
        padding-left: 0;
    }
    .preview-img {
        max-width: 100%;
    }
}
