/* ========================================
   About Section - Glass Morphism Design
   Apple/iOS Inspired Aesthetic
   ========================================
*/

/* Section Background - Soft Gradient with Animated Blobs */
.about-section {
    position: relative;
    background: linear-gradient(135deg,
        #f8f9fa 0%,
        #ffffff 50%,
        #f1f3f5 100%);
    padding: 4rem 0 !important;
    overflow: hidden;
}

/* Profile Picture Container - Glass Morphism */
.my-profile-picture {
    width: 320px;
    height: 320px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    position: relative;

    /* Perfectly circular */
    border-radius: 50%;

    /* Glass-like semi-transparent border */
    border: 12px solid rgba(255, 255, 255, 0.4);

    /* Glass morphism effect on border */
    background-clip: padding-box;

    /* Layered shadows for glass depth */
    box-shadow:
        /* Outer glow - glass effect */
        0 0 0 1px rgba(255, 255, 255, 0.5),
        /* Soft depth shadow */
        0 8px 32px -4px rgba(0, 0, 0, 0.12),
        0 4px 16px -2px rgba(0, 0, 0, 0.08),
        /* Inner subtle shadow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);

    /* Smooth transition */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass effect using backdrop filter - applied via wrapper */
.my-profile-picture::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    opacity: 0.8;
}

.my-profile-picture:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        /* Enhanced outer glow */
        0 0 0 1px rgba(255, 255, 255, 0.7),
        /* Stronger depth */
        0 12px 48px -6px rgba(0, 0, 0, 0.15),
        0 6px 24px -3px rgba(0, 0, 0, 0.1),
        /* Enhanced inner glow */
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.my-profile-picture:hover::before {
    opacity: 1;
}

/* Info Card - Glass Morphism */
.about-info-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);

    /* Soft shadow */
    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);

    padding: 2.5rem;

    /* 硬件加速和抗锯齿优化 */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-info-card:hover {
    transform: scale(1.02) translateZ(0);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 12px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Typography Enhancements */
.about-info-card .display-4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.about-info-card .lead {
    color: #4a5568;
    font-weight: 400;
}

.about-info-card .lead strong {
    color: #2d3748;
    font-weight: 800;
}

/* Divider - Subtle Glass Effect */
.about-divider {
    border: none;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0)
    );
    margin: 1.2rem 0;
}

/* Social Icons - Glass Containers */
.social-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 4px 12px -4px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.03);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
    box-shadow:
        0 8px 20px -6px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.social-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: #4a5568;
    transition: fill 0.3s ease;
}

.social-icon-wrapper:hover svg {
    fill: #2d3748;
}

/* Social Link - No Decoration */
.social-link {
    text-decoration: none;
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Interests Section Enhancement */
.interests-section {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.interests-section .lead {
    margin: 0;
    font-size: 1rem;
    color: #2d3748;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .my-profile-picture {
        width: 280px;
        height: 280px;
        margin-bottom: 2rem;
        border-width: 10px;
    }

    .my-profile-picture::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    .about-info-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .my-profile-picture {
        width: 240px;
        height: 240px;
        border-width: 8px;
    }

    .my-profile-picture::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }

    .about-info-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .social-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .social-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
}
