/* UI/UX Pro Max - Modern Asian Minimal Portfolio System */

:root {
    --paper-white: #F5F6F2;
    --carbon-black: #1A1A1A;
    --muted-gray: #8B8B8B;
    --divider: rgba(26, 26, 26, 0.1);
    --accent-red: #E63946;
    
    --font-serif: "Noto Serif SC", serif;
    --font-sans: "Noto Sans SC", sans-serif;
    --font-english: "Playfair Display", serif;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--paper-white);
    color: var(--carbon-black);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.main-header {
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--divider);
}

.logo {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: var(--carbon-black);
}

.logo svg {
    color: var(--carbon-black);
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 40px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted-gray);
    letter-spacing: 0.1em;
}

.menu-trigger {
    color: var(--carbon-black);
    cursor: pointer;
}

/* Content Wrapper */
.content-wrapper {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-bottom: 200px;
}

.profession-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--muted-gray);
    margin-bottom: 20px;
}

.main-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1.1;
    letter-spacing: 0.05em;
    font-weight: 900;
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    width: 65%;
    margin: -60px 0 0 auto;
    position: relative;
    z-index: 1;
}

.cinematic-frame {
    aspect-ratio: 2.35 / 1;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

.frame-label {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.9);
    transition: transform 2s var(--transition-smooth);
}

/* Capability Section */
.capability-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 100px 0;
    border-bottom: 1px solid var(--divider);
}

.cap-card {
    background: rgba(26, 26, 26, 0.03);
    padding: 40px;
    border-radius: 4px;
    transition: background 0.4s var(--transition-smooth), transform 0.4s var(--transition-smooth);
}

.cap-card:hover {
    background: rgba(26, 26, 26, 0.05);
    transform: translateY(-5px);
}

.cap-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 24px;
}

.cap-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 16px;
}

.cap-card p {
    font-size: 14px;
    color: var(--muted-gray);
    line-height: 1.6;
}

/* Works Section */
.works-section {
    padding-bottom: 120px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    margin-bottom: 60px;
    color: var(--muted-gray);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 60px;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-card.large {
    grid-column: 1 / 8;
}

.work-card.medium {
    grid-column: 8 / 13;
}

.work-card.offset-right {
    padding-top: 120px;
}

.image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    background-color: #eee;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition-smooth);
}

.image-box:hover img {
    transform: scale(1.05);
}

.timecode {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: monospace;
    backdrop-filter: blur(4px);
}

.card-info {
    font-size: 12px;
    display: flex;
    gap: 10px;
    font-weight: 700;
}

.card-no { color: var(--muted-gray); }

/* Roles Section & Tech Projects */
.roles-section {
    padding: 100px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 120px;
    border-top: 1px solid var(--divider);
}

.role-title {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-tag {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    color: var(--muted-gray);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.role-desc {
    font-size: 13px;
    color: var(--muted-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.role-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    opacity: 0.8;
    transition: transform 1s var(--transition-smooth), opacity 0.5s;
}

.role-item:hover .placeholder-img {
    transform: scale(1.05);
    opacity: 1;
}

.tech-projects {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s var(--transition-smooth);
}

.tech-item:hover {
    background: rgba(26, 26, 26, 0.03);
}

.tech-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--divider);
    flex-shrink: 0;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-logo svg {
    width: 20px;
    height: 20px;
    color: var(--muted-gray);
}

.tech-info {
    display: flex;
    flex-direction: column;
}

.tech-name {
    font-size: 14px;
    font-weight: 700;
}

.tech-type {
    font-size: 10px;
    color: var(--muted-gray);
    letter-spacing: 0.1em;
}

/* Generic QR Trigger Style */
.qr-trigger {
    cursor: pointer;
}

.qr-trigger .qr-bubble {
    bottom: calc(100% + 10px);
}

/* Footer */
.main-footer {
    padding: 120px 0 60px;
}

.footer-cta {
    margin-bottom: 100px;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 42px;
    margin-bottom: 24px;
}

.cta-email {
    font-size: 18px;
    color: var(--muted-gray);
    text-decoration: none;
    border-bottom: 1px solid var(--muted-gray);
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.cta-email:hover {
    color: var(--carbon-black);
    border-color: var(--carbon-black);
}

/* Contact Wrapper & WeChat Bubble */
.contact-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.wechat-trigger {
    position: relative;
    cursor: pointer;
    color: var(--muted-gray);
    transition: color 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
}

.wechat-trigger:hover {
    color: #2DC100; /* WeChat Green */
}

.douyin-link {
    color: var(--muted-gray);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.douyin-link:hover {
    color: var(--carbon-black);
    transform: scale(1.1);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.3s var(--transition-smooth);
}

.wechat-trigger:hover .social-icon-img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

.qr-bubble {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--transition-smooth);
    z-index: 100;
    width: 180px;
}

.qr-bubble.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.qr-bubble img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.bubble-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.page-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--muted-gray);
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .page-container {
        padding: 0 24px;
    }

    .main-header {
        height: 80px;
    }

    .main-nav span {
        display: none; /* Hide date on small tablets */
    }

    .hero-section {
        padding-bottom: 80px;
    }

    .hero-image-wrapper {
        width: 100%;
        margin-top: 40px;
    }
    
    .capability-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 60px 0;
    }

    .editorial-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .work-card.large, .work-card.medium {
        grid-column: auto !important;
    }
    
    .work-card.offset-right {
        padding-top: 0;
    }
    
    .main-title {
        font-size: clamp(36px, 10vw, 54px);
    }
    
    .roles-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }

    .cta-title {
        font-size: 32px;
    }

    .page-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0 20px;
    }

    .logo {
        letter-spacing: 0.1em;
    }

    .cap-card {
        padding: 30px 24px;
    }

    .main-title {
        font-size: 40px;
    }
}
