/* =========================================
   About 區塊樣式（精簡版）
   ========================================= */

/* 變數 */
#about {
    --panel-bg: rgba(255, 255, 255, .08);
    --panel-bd: rgba(0, 217, 255, .35);
    --panel-r: 16px;
    --panel-pad: 28px;

    --card-bg: rgba(255, 255, 255, .05);
    --card-bd: rgba(0, 217, 255, .25);
    --card-r: 12px;

    --glow-cyan: 0 0 18px rgba(0, 217, 255, .45);
    --gap-lg: 60px;
    --gap-md: 30px;
    --gap-sm: 15px;
}

/* 版面 */
#about-contents {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: var(--gap-lg);
    max-width: 1400px;
    margin: 80px auto 0;
    width: 100%;
}

.about-left-section,
.about-right-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

/* 共用：面板、卡片、標題列 */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-bd);
    border-radius: var(--panel-r);
    padding: var(--panel-pad);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28), var(--glow-cyan);
    transition: border-color .25s, box-shadow .25s, transform .25s;
    margin-top: 18px;
}

.panel:hover {
    transform: translateY(-2px);
    border-color: var(--c-cyan);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .35), 0 0 28px rgba(0, 217, 255, .35);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-bd);
    border-radius: var(--card-r);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--c-cyan);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 22px rgba(0, 217, 255, .28);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.section-header .header-line {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-blue));
    box-shadow: 0 0 10px rgba(0, 217, 255, .6);
}

.section-header .header-label {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* 左欄：頭像 */
.avatar-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    margin: 0 auto 50px;
}

.avatar-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: visible;
}

.about-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    border: 3px solid var(--c-cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, .6), 0 0 80px rgba(100, 147, 250, .4), inset 0 0 30px rgba(0, 217, 255, .2);
    transition: transform .5s, box-shadow .5s;
}

.about-avatar:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(0, 217, 255, .8), 0 0 100px rgba(100, 147, 250, .5), inset 0 0 40px rgba(0, 217, 255, .3);
}

/* 光環 */
.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--c-cyan);
    opacity: .5;
}

.tech-ring-1 {
    inset: -15px;
    animation: tech-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 217, 255, .8);
}

.tech-ring-2 {
    inset: -30px;
    animation: tech-pulse 3s ease-in-out infinite .5s;
    box-shadow: 0 0 25px rgba(100, 147, 250, .6);
}

.tech-ring-3 {
    inset: -45px;
    animation: tech-pulse 3s ease-in-out infinite 1s;
    box-shadow: 0 0 20px rgba(0, 217, 255, .4);
}

@keyframes tech-pulse {

    0%,
    100% {
        opacity: .5;
        transform: scale(1)
    }

    50% {
        opacity: .8;
        transform: scale(1.05)
    }
}

/* 左欄：專長卡 */
.expertise-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-sm);
}

.expertise-card.card {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
    padding: 20px;
    overflow: hidden;
}

.expertise-card.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, .15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}

.expertise-card.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-cyan), var(--c-blue));
    border-radius: 10px;
    font-size: 24px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 217, 255, .5);
    transition: transform .3s, box-shadow .3s;
}

.expertise-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(0, 217, 255, .7);
}

.card-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 217, 255, .3);
}

.card-text p {
    font-size: 13px;
    color: rgba(230, 241, 255, .8);
    margin: 0;
}

.card-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
    opacity: 0;
    transition: opacity .3s;
    box-shadow: 0 0 10px var(--c-cyan);
}

.expertise-card:hover .card-glow {
    opacity: 1;
}

/* 左欄：聯絡（無外框） */
.contact-section {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    backdrop-filter: none !important;
}

.contact-section:hover {
    transform: none !important;
    box-shadow: none !important;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(0, 217, 255, .5);
    border-radius: 10px;
    color: rgba(230, 241, 255, .95);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform .3s, box-shadow .3s, border-color .3s, color .3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-cyan), var(--c-blue));
    opacity: 0;
    transition: opacity .3s;
}

.contact-btn i,
.contact-btn span {
    position: relative;
    z-index: 1;
}

.contact-btn i {
    font-size: 18px;
}

.contact-btn:hover {
    border-color: var(--c-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 217, 255, .5);
    color: var(--white);
}

.contact-btn:hover::before {
    opacity: .3;
}

/* 右欄：簡介 */
.intro-box {
    position: relative;
    overflow: hidden;
}

.intro-box::before {
    display: none !important;
    animation: none !important;
}

.intro-content {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(230, 241, 255, .95);
    text-align: left;
}

.intro-content[lang="en"] {
    text-align: justify;
    hyphens: auto;
}

.intro-content p {
    margin: 0 auto 1rem;
    text-align: justify;
    word-break: break-word;
    line-break: loose;
    overflow-wrap: break-word;
}

.intro-content p:last-child {
    margin-bottom: 0;
}

/* 右欄：技術（標籤共用色維持） */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tech-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-blue);
    margin: 0;
    text-shadow: 0 0 10px rgba(100, 147, 250, .5);
}

.category-title i {
    font-size: 18px;
    filter: drop-shadow(0 0 5px var(--c-blue));
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(230, 241, 255, .95);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(0, 217, 255, .5);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    transition: transform .3s, box-shadow .3s, background .3s, border-color .3s;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, .3), transparent);
    transition: left .5s;
}

.tech-item:hover {
    background: rgba(0, 217, 255, .2);
    border-color: var(--c-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 217, 255, .4);
}

.tech-item:hover::before {
    left: 100%;
}

/* 標籤一致色 */
.work-type,
.tech-item {
    border-color: rgba(0, 217, 255, .35) !important;
    background: rgba(0, 217, 255, .12) !important;
}

/* 左欄：證照 */
.cert-section .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.cert-item.card {
    padding: 16px;
}

.cert-thumb {
    display: none !important;
}

.cert-info {
    padding: 0;
}

.cert-info h4 {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 600;
}

.cert-info .issuer,
.cert-info .date {
    font-size: 12px;
    color: rgba(230, 241, 255, .7);
    margin-right: 8px;
    display: inline-block;
}

.cert-info .issuer::before {
    content: '📌 ';
}

.cert-info .date::before {
    content: '📅 ';
}

/* 右欄：個人作品 */
.personal-works .work-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.work-item.card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    color: #e6f1ff;
    text-decoration: none;
}

.work-type {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--c-cyan);
}

.type-paper {
    background: rgba(147, 197, 253, .15) !important;
    border-color: rgba(147, 197, 253, .35) !important;
    color: #93c5fd;
}

.type-project {
    background: rgba(16, 185, 129, .15) !important;
    border-color: rgba(16, 185, 129, .35) !important;
    color: #34d399;
}

.work-main h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #fff;
}

.work-meta {
    font-size: 12px;
    color: rgba(230, 241, 255, .7);
    margin-bottom: 4px;
}

.work-summary {
    margin: 0;
    font-size: 12px;
    color: rgba(230, 241, 255, .78);
}

.work-item i {
    color: var(--c-cyan);
}

/* RWD */
@media (min-width:1200px) {
    .avatar-container {
        position: sticky;
        top: 110px;
        z-index: 2;
    }
}

@media (max-width:1200px) {
    #about-contents {
        grid-template-columns: 420px 1fr;
        gap: 50px;
    }

    .intro-content {
        font-size: 15px;
    }
}

@media (max-width:992px) {
    #about {
        padding: 100px 5% 80px;
    }

    #about-contents {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 60px;
    }

    .about-left-section {
        max-width: 500px;
        margin: 0 auto;
    }

    .avatar-container {
        max-width: 320px;
    }

    .expertise-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:768px) {
    #about {
        padding: 80px 5% 60px;
        --panel-pad: 22px;
    }

    #about-contents {
        gap: 40px;
        margin-top: 50px;
    }

    .avatar-container {
        max-width: 280px;
    }

    .tech-ring-1 {
        inset: -10px
    }

    .tech-ring-2 {
        inset: -20px
    }

    .tech-ring-3 {
        inset: -30px
    }

    .expertise-cards {
        gap: 14px
    }

    .expertise-card.card {
        padding: 15px
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 20px
    }

    .card-text h3 {
        font-size: 15px
    }

    .card-text p {
        font-size: 12px
    }

    .intro-content {
        font-size: 14px;
        line-height: 1.8
    }

    .tech-item {
        padding: 6px 14px;
        font-size: 13px
    }

    .contact-btn {
        padding: 10px 20px;
        font-size: 13px
    }

    .cert-section .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px
    }

    .cert-item.card {
        padding: 14px
    }
}

@media (max-width:425px) {
    #about {
        padding: 60px 5% 50px
    }

    .avatar-container {
        max-width: 240px
    }

    .expertise-cards {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .contact-btn {
        justify-content: center;
        width: 100%
    }

    .cert-section .cert-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .cert-item.card {
        padding: 12px
    }

    .cert-info h4 {
        font-size: 13px
    }
}


