:root {
    --navy: #0f1419;
    --dark-navy: #0a0e13;
    --light-navy: #1a1f26;
    --slate: #8892b0;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --cyan: rgb(0, 224, 225);
    --cyan-tint: rgba(0, 224, 225, 0.1);
    --blue: #a5daf8;
    --purple: #c792ea;
    --orange: #ffcd82;
    --red: #ffa6aa;
    --yellow: #f8f0a5;
    --green: #c5ff9e;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --fz-xs: 12px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading: 32px;
    --border-radius: 4px;
    --nav-height: 100px;
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-hover: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    color: var(--slate);
    font-size: var(--fz-xl);
    background-color: var(--navy);
    counter-reset: section -1;
    overflow-x: hidden;
}

::selection {
    background-color: var(--lightest-slate);
    color: var(--dark-navy);
}

/* Header */
header {
    position: fixed;
    top: 0;
    z-index: 11;
    padding: 0 50px;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 14, 19, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height);
    position: relative;
    width: 100%;
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    counter-reset: item -1;
}

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

.logo a {
    color: var(--cyan);
    font-size: var(--fz-xxl);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.1);
    border-color: var(--lightest-slate);
}


.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    padding: 10px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 5px;
}

.nav-number {
    margin-right: 5px;
    color: var(--cyan);
    font-size: var(--fz-sm);
}

.nav-links a:hover {
    color: var(--cyan);
}

.resume-button {
    color: var(--cyan);
    background-color: transparent;
    border: 1px solid var(--cyan);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 15px;
}

.resume-button:hover {
    background-color: var(--cyan-tint);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 13;
    width: 30px;
    height: 30px;
    justify-content: space-between;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--cyan);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 14, 19, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 12;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: item 0;
}

/* Mobile menu items - hidden by default, JavaScript controls visibility */
.mobile-menu-links li {
    margin: 20px 0;
    display: none;
}

.mobile-menu-links a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: var(--fz-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

/* Numbering for visible mobile menu items */
.mobile-menu-links a:not(.resume-button):before {
    color: var(--cyan);
    font-size: var(--fz-md);
    margin-bottom: 5px;
}

.mobile-menu-links a:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

.mobile-menu .resume-button {
    margin-top: 20px;
    padding: 1rem 2rem;
    font-size: var(--fz-md);
}

/* Main Content */
main {
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    padding: 0 150px;
}

.section {
    max-width: 1000px;
    padding: 100px 0;
    margin: 0 auto;
}

.numbered-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    font-size: clamp(26px, 5vw, var(--fz-heading));
    white-space: nowrap;
}

.numbered-heading:before {
    position: relative;
    bottom: 4px;
    counter-increment: section 1;
    content: '0' counter(section) '.';
    margin-right: 10px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-md), 3vw, var(--fz-xl));
    font-weight: 400;
}

.numbered-heading:after {
    content: '';
    display: block;
    position: relative;
    top: -5px;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-slate);
    opacity: 0.3;
}

.numbered-heading h2 {
    color: var(--lightest-slate);
    font-weight: 600;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    position: relative;   /* NEW */
    overflow: hidden;     /* keeps the canvas from bleeding out on small screens */
}

/* make the hero the positioning context */


/* stretch the canvas edge-to-edge inside .hero */
#networkCanvas {
  position: fixed;      /* sticks to the viewport even when you scroll */
  inset: 0;             /* top:0; right:0; bottom:0; left:0; shorthand */
  width: 100vw;         /* CSS width = full viewport width  */
  height: 100vh;        /* CSS height = full viewport height */
  z-index: -1;          /* behind everything else */
  pointer-events: none; /* clicks pass through */
}

/* ensure the text stays on top */
.hero > *:not(canvas) {
  position: relative;
  z-index: 1;
}

.hero h1 {
    margin: 0 0 30px 4px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-lg), 5vw, var(--fz-xl));
    font-weight: 400;
}

.hero h2 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--lightest-slate);
    line-height: 1.1;
}

.hero h3 {
    margin-top: 5px;
    color: var(--slate);
    line-height: 0.9;
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 400;
}

.hero-description {
    margin: 20px 0 0;
    max-width: 540px;
    color: var(--slate);
    font-size: var(--fz-xl);
}

.hero-description a {
    color: var(--cyan);
    text-decoration: none;
}

.hero-description a:hover {
    text-decoration: underline;
}

.email-link {
    margin-top: 50px;
    color: var(--cyan);
    background-color: transparent;
    border: 1px solid var(--cyan);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.75rem;
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.email-link:hover {
    background-color: var(--cyan-tint);
    transform: translate3d(0, -3px, 0);
}

/* About Section */
.about {
    max-width: 900px;
}

.inner {
    display: grid;
    grid-template-columns: 4fr 3fr;
    grid-gap: 50px;
}

.about-text {
    color: var(--slate);
}

.about-text p {
    margin: 0 0 15px;
}

.about-text a {
    color: var(--cyan);
    text-decoration: none;
}

.about-text a:hover {
    text-decoration: underline;
}

.skills-title{
    color: var(--cyan);
    margin-top: 50px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    grid-gap: 0 10px;
    padding: 0;
    margin: 20px 0 0;
    overflow: hidden;
    list-style: none;
}

.skills-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
}

.skills-list li:before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: var(--fz-sm);
    line-height: 12px;
}

.pic {
    position: relative;
    width: 100%;
    max-width: 400px;
}

/* parent just provides geometry */
.wrapper{
    position:relative;
    width:100%;
    height:550px;
    border-radius:var(--border-radius);
}

/* push the picture-group above everything else inside .wrapper */
.blend-group{
    position:relative;
    z-index:1;          /* ⬅ puts it on top */
    border-radius:inherit;
    width:100%;
    height:100%;
    background:var(--cyan-tint);
    isolation:isolate;  /* keeps the mix-blend confined */
}

/* keep the cyan “shadow” below the picture-group */
.offset{
    position:absolute;
    inset:0;
    transform:translate(20px,20px); /* same offset as before */
    background:var(--cyan);
    border-radius:inherit;
    transition:var(--transition);
    z-index:0;          /* could also be -1 */
}

/* hover animation */
.wrapper:hover .offset,
.wrapper:focus .offset{
    transform:translate(15px,15px);
}

.img{
    width:100%; height:100%;
    object-fit:cover; object-position:center 25%;
    border-radius:inherit;

    mix-blend-mode:multiply;
    filter:grayscale(.2) contrast(1);
    transition:var(--transition);
}

.wrapper:hover .img,
.wrapper:focus .img{
    mix-blend-mode:normal;
    filter:none;
}


/* Experience Section */
.experience {
    max-width: 700px;
}

.jobs {
    position: relative;
}

.tab-list {
    position: relative;
    z-index: 3;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-button {
    text-decoration: none;
    text-decoration-skip-ink: auto;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    padding: 0 20px 2px;
    border: none;
    border-left: 2px solid var(--lightest-slate);
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.tab-button:hover,
.tab-button:focus,
.tab-button.active {
    color: var(--cyan);
    background-color: var(--cyan-tint);
    border-left-color: var(--cyan);
}

.tab-content {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 10px;
    padding-left: 30px;
}

.tab-panel {
    width: 100%;
    height: auto;
    padding: 10px 5px;
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    margin-bottom: 2px;
    font-size: var(--fz-xxl);
    font-weight: 500;
    line-height: 1.3;
    color: var(--lightest-slate);
}

.company {
    color: var(--cyan);
}

.range {
    margin-bottom: 25px;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
}

.job-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--fz-lg);
}

.job-details li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.job-details li:before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--cyan);
    line-height: var(--fz-lg);
}

/* Leadership Section */
.leadership {
    max-width: 900px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.leadership-item {
    padding: 30px;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.leadership-item:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-hover);
}

.leadership-item h3 {
    color: var(--lightest-slate);
    font-size: var(--fz-xl);
    margin-bottom: 10px;
}

.leadership-role {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: var(--fz-md);
    margin-bottom: 15px;
}

.leadership-description {
    color: var(--slate);
    font-size: var(--fz-md);
    line-height: 1.5;
}

/* Awards Section */
.awards {
    max-width: 800px;
}

.awards-grid {
    margin-top: 50px;
}

.award-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.award-item:last-child {
    border-bottom: none;
}

.award-item:hover {
    transform: translateX(10px);
}

.award-year {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: var(--fz-lg);
    font-weight: 600;
    white-space: nowrap;
}

.award-content h3 {
    color: var(--lightest-slate);
    font-size: var(--fz-xl);
    margin-bottom: 10px;
}

.award-content p {
    color: var(--slate);
    font-size: var(--fz-md);
    line-height: 1.5;
}

/* Publications Section */
.publications {
    max-width: 1000px;
}

.publication {
    position: relative;
    display: grid;
    grid-gap: 25px;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
}

.publication-content {
    position: relative;
    grid-column: 1 / 8;
    grid-row: 1 / -1;
    z-index: 2;
}

.publication-overline {
    margin: 10px 0;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    font-weight: 400;
}

.publication-title {
    color: var(--lightest-slate);
    font-size: clamp(24px, 5vw, 28px);
    margin: 0 0 20px;
    transition: var(--transition);
}

.publication:hover .publication-title {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.publication-title a {
    color: inherit;
    text-decoration: none;
}

.publication-title a:hover {
    color: var(--cyan);
}

.publication-description {
    position: relative;
    z-index: 2;
    padding: 25px;
    border-radius: var(--border-radius);
    background-color: rgba(26, 31, 38, 0.9);
    color: var(--lightest-slate);
    font-size: var(--fz-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.publication:hover .publication-description {
    background-color: rgba(26, 31, 38, 0.95);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.publication-tech-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin: 25px 0 10px;
    padding: 0;
    list-style: none;
    transition: var(--transition);
}

.publication:hover .publication-tech-list {
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.15);
}

.publication-tech-list li {
    margin: 0 20px 5px 0;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    white-space: nowrap;
}

.publication-links {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-left: -10px;
    color: var(--lightest-slate);
    z-index: 2;
}

.publication-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: var(--lightest-slate);
    text-decoration: none;
}

.publication-links a:hover {
    color: var(--cyan);
}

.publication-image {
    grid-column: 6 / -1;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
}

.publication-bg {
    height: 300px;
    border-radius: var(--border-radius);
    opacity: 0.3;
    transition: var(--transition);
}

.publication:hover .publication-bg {
    opacity: 0.6;
}

.publication:nth-of-type(odd) .publication-content {
    grid-column: 5 / -1;
    text-align: right;
}

.publication:nth-of-type(odd) .publication-tech-list {
    justify-content: flex-end;
}

.publication:nth-of-type(odd) .publication-tech-list li {
    margin: 0 0 5px 20px;
}

.publication:nth-of-type(odd) .publication-links {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: -10px;
}

.publication:nth-of-type(odd) .publication-image {
    grid-column: 1 / 8;
}

/* News Section */
.news {
    max-width: 900px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.news-item {
    padding: 25px;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--cyan);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-item:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 70%, rgba(100, 255, 218, 0.05));
    pointer-events: none;
}

.news-source {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.news-item h3 {
    margin-bottom: 15px;
}

.news-item h3 a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: var(--fz-lg);
    line-height: 1.3;
    transition: var(--transition);
}

.news-item h3 a:hover {
    color: var(--cyan);
}

.news-item p {
    color: var(--slate);
    font-size: var(--fz-md);
    line-height: 1.5;
}

.news-hidden {
    display: none;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    color: var(--cyan);
    background-color: transparent;
    border: 1px solid var(--cyan);
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background-color: var(--cyan-tint);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contact Section */
.contact {
    max-width: 600px;
    margin: 0 auto 100px;
    text-align: center;
}

.contact .overline {
    display: block;
    margin-bottom: 20px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: var(--fz-md);
    font-weight: 400;
}

.contact .title {
    font-size: clamp(40px, 5vw, 60px);
    color: var(--lightest-slate);
}

.contact .description {
    margin-top: 20px;
    color: var(--slate);
}

/* Side Elements */
.side-element {
    width: 40px;
    position: fixed;
    bottom: 0;
    left: 40px;
    right: auto;
    z-index: 10;
    color: var(--lightest-slate);
}

.side-element.right {
    left: auto;
    right: 40px;
}

.social {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social:after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: var(--lightest-slate);
}

.social li {
    margin: 0 0 20px;
}

.social a {
    padding: 10px;
    color: var(--lightest-slate);
    text-decoration: none;
    transition: var(--transition);
}

.social a:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

.email {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.email:after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: var(--lightest-slate);
}

.email a {
    margin: 20px auto;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    line-height: var(--fz-lg);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    color: var(--lightest-slate);
    text-decoration: none;
    transition: var(--transition);
}

.email a:hover {
    color: var(--cyan);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1080px) {
    main {
        padding: 0 100px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 20px;
    }

    main {
        padding: 0 20px;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .section {
        max-width: 100%;
        padding: 80px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .side-element {
        display: none;
    }

    .hero {
        height: auto;
        padding-top: calc(var(--nav-height) + 20px);
        text-align: center;
        width: 100%;
    }

    .hero h1, .hero h2, .hero h3 {
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero h2 {
        font-size: clamp(32px, 10vw, 60px);
        line-height: 1.1;
    }

    .hero h3 {
        font-size: clamp(32px, 10vw, 60px);
        line-height: 1.1;
    }

    .hero-description {
        text-align: center;
        margin: 20px auto 0;
        max-width: 100%;
        word-wrap: break-word;
    }

    .email-link {
        display: block;
        text-align: center;
        margin: 30px auto 0;
        max-width: 200px;
    }

    .numbered-heading {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        margin: 20px 0 40px;
    }

    .numbered-heading h2 {
        font-size: clamp(24px, 8vw, 32px);
        text-align: center;
        word-wrap: break-word;
    }

    .numbered-heading:before {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .numbered-heading:after {
        display: none;
    }

    .inner {
        display: block;
        text-align: center;
        width: 100%;
    }

    .about-text {
        text-align: left;
        margin-bottom: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .about-text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .pic {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .skills-list {
        justify-content: center;
        text-align: left;
        margin: 20px auto 0;
        max-width: 100%;
    }

    .experience {
        max-width: 100%;
        width: 100%;
    }

    .jobs {
        text-align: center;
        width: 100%;
    }

    .tab-list {
        margin: 0 auto;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    .tab-button {
        word-wrap: break-word;
        white-space: normal;
        min-width: auto;
        text-align: center;
    }

    .tab-content {
        padding-left: 0;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    .tab-panel h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(18px, 5vw, 22px);
    }

    .leadership {
        max-width: 100%;
        width: 100%;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
        justify-items: center;
        width: 100%;
    }

    .leadership-item {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .leadership-item h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .awards {
        max-width: 100%;
        width: 100%;
    }

    .award-item {
        grid-template-columns: 1fr;
        grid-gap: 15px;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
        padding: 30px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .award-content h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: clamp(18px, 5vw, 20px);
    }

    .award-year {
        white-space: normal;
        word-wrap: break-word;
    }

    .publications {
        max-width: 100%;
        width: 100%;
    }

    .publication {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
        width: 100%;
    }

    .publication-content {
        grid-column: 1 / -1;
        padding: 25px 15px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .publication-title {
        font-size: clamp(20px, 6vw, 24px);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .publication-description {
        text-align: left;
        word-wrap: break-word;
    }

    .publication-tech-list {
        justify-content: center;
        text-align: center;
    }

    .publication-tech-list li {
        margin: 0 10px 5px 0;
        word-wrap: break-word;
    }

    .publication-links {
        justify-content: center;
        margin-left: 0;
    }

    .publication-image {
        grid-column: 1 / -1;
        opacity: 0.25;
    }

    .publication:nth-of-type(odd) .publication-content {
        grid-column: 1 / -1;
        text-align: center;
    }

    .publication:nth-of-type(odd) .publication-tech-list {
        justify-content: center;
    }

    .publication:nth-of-type(odd) .publication-tech-list li {
        margin: 0 10px 5px 0;
    }

    .publication:nth-of-type(odd) .publication-links {
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }

    .publication:nth-of-type(odd) .publication-image {
        grid-column: 1 / -1;
    }

    .news {
        max-width: 100%;
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
        justify-items: center;
        width: 100%;
    }

    .news-item {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .news-item h3 a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        font-size: clamp(16px, 5vw, 18px);
    }

    .contact {
        max-width: 100%;
        margin: 0 auto 80px;
        text-align: center;
        width: 100%;
    }

    .contact .title {
        font-size: clamp(32px, 8vw, 50px);
        word-wrap: break-word;
    }

    .contact .description {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Show hamburger on tablets and mobile */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 13;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 15px;
    }

    main {
        padding: 0 15px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 15px);
    }

    .hero h1 {
        font-size: clamp(16px, 5vw, 18px);
    }

    .hero h2, .hero h3 {
        font-size: clamp(28px, 9vw, 50px);
        line-height: 1.2;
    }

    .hero-description {
        font-size: clamp(16px, 4vw, 18px);
    }

    .numbered-heading h2 {
        font-size: clamp(20px, 7vw, 28px);
    }

    .leadership-item,
    .news-item {
        padding: 15px;
        max-width: 100%;
    }

    .award-item {
        padding: 20px 0;
        max-width: 100%;
    }

    .pic {
        width: 80%;
        max-width: 400px;
    }

    .publication-content {
        padding: 20px 10px;
    }

    .publication-title {
        font-size: clamp(18px, 5vw, 22px);
    }

    .publication-tech-list li {
        margin: 0 8px 5px 0;
        font-size: clamp(11px, 3vw, 14px);
    }

    .tab-button {
        font-size: clamp(11px, 3vw, 14px);
        padding: 0 10px 2px;
    }

    .email-link {
        padding: 1rem 1.5rem;
        font-size: clamp(12px, 3vw, 14px);
    }
}

/* Canvas stuff */
canvas {
    display: block;
    cursor: crosshair;
}

.controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    z-index: 10;
    text-align: center;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.3);
    transition: .4s;
    border-radius: 25px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

input:checked + .toggle-slider {
    background-color: rgba(100, 200, 255, 0.8);
}

input:checked + .toggle-slider:before {
    transform: translateX(25px);
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.slider {
    width: 150px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    border: none;
}

.slider-label {
    font-size: 12px;
    margin-bottom: 3px;
}

.slider-value {
    font-size: 11px;
    opacity: 0.8;
}