/* ===================================
   Complete Site CSS - Consistent Typography
   =================================== */

/* ===================================
   BASE RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: white;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

p { margin-bottom: 1rem; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===================================
   HEADER - BLACK NAVIGATION
   =================================== */
.site-header {
    background: black;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.2s ease;
    position: relative;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    width: 60%;
}

/* ===================================
   HOMEPAGE STYLES
   =================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.profile {
    margin-bottom: 3rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    position: relative;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: #f9fafb;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
    position: absolute;
    top: 0;
    left: 0;
}

/* CONSISTENT: Main title size across all pages */
.profile-name {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-title {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
    font-weight: 400;
    font-style: italic;
}

.profile-institution {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    font-weight: 400;
}

.content {
    text-align: center;
}

.content-section {
    padding: 2rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.content-section:last-child {
    border-bottom: none;
}

/* CONSISTENT: Section titles */
.content-section__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* CONSISTENT: Body text size */
.content-section__text {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1rem;
}

/* News List */
.news-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.news-list__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}

.news-list__item:last-child {
    border-bottom: none;
}

.news-list__date {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.news-list__content {
    text-align: center;
}

/* CONSISTENT: Item titles */
.news-list__link,
.news-list__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.2s ease;
}

.news-list__link:hover {
    color: #4b5563;
}

.news-list__description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ===================================
   PROJECTS & PUBLICATIONS PAGES
   =================================== */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* CONSISTENT: Page titles */
.content-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.content-main {
    background: white;
    text-align: left;
}

.content-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-list__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-align: left;
}

.content-list__item:last-child {
    border-bottom: none;
}

.item-header {
    margin-bottom: 1rem;
    text-align: left;
}

/* CONSISTENT: Item titles */
.item-header__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-align: left;
}

.item-header__meta {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.item-header__venue {
    color: #4b5563;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.item-content {
    margin-bottom: 1rem;
}

/* CONSISTENT: Body text */
.item-content p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Link styling */
.item-content a,
.item-header a {
    color: #111827;
    text-decoration: underline;
    text-decoration-color: #6b7280;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.item-content a:hover,
.item-header a:hover {
    color: #111827;
    text-decoration-color: #111827;
}

.item-tags {
    margin: 1rem 0;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.6rem;
    margin-bottom: 0.6rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.item-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.item-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.item-link:hover {
    color: #111827;
    border-bottom-color: #111827;
}

.item-link i {
    font-size: 0.9rem;
    color: #6b7280;
}

.item-link:hover i {
    color: #111827;
}

/* ===================================
   RESUME PAGE
   =================================== */
.container--resume {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.resume-header__info {
    flex: 1;
}

/* CONSISTENT: Page titles */
.resume-header__title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.resume-header__subtitle {
    color: #4b5563;
    font-size: 1.2rem;
    line-height: 1.5;
}

.resume-header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.resume-content {
    background: white;
    text-align: left;
}

.resume-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
    text-align: left;
}

.resume-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* CONSISTENT: Section titles */
.resume-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.resume-section__title i {
    color: #4b5563;
    font-size: 1.2rem;
}

.resume-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

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

.resume-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.resume-item__main {
    flex: 1;
}

/* CONSISTENT: Item titles */
.resume-item__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.resume-item__subtitle {
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.resume-item__meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.resume-item__date {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
    min-width: 150px;
    margin-left: 1rem;
}

/* CONSISTENT: Body text */
.resume-item__description {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

.resume-project {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.resume-project:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* CONSISTENT: Item titles */
.resume-project__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.resume-project__meta {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* CONSISTENT: Body text */
.resume-project__description {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.resume-project__tags {
    margin-top: 0.75rem;
}

.resume-publication {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

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

/* CONSISTENT: Item titles */
.resume-publication__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.resume-publication__authors {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.resume-publication__venue {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* CONSISTENT: Body text */
.resume-publication__summary {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
}

/* Resume link styling */
.resume-item__description a,
.resume-project__description a,
.resume-publication__summary a {
    color: #111827;
    text-decoration: underline;
    text-decoration-color: #6b7280;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.resume-item__description a:hover,
.resume-project__description a:hover,
.resume-publication__summary a:hover {
    color: #111827;
    text-decoration-color: #111827;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category__title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.skill-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag--tech,
.tag--skill {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn--download {
    background: #111827;
    color: white;
}

.btn--download:hover {
    background: #000000;
    transform: translateY(-1px);
}

.btn--contact {
    background: #f9fafb;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.btn--contact:hover {
    background: #111827;
    color: white;
    border-color: #111827;
}

.resume-link-icon {
    margin-left: 0.5rem;
    font-size: 0.8em;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resume-link-icon:hover {
    color: #111827;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-social a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: white;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.4rem;
    border: 2px solid black;
}

.footer-social a:hover {
    background: #4b5563;
    color: white;
    border-color: #4b5563;
    transform: translateY(-2px);
}

.footer-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-text p {
    margin-bottom: 0.25rem;
}

.footer-text p:last-child {
    margin-bottom: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: black;
        border-top: 1px solid #374151;
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        gap: 0;
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        display: block;
        border-bottom: 1px solid #374151;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a::before {
        display: none;
    }

    /* Homepage Mobile */
    .container {
        padding: 3rem 1rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .content-section__title {
        font-size: 1.4rem;
    }

    /* Projects/Publications Mobile */
    .content-container {
        padding: 2rem 1rem;
    }

    .content-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
    }

    .content-title {
        font-size: 1.8rem;
    }

    .content-list__item {
        padding: 1.25rem 0;
    }

    .item-header__title {
        font-size: 1.2rem;
    }

    /* Resume Mobile */
    .container--resume {
        padding: 2rem 1rem;
    }

    .resume-header {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        margin-bottom: 2.5rem;
        padding-bottom: 1.25rem;
    }

    .resume-header__actions {
        justify-content: center;
        width: 100%;
    }

    .resume-header__title {
        font-size: 1.8rem;
    }

    .resume-item__header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .resume-item__date {
        text-align: left;
        min-width: auto;
        margin-left: 0;
        font-size: 0.85rem;
    }

    .resume-item__title,
    .resume-project__title,
    .resume-publication__title {
        font-size: 1.2rem;
    }

    .resume-section__title {
        font-size: 1.4rem;
    }

    /* Footer Mobile */
    .footer-social {
        gap: 1.5rem;
    }
    
    .footer-social a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .content-container {
        padding: 1.5rem 1rem;
    }

    .content-title {
        font-size: 1.6rem;
    }

    .container--resume {
        padding: 1.5rem 1rem;
    }

    .resume-header__title {
        font-size: 1.6rem;
    }

    .resume-header__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}