:root {
    --ring-accent: #E4572E;
    --ring-dark: #171A21;
    --status-green: #22C55E;
    --status-blue: #3B82F6;
    --photo-size: 150px;
    --photo-overflow: 70px;
}

#about-me {
    margin-top: 5rem;
    color: #111111;
}

.about-me-title {
    margin-bottom: calc(var(--photo-overflow) + 1rem);
    font-size: var(--section-title-size);
    font-weight: normal;
    text-align: center;
}

.about-me-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
    width: 60vw;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 2rem 1.75rem;
    background-color: #FFF;
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 3rem -0.75rem hsla(0, 0%, 0%, 0.25);
}

/* Photo wrapper */

.photo-wrapper {
    position: relative;
    margin-top: calc(var(--photo-overflow) * -1);
    margin-bottom: 0.9rem;
}

/* Photo ring */

@property --ring-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.photo-ring {
    box-sizing: border-box;
    width: var(--photo-size);
    height: var(--photo-size);
    padding: 5px;
    border-radius: 50%;
    background: conic-gradient(from var(--ring-angle), var(--ring-accent), var(--ring-dark), var(--ring-accent));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: ring-spin 6s linear infinite;
}

.about-me-photo {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes ring-spin {
    to {
        --ring-angle: 360deg;
    }
}

/* Status badge */

.status-badge {
    position: absolute;
    bottom: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--ring-dark);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
    white-space: nowrap;
}

.status-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--status-green);
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* "Employed, open" status */

.status-badge.is-open .status-dot {
    background-color: var(--status-blue);
    animation-name: dot-pulse-open;
}

@keyframes dot-pulse-open {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Text */

.about-me-content p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

/* Mobile */

@media only screen and (max-width: 768px) {
    :root {
        --photo-size: 130px;
        --photo-overflow: 60px;
    }

    .about-me-container {
        gap: 0.6rem;
        width: 85vw;
        padding: 0 1.2rem 1.5rem;
    }

    .photo-ring {
        padding: 4px;
    }

    .status-badge {
        font-size: 12px;
    }

    .about-me-content p {
        font-size: 16px;
    }
}