@font-face {
    font-family: 'Klose Slab';
    src: url('Klose Slab Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --green-dark: #2D4A3E;
    --green-light: #D4C5A9;
    --beige: #E8DDD4;
    --pink: #FF6B9D;
    --pink-light: #FFB3D1;
    --text-dark: #3A3A3A;
}

body {
    font-family: 'Consolas', 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: clamp(14px, 1vw, 16px);
    overflow-x: hidden;
    overflow-y: auto;
    height: 300vh;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--green-light);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Top Section - Green Background */
.top-section {
    min-height: 100vh;
    background: var(--green-dark);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(15px, 3vw, 40px);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    background: rgba(45, 74, 62, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px clamp(25px, 5vw, 80px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.name-header {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    color: var(--green-light);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--green-light);
    text-decoration: none;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: opacity 0.3s;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    animation: none;
}

@keyframes underlineSlide {
    0%, 100% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
}

.portfolio-title {
    font-family: 'Klose Slab', sans-serif;
    font-size: clamp(2.5rem, 12vw, 12rem);
    color: #F0EAD6;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -0.07em;
    line-height: 0.75;
    font-weight: 900;
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 60px clamp(10px, 2vw, 40px);
    margin-top: 0px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid #F0EAD6;
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: #F0EAD6;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

.portfolio-title:hover {
    transform: scale(1.02);
}

.portfolio-title .word-first,
.portfolio-title .word-second {
    display: block;
    position: relative;
    font-size: 0; /* Remove spacing between inline-block elements */
    white-space: nowrap;
    overflow: visible;
    width: 100%;
    min-width: fit-content;
}

.portfolio-title .word-first {
    letter-spacing: 0.05em;
    text-align: center;
}

.portfolio-title .word-second {
    margin-top: -0.1em;
    margin-left: 0;
    text-align: center;
    letter-spacing: 0.05em;
}

.portfolio-title .letter {
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
    font-size: clamp(1.8rem, 11vw, 12rem); /* Responsive scaling based on viewport */
    -webkit-text-stroke: clamp(0.3px, 0.03vw, 0.5px) #000000;
    text-stroke: clamp(0.3px, 0.03vw, 0.5px) #000000;
    -webkit-text-fill-color: #F0EAD6;
    text-shadow: 
        0 0 clamp(1px, 0.1vw, 2px) #000000,
        0 0 clamp(1px, 0.1vw, 2px) #000000,
        0 0 clamp(1px, 0.1vw, 2px) #000000,
        0 clamp(10px, 1vw, 15px) 0 #000000;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

/* Different idle animations for each letter */
.portfolio-title .word-first .letter:nth-child(1) { 
    animation: fadeInUp 0.8s ease 0.2s forwards, letterFloat 4s ease-in-out 0.2s infinite, waterfallColor 4s ease-in-out 0s infinite; 
}
.portfolio-title .word-first .letter:nth-child(2) { 
    animation: fadeInUp 0.8s ease 0.25s forwards, letterSway 3.5s ease-in-out 0.25s infinite, waterfallColor 4s ease-in-out 0.2s infinite; 
}
.portfolio-title .word-first .letter:nth-child(3) { 
    animation: fadeInUp 0.8s ease 0.3s forwards, letterBounce 3.8s ease-in-out 0.3s infinite, waterfallColor 4s ease-in-out 0.4s infinite; 
}
.portfolio-title .word-first .letter:nth-child(4) { 
    animation: fadeInUp 0.8s ease 0.35s forwards, letterFloat 4.2s ease-in-out 0.35s infinite, waterfallColor 4s ease-in-out 0.6s infinite; 
}
.portfolio-title .word-first .letter:nth-child(5) { 
    animation: fadeInUp 0.8s ease 0.4s forwards, letterPulse 3.2s ease-in-out 0.4s infinite, waterfallColor 4s ease-in-out 0.8s infinite; 
}
.portfolio-title .word-first .letter:nth-child(6) { 
    animation: fadeInUp 0.8s ease 0.45s forwards, letterSway 3.7s ease-in-out 0.45s infinite, waterfallColor 4s ease-in-out 1s infinite; 
}
.portfolio-title .word-first .letter:nth-child(7) { 
    animation: fadeInUp 0.8s ease 0.5s forwards, letterBounce 4.1s ease-in-out 0.5s infinite, waterfallColor 4s ease-in-out 1.2s infinite; 
}
.portfolio-title .word-first .letter:nth-child(8) { 
    animation: fadeInUp 0.8s ease 0.55s forwards, letterFloat 3.9s ease-in-out 0.55s infinite, waterfallColor 4s ease-in-out 1.4s infinite; 
}

.portfolio-title .word-second .letter:nth-child(1) { 
    animation: fadeInUp 0.8s ease 0.6s forwards, letterFloat 4.3s ease-in-out 0.6s infinite, waterfallColor 4s ease-in-out 1.6s infinite; 
}
.portfolio-title .word-second .letter:nth-child(2) { 
    animation: fadeInUp 0.8s ease 0.65s forwards, letterSway 3.6s ease-in-out 0.65s infinite, waterfallColor 4s ease-in-out 1.8s infinite; 
}
.portfolio-title .word-second .letter:nth-child(3) { 
    animation: fadeInUp 0.8s ease 0.7s forwards, letterBounce 3.9s ease-in-out 0.7s infinite, waterfallColor 4s ease-in-out 2s infinite; 
}
.portfolio-title .word-second .letter:nth-child(4) { 
    animation: fadeInUp 0.8s ease 0.75s forwards, letterPulse 4.0s ease-in-out 0.75s infinite, waterfallColor 4s ease-in-out 2.2s infinite; 
}
.portfolio-title .word-second .letter:nth-child(5) { 
    animation: fadeInUp 0.8s ease 0.8s forwards, letterFloat 3.8s ease-in-out 0.8s infinite, waterfallColor 4s ease-in-out 2.4s infinite; 
}
.portfolio-title .word-second .letter:nth-child(6) { 
    animation: fadeInUp 0.8s ease 0.85s forwards, letterSway 4.1s ease-in-out 0.85s infinite, waterfallColor 4s ease-in-out 2.6s infinite; 
}
.portfolio-title .word-second .letter:nth-child(7) { 
    animation: fadeInUp 0.8s ease 0.9s forwards, letterBounce 3.7s ease-in-out 0.9s infinite, waterfallColor 4s ease-in-out 2.8s infinite; 
}
.portfolio-title .word-second .letter:nth-child(8) { 
    animation: fadeInUp 0.8s ease 0.95s forwards, letterPulse 4.2s ease-in-out 0.95s infinite, waterfallColor 4s ease-in-out 3s infinite; 
}
.portfolio-title .word-second .letter:nth-child(9) { 
    animation: fadeInUp 0.8s ease 1s forwards, letterFloat 3.5s ease-in-out 1s infinite, waterfallColor 4s ease-in-out 3.2s infinite; 
}

.portfolio-title:hover .letter {
    color: #E8DDD4;
}

/* Projects Section */
.projects-section {
    min-height: 100vh;
    background: var(--beige);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    padding: 0;
    position: fixed;
    top: 200vh;
    left: 0;
    right: 0;
    z-index: 3;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.projects-section.revealed {
    transform: translateY(-200vh);
}

.projects-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px clamp(25px, 5vw, 80px);
    background: rgba(232, 221, 212, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.projects-name-header {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    color: var(--green-dark);
    letter-spacing: 1px;
}

.projects-nav-menu {
    display: flex;
    gap: 30px;
}

.projects-nav-menu a {
    color: var(--green-dark);
    text-decoration: none;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: opacity 0.3s;
    display: inline-block;
}

.projects-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.projects-nav-menu a:hover::after {
    transform: scaleX(1);
    animation: none;
}

.projects-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(20px, 3vw, 44px) clamp(15px, 3vw, 40px) clamp(12px, 2vw, 24px);
    flex: 1;
    display: flex;
    gap: clamp(30px, 4vw, 60px);
    overflow: hidden;
    max-height: 100vh;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.projects-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.projects-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--green-dark);
}

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

.projects-list li {
    margin-bottom: 15px;
}

.project-list-link {
    color: var(--green-dark);
    text-decoration: none;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 500;
    display: block;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
    max-width: 100%;
}

.project-list-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--green-dark);
    transition: width 0.3s ease;
}

.project-list-link:hover {
    padding-left: 30px;
    color: var(--pink);
}

.project-list-link:hover::before {
    width: 15px;
}

.projects-main {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 56px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-main::-webkit-scrollbar {
    display: none;
}

.projects-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 26px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--beige);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    padding: 8px 0 14px;
}

.projects-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -30px;
    height: 30px;
    background-color: var(--beige);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: white;
    border: 2px solid var(--green-dark);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    margin-bottom: 0;
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    width: 100%;
}

.project-card-link:hover .project-card {
    border-color: var(--pink);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-gallery {
    display: block;
}

/* Keep collage cards to a single preview image */
.project-gallery .project-image-container:not(:first-child) {
    display: none;
}

.project-image-container {
    width: 100%;
    overflow: hidden;
    background: var(--beige);
    border: none;
    border-bottom: 2px solid var(--green-dark);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
}

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

.project-card-link:hover .project-image-container {
    border-color: var(--pink);
}


.project-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.4s ease;
    filter: brightness(1);
}

.brief-cipher-preview {
    width: 100%;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 30px 24px 24px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 191, 187, 0.85) 0%, rgba(255, 191, 187, 0) 45%),
        radial-gradient(circle at 80% 80%, rgba(46, 49, 146, 0.25) 0%, rgba(46, 49, 146, 0) 50%),
        linear-gradient(135deg, #f6eee3 0%, #ffdb3c 52%, #a0ff3f 100%);
    color: #231f20;
}

.brief-cipher-preview-title {
    font-size: clamp(22px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brief-cipher-preview-sub {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    opacity: 0.9;
}

.brief-cipher-preview-chip {
    margin-top: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(35, 31, 32, 0.55);
    background: rgba(255, 255, 255, 0.45);
}

.aeqo-preview {
    width: 100%;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 26px 24px;
    text-align: left;
    background:
        linear-gradient(145deg, rgba(247, 236, 0, 0.18) 0%, rgba(247, 236, 0, 0) 45%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px),
        #060607;
    color: #f7ec00;
    transform: translateY(-22px);
}

.aeqo-preview-kicker {
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #ebebec;
}

.aeqo-preview-title {
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.aeqo-preview-sub {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 500;
    color: #ebebec;
}

.aeqo-preview-chip {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #060607;
    background: #f7ec00;
}

.project-card-link:hover .project-image-container img {
    filter: brightness(0.95);
}


/* For single image, make it larger */
.project-gallery:has(.project-image-container:nth-child(1):only-child) .project-image-container {
    flex: 1 1 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
}

.project-info {
    padding: 30px;
}

.project-title {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.project-description {
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.project-meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    color: #1c242b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.project-meta-tag.tag-year-2025 {
    background: linear-gradient(135deg, rgba(120, 214, 255, 0.42) 0%, rgba(120, 214, 255, 0.22) 100%);
    border-color: rgba(67, 181, 235, 0.48);
}

.project-meta-tag.tag-year-2026 {
    background: linear-gradient(135deg, rgba(145, 190, 255, 0.42) 0%, rgba(145, 190, 255, 0.22) 100%);
    border-color: rgba(88, 142, 236, 0.5);
}

.project-meta-tag.tag-figma {
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.42) 0%, rgba(177, 92, 255, 0.22) 100%);
    border-color: rgba(209, 92, 130, 0.48);
}

.project-meta-tag.tag-illustrator {
    background: linear-gradient(135deg, rgba(255, 180, 82, 0.45) 0%, rgba(255, 150, 42, 0.24) 100%);
    border-color: rgba(226, 132, 40, 0.5);
}

.project-meta-tag.tag-photoshop {
    background: linear-gradient(135deg, rgba(112, 174, 255, 0.45) 0%, rgba(80, 139, 255, 0.24) 100%);
    border-color: rgba(70, 122, 235, 0.5);
}

.project-meta-tag.tag-indesign {
    background: linear-gradient(135deg, rgba(255, 126, 189, 0.44) 0%, rgba(255, 91, 162, 0.24) 100%);
    border-color: rgba(217, 80, 146, 0.5);
}

.project-meta-tag.tag-photography {
    background: linear-gradient(135deg, rgba(178, 255, 130, 0.42) 0%, rgba(142, 235, 94, 0.22) 100%);
    border-color: rgba(108, 195, 66, 0.48);
}

.project-meta-tag.tag-blender {
    background: linear-gradient(135deg, rgba(255, 172, 92, 0.45) 0%, rgba(95, 171, 255, 0.24) 100%);
    border-color: rgba(88, 145, 230, 0.5);
}

.project-card-link:hover .project-meta-tag {
    transform: translateY(-1px);
    filter: saturate(1.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 18px rgba(0, 0, 0, 0.12);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    padding: 10px 20px;
    background: var(--green-dark);
    color: var(--green-light);
    text-decoration: none;
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

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

/* Bottom Section - Beige Background */
.bottom-section {
    min-height: 100vh;
    background: var(--beige);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    padding: 0;
    position: fixed;
    top: 100vh;
    left: 0;
    right: 0;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.bottom-section.revealed {
    transform: translateY(-100vh);
}

.bottom-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px clamp(25px, 5vw, 80px);
    background: rgba(232, 221, 212, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.bottom-name-header {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    color: var(--green-dark);
    letter-spacing: 1px;
}

.bottom-nav-menu {
    display: flex;
    gap: 30px;
}

.bottom-nav-menu a {
    color: var(--green-dark);
    text-decoration: none;
    font-size: clamp(13px, 1vw, 16px);
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    transition: opacity 0.3s;
    display: inline-block;
}

.bottom-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bottom-nav-menu a:hover::after {
    transform: scaleX(1);
    animation: none;
}

/* Keep header visible when About section is revealed */
.top-section .header-nav {
    position: relative;
    z-index: 100;
}

body.about-revealed .top-section .header-nav,
body.projects-revealed .top-section .header-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    background: rgba(45, 74, 62, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px clamp(25px, 5vw, 80px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: calc(100% - 40px);
}

.bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
    padding: clamp(28px, 4vw, 56px) clamp(15px, 3vw, 40px) clamp(18px, 3vw, 28px);
    flex: 1;
    justify-content: center;
    min-height: auto;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.greeting {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1;
    letter-spacing: -1px;
    position: relative;
    min-height: 1.2em;
    display: inline-block;
}

.greeting-text {
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    margin-left: -1px;
    animation: cursorBlink 1s infinite;
    color: var(--green-dark);
    letter-spacing: 0;
    vertical-align: baseline;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.name-intro {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-label {
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 500;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.name-large {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.about-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.about-heading {
    font-size: clamp(11px, 0.9vw, 14px);
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-link {
    width: 32px;
    height: 32px;
    color: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.icon-link:hover {
    color: var(--pink);
}

.icon {
    width: 24px;
    height: 24px;
}

.resume-btn {
    padding: 10px 20px;
    background: var(--pink);
    color: white;
    text-decoration: none;
    font-size: clamp(12px, 0.9vw, 14px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s;
}

.resume-btn:hover {
    background: #FF5A8A;
}

.bio-text {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 600px;
    margin-top: 20px;
}

.bio-link {
    color: var(--green-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.bio-link:hover {
    opacity: 0.7;
}

/* Right Content - Portrait */
.right-content {
    display: flex;
    justify-content: center;
    align-items: start;
}

.portrait-frame {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
}

.windows-window {
    width: 400px;
    height: 450px;
    background: #ece9d8;
    border: 1px solid #a3a3a3;
    box-shadow: 0 0 0 1px #ffffff inset, 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: portraitFloat 4s ease-in-out infinite;
    position: relative;
    transition: transform 0.3s ease;
}

.windows-window.dragging {
    animation: none;
    cursor: grabbing;
}

.windows-window.returning {
    animation: returnToPosition 0.5s ease-out forwards;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-5px, -4px) rotate(-1deg); }
    20% { transform: translate(5px, 4px) rotate(1deg); }
    30% { transform: translate(-4px, 5px) rotate(-0.8deg); }
    40% { transform: translate(4px, -5px) rotate(0.8deg); }
    50% { transform: translate(-6px, 3px) rotate(-1.2deg); }
    60% { transform: translate(6px, -3px) rotate(1.2deg); }
    70% { transform: translate(-3px, -6px) rotate(-0.8deg); }
    80% { transform: translate(3px, 6px) rotate(0.8deg); }
    90% { transform: translate(-2px, 2px) rotate(-0.5deg); }
}

@keyframes returnToPosition {
    from {
        transform: var(--current-transform);
    }
    to {
        transform: translate(0, 0);
    }
}

.window-titlebar {
    height: 30px;
    background: linear-gradient(to bottom, #f1f1f1 0%, #e5e5e5 50%, #d9d9d9 100%);
    border-bottom: 1px solid #a3a3a3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: move;
    position: relative;
}

.window-titlebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.window-title {
    font-size: clamp(9px, 0.7vw, 11px);
    color: #1a1a1a;
    font-weight: 500;
    padding-left: 5px;
    user-select: none;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-btn {
    width: 21px;
    height: 21px;
    border: 1px solid #a3a3a3;
    background: linear-gradient(to bottom, #f9f9f9 0%, #e5e5e5 50%, #d9d9d9 100%);
    cursor: pointer;
    position: relative;
    padding: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.window-btn:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #f0f0f0 50%, #e5e5e5 100%);
}

.window-btn:active {
    background: linear-gradient(to bottom, #d9d9d9 0%, #e5e5e5 50%, #f0f0f0 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset;
}

.minimize-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 1px;
    background: #1a1a1a;
}

.maximize-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 1px solid #1a1a1a;
    background: transparent;
}

.close-btn {
    background: linear-gradient(to bottom, #f9f9f9 0%, #e5e5e5 50%, #d9d9d9 100%);
}

.close-btn:hover {
    background: linear-gradient(to bottom, #e81123 0%, #c50e1f 50%, #b00e1a 100%);
    border-color: #8b0a14;
}

.close-btn:hover::after {
    background: #ffffff;
}

.close-btn::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1;
    color: #1a1a1a;
    font-weight: bold;
}

.window-content {
    flex: 1;
    background: #ffffff;
    overflow: hidden;
    border-top: 1px solid #a3a3a3;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.window-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: auto;
    background: transparent;
}

.portrait-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    position: relative;
    transition: filter 0.3s ease;
}

/* Selective color filter - keep red (#ED1C24) visible when dragging */
.portrait-image-wrapper.dragging .portrait-image {
    opacity: 0;
}

.portrait-image-wrapper.dragging::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagdfgdfsge - Copy.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 1;
    pointer-events: none;
}

.portrait-image-wrapper.dragging::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagdfgdfsge - Copy.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0) saturate(100%) invert(13%) sepia(94%) saturate(7158%) hue-rotate(350deg) brightness(95%) contrast(95%);
    mix-blend-mode: screen;
    opacity: 0.9;
    z-index: 2;
    pointer-events: none;
}

@keyframes portraitFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(-1deg) scale(1.02);
    }
    50% {
        transform: translateY(-4px) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(-10px) rotate(1deg) scale(1.02);
    }
}

@keyframes letterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes letterSway {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(3px) rotate(0.5deg);
    }
    50% {
        transform: translateX(0) rotate(0deg);
    }
    75% {
        transform: translateX(-3px) rotate(-0.5deg);
    }
}

@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-8px) rotate(-1deg) scale(1.02);
    }
    50% {
        transform: translateY(-4px) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(-10px) rotate(1deg) scale(1.02);
    }
}

@keyframes letterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes waterfallColor {
    0% {
        -webkit-text-fill-color: #F0EAD6;
    }
    20% {
        -webkit-text-fill-color: #D4C5A9;
    }
    40% {
        -webkit-text-fill-color: #E8DDD4;
    }
    60% {
        -webkit-text-fill-color: #FFB3D1;
    }
    80% {
        -webkit-text-fill-color: #FF6B9D;
    }
    100% {
        -webkit-text-fill-color: #F0EAD6;
    }
}

@keyframes letterSway {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(3px) rotate(0.5deg);
    }
    50% {
        transform: translateX(0) rotate(0deg);
    }
    75% {
        transform: translateX(-3px) rotate(-0.5deg);
    }
}

@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .projects-content {
        flex-direction: column;
        gap: 40px;
    }

    .projects-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }

    .projects-sidebar .sidebar-title {
        text-align: center;
    }

    .projects-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        width: 100%;
    }

    .projects-list li {
        margin-bottom: 0;
        min-width: 0;
        max-width: 100%;
    }

    .project-list-link {
        padding: 10px 12px;
        border: 1px solid var(--green-dark);
        border-radius: 4px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-list-link::before {
        display: none;
    }

    .project-list-link:hover {
        padding-left: 12px;
        background: var(--green-dark);
        color: var(--green-light);
    }
}

@media (max-width: 1200px) {
    .header-nav,
    .projects-header-nav,
    .bottom-header-nav {
        padding: 15px 40px;
    }

    .bottom-content {
        padding: 60px 30px;
    }

    .projects-content {
        padding: 60px 30px;
    }
}

@media (max-width: 968px) {
    .top-section {
        padding: 30px 20px;
    }

    .bottom-content {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 60px 30px;
    }

    .right-content {
        justify-content: center;
    }

    .portrait-frame {
        width: 100%;
        max-width: 400px;
    }

    .windows-window {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 8 / 9;
    }

    .portrait-placeholder {
        width: 100%;
        height: 500px;
    }

    .title-line.indent {
        margin-left: 30px;
    }

    .header-nav,
    .projects-header-nav,
    .bottom-header-nav {
        padding: 12px 30px;
        max-width: 100%;
    }

    .name-header,
    .projects-name-header,
    .bottom-name-header {
        font-size: clamp(14px, 1.1vw, 16px);
    }

    .nav-menu a,
    .projects-nav-menu a,
    .bottom-nav-menu a {
        font-size: clamp(13px, 0.95vw, 14px);
    }

    .portfolio-title {
        padding: 40px 0;
    }

    .portfolio-title .letter {
        font-size: clamp(2rem, 9vw, 8rem);
    }

    .projects-content {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .projects-title {
        font-size: clamp(36px, 6vw, 60px);
        margin-bottom: 40px;
    }

    .greeting {
        font-size: clamp(36px, 6vw, 60px);
    }

    .name-large {
        font-size: clamp(28px, 5vw, 48px);
    }

    .bio-text {
        font-size: clamp(14px, 1vw, 15px);
    }
}

@media (max-width: 768px) {
    .top-section,
    .bottom-section,
    .projects-section {
        padding: 20px 15px;
    }

    .header-nav,
    .projects-header-nav,
    .bottom-header-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 25px;
        border-radius: 30px;
    }

    .nav-menu,
    .projects-nav-menu,
    .bottom-nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu a,
    .projects-nav-menu a,
    .bottom-nav-menu a {
        font-size: 14px;
    }

    .portfolio-title {
        padding: 30px 0;
    }

    .portfolio-title .letter {
        font-size: clamp(1.8rem, 7vw, 6rem);
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .bottom-content {
        padding: 40px 20px;
        gap: 40px;
    }

    .projects-content {
        padding: 30px 15px;
        gap: 30px;
    }

    .projects-title {
        font-size: clamp(32px, 8vw, 56px);
        margin-bottom: 30px;
    }

    .greeting {
        font-size: clamp(32px, 8vw, 56px);
    }

    .name-large {
        font-size: clamp(24px, 6vw, 42px);
    }

    .about-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-icons {
        flex-wrap: wrap;
    }

    .bio-text {
        font-size: clamp(13px, 0.95vw, 14px);
        line-height: 1.7;
    }

    .portrait-frame {
        max-width: 100%;
    }

    .windows-window {
        max-width: 100%;
    }

    .project-info {
        padding: 20px;
    }

    .project-title {
        font-size: clamp(18px, 1.6vw, 20px);
    }

    .project-description {
        font-size: clamp(13px, 0.95vw, 14px);
    }

    .project-link {
        padding: 8px 16px;
        font-size: clamp(11px, 0.85vw, 12px);
    }

    body.about-revealed .top-section .header-nav,
    body.projects-revealed .top-section .header-nav {
        padding: 12px 25px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .top-section,
    .bottom-section,
    .projects-section {
        padding: 15px 10px;
    }

    .header-nav,
    .projects-header-nav,
    .bottom-header-nav {
        padding: 12px 20px;
        border-radius: 25px;
    }

    .name-header,
    .projects-name-header,
    .bottom-name-header {
        font-size: 14px;
    }

    .nav-menu,
    .projects-nav-menu,
    .bottom-nav-menu {
        gap: 15px;
    }

    .nav-menu a,
    .projects-nav-menu a,
    .bottom-nav-menu a {
        font-size: 13px;
    }

    .portfolio-title {
        padding: 20px 0;
    }

    .portfolio-title .letter {
        font-size: clamp(1.5rem, 6.5vw, 5rem);
    }

    .bottom-content {
        padding: 30px 15px;
        gap: 30px;
    }

    .projects-content {
        padding: 20px 10px;
        gap: 25px;
    }

    .projects-title {
        font-size: clamp(28px, 7vw, 48px);
        margin-bottom: 25px;
    }

    .greeting {
        font-size: clamp(28px, 7vw, 48px);
    }

    .name-large {
        font-size: clamp(20px, 5vw, 36px);
    }

    .name-label {
        font-size: clamp(11px, 0.85vw, 12px);
    }

    .about-heading {
        font-size: clamp(11px, 0.85vw, 12px);
    }

    .bio-text {
        font-size: clamp(12px, 0.9vw, 13px);
    }

    .project-info {
        padding: 15px;
    }

    .project-title {
        font-size: clamp(16px, 1.4vw, 18px);
        margin-bottom: 10px;
    }

    .project-description {
        font-size: clamp(12px, 0.9vw, 13px);
        margin-bottom: 15px;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-link {
        text-align: center;
        padding: 10px 16px;
    }

    .projects-list {
        flex-direction: column;
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .project-list-link {
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    body.about-revealed .top-section .header-nav,
    body.projects-revealed .top-section .header-nav {
        padding: 12px 20px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 360px) {
    .portfolio-title {
        padding: 15px 0;
    }

    .portfolio-title .letter {
        font-size: clamp(1.2rem, 5.5vw, 4rem);
    }

    .portfolio-title .word-first,
    .portfolio-title .word-second {
        min-width: fit-content;
    }

    .nav-menu,
    .projects-nav-menu,
    .bottom-nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-menu a,
    .projects-nav-menu a,
    .bottom-nav-menu a {
        width: 100%;
        text-align: center;
    }
}
