/* Pastel Floating Window Styles - extracted from index.html */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --bg-color: #e0e5ec;
    --pastel-pink: #ffd1d1;
    --pastel-blue: #c2e9fb;
    --pastel-purple: #e0c2fb;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --ui-top: 20px;
    --dest-x: 0;
    --dest-y: 0;
    --dest-z: 0;
    --about-scale: 1;
    --image-scale: 1;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    perspective: 1000px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.site-footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.mobile-blocker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 24px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

html.mobile-block .mobile-blocker {
    display: flex;
}

html.mobile-block,
html.mobile-block body {
    height: 100%;
    overflow: hidden;
}

html.mobile-block .scene,
html.mobile-block .folder-stack,
html.mobile-block .loading {
    display: none !important;
}

.mobile-blocker-card {
    width: min(560px, 100%);
    border-radius: 24px;
    background: rgba(250, 250, 250, 0.42);
    backdrop-filter: blur(35px) saturate(120%);
    -webkit-backdrop-filter: blur(35px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    padding: 22px 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.85);
}

.mobile-blocker-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mobile-blocker-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0.9;
}

/* Viewport Too Small Blocker (Desktop browsers that are too narrow/short) */
.viewport-blocker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    padding: 24px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

html.viewport-too-small .viewport-blocker {
    display: flex;
}

html.viewport-too-small,
html.viewport-too-small body {
    height: 100%;
    overflow: hidden;
}

html.viewport-too-small .scene,
html.viewport-too-small .folder-stack,
html.viewport-too-small .loading {
    display: none !important;
}

.viewport-blocker-card {
    width: min(560px, 100%);
    border-radius: 24px;
    background: rgba(250, 250, 250, 0.42);
    backdrop-filter: blur(35px) saturate(120%);
    -webkit-backdrop-filter: blur(35px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    padding: 22px 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.85);
}

.viewport-blocker-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.viewport-blocker-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    opacity: 0.9;
}


.lingo {
    position: absolute;
    color: #2c3e50;
    font-family: Consolas, Menlo, Monaco, monospace;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
    transform: translateZ(0);
    -webkit-animation: flythrough 10s forwards ease-in-out;
    animation: flythrough 10s forwards ease-in-out;
    transform-origin: center;
    pointer-events: none;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    caret-color: transparent;
}

/* VisionOS-inspired Control Widget */
#textControl {
    display: none !important;
}

#textControl:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

#textControl.expanded {
    width: 280px;
    border-radius: 24px;
    background: rgba(245, 245, 245, 0.65);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.control-icon {
    font-weight: 600;
    font-size: 16px;
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#textControl.expanded .control-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.control-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

#textControl.expanded .control-content {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.1s;
}

.control-content input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0 12px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
}

.control-content input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    cursor: grab;
    margin-top: -9px;
    position: relative;
    top: 50%;
}

.control-content input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(30, 30, 30, 0.1);
    border-radius: 2px;
    border: none;
}

.icon-small {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.6;
    user-select: none;
}

.icon-large {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
    user-select: none;
}

.control-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #243447;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, margin 160ms ease;
    transform: scale(0.9);
    cursor: pointer;
    margin-right: 8px;
    background-clip: padding-box;
}

#textControl.expanded .control-close {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.folder-stack {
    position: absolute;
    top: calc(var(--ui-top) + 12px);
    right: 20px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-end;
}

.glass-folder {
    position: relative;
    z-index: 0;
    width: 100px;
    height: 80px;
    border-radius: 10px;
    background: rgba(250, 250, 250, 0.42);
    backdrop-filter: blur(35px) saturate(120%);
    -webkit-backdrop-filter: blur(35px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    padding: 6px 8px 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: rgba(0, 0, 0, 0.8);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: default;
}

.glass-folder::before {
    content: "";
    position: absolute;
    left: 16px;
    top: -12px;
    width: 56px;
    height: 22px;
    border-radius: 14px 14px 6px 6px;
    background: rgba(200, 205, 210, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
}

.glass-folder span,
.folder-label {
    display: none !important;
}

.glass-folder.about-folder::before {
    display: none;
}

.glass-folder.has-tab::before {
    display: none;
}

.folder-tab {
    position: absolute;
    left: 1px;
    top: -12px;
    width: 60px;
    height: 22px;
    border-radius: 14px 14px 6px 6px;
    background: rgba(200, 205, 210, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #334149;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-folder.about-folder {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-bottom: 5px;
}

.folder-icon {
    width: 50px;
    height: 50px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    transition: transform 0.2s ease;
}

.glass-folder:hover .folder-icon {
    transform: scale(1.1) rotate(5deg);
}

.folder-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    line-height: 1;
}

.about {
    transform-origin: left top;
    transform: scale(var(--about-scale, 1));
    transition: transform 160ms ease;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    max-width: none;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

#dragWindow .about {
    display: flex;
    gap: 14px;
    align-items: center;
    /* Center children vertically */
}

#dragWindow .about .about-text {
    flex: 1 1 0px;
    width: 0;
    min-width: 0;
    text-align: left;
    padding: 8px 0;
}

#dragWindow .about .avatar-container {
    flex: 1 1 0px;
    width: 0;
    min-width: 0;
    padding: 8px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: If you want the container itself to be higher up, you can adjust margin/translate here, 
       but currently centering Y implies vertically centered in the parent. */
}

.card-bg {
    position: absolute;
    width: 35%;
    /* Made smaller (was 50%) */
    z-index: -1;
    transform: rotate(35deg) translateY(-20%) translateX(30%);
    /* Pushed more up */
    opacity: 0.8;
    border-radius: 24px;
    overflow: hidden;
}

/* Ensure avatar stays on top */
.avatar-18 {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: block;
}

.window.fullscreen .avatar-18 {
    width: 100vw;
    height: calc(100vh - 60px);
    max-width: none;
    object-fit: cover;
}

@-webkit-keyframes flythrough {
    0% {
        opacity: 0;
        transform: scale(0.8);
        -webkit-filter: blur(4px);
        filter: blur(4px);
    }

    30% {
        opacity: 1;
        transform: scale(0.95);
        -webkit-filter: blur(0px);
        filter: blur(0px);
    }

    70% {
        opacity: 1;
        transform: scale(1);
        -webkit-filter: blur(0px);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
        -webkit-filter: blur(6px);
        filter: blur(6px);
    }
}

@keyframes flythrough {
    0% {
        opacity: 0;
        transform: scale(0.8);
        -webkit-filter: blur(4px);
        filter: blur(4px);
    }

    30% {
        opacity: 1;
        transform: scale(0.95);
        -webkit-filter: blur(0px);
        filter: blur(0px);
    }

    70% {
        opacity: 1;
        transform: scale(1);
        -webkit-filter: blur(0px);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
        -webkit-filter: blur(6px);
        filter: blur(6px);
    }
}

@-webkit-keyframes fadeout {
    0% {
        opacity: 1;
        transform: scale(1);
        -webkit-filter: blur(0px);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        -webkit-filter: blur(6px);
        filter: blur(6px);
    }
}

@keyframes fadeout {
    0% {
        opacity: 1;
        transform: scale(1);
        -webkit-filter: blur(0px);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
        -webkit-filter: blur(6px);
        filter: blur(6px);
    }
}

.fade-out {
    -webkit-animation: fadeout 0.6s forwards ease-in-out !important;
    animation: fadeout 0.6s forwards ease-in-out !important;
}

.bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 80vh;
    height: 80vh;
    z-index: -5;
    pointer-events: none;
}

.bg-logo svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bg-logo path {
    fill: #d1d9e6;
    filter: url(#innerShadow);
}

.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    transform-style: preserve-3d;
}

.particle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1200px, calc(100vw - 80px));
    height: min(680px, calc(100vh - 120px));
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        20px 20px 60px rgba(0, 0, 0, 0.1),
        -20px -20px 60px rgba(255, 255, 255, 0.8),
        inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    z-index: 20;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
    user-select: none;
    overflow: hidden;
}

/* Style Override for About Me (matching Works Sidebar) */
#dragWindow {
    background: rgba(230, 232, 238, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.window.minimized {
    width: 15vw !important;
    height: 40px !important;
    margin: 0 !important;
    transform: none !important;
    border-radius: 10px;
}

.window.minimized .content {
    display: none;
}

.window.fullscreen {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    border-radius: 0;
}

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    user-select: none;
}

.window.closed {
    opacity: 0;
    transform: scale(0) !important;
    pointer-events: none;
    transition: opacity 360ms ease, transform 360ms ease;
    transform-origin: center center;
}

.window.hide,
.window.closed.hide {
    display: none !important;
}

/* Talk window with minimum width constraint */
#talkWindow {
    min-width: 320px;
    min-height: 320px;
}

#talkWindow.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
}

#talkWindow.minimized {
    width: 15vw !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.window:active {
    cursor: default;
}

.window-header {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    gap: 10px;
    margin-bottom: 0px;
    cursor: default;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.06));
    border-radius: 20px 20px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: inner 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.dot.red {
    background-color: var(--pastel-pink);
}

.dot.yellow {
    background-color: var(--pastel-blue);
}

.dot.green {
    background-color: var(--pastel-purple);
}

.content {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #556776;
    overflow: hidden;
    background: transparent;
}

.about-title {
    font-size: 1.25rem;
    margin: 6px 0 10px 0;
    color: #243447;
    font-weight: 600;
}

.about-desc {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 12px 0;
    color: #5f6f84;
    text-align: justify;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #4c5d72;
}

.about-item .bullet {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: #c7d7ea;
    flex: 0 0 auto;
}

.about-item span {
    font-size: 0.95rem;
    line-height: 1.4;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.orb {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
}

.orb-1 {
    width: 150px;
    height: 150px;
    background: var(--pastel-pink);
    top: -50px;
    left: -50px;
    transform: translateZ(-50px);
    animation: moveOrb1 8s infinite alternate;
}

.orb-2 {
    width: 120px;
    height: 120px;
    background: var(--pastel-blue);
    bottom: -30px;
    right: -30px;
    transform: translateZ(-30px);
    animation: moveOrb2 10s infinite alternate;
}

.resize-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    cursor: nwse-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.resize-handle:after {
    content: '';
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: rotate(45deg);
    border-radius: 2px;
    opacity: 0.9;
}

.finder-content {
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

.finder-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.finder-sidebar {
    width: 200px;
    background: rgba(230, 232, 238, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#projectsWindow {
    width: min(calc(1200px + 300px * (var(--image-scale) - 1)), calc(100vw - 80px));
    height: min(calc(680px + 150px * (var(--image-scale) - 1)), calc(100vh - 120px));
    min-width: 800px;
    min-height: 500px;
}

#projectsWindow.minimized {
    width: 15vw !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

#projectList {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-item {
    flex: 1;
    padding: 0 14px;
    font-size: 14px;
    color: #4a5568;
    cursor: default;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.project-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 8px;
}

.chevron-right {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    transition: opacity 0.2s;
    flex-shrink: 0;
    color: currentColor;
}

.project-item:hover .chevron-right {
    opacity: 0.7;
}

.project-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.project-item.active {
    background: rgba(0, 0, 0, 0.06);
    color: #2d3748;
    font-weight: 600;
}

.project-item.active .chevron-right {
    opacity: 1;
    color: #1a202c;
}

.finder-main {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: calc(40px * var(--image-scale));
}

.project-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.project-gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: calc(450px * var(--image-scale));
    flex: 1;
    order: 2;
}

.project-gallery-image {
    height: calc(380px * var(--image-scale));
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.project-gallery-container {
    position: relative;
    min-height: calc(400px * var(--image-scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-gallery-container .project-gallery-image:nth-child(1),
.project-gallery-container .project-gallery-image:nth-child(2),
.project-gallery-container .project-gallery-image:nth-child(3) {
    opacity: 1;
}

.project-gallery-container .project-gallery-image:nth-child(1) {
    z-index: 2;
    transform: translate(calc(-50% - 130px * var(--image-scale)), -50%) scale(0.9);
}

.project-gallery-container .project-gallery-image:nth-child(2) {
    z-index: 3;
    transform: translate(-50%, -50%) scale(1);
}

.project-gallery-container .project-gallery-image:nth-child(3) {
    z-index: 2;
    transform: translate(calc(-50% + 130px * var(--image-scale)), -50%) scale(0.9);
}

.project-gallery-container .project-gallery-image:only-child {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    z-index: 2;
    position: absolute;
}

/* For 2-image galleries: side by side, same size */
.project-gallery-container .project-gallery-image:first-child:nth-last-child(2) {
    transform: translate(calc(-50% - 110px * var(--image-scale)), -50%) scale(1);
    opacity: 1;
    z-index: 2;
    position: absolute;
}

.project-gallery-container .project-gallery-image:first-child:nth-last-child(2)~.project-gallery-image {
    transform: translate(calc(-50% + 110px * var(--image-scale)), -50%) scale(1);
    opacity: 1;
    z-index: 2;
    position: absolute;
}

.project-info {
    flex: 0 0 350px;
    text-align: left;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 28px;
    min-height: 280px;
    max-height: 280px;
}

.project-title {
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    color: #1a202c;
    font-weight: 600;
}

.project-desc {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    text-align: justify;
}

/* Actions / CTA under project text */
.project-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 400;
    font-size: 0.95rem;
    color: #1a202c;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    text-decoration: none;
}

/* Narrower buttons when there are 2 */
.project-actions.dual .project-cta {
    padding: 10px 14px;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.project-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.45);
}

.project-cta:active {
    transform: translateY(0);
}

/* Contact Form VStack Styles */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    text-align: center;
}

.contact-desc {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.contact-form-vstack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.contact-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-or {
    font-size: 0.85rem;
    color: #718096;
}

.contact-linkedin {
    text-decoration: none;
}

.frosted-input,
.frosted-textarea {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1a202c;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 600px;
}

.frosted-textarea {
    resize: none;
    height: 280px;
}

.frosted-input::placeholder,
.frosted-textarea::placeholder {
    color: #718096;
    opacity: 0.75;
}

.frosted-input:focus,
.frosted-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 14px;
    font-weight: 400;
    font-size: 0.95rem;
    color: #1a202c;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    align-self: center;
}

.contact-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.45);
}

.contact-cta:active {
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes moveOrb1 {
    from {
        transform: translate(0, 0) translateZ(-50px);
    }

    to {
        transform: translate(30px, 40px) translateZ(-50px);
    }
}

@keyframes moveOrb2 {
    from {
        transform: translate(0, 0) translateZ(-30px);
    }

    to {
        transform: translate(-40px, -20px) translateZ(-30px);
    }
}

/* Responsive Image Scaling for Different Screen Sizes */
@media (min-width: 1920px) {
    :root {
        --image-scale: 1.3;
        /* 27" and larger monitors */
    }
}

@media (min-width: 2560px) {
    :root {
        --image-scale: 1.6;
        /* 4K displays */
    }
}

@media (min-width: 3840px) {
    :root {
        --image-scale: 2.0;
        /* Large 4K/5K displays */
    }
}

@media (max-width: 1440px) {
    :root {
        --image-scale: 0.9;
        /* Smaller laptops */
    }
}

@media (max-width: 1280px) {
    :root {
        --image-scale: 0.8;
        /* Small screens */
    }
}