/* Explain: Glassmorphism card, neon controls, and portfolio overlay with a wrapped mobile border fit */
.designer-card {
    border: 8px solid rgba(255, 255, 255, 0.08);
    border-radius: 46px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), var(--shadow-deep);
    backdrop-filter: blur(24px) saturate(1.3);
}

.designer-card::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    border-radius: 38px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 40%, rgba(57, 255, 20, 0.08));
    mask: linear-gradient(#000, transparent 80%);
}

.cover-mesh {
    position: relative;
    height: clamp(140px, 22svh, 220px);
    overflow: hidden;
    border-radius: 38px 38px 30px 30px;
    background:
        radial-gradient(circle at 16% 20%, rgba(57, 255, 20, 0.95), transparent 22%),
        radial-gradient(circle at 68% 18%, rgba(255, 79, 216, 0.88), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(72, 102, 255, 0.72), transparent 30%),
        linear-gradient(135deg, #39204e, #12091f);
}

.mesh-orb {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    filter: blur(18px);
    mix-blend-mode: screen;
    opacity: 0.78;
    animation: meshFloat 9s ease-in-out infinite alternate;
}

.mesh-orb-one {
    top: -64px;
    left: -42px;
    background: #39FF14;
}

.mesh-orb-two {
    right: 10%;
    bottom: -82px;
    background: #FF4FD8;
    animation-delay: -2s;
}

.mesh-orb-three {
    top: 24px;
    right: -70px;
    background: #53A2FF;
    animation-delay: -4s;
}

.cover-noise {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.24;
}

.profile-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: -58px 22px 0;
}

.profile-image {
    width: 148px;
    aspect-ratio: 0.82;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-squircle);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(43, 25, 61, 0.32);
    transform: rotate(-2deg);
}

.availability-chip,
.action-pill,
.utility-action,
.gallery-close,
.gallery-nav {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(18px) saturate(1.35);
}

.availability-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.86);
    animation: pulseDot 1.7s ease-in-out infinite;
}

.identity-block {
    padding: 18px 22px 0;
    text-align: left;
}

.eyebrow {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.identity-block h1,
.gallery-topbar h2 {
    margin: 6px 0 0;
    color: var(--text-color);
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
}

.identity-block h1 {
    font-size: clamp(2.65rem, 11vw, 4.7rem);
    line-height: 0.88;
}

.role-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.86);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.intro-copy {
    max-width: 35rem;
    margin: 13px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.neon-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(57, 255, 20, 0.65);
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: var(--shadow-neon);
    color: #111111;
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.neon-portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    margin: 20px 22px 0;
    padding: 0 22px;
    border: 1px solid rgba(57, 255, 20, 0.65);
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: var(--shadow-neon);
    color: #111111;
    font-weight: 900;
    letter-spacing: -0.02em;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.neon-portfolio-btn:focus-visible,
.neon-icon-btn:focus-visible,
.action-pill:focus-visible,
.utility-action:focus-visible,
.gallery-close:focus-visible,
.gallery-nav:focus-visible {
    outline: 3px solid rgba(57, 255, 20, 0.72);
    outline-offset: 3px;
}

.action-pill-row {
    display: flex;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0 22px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.action-pill-row::-webkit-scrollbar,
.gallery-track::-webkit-scrollbar {
    display: none;
}

.action-pill,
.utility-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    border-radius: 999px;
    color: var(--text-color);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action-pill {
    flex: 0 0 auto;
    padding: 0 15px;
}

.micro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px 22px 22px;
}

.micro-stats div {
    min-height: 72px;
    padding: 13px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.16);
}

.micro-stats strong,
.micro-stats span {
    display: block;
}

.micro-stats strong {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1;
}

.micro-stats span {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.utility-bar {
    border-top: 1px solid var(--glass-border);
    background: rgba(43, 25, 61, 0.75);
    backdrop-filter: blur(24px) saturate(1.35);
    border-radius: 0 0 38px 38px;
}

.utility-action {
    width: 100%;
    min-height: 54px;
    padding: 0 10px;
}

.portfolio-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 15% 12%, rgba(57, 255, 20, 0.18), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(255, 79, 216, 0.2), transparent 30%),
        rgba(15, 8, 25, 0.92);
    backdrop-filter: blur(26px) saturate(1.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.98);
    transition: opacity 240ms ease, transform 240ms ease;
}

.portfolio-overlay.card-gallery--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.gallery-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.gallery-topbar h2 {
    font-size: clamp(1.9rem, 7vw, 4rem);
    line-height: 0.96;
}

.gallery-close,
.gallery-nav {
    display: inline-grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 999px;
}

.gallery-track {
    display: grid;
    grid-auto-columns: minmax(100%, 100%);
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.gallery-slide {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    scroll-snap-align: center;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    min-height: 54svh;
    object-fit: cover;
}

.gallery-slide figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: rgba(18, 9, 31, 0.64);
    backdrop-filter: blur(18px);
}

.gallery-slide figcaption span,
.gallery-slide figcaption strong {
    display: block;
}

.gallery-slide figcaption span {
    color: var(--primary-color);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-slide figcaption strong {
    margin-top: 5px;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.gallery-controls p {
    min-width: 72px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 800;
    text-align: center;
}

@media (hover: hover) {
    .neon-portfolio-btn:hover,
    .neon-icon-btn:hover {
        background: var(--primary-hover);
        box-shadow: 0 0 34px rgba(57, 255, 20, 0.52), 0 0 92px rgba(57, 255, 20, 0.2);
        transform: translateY(-2px);
    }

    .action-pill:hover,
    .utility-action:hover,
    .gallery-close:hover,
    .gallery-nav:hover {
        border-color: rgba(57, 255, 20, 0.52);
        background: rgba(57, 255, 20, 0.12);
        transform: translateY(-2px);
    }
}

@media (min-width: 768px) {
    .profile-stage {
        margin-top: -78px;
        margin-left: 34px;
        margin-right: 34px;
    }

    .profile-image {
        width: 210px;
    }

    .identity-block,
    .action-pill-row,
    .micro-stats {
        padding-left: 34px;
        padding-right: 34px;
    }

    .neon-portfolio-btn {
        margin-left: 34px;
    }

    .portfolio-overlay {
        padding-right: max(38px, env(safe-area-inset-right));
        padding-left: max(38px, env(safe-area-inset-left));
    }
}

@media (max-height: 720px) {
    .profile-image {
        width: 126px;
    }

    .identity-block h1 {
        font-size: 2.5rem;
    }

    .intro-copy {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .micro-stats {
        display: none;
    }
}

@keyframes meshFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(34px, 22px, 0) scale(1.18);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.55);
        opacity: 0.58;
    }
}
