/* ==========================================
   AMELIA KIM PORTFOLIO - MINIMALIST DESIGN
   ========================================== */

@font-face {
    font-family: 'Cylburn';
    src: url('../font/Cylburn.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Casta Thin';
    src: url('../font/Casta-Thin.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}



:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #777;
    --text-dark: #f0f0f0;
    --text-light: #bbb;
    --text-lighter: #999;
    --bg-light: #000000;
    --bg-white: #000000;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: none;
    --shadow-lg: none;
    --sidebar-width: 220px;
    --mobile-bar-height: 64px;
}

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

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    letter-spacing: 0;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

/* ==========================================
   APP CONTAINER & SIDEBAR
   ========================================== */

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    flex-wrap: wrap;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-color);
    z-index: 990;
    transition: transform 0.3s ease;
}

/* ==========================================
   SIDEBAR HEADER
   ========================================== */

.sidebar-header {
    padding: 2.5rem 1.8rem 1.5rem;
    text-align: left;
    border-bottom: none;
}

.artist-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.artist-name-link {
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   SIDEBAR NAVIGATION
   ========================================== */

.sidebar-nav {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.nav-section {
    padding: 0 2.8rem;
    margin-bottom: 3.5rem;
}

.nav-section-bottom {
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: none;
    color: var(--text-lighter);
    margin-bottom: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.portfolio-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}
.portfolio-link:hover {
    color: var(--accent-color);
}

.works-list {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: block;
    padding: 0.35rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: color 0.2s ease;
}

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

.nav-label {
    font-family: inherit;
}

.nav-item:hover {
    color: var(--accent-color);
}

.nav-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-arrow {
    display: none;
}

/* ==========================================
   SIDEBAR FOOTER
   ========================================== */

.sidebar-footer {
    padding: 1.5rem 1.8rem;
    border-top: none;
    font-size: 0.7rem;
    color: var(--text-lighter);
}

.footer-links {
    margin-bottom: 1rem;
    text-align: center;
}

.lang-toggle {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.lang-toggle:hover {
    color: var(--accent-color);
}

.sep {
    color: var(--border-color);
    margin: 0 0.5rem;
}

.footer-bottom {
    text-align: center;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle:focus { outline: none; }

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    display: block;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================
   MOBILE TOP BAR & OVERLAY (tablet/mobile)
   ========================================== */

.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-bar-height);
    padding: 0.7rem 1.2rem;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1500;
}

.mobile-overlay-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
    text-transform: lowercase;
    text-decoration: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1350;
    background: rgba(255, 255, 255, 0.97);
}

.mobile-overlay.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-overlay-menu {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
}

.overlay-link {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-dark);
    text-transform: none;
    line-height: 1.3;
    text-align: center;
    padding: 0.35rem 0.75rem;
    width: auto;
}

.overlay-link:hover {
    color: var(--accent-color);
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-white);
    position: relative;
}

/* ==========================================
   WORK SECTIONS
   ========================================== */

.work-section {
    width: 100%;
    padding: 0;
    display: none;
    height: auto;
    border-bottom: 1px solid var(--border-color);
}

.work-section.active {
    display: block;
}

/* ==========================================
   VERTICAL IMAGE STACK (replaces carousel)
   ========================================== */

.carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: none;
    transform: none !important;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    display: none;
}

.carousel-dots {
    display: none;
}

/* the active class is no longer needed for visibility */

.work-display {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0;
    padding: 3rem 6rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.work-image {
    width: 100%;
    min-height: 300px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.contain-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000000;
}

.dimmed {
    filter: brightness(0.85);
}

.high-contrast {
    filter: contrast(1.3);
}

.work-figure {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 0 auto;
}

.work-figure .work-img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    object-fit: contain;
}

.work-figure .work-meta {
    padding: 0.6rem 0 0;
    margin-bottom: 0;
}

.work-subtitle {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    margin: -1rem 0 0.3rem;
    width: 100%;
}

.work-link {
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.work-link:hover {
    color: var(--accent-color);
}

.work-description-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
    width: 100%;
    font-style: italic;
}

.work-credit {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: var(--text-lighter);
    font-style: italic;
    margin: 0;
    padding: 0.2rem 0 0.6rem;
}

.work-figure-row {
    display: flex;
    gap: 2rem;
    width: 100%;
    align-items: flex-start;
}

.work-figure-row .work-figure {
    flex: 1;
    margin: 0;
}

.work-img-crop {
    overflow: hidden;
    max-width: 100%;
}

.work-img-crop .work-img {
    margin-top: -5%;
    margin-bottom: -5%;
}

.work-image-secondary {
    min-height: 320px;
    margin-top: 1.5rem;
}

.work-secondary-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.work-secondary-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.work-secondary-text h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.work-image-secondary {
    flex: 0 0 48%;
    transform: translateX(-6%);
    border-radius: 8px;
}

.work-image-tertiary {
    min-height: 320px;
    margin-top: 0.6rem;
    background-color: #ffffff;
    border-radius: 8px;
}

.work-video-wrap {
    width: 120%;
    max-width: 120%;
    margin-left: -10%;
    aspect-ratio: 16 / 9;
    align-self: center;
    border-radius: 0;
    overflow: hidden;
    background: #000;
    box-sizing: border-box;
}

.work-video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    border-radius: 0;
}

.work-inline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.work-inline-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    border-radius: 8px;
}
.work-info {
    width: 100%;
    padding: 0;
}

.work-image {
    flex: 1.3;
    min-height: 75vh;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 8px;
}

.work-info {
    width: 100%;
    padding: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
}

.work-info h2,
.work-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0;
}

.work-meta {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-bottom: 0.3rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.work-description {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.work-details {
    font-size: 0.8rem;
    color: var(--text-lighter);
    line-height: 1.5;
    letter-spacing: 0;
}

/* ==========================================
   CONTENT SECTIONS (About, Contact)
   ========================================== */

.content-section {
    width: 100%;
    padding: 4.5rem 4rem;
    display: none;
    min-height: 100vh;
}

.content-section.active {
    display: block;
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-container h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--text-dark);
}


/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 900px;
}

.about-text {
    flex: 1;
}

.about-photo {
    flex: 0 0 280px;
}

.artist-photo {
    width: 100%;
    display: block;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.about-text h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    padding-right: 1rem;
}

.contact-form h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.info-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.info-item a:hover {
    opacity: 0.7;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    background: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    border-radius: 0;
}

.btn:hover {
    background: var(--accent-color);
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

#form-message {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    display: none;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    display: block;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    display: block;
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-white);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .work-video-wrap {
        max-width: 100%;
    }


    :root { --sidebar-width: 0; }

    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .sidebar {
        display: none;
    }

    .mobile-topbar {
        display: flex;
        background: #000;
        border-bottom: none;
    }

    .mobile-overlay-name {
        color: #fff;
    }

    .mobile-menu-toggle span {
        background: #fff;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .mobile-overlay {
        display: block;
        background: rgba(0, 0, 0, 0.97);
    }

    .overlay-link {
        color: #fff;
    }

    .overlay-link:hover {
        color: #999;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        padding-top: calc(var(--mobile-bar-height) + 1.5rem);
    }

    .portfolio-index {
        padding: 2.5rem 1.25rem;
    }

    .portfolio-index .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        padding-right: 0;
        gap: 0.75rem;
    }

    .work-display {
        padding: 2rem 1.5rem;
    }

    .work-image {
        width: 100%;
        min-height: 60vh;
        border: none;
        box-shadow: none;
    }

    .work-inline,
    .work-inline-img {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

.work-image-secondary {
    min-height: 300px;
    margin-top: 0.75rem;
    border-radius: 8px;
}

.work-image-tertiary {
    min-height: 300px;
    margin-top: 0.5rem;
    border-radius: 8px;
}

    .work-inline {
        gap: 0.6rem;
        margin-top: 0.75rem;
    }

    .work-secondary-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    .work-image-secondary {
        flex: none;
        width: 100%;
        transform: translateX(0);
    }

    .work-secondary-text {
        width: 100%;
        text-align: left;
    }

    .work-info {
        width: 100%;
        padding: 0;
    }

    .work-info h2,
    .work-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 2.5rem 1.25rem;
        min-height: auto;
    }

    .section-container h1 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-photo {
        flex: none;
        width: 100%;
        max-width: 280px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .work-video-wrap {
        max-width: 100%;
    }

    .overlay-link {
        font-size: 0.95rem;
        letter-spacing: 0.07em;
    }

    .mobile-overlay-name {
        font-size: 1.7rem;
        letter-spacing: 0.1em;
    }

    .portfolio-index {
        padding: 2rem 1rem;
    }

    .work-display {
        padding: 1.25rem 1rem 2.5rem;
        gap: 1.2rem;
    }

    .work-image {
        min-height: 55vh;
    }

    .work-info h2,
    .work-title {
        font-size: 1.7rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .section-container h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 600px) {
    .overlay-link {
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }

    .mobile-overlay-name {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }

    .work-display {
        padding: 1rem 0.9rem 2rem;
    }

    .work-image {
        min-height: 50vh;
    }

    .work-info h2,
    .work-title {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 1.8rem 0.9rem;
    }

    .section-container h1 {
        font-size: 1.6rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 16px;
    }

    .btn {
        padding: 0.7rem 1.15rem;
        font-size: 0.85rem;
    }
}
