body {
    margin: 0;
    padding: 0;
    background-color: #fafbfc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 970px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.nav-item {
    display: list-item;
}
.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #0077b5;
}

@media (max-width: 991px) {
    .nav-menu {
        gap: 15px;
    }
    .nav-link {
        font-size: 13px;
    }
}

/* Layout */

/* Learning Section */
.learning-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}
.learning-list li {
    margin-bottom: 8px;
    font-size: 16px;
}
.learning-list a {
    color: #0077b5;
    text-decoration: none;
}
.learning-list a:hover {
    text-decoration: underline;
}
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    background-color: white;
}
@media (min-width: 992px) {
    .container {
        width: 970px;
     }
}
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

/* Props */
#dhead {
    margin-top: 20px;
    padding-bottom: 30px;
}
#dpic {
    grid-column: span 5;
    text-align: right;
}
#ddesc {
    padding-top: 20px;
    padding-left: 40px;
    grid-column: span 7;
}
@media (max-width: 991px) {
    #dpic {
      grid-column: span 12;
      text-align: center;
    }
    #ddesc {
      grid-column: span 12;
      padding-top: 10px;
      text-align: center;
    }
    /* Larger profile image on mobile */
    #dpic img {
      width: 140px;
      height: 140px;
      border-radius: 70px;
    }
}
h1 {
    font-size: 34px;
    font-weight: normal;
    padding: 0;
    margin: 0;
}
h2 {
    font-weight: normal;
    font-style: italic;
    color: #999;
    font-size: 18px;
    padding: 0;
    margin: 5px 0 10px 0;
}
@media (min-width: 992px) {
    h2 {
        max-width: 300px;
    }
}
#dpic img {
    width: 160px;
    height: 160px;
    border-radius: 80px;
    object-fit: cover;
    object-position: 50% 40%;
    transform: scale(1.15);
    transform-origin: 50% 40%;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08); */
    border: 3px solid white;
}
.iico {
    width: 40px;
    height: 40px;
}
#demail {
    margin-top: 10px;
    color: #555;
    opacity: 0;
    transition: opacity 0.7s;
}
#social-links {
    margin-top: 12px;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
    justify-content: center;
}
#social-links a {
    color: #333;
    text-decoration: none;
    font-size: 24px;
    transition: color 0.3s ease, transform 0.2s ease;
}
#social-links a:hover {
    color: #0077b5;
    transform: scale(1.2);
}
hr {
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    padding: 0;
    margin: 20px 0px 20px 0px;
    border: 0;
}
.ico {
    grid-column: span 1;
    vertical-align: top;
    border-left: 2px solid #cfcfcf;
    position: relative;
}
.ico img {
    width: 100%;
    max-width: 50px;
    margin-left: 10px;
}
.desc {
    grid-column: span 10;
    vertical-align: top;
    font-size: 18px;
    padding-left: 20px;
    padding-bottom: 20px;
}
.entry-dot {
    position: absolute;
    top: 0px;
    left: -8px;
    width: 10px;
    height: 10px;
    border-radius: 7px;
    background-color: #cfcfcf;
    border: 2px solid white;
}
.timespan {
    grid-column: span 1;
    font-size: 14px;
    text-align: right;
    padding-right: 5px;
    color: #bbb;
}
.hassets {
    position: relative;
}
@media (max-width: 991px) {
    .hassets {
        display: none;
    }
}

/* Larger on big screens for clarity */
#dpic img:hover {
    transform: scale(1.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    #dpic img {
        width: 200px;
        height: 200px;
        border-radius: 100px;
    }
}
@media (min-width: 1600px) {
    #dpic img {
        width: 240px;
        height: 240px;
        border-radius: 120px;
    }
}
.hasset {
    position: absolute;
    margin: 0;
    padding: 0;
}
.ctitle {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 35px;
    color: #333;
    border-bottom: 2px solid #0077b5;
    padding-bottom: 10px;
    display: inline-block;
}
.project-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.project-item:last-child {
    border-bottom: none;
}
.project-thumbnail {
    width: 100%;
    max-width: 350px;
    height: auto;
    order: 2;
}
.project-thumbnail-large {
    max-width: 600px;
}
.patent-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.patent-notice {
    text-align: center;
    color: #666;
}
.patent-notice i {
    font-size: 48px;
    color: #999;
    margin-bottom: 15px;
    display: block;
}
.patent-notice p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.project-video-crop {
    overflow: hidden;
    position: relative;
}
.project-video-crop video {
    height: 10%;
    margin-top: 10%;
    object-fit: cover;
}
.project-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.project-thumbnail video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.project-content {
    flex: 1;
    order: 1;
}
.project-item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.project-item h3 a {
    color: #0066cc;
    text-decoration: none;
}
.project-item h3 a:hover {
    text-decoration: underline;
}
.project-meta {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #999;
    font-style: italic;
}
.project-content p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.project-meta {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #999;
    font-style: italic;
}
.project-content p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.project-list {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: disc;
}
.project-list li {
    margin-bottom: 6px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.project-desc {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
#featured-talks .row {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding-bottom: 30px;
}
.card {
    grid-column: span 3;
    vertical-align: top;
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
    background-color: white;
    padding-bottom: 10px;
}
@media (max-width: 991px) {
    .card {
        grid-column: span 6;
    }
    #featured-talks .row {
        grid-column-gap: 5px;
        grid-row-gap: 5px;
    }
}
.card img {
    border-radius: 5px;
    width: 100%;
}
.cdesc {
    height: 30px;
    vertical-align: top;
    margin-bottom: 10px;
    font-size: 15px;
}
@media (max-width: 768px) {
    .cdesc {
        font-size: 14px;
        padding-bottom: 10px;
    }
}
#pet-projects .row {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
.project {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.pico {
    float: left;
    margin-right: 10px;
}
.pend {
    clear: both;
}
.pico img {
    height: 80px;
    border-radius: 5px;
    border: 1px solid #999;
}
.pub {
    font-size: 14px;
    border-left: 4px solid #aaa;
    padding: 2px 0px 2px 10px;
    margin-bottom: 10px;
}
.pub-title {
    display: inline;
    color: #333;
}
.pub-venue {
    display: inline;
    color: #090;
}
.pub-authors {
    display: block;
    color: #333;
}
.tul {
    text-align: center;
    padding: 0;
}
.til {
    display: inline-block;
    padding: 3px 15px 3px 15px;
    margin-bottom: 5px;
}
.tilb {
    border-right: 1px solid #ccc;
}
.nodot {
    list-style-type: none;
    padding-left: 0;
}
.hobbies-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}
.hobbies-list li {
    margin-bottom: 10px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}
.hobbies-list i {
    color: #0077b5;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Skills Section */
.skills-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.skills-list li {
    margin-bottom: 12px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-list i {
    color: #0077b5;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Learning Section */
.learning-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.learning-list li {
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.learning-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.learning-list a {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learning-list a:hover {
    color: #005885;
    text-decoration: underline;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-message h3 {
    margin: 0 0 15px 0;
    color: #0077b5;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-message h3 i {
    font-size: 28px;
}

.contact-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.opportunities-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.opportunities-list li {
    margin-bottom: 10px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 15px;
}

.opportunities-list li i {
    color: #0077b5;
    width: 18px;
    text-align: center;
}

.contact-info h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.contact-details {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #555;
}

.contact-item i {
    color: #0077b5;
    width: 18px;
    text-align: center;
}

.contact-item a {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links-large {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-btn.linkedin {
    background-color: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.social-btn.github {
    background-color: #333;
    color: white;
}

.social-btn.github:hover {
    background-color: #24292e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

@media (max-width: 991px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-message h3 {
        font-size: 20px;
    }

    .social-links-large {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-content {
        gap: 25px;
    }

    .opportunities-list li {
        font-size: 14px;
    }

    .social-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Publications Section */
.publication-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.publication-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pub-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.pub-meta {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.pub-abstract {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.pub-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0077b5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border: 1px solid #0077b5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pub-link:hover {
    background-color: #0077b5;
    color: white;
    text-decoration: none;
}

.pub-link i {
    font-size: 12px;
}

/* No Publications Message */
.no-publications {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-publications i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
    display: block;
}

.no-publications p {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.no-pub-subtitle {
    font-size: 14px !important;
    color: #888 !important;
    font-style: italic !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .pub-links {
        gap: 10px;
    }

    .pub-link {
        font-size: 13px;
        padding: 4px 8px;
    }

    .no-publications {
        padding: 30px 15px;
    }

    .no-publications i {
        font-size: 36px;
        margin-bottom: 15px;
    }
}
