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

.password-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 32px;
    margin-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.password-section.hidden {
    display: none;
}

.password-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

.password-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
}

.password-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.password-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.password-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.password-input.error {
    border-color: #ff3b30;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.password-submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 500;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.password-submit:hover {
    opacity: 0.8;
}

.password-submit:active {
    transform: scale(0.98);
}

.password-error {
    font-size: 14px;
    color: #ff3b30;
    min-height: 20px;
}

.private-projects-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.private-projects-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 16px 0 24px 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    /* background-color: hsla(180, 1%, 97%, 1);
    background-image:
        radial-gradient(at 81% 65%, hsla(218, 98%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 95% 99%, hsla(39, 95%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 48% 26%, hsla(271, 77%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 75% 26%, hsla(197, 87%, 94%, 1) 0px, transparent 50%); */
    background-size: 500% 500%;
    /* animation: gradient 9s ease infinite; */
    background-color: #ffffff;
    min-height: 100vh;
    color: #1a1a1a;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.columns {
    display: flex;
    flex: 1;
    gap: 60px;
    height: calc(100vh - 140px);
    justify-content: space-evenly;
}

.left-column {
    flex: 0 0 40%;
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
}

.left-column::-webkit-scrollbar {
    display: none;
}

.right-column {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    padding-right: 20px;
    flex-direction: column;
}

.right-column::-webkit-scrollbar {
    width: 6px;
}

.right-column::-webkit-scrollbar-track {
    background: transparent;
}

.right-column::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    position: relative;
}

.company-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
    pointer-events: none;
}

.inline-video-preview {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 45vw;
    max-height: calc(100vh - 120px);
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inline-video-preview video,
.inline-video-preview .hover-image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-item:hover .inline-video-preview {
    opacity: 1;
}

.company-logo {
    height: 16px;
    width: auto;
}

.company-name {
    opacity: 1;
    padding-left: 8px;
    font-size: 14px;
    color: #666;
}

.nav-button-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.nav-button-block:hover {
    opacity: 0.6;
}

.nav-button {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.nav-button-year {
    font-size: 14px;
    color: #999;
}

.video-preview-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-preview-wrapper.active {
    display: flex;
}

.popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.preview-frame {
    position: relative;
    z-index: 1001;
    max-width: 55vw;
    max-height: 81vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-frame .video,
.preview-frame .modal-image {
    object-fit: contain;
    overflow: hidden;
    max-height: 81vh;
    max-width: 55vw;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.preview-frame .main-media {
    display: block;
    transition: opacity 0.3s ease;
}

.preview-frame .media-hidden {
    opacity: 0;
}

.modal-content {
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    max-width: 90vw;
    max-height: 85vh;
    transition: all 0.3s ease;
}

.thumbnails-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    padding: 4px;
    transition: all 0.3s ease;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.thumbnail img,
.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-meta-value {
    font-size: 15px;
    color: #1a1a1a;
}

.modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.close-preview-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    color: #333;
}

.close-preview-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.intro-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro-text {
    max-width: 400px;
}

.bio {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    color: #1a1a1a;
}

.company-link {
    color: #0066cc;
    text-decoration: none;
    transition: opacity 0.2s ease;
    vertical-align: middle;
}

.company-icon {
    height: 21px;
}

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

.social-links {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.social-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

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

.last-updated {
    position: fixed;
    bottom: 40px;
    left: 40px;
    font-size: 12px;
    color: #999;
}

@media (max-width: 1024px) {
    .columns {
        flex-direction: column-reverse;
        height: auto;
        gap: 40px;
    }

    .left-column,
    .right-column {
        flex: none;
        width: 100%;
        overflow: visible;
        padding-right: 0;
        padding-top: 0;
    }

    body {
        overflow-y: auto;
    }

    html, body {
        height: auto;
        overflow: auto;
    }

    .container {
        height: auto;
    }

    .left-column {
        overflow: visible;
    }

    .right-column {
        padding-top: 0;
    }

    .last-updated {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 40px;
    }
    .inline-video-preview {
        display: none;
    }

    /* Modal responsive layout */
    .modal-content {
        flex-direction: column;
        align-items: center;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }

    .thumbnails-sidebar {
        flex-direction: row;
        max-height: none;
        max-width: 90vw;
        order: -1;
        margin-bottom: 16px;
    }

    .thumbnail {
        width: 60px;
        height: 45px;
    }

    .preview-frame {
        max-width: 90vw;
        max-height: 50vh;
    }

    .preview-frame .video,
    .preview-frame .modal-image {
        max-width: 90vw;
        max-height: 50vh;
    }

    .modal-info {
        flex: none;
        width: 100%;
        max-width: 90vw;
        padding: 20px 0 0 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 24px;
    }

    .bio {
        font-size: 20px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}
