/* =============================
    About Me — JS-triggered Fade
   ============================= */

/* 1) セクション全体（初期状態は静止：GSAPが入場時にフェード） */
.about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0f0f10;
    color: #e6e6e6;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    overflow: hidden;

    /* 初期値（JSが to({opacity:1,y:0}) にする） */
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    will-change: transform, opacity, filter;

    content-visibility: auto;   /* 対応ブラウザで初回負荷↓ */
    contain: layout paint;      /* 不要な再計算の波及を抑制 */
}

/* 2) 子要素（段階的に出すための初期値だけ） */
.about-content { position: relative; z-index: 1; }

.about-name,
.about-role,
.about-intro,
.about-links,
.about-contact {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    will-change: transform, opacity;
}

/* 3) 背景グロー（静的。JSでは動かさない） */
.about-section::after {
    content: "";
    position: absolute;
    inset: -10% -10%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(32% 22% at 50% 54%, rgba(200, 210, 255, 0.10), transparent 60%),
        radial-gradient(60% 35% at 50% 70%, rgba(120, 140, 255, 0.06), transparent 70%);
    opacity: 0.12;             /* ほんのり光らせる（アニメしない） */
    transform: none;
}

/* 4) リンク（X／LinkedIn）を常に横並びに固定 */
.about-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;          /* 折り返し禁止 */
}
.about-links a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.about-links img,
.about-links svg {
    display: block;
    width: 20px;
    height: 20px;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* connect ボタン */
.about-contact {
    margin-top: 1.8rem;
    text-align: center;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    animation: itemUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

.connect-btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: rgba(240, 240, 240, 0.9);
    border: 1px solid rgba(229, 191, 186, 0.25);
    border-radius: 2rem;
    background: transparent;
    text-decoration: none;
    transition:
        color 0.35s ease,
        border-color 0.35s ease,
        background-color 0.35s ease,
        transform 0.35s ease;
}
.connect-btn:hover {
    color: #fff;
    border-color: rgba(210, 180, 255, 0.6);
    background-color: rgba(145, 162, 238, 0.08);
    transform: translateY(-2px);
}

/* 5) モーション軽減（ユーザー設定尊重） */
@media (prefers-reduced-motion: reduce) {
    .about-section,
    .about-name,
    .about-role,
    .about-intro,
    .about-links,
    .about-contact,
    .about-section::after {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
