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

html {
    overflow-x: hidden;
    max-width: 100vw;
    scrollbar-gutter: stable;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--grey-dark);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--grey-medium);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--grey-dark) transparent;
}

:root {
    /* Primary Colors - From Veritas Brand Kit */
    --black: #000000;
    --white: #ffffff;

    /* Neutral Colors */
    --grey-dark: #1a1a1a;
    --grey-medium: #2f3336;
    --grey-light: #71767b;
    --grey-lighter: #e7e9ea;
    --grey-lightest: #d6d9db;

    /* Accent Colors */
    --accent-blue: #00B4D8;  /* Capri Blue */
    --accent-blue-light: rgba(0, 180, 216, 0.1);

    /* Typography */
    --text-12: 12px;
    --text-16: 16px;
    --text-20: 20px;
    --text-24: 24px;
    --text-32: 32px;
    --text-36: 36px;

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Letter Spacing */
    --spacing-tight: 0.02em;
    --spacing-normal: 0.05em;
    --spacing-wide: 0.1em;
    --spacing-wider: 0.15em;

    /* Padding */
    --padding-xs: 4px;
    --padding-sm: 8px;
    --padding-md: 12px;
    --padding-lg: 16px;
    --padding-xl: 20px;
    --padding-2xl: 24px;
    --padding-3xl: 32px;
}

body {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    font-size: var(--text-12);
    font-weight: var(--weight-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: var(--spacing-tight);
    color-scheme: dark;
    overflow-x: hidden;
    max-width: 100vw;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    width: 160px;
    flex-shrink: 0;
    padding: 0 32px 0 0;
    position: sticky;
    top: 60px;
    height: fit-content;
    align-self: flex-start;
    border-right: 1px solid var(--grey-dark);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--padding-3xl);
}

.nav-item {
    text-decoration: none;
    color: var(--grey-light);
    font-size: var(--text-12);
    font-weight: var(--weight-regular);
    transition: all 0.2s ease;
    padding: var(--padding-md) 0;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    border-bottom: 1px solid transparent;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--accent-blue);
    transition: height 0.2s ease;
}

.nav-item:hover {
    color: var(--white);
    border-bottom: 1px solid var(--grey-dark);
}

.nav-item.active {
    color: var(--white);
    font-weight: var(--weight-semibold);
    border-bottom: 1px solid var(--accent-blue);
}

.nav-item.active::before {
    height: 16px;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--grey-dark);
    margin: var(--padding-2xl) 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--padding-md);
    margin-top: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-light);
    transition: all 0.2s ease;
    text-decoration: none;
    padding: var(--padding-sm);
    border: 1px solid transparent;
}

.social-link:hover {
    color: var(--white);
    border: 1px solid var(--grey-dark);
    background: rgba(255, 255, 255, 0.02);
}

.social-link svg {
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 0 0 40px;
    max-width: 600px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Typography */
h1 {
    font-size: var(--text-36);
    font-weight: var(--weight-bold);
    color: var(--white);
    margin-bottom: var(--padding-md);
    line-height: 1.2;
    letter-spacing: var(--spacing-wide);
    text-transform: uppercase;
}

h1.name-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
}

#projects h1 {
    margin-bottom: 56px;
}

#experience h1 {
    margin-bottom: 56px;
}

#interests h1 {
    margin-bottom: 56px;
}

h2 {
    font-size: var(--text-12);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--padding-2xl);
    margin-top: 48px;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    padding-bottom: var(--padding-sm);
    border-bottom: 1px solid var(--grey-dark);
}

h2:first-of-type {
    margin-top: 0;
}

h3 {
    font-size: var(--text-16);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--padding-sm);
    line-height: 1.4;
    letter-spacing: var(--spacing-wide);
    text-transform: uppercase;
}

/* Intro Section */
.intro {
    margin-bottom: 72px;
    padding-bottom: var(--padding-3xl);
}

.intro h2 {
    margin-top: var(--padding-2xl);
}

.intro h2.background-section {
    margin-top: 56px;
}

.tagline {
    font-size: var(--text-14);
    color: var(--grey-light);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-normal);
    text-transform: none;
}

.page-intro {
    font-size: var(--text-12);
    color: var(--grey-light);
    margin-bottom: 56px;
    font-weight: var(--weight-regular);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wide);
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
}

.text-content {
    font-size: var(--text-12);
    line-height: 1.75;
    color: var(--grey-lighter);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

.text-content p {
    margin-bottom: var(--padding-2xl);
}

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

/* Work Grid */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-item {
    padding: var(--padding-3xl) 0;
    border-bottom: 1px solid var(--grey-dark);
    transition: all 0.2s ease;
}

.work-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: var(--padding-xl);
}

.work-item:first-child {
    padding-top: 0;
}

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

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--padding-md);
}

.work-year {
    font-size: var(--text-10);
    color: var(--grey-light);
    font-weight: var(--weight-regular);
    letter-spacing: var(--spacing-wider);
    text-transform: uppercase;
}

.work-description {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    margin-bottom: var(--padding-lg);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

/* Work Tags */
.work-tags {
    display: flex;
    gap: var(--padding-sm);
    flex-wrap: wrap;
}

.tag {
    font-size: var(--text-10);
    color: var(--grey-light);
    padding: var(--padding-xs) var(--padding-sm);
    background: transparent;
    border: 1px solid var(--grey-dark);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-regular);
    transition: all 0.2s ease;
}

.tag:hover {
    color: var(--white);
    border-color: var(--grey-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.note-item {
    padding: var(--padding-3xl) 0;
    border-bottom: 1px solid var(--grey-dark);
    transition: all 0.2s ease;
    cursor: pointer;
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: var(--padding-xl);
}

.note-item:hover h3 {
    color: var(--accent-blue);
}

.note-item:first-child {
    padding-top: 0;
}

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

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--padding-md);
}

.note-date {
    font-size: var(--text-10);
    color: var(--grey-light);
    font-weight: var(--weight-regular);
    letter-spacing: var(--spacing-wider);
    text-transform: uppercase;
}

.note-excerpt {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

/* Library Section */
.library-section {
    margin-bottom: 56px;
    padding-bottom: var(--padding-2xl);
    border-bottom: 1px solid var(--grey-dark);
}

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

.library-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--padding-xl);
}

.library-list li {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xs);
    padding: var(--padding-md) 0;
    border-left: 2px solid transparent;
    padding-left: var(--padding-lg);
    transition: all 0.2s ease;
}

.library-list li:hover {
    border-left: 2px solid var(--accent-blue);
    background: rgba(0, 180, 216, 0.02);
}

.book-title {
    font-size: var(--text-13);
    color: var(--white);
    font-weight: var(--weight-medium);
    letter-spacing: var(--spacing-normal);
}

.book-author {
    font-size: var(--text-11);
    color: var(--grey-light);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-normal);
}

/* Technical Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--padding-sm);
    margin-top: var(--padding-lg);
}

.tech-item {
    font-size: var(--text-11);
    color: var(--white);
    padding: var(--padding-sm) var(--padding-md);
    background: transparent;
    border: 1px solid var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-medium);
    transition: all 0.2s ease;
}

.tech-item:hover {
    background: var(--accent-blue);
    color: var(--black);
    transform: translateY(-2px);
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--grey-dark);
    transition: all 0.2s ease;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.01);
}

.project-item:first-child {
    padding-top: 0;
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 32px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--padding-lg);
}

.project-year {
    font-size: var(--text-12);
    color: var(--grey-light);
    font-weight: var(--weight-regular);
    letter-spacing: var(--spacing-wider);
    text-transform: uppercase;
}

.project-description {
    font-size: var(--text-12);
    line-height: 1.8;
    color: var(--grey-lighter);
    margin-bottom: var(--padding-lg);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

.project-tags {
    display: flex;
    gap: var(--padding-sm);
    flex-wrap: wrap;
    margin-bottom: var(--padding-md);
}

.project-links {
    display: flex;
    gap: var(--padding-lg);
    flex-wrap: wrap;
    margin-top: var(--padding-sm);
}

.project-link {
    font-size: var(--text-12);
    color: var(--white);
    background: transparent;
    border: 1px solid var(--accent-blue);
    padding: var(--padding-sm) var(--padding-lg);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-medium);
    transition: all 0.2s ease;
}

.project-link:hover {
    background: var(--accent-blue);
    color: var(--black);
    transform: translateY(-2px);
}

.project-link-disabled {
    font-size: var(--text-12);
    color: var(--grey-light);
    background: transparent;
    border: 1px solid var(--grey-dark);
    padding: var(--padding-sm) var(--padding-lg);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-medium);
    cursor: not-allowed;
    opacity: 0.5;
    display: inline-block;
}

/* Minor Projects Section */
.minor-projects-section {
    margin-top: 48px;
    padding-top: var(--padding-2xl);
}

.minor-projects-header {
    font-size: var(--text-16);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--padding-2xl);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wide);
}

.minor-projects-grid {
    display: flex;
    flex-direction: column;
    gap: var(--padding-lg);
}

.minor-project {
    display: block;
    padding: var(--padding-lg) 0;
    border-bottom: 1px solid var(--grey-dark);
}

.minor-project:last-child {
    border-bottom: none;
}

.minor-project h4 {
    font-size: var(--text-12);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--padding-sm);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wide);
}

.minor-project p {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

.project-links {
    margin-top: var(--padding-md);
    display: flex;
    gap: var(--padding-lg);
}

.project-link {
    font-size: var(--text-10);
    font-weight: var(--weight-medium);
    color: var(--accent-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    transition: all 0.2s ease;
}

.project-link:hover {
    color: var(--white);
}

/* Experience Section */
.experience-section {
    margin-bottom: 56px;
}

.experience-section:last-child {
    margin-bottom: 0;
}

.experience-section h2 {
    margin-top: 0;
}

.section-header {
    font-size: var(--text-16);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: 0;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wide);
    padding-bottom: var(--padding-md);
    border-bottom: 1px solid var(--accent-blue);
}

/* Experience Grid */
.experience-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.experience-item {
    padding: var(--padding-3xl) 0;
    border-bottom: 1px solid var(--grey-dark);
    transition: all 0.2s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.experience-item:first-child {
    padding-top: var(--padding-lg);
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--padding-lg);
}

.experience-title-section {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xs);
}

.experience-company {
    font-size: var(--text-12);
    color: var(--grey-light);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-normal);
    opacity: 0.8;
}

.experience-year {
    font-size: var(--text-12);
    color: var(--grey-light);
    font-weight: var(--weight-regular);
    letter-spacing: var(--spacing-wider);
    text-transform: uppercase;
}

.experience-description {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    margin-bottom: 0;
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

/* Experience Links */
.experience-links {
    display: flex;
    gap: var(--padding-lg);
    flex-wrap: wrap;
    margin-top: var(--padding-lg);
    padding-top: var(--padding-lg);
    border-top: 1px solid var(--grey-dark);
}

.experience-link {
    font-size: var(--text-11);
    color: var(--white);
    background: transparent;
    border: 1px solid var(--accent-blue);
    padding: var(--padding-sm) var(--padding-md);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-medium);
    transition: all 0.2s ease;
}

.experience-link:hover {
    background: var(--accent-blue);
    color: var(--black);
    transform: translateY(-2px);
}

/* Interests & Awards Section */
.interests-awards-section {
    display: flex;
    flex-direction: column;
    gap: var(--padding-3xl);
}

.section-block {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xl);
}

.section-block:first-child {
    margin-bottom: 48px;
}

.section-block h2.section-header {
    margin-top: 0;
}

.award-item p {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

.interests-list {
    display: flex;
    flex-direction: column;
    gap: var(--padding-sm);
    padding-top: 0;
}

.interest-item-styled {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xs);
    padding-bottom: var(--padding-md);
}

.interest-item-styled:last-child {
    padding-bottom: 0;
}

.interest-item-styled h3 {
    font-size: var(--text-12);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wide);
}

.interest-item-styled p {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
    margin: 0;
}

.read-more-link {
    color: var(--grey-lighter);
    text-decoration: none;
    font-size: 9px;
    letter-spacing: var(--spacing-normal);
    border: 0.5px solid var(--white);
    padding: 2px 6px;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    text-transform: none;
    font-weight: var(--weight-regular);
    transition: all 0.2s ease;
    margin-left: 6px;
    transform: translateY(-2px);
}

.read-more-link:hover {
    background: var(--white);
    color: var(--black);
}

.minimal-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--padding-sm);
}

.minimal-list li {
    font-size: var(--text-12);
    line-height: 1.7;
    color: var(--grey-lighter);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-tight);
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xl);
}

.publication {
    display: flex;
    flex-direction: column;
    gap: var(--padding-xs);
    padding: var(--padding-lg);
    border-left: 2px solid var(--accent-blue);
    background: rgba(0, 180, 216, 0.02);
}

.pub-title {
    font-size: var(--text-13);
    color: var(--white);
    font-weight: var(--weight-medium);
    letter-spacing: var(--spacing-normal);
}

.pub-journal {
    font-size: var(--text-11);
    color: var(--grey-light);
    font-weight: var(--weight-light);
    letter-spacing: var(--spacing-normal);
    text-transform: uppercase;
}

.pub-link {
    font-size: var(--text-11);
    color: var(--accent-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-medium);
    transition: all 0.2s ease;
}

.pub-link:hover {
    color: var(--white);
}

/* Achievement Line */
.achievement-line {
    font-size: var(--text-12);
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-semibold);
    padding-top: var(--padding-md);
    margin-top: var(--padding-md);
    border-top: 1px solid var(--grey-dark);
}

.indented-line {
    /* No special styling - matches regular paragraph */
}

/* Email Popup */
.email-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.email-popup.show {
    display: flex;
}

.email-popup-content {
    background: var(--black);
    border: 1px solid var(--white);
    padding: 40px;
    position: relative;
    max-width: 500px;
    width: 90%;
}

.email-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.email-popup-close:hover {
    color: var(--accent-blue);
    transform: rotate(90deg);
}

.email-popup h3 {
    font-size: var(--text-12);
    color: var(--white);
    margin-bottom: var(--padding-2xl);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    font-weight: var(--weight-semibold);
}

.email-display {
    display: flex;
    align-items: center;
    gap: var(--padding-md);
    background: transparent;
    border: 1px solid var(--grey-dark);
    padding: var(--padding-lg);
    width: 100%;
    box-sizing: border-box;
}

#email-text {
    flex: 1;
    font-size: var(--text-12);
    color: var(--white);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    letter-spacing: var(--spacing-normal);
    white-space: nowrap;
}

.copy-button {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--white);
    padding: var(--padding-sm) var(--padding-lg);
    font-size: var(--text-12);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.copy-button:hover {
    background: var(--accent-blue);
    color: var(--black);
}

.copy-feedback {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-blue);
    font-size: var(--text-12);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

/* Desktop only content */
.desktop-only {
    display: inline;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: var(--black);
    border-bottom: 1px solid var(--grey-dark);
    z-index: 1000;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
}

.mobile-social {
    display: flex;
    gap: var(--padding-md);
}

.desktop-social {
    display: flex;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Design */
/* Locked Page */
.locked-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
}

.locked-page.hidden {
    display: none;
}

.locked-content {
    max-width: 700px;
    width: 100%;
}

.locked-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.locked-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    font-style: normal;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
}

.locked-header-icons {
    display: flex;
    align-items: center;
    gap: var(--padding-2xl);
}

.locked-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-light);
    transition: all 0.2s ease;
    text-decoration: none;
}

.locked-social-link svg {
    width: 32px;
    height: 32px;
}

.locked-social-link:hover {
    color: var(--white);
}

.unlock-circle-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.unlock-circle-btn:hover {
    background: var(--accent-blue);
}

.locked-header-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0 var(--padding-2xl) 0;
}

.locked-content .text-content {
    color: var(--grey-lighter);
    font-size: 13px;
    line-height: 1.9;
    width: 100%;
}

.locked-content .text-content p {
    margin-bottom: var(--padding-lg);
}

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

/* Password Modal */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.password-modal.show {
    display: flex;
}

.password-modal-content {
    background: var(--black);
    border: 1px solid var(--white);
    padding: 40px;
    position: relative;
    max-width: 400px;
    width: 90%;
}

.password-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-modal-close:hover {
    color: var(--accent-blue);
    transform: rotate(90deg);
}

.password-modal h3 {
    font-size: var(--text-12);
    font-weight: var(--weight-semibold);
    color: var(--white);
    margin-bottom: var(--padding-2xl);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
}

.password-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--grey-medium);
    color: var(--white);
    padding: var(--padding-lg);
    font-size: var(--text-12);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    letter-spacing: var(--spacing-normal);
    margin-bottom: var(--padding-lg);
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: var(--white);
}

.password-input.error {
    border-color: #ff4444;
}

.password-error {
    color: #ff4444;
    font-size: var(--text-12);
    letter-spacing: var(--spacing-normal);
    margin-bottom: var(--padding-lg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.password-error.show {
    opacity: 1;
}

.submit-password {
    width: 100%;
    background: var(--white);
    border: none;
    color: var(--black);
    padding: var(--padding-lg);
    font-size: var(--text-12);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--spacing-wider);
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-password:hover {
    background: var(--grey-lighter);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    color: var(--black);
    padding: var(--padding-md) var(--padding-2xl);
    font-size: var(--text-12);
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
    letter-spacing: var(--spacing-normal);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Logout Button */
.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 8px;
    z-index: 100;
    transition: color 0.2s ease;
    display: none;
}

.logout-btn:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Only show logout when unlocked and password protection is enabled */
body.password-protected .logout-btn {
    display: block;
}

body.locked .logout-btn {
    display: none;
}

/* Hide main site when locked */
body.locked .mobile-header,
body.locked .wrapper,
body.locked .email-popup {
    display: none;
}

body.locked {
    padding-top: 0 !important;
    overflow: hidden;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .desktop-social {
        display: none;
    }

    .wrapper {
        flex-direction: column;
        padding: 20px;
        max-width: 100%;
        border-left: none;
        border-right: none;
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--black);
        z-index: 999;
        transition: left 0.3s ease;
        border-right: none;
        border-bottom: none;
        padding: 32px 24px;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-direction: column;
        gap: 0;
        margin-bottom: var(--padding-3xl);
        width: 100%;
    }

    .nav-item {
        width: 100%;
        padding: var(--padding-lg) 0;
        font-size: var(--text-16);
        border-bottom: 1px solid var(--grey-dark);
    }

    .nav-item::before {
        display: none;
    }

    .divider {
        display: none;
    }

    .main-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    h1 {
        font-size: var(--text-24);
    }

    h3 {
        font-size: var(--text-12);
    }

    .tagline {
        font-size: var(--text-13);
    }

    .work-header,
    .note-header,
    .project-header,
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--padding-xs);
    }

    .work-item:hover,
    .note-item:hover,
    .experience-item:hover {
        padding-left: 0;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }

    .experience-description li {
        padding-left: var(--padding-md);
    }

    .project-item,
    .experience-item {
        padding: 24px 0;
    }

    .project-links {
        flex-wrap: wrap;
    }

    .email-popup-content {
        padding: 24px;
        width: calc(100% - 40px);
    }

    #email-text {
        font-size: 11px;
        word-break: break-all;
    }

    /* Locked page mobile */
    .locked-page {
        padding: 20px;
        padding-top: 32px;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        min-height: auto;
        height: auto;
        overflow: hidden;
    }

    .locked-content {
        padding-top: 0;
    }

    .locked-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .locked-header h1 {
        font-size: 34px;
    }

    .locked-header-icons {
        gap: var(--padding-lg);
    }

    .locked-social-link svg {
        width: 22px;
        height: 22px;
    }

    .unlock-circle-btn {
        width: 18px;
        height: 18px;
    }

    .locked-header-line {
        margin: 6px 0 var(--padding-lg) 0;
    }

    .locked-content .text-content {
        font-size: 12px;
    }

    .password-modal-content {
        padding: 24px;
    }
}