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

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

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

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

/* Props */
#dhead {
    margin-top: 20px;
}

#ddesc {
    grid-column: span 6;
    padding-top: 40px;
    padding-right: 20px;
    order: 1;
}

#dpic {
    grid-column: span 6;
    text-align: right;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

@media (max-width: 991px) {
    #dhead .row {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    #ddesc {
        flex: 1;
        padding-top: 0;
        padding-right: 0;
        text-align: left;
        order: 1;
    }

    /* Hide Twitter icon on mobile */
    #twitter-icon {
        display: none;
    }

    /* Hide Google Scholar icon on mobile */
    #scholar-icon {
        display: none;
    }

    #dpic {
        flex: 0 0 auto;
        text-align: right;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
}

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: 240px;
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
}



/* Social Media Icons */
#dico {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #a8a8a8;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 8px;
    z-index: 1000;
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    margin-left: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
    border-bottom: 1px solid #a8a8a8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.social-link:hover::before,
.social-link:hover::after {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-icon {
    font-size: 28px;
    color: #333;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
}

.social-icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icon-img:hover {
    transform: scale(1.1);
}

.fab.fa-linkedin-in {
    color: #0077b5;
}

.fab.fa-github {
    color: #333;
}

.fas.fa-graduation-cap {
    color: #4285F4;
}

.fab.fa-medium {
    color: #00AB6C;
}

.fab.fa-linkedin-in:hover {
    background: rgba(0, 119, 181, 0.1);
}

.fab.fa-github:hover {
    background: rgba(51, 51, 51, 0.1);
}

.fas.fa-graduation-cap:hover {
    background: rgba(66, 133, 244, 0.1);
}

.fab.fa-medium:hover {
    background: rgba(0, 171, 108, 0.1);
}

#demail {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    color: #333;
    opacity: 0;
    transition: all 0.7s ease;
    max-width: 480px;
    line-height: 1.8;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Prevent crawling and indexing of email content */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#demail::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f8f9fa;
}

#demail a {
    color: #0077b5;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 119, 181, 0.1);
    border: 1px solid rgba(0, 119, 181, 0.2);
}

#demail a:hover {
    color: #005885;
    background: rgba(0, 119, 181, 0.15);
    border: 1px solid rgba(0, 119, 181, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
}

#demail[data-noindex="true"] {
    visibility: hidden;
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

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 {
    border-radius: 5px;
    width: 100%;
    max-width: 80px;
    margin-left: 10px;
}

/* Company Logo Styles */
.company-logo {
    width: 220px;
    height: auto;
    margin-left: 10px;
    object-fit: contain;
    background: transparent;
    display: block;
}

.company-logo.amazon {
    background: transparent;
    width: 220px;
    height: auto;
}

.company-logo.mckinsey {
    background: transparent;
    width: 220px;
    height: auto;
}

.company-logo.iit {
    background: transparent;
    width: 220px;
    height: auto;
}

.company-logo.tessolve {
    background: transparent;
    width: 220px;
    height: auto;
}

.company-logo.hacktoberfest {
    background: transparent;
    width: 320px;
    height: auto;
}

.company-logo.microsoft {
    background: transparent;
    width: 200px;
    height: auto;
}

@media (max-width: 991px) {
    .company-logo {
        width: 180px;
        height: auto;
    }

    .company-logo.hacktoberfest {
        width: 260px;
        height: auto;
    }
}

.desc {
    grid-column: span 10;
    vertical-align: top;
    font-size: 17px;
    padding-left: 20px;
    padding-bottom: 20px;
}

.entry {}

.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;
    }
}

.hasset {
    position: absolute;
    margin: 0;
    padding: 0;
}

.ctitle {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 40px;
}

#featured-talks .row {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding-bottom: 30px;
}

/* Featured Talks Section */
.talks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 30px;
}

/* Talk Cards */
.talk-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.talk-card {
    background: white;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    display: block;
}

.talk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #f5f5f5;
}

.thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.talk-card:hover .thumbnail-container img {
    transform: scale(1.05);
}

.talk-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: #000;
    padding: 8px 15px 3px 15px;
    margin: 0;
    display: block;
    visibility: visible;
}

.talk-context {
    font-size: 13px;
    color: #000;
    padding: 0 15px 10px 15px;
    margin: 0;
    display: block;
    visibility: visible;
}

.card-subtitle {
    font-size: 12px;
    color: #000;
    padding: 6px 15px 3px 15px;
    margin: 0;
    font-weight: 500;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: block;
    visibility: visible;
}

/* Responsive Design for Featured Talks */
@media (max-width: 991px) {
    .talks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .talk-title {
        font-size: 13px;
        padding: 8px 12px 2px 12px;
    }

    .talk-context {
        font-size: 12px;
        padding: 0 12px 8px 12px;
    }

    .card-subtitle {
        font-size: 11px;
        padding: 5px 12px 2px 12px;
    }
}

@media (max-width: 768px) {
    .talks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .talk-title {
        font-size: 12px;
        padding: 6px 10px 2px 10px;
    }

    .talk-context {
        font-size: 12px;
        padding: 0 10px 8px 10px;
    }

    .card-subtitle {
        font-size: 10px;
        padding: 4px 10px 2px 10px;
    }
}

/* Enhanced Responsive Typography */
@media (max-width: 991px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 17px;
    }

    .ctitle {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 16px;
        margin: 5px 0 15px 0;
    }

    .ctitle {
        font-size: 28px;
    }

    #dpic img {
        width: 220px;
        height: 220px;
        border-radius: 20px;
    }

    #dico {
        gap: 6px;
        margin-top: 10px;
    }

    .social-icon {
        font-size: 18px;
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .social-icon-img {
        width: 32px;
        height: 32px;
    }

    .desc {
        font-size: 14px;
        padding-left: 15px;
        padding-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 14px;
        margin: 3px 0 12px 0;
    }

    .ctitle {
        font-size: 24px;
    }

    #dhead .row {
        gap: 10px;
    }

    #dpic img {
        width: 140px;
        height: 140px;
        border-radius: 15px;
    }

    #dico {
        gap: 5px;
        margin-top: 8px;
    }

    .social-icon {
        font-size: 16px;
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }

    .social-icon-img {
        width: 28px;
        height: 28px;
    }

    .desc {
        font-size: 13px;
        padding-left: 10px;
        padding-bottom: 12px;
    }

    .timespan {
        font-size: 12px;
        padding-right: 3px;
    }

    .ico {
        grid-column: span 1;
    }

    .ico img {
        max-width: 65px;
        margin-left: 5px;
    }
}

.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;
}

.pdesc {}

.pend {
    clear: both;
}

/* Eye Care Message */
#eye-care-msg {
    text-align: center;
    color: #777;
    font-size: 14px;
    font-weight: 300;
    margin-top: 10px;
    margin-right: 56px;
    cursor: pointer;
    opacity: 0.18;
    transition: opacity 0.3s ease, color 0.3s ease;
}

#eye-care-msg:hover {
    opacity: 1;
    color: #555;
}

@media (max-width: 991px) {
    #eye-care-msg {
        margin-right: 7px;
    }
}

/* Dark Theme */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-theme .container {
    color: #e0e0e0;
}

body.dark-theme .ctitle {
    color: #ffffff;
}

body.dark-theme hr {
    border-color: #444;
}

body.dark-theme #ddesc,
body.dark-theme .desc,
body.dark-theme .cdesc,
body.dark-theme .timespan {
    color: #b0b0b0;
}

body.dark-theme a {
    color: #66b3ff;
}

body.dark-theme a:hover {
    color: #99ccff;
}

body.dark-theme .social-link::after {
    background-color: #555;
    color: #fff;
    border-color: #777;
}

body.dark-theme .social-link::before {
    border-top-color: #555;
}

body.dark-theme .entry-dot {
    background-color: #666;
}

body.dark-theme .project {
    border-bottom-color: #444;
}

body.dark-theme .company-logo.amazon {
    content: url('imgs/amazonwhiteeeeeeeeeeeeeeeee.png');
    width: 220px;
    height: auto;
}

body.dark-theme .github-icon {
    content: url('imgs/github__whiteeeeee.png');
    width: auto;
    height: 48px;
}

body.dark-theme .talk-card {
    background-color: #2a2a2a;
    border: 1px solid #555;
}

body.dark-theme .talk-card:hover {
    border-color: #777;
}

body.dark-theme .talk-title {
    color: #e0e0e0;
}

body.dark-theme .talk-context {
    color: #b0b0b0;
}

body.dark-theme .card-subtitle {
    color: #b0b0b0;
    background: #333;
    border-top-color: #555;
}

body.dark-theme .thumbnail-container {
    background-color: #1a1a1a;
}

@media (max-width: 991px) {
    body.dark-theme #dico {
        gap: 6px;
    }
}

.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;
}