/**
 * MotionMind Child — About Page UI Profile Design
 * Advanced profile card for Technical Lead with cybernetic/holographic accents,
 * dual-mode portrait switcher, glassmorphism, and responsive typography.
 */

/* 1. Team Grid & Card Container */
.about-team-section {
    position: relative;
}

.about-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.profile-card {
    position: relative;
    border: 1px solid rgba(124, 108, 255, 0.22);
    border-radius: 24px;
    background: radial-gradient(circle at 80% 20%, rgba(124, 108, 255, 0.08), transparent 45%), #101020;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 108, 255, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 35px rgba(99, 102, 241, 0.18);
}

.profile-card-featured {
    border-color: rgba(69, 202, 255, 0.32);
    background: radial-gradient(circle at 75% 15%, rgba(69, 202, 255, 0.12), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(124, 108, 255, 0.10), transparent 50%),
                #0e0e1c;
}

/* 2. Portrait Showcase & Dual-Mode Switcher */
.profile-portrait-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.6;
    min-height: 380px;
    background: #080814;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portrait-view {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
    transform: scale(1.03);
}

.portrait-view.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Mode 1: Cyber AI Image (Nano Banana) */
.portrait-cyber img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(1.04) contrast(1.05);
}

/* Mode 2: Studio Cutout with Matrix Backdrop */
.portrait-cutout {
    background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.35), transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(69, 202, 255, 0.2), transparent 50%),
                #080816;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.portrait-cutout-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.portrait-cutout-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 108, 255, 0.4), rgba(69, 202, 255, 0.15) 60%, transparent 70%);
    filter: blur(28px);
    top: 15%;
    pointer-events: none;
}

.portrait-cutout-halo {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(69, 202, 255, 0.35);
    top: 10%;
    animation: rotate-halo 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate-halo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portrait-cutout-img {
    position: relative;
    z-index: 2;
    height: 94%;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(124, 108, 255, 0.3));
}

/* Floating UI Badges on Portrait */
.portrait-floating-chips {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.chip-tech-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(7, 7, 17, 0.85);
    border: 1px solid rgba(69, 202, 255, 0.4);
    backdrop-filter: blur(12px);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #b2e4ff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.chip-tech-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #45caff;
    box-shadow: 0 0 8px #45caff;
}

/* Mode Switcher Pill */
.profile-mode-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background: rgba(10, 10, 22, 0.82);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    display: flex;
    gap: 3px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mode-btn {
    border: none;
    background: transparent;
    color: #9d9db0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mode-btn:hover {
    color: #ffffff;
}

.mode-btn.is-active {
    background: linear-gradient(135deg, #6366f1, #45caff);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* 3. Status Pill & Index */
.profile-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-index {
    font: 600 0.78rem var(--display);
    color: #8178d6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #86efac;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* 4. Profile Body Content */
.profile-body {
    padding: 28px 32px 34px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.profile-role-tag {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #45caff;
    margin-bottom: 6px;
    font-weight: 600;
}

.profile-card h3 {
    font: 600 clamp(1.8rem, 2.8vw, 2.3rem)/1.1 var(--display);
    letter-spacing: -0.04em;
    margin: 0 0 4px;
    color: #ffffff;
}

.profile-role-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #c4c4d6;
    margin-bottom: 14px;
}

.profile-bio {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* 5. Quick Stats Strip */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 16px;
    background: rgba(14, 14, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin-bottom: 22px;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.stat-value {
    font: 700 1.15rem var(--display);
    color: #ffffff;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #ffffff, #a5c2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* 6. Skills & Tech Stack Chips */
.profile-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.profile-skills-list li {
    border: 1px solid rgba(124, 108, 255, 0.28);
    background: rgba(124, 108, 255, 0.07);
    border-radius: 999px;
    padding: 6px 13px;
    color: #d8d6f5;
    font-size: 0.76rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.profile-skills-list li:hover {
    border-color: rgba(69, 202, 255, 0.5);
    background: rgba(69, 202, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

/* 7. Action Buttons */
.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-actions .button {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 10px;
}

.profile-actions .button-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d0d0e0;
}

.profile-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .about-team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .profile-portrait-wrap {
        aspect-ratio: 16 / 11;
        min-height: 320px;
    }
    .profile-body {
        padding: 24px 22px 28px;
    }
}

@media (max-width: 550px) {
    .profile-portrait-wrap {
        min-height: 280px;
    }
    .profile-actions {
        flex-direction: column;
    }
    .profile-mode-switcher {
        top: 12px;
        right: 12px;
    }
    .mode-btn {
        font-size: 0.64rem;
        padding: 4px 8px;
    }
}

/* 8. Lina Portrait Creative Emblem */
.lina-portrait-emblem {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lina-initials {
    font: 700 clamp(4.5rem, 9vw, 7rem)/1 var(--display);
    background: linear-gradient(135deg, #45caff, #818cf8, #a6ff6f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 35px rgba(69, 202, 255, 0.4));
    letter-spacing: -0.05em;
}

.lina-tag {
    font: 600 0.76rem var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b2e4ff;
    background: rgba(14, 20, 36, 0.8);
    border: 1px solid rgba(69, 202, 255, 0.35);
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

/* 9. Profile Photo Image */
.portrait-photo-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(1.03) contrast(1.05);
    transition: transform 0.4s ease;
}

.profile-card:hover .portrait-photo-img {
    transform: scale(1.03);
}
