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

html {
    height: 100%;
}

body {
    background: linear-gradient(0deg, #B0E0E6 0%, #9DD4E8 5%, #87CEEB 10%, #7BC4E0 15%, #6BB6FF 20%, #5AA5E8 25%, #4A90E2 30%, #3D7FC4 37%, #326FA8 44%, #2E5C8A 50%, #254A70 57%, #1E3A5F 64%, #162B47 71%, #0F1B2E 78%, #0A1423 85%, #060C15 91%, #030509 96%, #000000 100%) no-repeat #B0E0E6;
    min-height: 100%;
    margin: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

#layers {
    height: 200px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#layers.full-screen {
    transform: translateY(-200px);
}

.star-quote {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    z-index: 10;
    opacity: 0.5;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
    animation: starGlow 3s ease-in-out infinite alternate;
}

@keyframes starGlow {
    0% {
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 0.4),
            0 0 15px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(255, 255, 255, 0.1),
            0 2px 4px rgba(0, 0, 0, 0.6);
    }
    100% {
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(255, 255, 255, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.6);
    }
}

#layers .layer {
    background-size: auto 100%;
    background-position: 50% 0;
    background-repeat: repeat-x;
    height: 200px;
    left: 0;
    position: absolute;
    top: 0;
    transform: translate3d(0, 0, 0);
    width: 200vw;
}

@keyframes twinkle {
    from { opacity: .3; }
    to { opacity: 1; }
}

@keyframes layer-1 {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-1000px, 0, 0); }
}

#layers .layer:nth-child(1) {
    animation: twinkle 10s ease-in -5s infinite alternate, layer-1 500s linear infinite;
    background-image: url('https://i.imgur.com/9beLKl9.png');
}

@keyframes layer-2 {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-1000px, 0, 0); }
}

#layers .layer:nth-child(2) {
    animation: twinkle 3s ease-in -3s infinite alternate, layer-2 500s linear infinite;
    background-image: url('https://i.imgur.com/46MRYFa.png');
}

@keyframes layer-3 {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-1000px, 0, 0); }
}

#layers .layer:nth-child(3) {
    animation: twinkle 3.5s ease-in infinite alternate, layer-3 500s linear infinite;
    background-image: url('https://i.imgur.com/46MRYFa.png');
}

@keyframes layer-4 {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-1000px, 0, 0); }
}

#layers .layer:nth-child(4) {
    animation: twinkle 4s ease-in -2s infinite alternate, layer-4 500s linear infinite;
    background-image: url('https://i.imgur.com/BqkETyl.png');
}

@keyframes layer-5 {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-1000px, 0, 0); }
}

#layers .layer:nth-child(5) {
    animation: twinkle 5.5s ease-in infinite alternate, layer-5 500s linear infinite;
    background-image: url('https://i.imgur.com/x1GB77K.png');
}

@keyframes shooting-star {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(-270px, 180px, 0);
    }
}

#layers:before {
    animation: 500ms linear 3s shooting-star;
    background-image: url('https://i.imgur.com/ilhrli3.png');
    background-size: 72px 50px;
    content: ' ';
    height: 50px;
    left: 80%;
    position: absolute;
    top: -50px;
    width: 72px;
    z-index: 100;
}

/* Clouds at the bottom */
.cloudsWrapper:before,
.cloudsWrapper:after {
    position: absolute;
    content: "";
    display: block;
    height: 100%;
    min-width: 2560px;
    width: 100%;
    background-size: auto 100%;
    -webkit-animation: clouds linear infinite alternate;
    animation: clouds linear infinite alternate;
}

.clouds {
    position: absolute;
    width: 100%;
    bottom: 0;
    z-index: 150;
}

.cloudsWrapper {
    position: absolute;
    overflow: hidden;
    top: -200px;
    height: 200px;
    width: 100%;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1), top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cloudsWrapper.compact {
    height: 100px;
    top: -100px;
}

.cloudsWrapper:after {
    background: url("https://imgur.com/GaR2ZvO.png") bottom repeat-x;
    -webkit-animation-duration: 210s;
    animation-duration: 210s;
}

.cloudsWrapper:before {
    background: url("https://imgur.com/zYklUEb.png") bottom repeat-x;
    -webkit-animation-duration: 120s;
    animation-duration: 120s;
}

@keyframes clouds {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-1000px);
        transform: translateX(-1000px);
    }
}

/* Plane Images */
#plane,
#plane2,
#plane3,
#plane4,
#plane5,
#plane6,
#plane7,
#plane8 {
    position: absolute;
    width: 60px;
    height: auto;
    z-index: 100;
    pointer-events: none;
    transform-origin: 50% 50%;
    will-change: transform;
    opacity: 1;
    visibility: visible;
}

/* Made in Brooklyn logo */
#madeinbrooklyn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    z-index: 200;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#madeinbrooklyn.moved-to-top {
    transform: translateY(calc(-100vh + 100px));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#madeinbrooklyn.moved-to-top.full-screen {
    transform: translateY(-100vh);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 40px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px 30px 40px;
    z-index: 1000;
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.project-view {
    background: #F1F6F7;
}

.nav-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-left {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-brand {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
    min-width: 120px;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand:hover {
    opacity: 0.7;
}

.brand-static {
    display: inline-block;
}

.brand-ending {
    display: inline-block;
    position: relative;
}

.brand-ending::before {
    content: ".";
    opacity: 1;
    transition: opacity 0.4s ease;
}

.brand-ending::after {
    content: "'s";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-brand.hover-active .brand-ending::before {
    opacity: 0;
}

.nav-brand.hover-active .brand-ending::after {
    opacity: 1;
}

.nav-link {
    font-family: 'Courier Prime', monospace;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease, color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
    opacity: 1;
}

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

.nav-link:active {
    opacity: 1;
}

.nav-link.active .nav-link-text {
    text-decoration: underline;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.instagram-icon,
.linkedin-icon {
    display: flex;
    align-items: center;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.instagram-icon:hover,
.linkedin-icon:hover {
    opacity: 0.6;
}

.instagram-icon svg,
.linkedin-icon svg {
    width: 20px;
    height: 20px;
}

.nav-button {
    font-family: 'Courier Prime', monospace;
    color: #000000;
    background: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease, color 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.8s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
    border: 2px solid #000000;
}

.nav-button:hover {
    background: #000000;
    color: #ffffff;
}



/* White Background (appears from bottom when clouds move to top) */
.white-background {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: #F1F6F7;
    z-index: 150;
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.white-background.active {
    height: calc(100vh - 199px + 1px);
    transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.white-background.active.compact {
    height: calc(100vh - 99px + 1px);
}

.white-background.active.full-screen {
    height: 100vh;
}

/* Content Sections */
.content-section {
    position: fixed;
    top: 200px;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.content-section.compact-view {
    top: 100px;
}

.content-section.compact-view.full-screen {
    top: 0;
}

.content-section::after {
    content: '';
    position: fixed;
    top: 200px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, #F1F6F7, rgba(241, 246, 247, 0));
    pointer-events: none;
    z-index: 601;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease 0.4s, visibility 0.6s ease 0.4s, top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-section.compact-view::after {
    top: 100px;
}

.content-section.compact-view.full-screen::after {
    top: 0;
}

.content-section.active::after {
    opacity: 1;
    visibility: visible;
}

.content-section.active {
    opacity: 1;
    visibility: visible;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Content sections should align with navigation */
#portfolio-content .content-wrapper,
#about-content .content-wrapper,
#quesbook-content .content-wrapper,
#resume-content .content-wrapper {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 800px;
}

.content-section h1 {
    font-family: 'Courier Prime', monospace;
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
}

.content-section h2 {
    font-family: 'Courier Prime', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-top: 60px;
    margin-bottom: 30px;
}

.content-section h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-section h4 {
    font-family: 'Courier Prime', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
}

.content-section p {
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.portfolio-section {
    margin-bottom: 60px;
}

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

.portfolio-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.portfolio-section-toggle:hover {
    opacity: 0.7;
}

.portfolio-section-toggle span {
    flex: 1;
}

.toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.portfolio-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.portfolio-section-content {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 5000px;
    opacity: 1;
}

.portfolio-section.collapsed .portfolio-section-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.company-section {
    margin-bottom: 50px;
}

.company-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

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

.portfolio-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Base portfolio item styles - applies to all cards */
.portfolio-item {
    padding: 20px 30px 10px 30px;
    background: #ffffff;
    border: none;
    border-left: 3px solid #e0e0e0;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    cursor: pointer;
    transition: border-left-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--animation-delay, 0s);
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Hover effects for all portfolio items */
.portfolio-item:hover,
.portfolio-item-link:hover,
.portfolio-grid .portfolio-item:hover,
.portfolio-grid .portfolio-item-link:hover,
.portfolio-list .portfolio-item:hover {
    border-left-color: #000000 !important;
    transform: translateX(8px) !important;
    background-color: #f8f8f8 !important;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08) !important;
    transition: border-left-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
    transition-delay: 0s !important;
}

/* Active state for all portfolio items */
.portfolio-item:active,
.portfolio-item-link:active,
.portfolio-list .portfolio-item:active {
    transform: translateX(4px);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.06);
}

.portfolio-item-link {
    text-decoration: none;
    color: inherit;
    transition: border-left-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--animation-delay, 0s);
}

.portfolio-item .company-role {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 15px;
    margin-top: 5px;
}

.portfolio-item p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.portfolio-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.portfolio-item-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item-header h4 {
    margin: 0 0 5px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.portfolio-item-header .company-role {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-transform: lowercase;
    display: block;
    margin-top: 0;
}

.locked-icon {
    width: 16px;
    height: 16px;
    color: #666666;
    flex-shrink: 0;
    margin-left: 10px;
}

.external-icon {
    width: 16px;
    height: 16px;
    color: #666666;
    flex-shrink: 0;
    margin-left: 10px;
}

.about-portrait {
    margin: 30px 0 40px 0;
    text-align: center;
}

.about-portrait img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.about-content {
    margin-top: 0;
    max-width: 800px;
}

.about-intro {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-content p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-divider {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    color: #000000;
    text-align: center;
    margin: 60px 0;
    letter-spacing: 2px;
}

.about-content h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.about-lead {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.about-list li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: 700;
}

.about-brooklyn {
    text-align: center;
    margin: 40px 0;
}

.about-brooklyn img {
    width: 120px;
    height: auto;
    display: inline-block;
}

.about-closing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.about-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

.about-link {
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid #000000;
    transition: all 0.2s ease;
    display: inline-block;
}

.about-link:hover {
    opacity: 0.6;
    border-bottom-color: #666666;
}

/* Scroll Animation Styles */
.portfolio-item,
.project-section,
.about-content > p,
.about-content > h3,
.about-list li,
.about-links,
.about-intro,
.about-lead,
.about-closing,
.about-brooklyn,
.about-portrait,
.resume-company,
.resume-role,
.resume-focus-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--animation-delay, 0s);
}


/* Portfolio piece pages - make all content visible immediately */
#looper-content .project-section,
#movietheater-content .project-section,
#un-content .project-section,
#uspsstamps-content .project-section,
#quesbook-content .project-section,
#looper-content .project-header,
#movietheater-content .project-header,
#un-content .project-header,
#uspsstamps-content .project-header,
#quesbook-content .project-header,
#looper-content .project-intro,
#movietheater-content .project-intro,
#un-content .project-intro,
#uspsstamps-content .project-intro,
#quesbook-content .project-intro,
#looper-content .project-image-container,
#movietheater-content .project-image-container,
#un-content .project-image-container,
#uspsstamps-content .project-image-container,
#quesbook-content .project-image-container,
#looper-content .project-description,
#movietheater-content .project-description,
#un-content .project-description,
#uspsstamps-content .project-description,
#quesbook-content .project-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.portfolio-item.animate-in,
.project-section.animate-in,
.about-content > p.animate-in,
.about-content > h3.animate-in,
.about-list li.animate-in,
.about-links.animate-in,
.about-intro.animate-in,
.about-lead.animate-in,
.about-closing.animate-in,
.about-brooklyn.animate-in,
.about-portrait.animate-in,
.resume-company.animate-in,
.resume-role.animate-in,
.resume-focus-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: if about-links is at bottom and not detected, show it after a delay */
#about-content.active .about-links:not(.animated) {
    animation: fadeInFallback 0.6s ease-out 1.5s forwards;
}

@keyframes fadeInFallback {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Resume Page Styles */
.resume-content {
    margin-top: 40px;
    max-width: 800px;
}

.resume-company {
    margin-bottom: 60px;
}

.resume-company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-company-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.resume-company-image {
    flex-shrink: 0;
}

.resume-company-image img {
    height: 25px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.resume-company-header h2 {
    font-family: 'Courier Prime', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-transform: lowercase;
}

.resume-period {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-transform: lowercase;
}

.resume-role {
    margin-bottom: 40px;
}

.resume-role-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.resume-role-header h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-transform: lowercase;
}

.resume-role-period {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-transform: lowercase;
}

.resume-role-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 25px;
}

.resume-focus-area {
    margin-top: 30px;
}

.resume-focus-area h4 {
    font-family: 'Courier Prime', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.resume-focus-item {
    margin-bottom: 30px;
}

.resume-focus-item h5 {
    font-family: 'Courier Prime', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    text-transform: lowercase;
}

.resume-focus-period {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-transform: lowercase;
}

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

.resume-list li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.resume-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: 700;
}

.resume-divider {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    color: #000000;
    text-align: center;
    margin: 50px 0;
    letter-spacing: 2px;
}

/* Project Detail Page */
.project-header {
    margin-bottom: 60px;
}

.back-button {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.back-button:hover {
    color: #000000;
}

.project-header h1 {
    margin-bottom: 10px;
}

.project-description {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 800px;
}

.project-role {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    text-transform: lowercase;
    margin: 0;
}

.project-intro {
    margin-bottom: 80px;
    max-width: 800px;
}

.project-intro h2 {
    font-family: 'Courier Prime', monospace;
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    margin-top: 0;
}

.project-intro p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin: 0;
}

.project-section {
    margin-bottom: 100px;
}

.project-section-header {
    margin-bottom: 40px;
    max-width: 800px;
}

.project-section-header h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    margin-top: 0;
}

.project-section-header p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.8;
    margin: 0;
}

.project-image-container {
    width: 100%;
    margin-bottom: 20px;
}

.project-image-placeholder {
    width: 100%;
    min-height: 400px;
    background: #f5f5f5;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #999999;
    text-align: center;
    padding: 40px;
}

.project-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.project-footer {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.resume-link {
    display: inline-block;
    font-family: 'Courier Prime', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    margin-top: 30px;
    padding: 12px 24px;
    border: 2px solid #000000;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.resume-link:hover {
    background: #000000;
    color: #ffffff;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.password-modal.active {
    opacity: 1;
    visibility: visible;
}

.password-modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.password-modal-content h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.password-modal-content p {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 20px;
}

.password-modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.password-modal-content input:focus {
    outline: none;
    border-color: #000000;
}

.password-disclaimer {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: 0;
}

.password-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.password-btn {
    font-family: 'Courier Prime', monospace;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.password-btn-cancel {
    background: #ffffff;
    color: #000000;
}

.password-btn-cancel:hover {
    background: #f5f5f5;
}

.password-btn-submit {
    background: #000000;
    color: #ffffff;
}

.password-btn-submit:hover {
    background: #333333;
}

/* Navigation transition - slides up and locks to top */
.bottom-nav {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.moved-to-top {
    transform: translateY(calc(-100vh + 100%));
}

/* Prevent navigation from going past top on mobile while keeping animation */
@media (max-width: 768px) {
    .bottom-nav.moved-to-top {
        /* Adjust transform to account for safe area - moves it down more to prevent cutoff */
        transform: translateY(calc(-100vh + 100% + env(safe-area-inset-top, 35px)));
    }
    
    /* Add safe area padding to nav container when at top to prevent content from being cut off */
    .bottom-nav.moved-to-top .nav-container {
        padding-top: max(env(safe-area-inset-top, 0px), 35px);
        padding-bottom: 10px;
    }
    
    .bottom-nav.moved-to-top {
        padding-top: max(env(safe-area-inset-top, 0px), 35px);
    }
}

@media (max-width: 480px) {
    .bottom-nav.moved-to-top {
        /* Adjust transform to account for safe area - moves it down more to prevent cutoff */
        transform: translateY(calc(-100vh + 100% + env(safe-area-inset-top, 30px)));
    }
    
    .bottom-nav.moved-to-top .nav-container {
        padding-top: max(env(safe-area-inset-top, 0px), 30px);
        padding-bottom: 8px;
    }
    
    .bottom-nav.moved-to-top {
        padding-top: max(env(safe-area-inset-top, 0px), 30px);
    }
}

.bottom-nav.moved-to-top .nav-brand,
.bottom-nav.moved-to-top .nav-link,
.bottom-nav.moved-to-top .nav-button,
.bottom-nav.moved-to-top .linkedin-icon {
    color: #ffffff;
}

.bottom-nav.moved-to-top .nav-button {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.bottom-nav.moved-to-top .nav-button:hover {
    background: #000000;
    color: #ffffff;
}

/* Project detail pages - black text for white clouds */
.bottom-nav.project-view .nav-brand,
.bottom-nav.project-view .nav-link,
.bottom-nav.project-view .linkedin-icon {
    color: #000000;
}

.bottom-nav.project-view .nav-button {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.bottom-nav.project-view .nav-button:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}



/* Clouds transition - moves up and locks to top */
.clouds {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.clouds.moved-to-top {
    transform: translateY(calc(-100vh + 200px));
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.clouds.moved-to-top.compact {
    transform: translateY(calc(-100vh + 100px));
}

.clouds.moved-to-top.full-screen {
    transform: translateY(-100vh);
}

/* Responsive Portfolio Grid */
@media (max-width: 1024px) {
    .portfolio-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-list {
        grid-template-columns: 1fr;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .bottom-nav {
        padding: 18px 20px 22px 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        padding: 0 20px;
    }

    .nav-left {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        width: 100%;
    }

    .nav-brand {
        font-size: 22px;
        min-width: auto;
        text-align: center;
        width: auto;
    }

    .nav-links {
        gap: 24px;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .nav-link {
        font-size: 15px;
    }

    .nav-right {
        display: flex;
        gap: 14px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .nav-button {
        font-size: 13px;
        padding: 9px 18px;
    }

    .linkedin-icon {
        width: 38px;
        height: 38px;
    }

    .linkedin-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 16px 15px 20px 15px;
    }

    .nav-container {
        padding: 0 15px;
        gap: 14px;
    }

    .nav-left {
        gap: 12px;
    }

    .nav-brand {
        font-size: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-button {
        font-size: 12px;
        padding: 8px 16px;
    }

    .linkedin-icon {
        width: 36px;
        height: 36px;
    }

    .linkedin-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Comprehensive Responsive Styles */

/* Tablet and below */
@media (max-width: 1024px) {
    .content-wrapper {
        padding: 40px 30px;
    }

    #portfolio-content .content-wrapper,
    #about-content .content-wrapper,
    #quesbook-content .content-wrapper,
    #resume-content .content-wrapper {
        padding-left: 30px;
        padding-right: 30px;
    }

    .nav-container {
        padding: 0 30px;
    }

    .content-section h1 {
        font-size: 40px;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .portfolio-grid {
        gap: 25px;
    }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px 20px;
    }

    #portfolio-content .content-wrapper,
    #about-content .content-wrapper,
    #quesbook-content .content-wrapper,
    #resume-content .content-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .content-section h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .content-section h2 {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .content-section h3 {
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .content-section h4 {
        font-size: 16px;
    }

    .content-section p {
        font-size: 15px;
        line-height: 1.7;
    }

    .portfolio-item {
        padding: 18px 20px 10px 20px;
    }

    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-list {
        gap: 15px;
    }

    .about-intro {
        font-size: 18px;
    }

    .about-lead {
        font-size: 16px;
    }

    .project-header h1 {
        font-size: 36px;
    }

    .project-description {
        font-size: 16px;
    }

    .project-intro h2 {
        font-size: 28px;
    }

    .project-intro p {
        font-size: 16px;
    }

    .project-section-header h3 {
        font-size: 22px;
    }

    .project-section-header p {
        font-size: 15px;
    }

    .project-image-container {
        margin: 30px 0;
    }

    .project-image-container img {
        max-width: 100%;
        height: auto;
    }

    .about-portrait {
        margin: 20px 0 30px 0;
    }

    .about-portrait img {
        width: 80px;
        height: 80px;
    }

    .about-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .about-link {
        font-size: 14px;
    }

    .resume-company-image img {
        max-width: 80px;
        height: auto;
    }

    .resume-role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .resume-role-period {
        font-size: 14px;
    }

    .password-modal-content {
        width: 90%;
        max-width: 400px;
        padding: 30px 20px;
    }

    .password-modal-content h3 {
        font-size: 24px;
    }

    #madeinbrooklyn {
        width: 60px;
        height: 60px;
        top: 15px;
        left: 15px;
    }

    .star-quote {
        font-size: 12px;
        top: 15px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 25px 15px;
    }

    #portfolio-content .content-wrapper,
    #about-content .content-wrapper,
    #quesbook-content .content-wrapper,
    #resume-content .content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .content-section h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .content-section h2 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .content-section h3 {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .content-section h4 {
        font-size: 15px;
    }

    .content-section p {
        font-size: 14px;
        line-height: 1.6;
    }

    .portfolio-item {
        padding: 15px 15px 10px 15px;
    }

    .portfolio-item-header {
        margin-bottom: 8px;
    }

    .portfolio-item-header h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .company-role {
        font-size: 12px;
    }

    .portfolio-item p {
        font-size: 14px;
    }

    .portfolio-grid {
        gap: 15px;
    }

    .portfolio-list {
        gap: 12px;
    }

    .about-intro {
        font-size: 16px;
    }

    .about-lead {
        font-size: 15px;
    }

    .about-list li {
        font-size: 14px;
        padding-left: 20px;
    }

    .project-header h1 {
        font-size: 32px;
    }

    .project-description {
        font-size: 15px;
    }

    .project-intro h2 {
        font-size: 24px;
    }

    .project-intro p {
        font-size: 15px;
    }

    .project-section {
        margin-bottom: 60px;
    }

    .project-section-header {
        margin-bottom: 25px;
    }

    .project-section-header h3 {
        font-size: 20px;
    }

    .project-section-header p {
        font-size: 14px;
    }

    .back-button {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .about-portrait {
        margin: 15px 0 25px 0;
    }

    .about-portrait img {
        width: 70px;
        height: 70px;
    }

    .about-links {
        gap: 12px;
    }

    .about-link {
        font-size: 13px;
        padding: 8px 16px;
    }

    .resume-company-image img {
        max-width: 60px;
    }

    .resume-role-header h3 {
        font-size: 18px;
    }

    .resume-role-period {
        font-size: 13px;
    }

    .resume-role-description {
        font-size: 14px;
    }

    .password-modal-content {
        width: 95%;
        padding: 25px 15px;
    }

    .password-modal-content h3 {
        font-size: 22px;
    }

    #passwordInput {
        font-size: 14px;
        padding: 10px;
    }

    #madeinbrooklyn {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }

    .star-quote {
        font-size: 11px;
        top: 10px;
        padding: 0 10px;
    }

    .about-brooklyn img {
        width: 100px;
    }

    .about-closing {
        font-size: 14px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .content-wrapper {
        padding: 20px 12px;
    }

    #portfolio-content .content-wrapper,
    #about-content .content-wrapper,
    #quesbook-content .content-wrapper,
    #resume-content .content-wrapper {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-container {
        padding: 0 12px;
    }

    .content-section h1 {
        font-size: 28px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .portfolio-item {
        padding: 12px 12px 8px 12px;
    }

    .nav-brand {
        font-size: 16px;
    }

    .nav-link {
        font-size: 12px;
    }
}