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

html {
    height: 100%;
}

body {
    font-family: 'Helvetica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.hero {
    text-align: center;
    padding: 3rem 2rem 1rem 2rem;
    background-color: #ffffff;
}

/* HERO */
.hero h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* NAVIGATION */
nav {
    background-color: #000000;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 100;
    border-bottom: 1px solid #333333;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1rem;
    transition: color 0.3s;
    display: inline-block;
    font-weight: 500;
}

nav a:first-child {
    margin-left: 0;
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffffff;
}

nav a:hover {
    color: #cccccc;
    font-weight: 600;
}

nav a.active {
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
}

/* MAIN CONTENT */
.container {
    flex: 1;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

h2 {
    color: #1a1a1a;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
}

h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #1a1a1a;
}

ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.about-section {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 0px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 800px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

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

.skill-category {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 0px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.skill-category h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
    margin-left: 0;
}

.skill-category li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.skill-category li:before {
    content: "–";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* RESEARCH PAGE */
.research-overview,
.research-publications,
.research-projects {
    margin-bottom: 3rem;
}

.research-overview h3,
.research-publications h3,
.research-projects h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
}

/* PUBLICATIONS SECTION */
.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.publications-header h3 {
    margin: 0;
    border: none;
    padding: 0;
    flex: 1;
    min-width: 150px;
}

.scholar-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #1a1a1a;
    border-radius: 0px;
    transition: all 0.3s;
    white-space: nowrap;
}

.scholar-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

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

/* PUBLICATIONS STYLING */
.publications-list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.publication-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.publication-info {
    flex: 1;
    min-width: 250px;
}

.publication-title {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.publication-meta {
    margin: 0;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.publication-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.pub-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #1a1a1a;
    border-radius: 0px;
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.pub-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

@media (max-width: 800px) {
    .publication-content {
        flex-direction: column;
        gap: 1rem;
    }

    .publication-buttons {
        justify-content: flex-start;
        width: 100%;
    }
}

/* RESEARCH PROJECTS GRID */
.research-projects h3 {
    margin-bottom: 1.5rem;
}

/* FOOTER */
#footer {
    width: 100%;
}

footer {
    background-color: #f5f5f5;
    color: #1a1a1a;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

footer p {
    margin: 0;
    padding: 0;
}

/* RESUME PAGE */
.resume-container {
    margin: 2rem 0 4rem 0;
}

.resume-download-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #1a1a1a;
    border-radius: 0px;
    transition: all 0.3s;
    cursor: pointer;
}

.resume-download-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

.resume-viewer {
    width: 100%;
    min-height: 600px;
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    display: block;
}

/* PROJECTS PAGE */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0px;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: #000000;
    background-color: #ffffff;
}

.filter-btn.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.project-thumbnail {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    color: #1a1a1a;
}

.project-thumbnail:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #000000;
}

.project-thumbnail-image {
    width: 100%;
    height: 250px;
    background-color: #e0e0e0;
    object-fit: cover;
    display: block;
}

.project-thumbnail-info {
    padding: 1.5rem;
}

.project-thumbnail-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.project-thumbnail-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.5;
}

/* PROJECT PAGE NAVIGATION */
.back-link {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    margin-bottom: 0.5 rem;
    border-bottom: 1px solid #000000;
    font-weight: 500;
}

.back-link:hover {
    opacity: 0.6;
}

.project-top-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0.75rem 0 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-category-pill {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0px;
    font-size: 0.95rem;
}

.project-category-pill:hover {
    border-color: #000000;
    background-color: #ffffff;
}

.project-title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    margin: -1rem 0 2rem;
}

.project-title-row h2 {
    margin: 0;
    text-align: center;
    border: none;
    padding: 0;
}

.project-nav-slot {
    display: flex;
    min-height: 1.5rem;
}

.project-nav-slot:first-child {
    justify-content: flex-start;
}

.project-nav-slot:last-child {
    justify-content: flex-end;
}

.project-nav-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0px;
    font-size: 0.95rem;
}

.project-nav-link:hover {
    border-color: #000000;
    background-color: #ffffff;
}

#project-category {
    text-align: center;
    margin: 1rem 0 1.5rem;
}

@media (max-width: 800px) {
    .project-title-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .project-nav-slot {
        justify-content: center;
    }

    .project-title-row h2 {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

/* COLOR-CODED TAGS */
.project-tags-container {
    margin-bottom: 2rem;
}

.project-thumbnail-tag {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 400;
    margin: 0.15rem;
    color: #ffffff;
}

/* FILTER SECTION ROW */
.filter-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    flex: 1;
    min-width: 200px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0px;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: #000000;
    background-color: #ffffff;
}

.filter-btn.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* SKILL FILTER DROPDOWN */
.filter-section {
    margin-bottom: 2rem;
}

.skill-filter-container {
    margin-bottom: 0;
    flex-shrink: 0;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 8px 20px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 0px;
    font-size: 0.95rem;
}

.dropdown-btn:hover {
    border-color: #000000;
    background-color: #ffffff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    border: 1px solid #e0e0e0;
    max-height: 300px;
    overflow-y: auto;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
}

.dropdown-option {
    padding: 10px 16px;
    cursor: pointer;
    color: #1a1a1a;
    transition: background-color 0.2s;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

.dropdown-option.disabled {
    cursor: default;
    color: #999999;
}

/* SELECTED SKILLS DISPLAY */
.selected-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.selected-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: all 0.2s;
}

.selected-skill-tag:hover {
    border-color: #000000;
    background-color: #ffffff;
}

.remove-tag {
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.remove-tag:hover {
    opacity: 1;
}

/* Fabrication & Manufacturing Skills */
.tag-laser-cutting {
    background-color: #FFD700;
    color: #1a1a1a;
}

.tag-cnc-routing {
    background-color: #FF8C00;
}

.tag-waterjet-cutting {
    background-color: #00CED1;
}

.tag-machining {
    background-color: #696969;
}

.tag-mig-welding {
    background-color: #DC143C;
}

.tag-3d-printing {
    background-color: #7209B7;
}

.tag-injection-molding {
    background-color: #B5179E;
}

.tag-soldering {
    background-color: #FF1493;
}

.tag-blacksmithing {
    background-color: #2C3E50;
}

.tag-woodworking {
    background-color: #8B4513;
}

.tag-glass-torchwork {
    background-color: #FF69B4;
}

.tag-casting {
    background-color: #A0522D;
}

.tag-cnc-plasma {
    background-color: #4169E1;
}

/* Design & Engineering Skills */
.tag-cad {
    background-color: #FF6B6B;
}

.tag-cam {
    background-color: #FF8C42;
}

.tag-mechanical-design {
    background-color: #E63946;
}

.tag-flexure-design {
    background-color: #4ECDC4;
}

.tag-pcb-design {
    background-color: #BC6C25;
}

.tag-product-design {
    background-color: #F72585;
}

.tag-illustration {
    background-color: #D62828;
}

.tag-design {
    background-color: #FF6B6B;
}

/* Technical Skills */
.tag-electronics {
    background-color: #6A4C93;
}

.tag-pneumatics {
    background-color: #4361EE;
}

.tag-software {
    background-color: #3A86FF;
}

.tag-data-analysis {
    background-color: #06A77D;
}

/* Material Knowledge */
.tag-metals {
    background-color: #808080;
}

.tag-plastics {
    background-color: #95E1D3;
}

.tag-glass {
    background-color: #C8E6E9;
}

/* Leadership & Pedagogy */
.tag-teaching {
    background-color: #2A9D8F;
}

.tag-mentoring {
    background-color: #264653;
}

.tag-team-leadership {
    background-color: #F77F00;
}

/* Project Types/Context */
.tag-research {
    background-color: #06FFA5;
    color: #1a1a1a;
}

.tag-personal-project {
    background-color: #FF69B4;
}

.tag-gift {
    background-color: #DDA15E;
    color: #1a1a1a;
}

.tag-course-project {
    background-color: #A8DADC;
    color: #1a1a1a;
}
