/* About section animations */

/* Profile picture animations */
.profile-pic {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
}

.profile-pic img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dynamic shadow effect on hover */
.profile-pic:hover img {
    transform: scale(1.05) translateZ(20px);
    filter: brightness(1.1) contrast(1.05);
}

/* Shadow effect for profile picture */
.profile-pic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.profile-pic:hover::before {
    opacity: 1;
    animation: shadowPulse 2s infinite;
}

body.light-mode .profile-pic::before {
    box-shadow: 0 10px 40px rgba(30, 136, 229, 0.4);
}

@keyframes shadowPulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Bio text staggered animations */
.bio p {
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
}

.bio p:nth-child(1) {
    animation: fadeInRight 0.5s forwards 0.2s;
}

.bio p:nth-child(2) {
    animation: fadeInRight 0.5s forwards 0.4s;
}

.bio p:nth-child(3) {
    animation: fadeInRight 0.5s forwards 0.6s;
}

.bio p:nth-child(4) {
    animation: fadeInRight 0.5s forwards 0.8s;
}

.bio p:nth-child(5) {
    animation: fadeInRight 0.5s forwards 1s;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Highlight animation on bio text hover */
.bio p {
    padding: 8px 15px;
    border-radius: 8px;
    cursor: default;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bio p:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

body.light-mode .bio p:hover {
    background: rgba(30, 136, 229, 0.1) !important;
}

/* Icon pulsing effect */
.bio p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: translateX(-100%);
}

.bio p:hover::before {
    animation: shimmerEffect 2s infinite;
}

body.light-mode .bio p::before {
    background: linear-gradient(to right, transparent, rgba(30, 136, 229, 0.1), transparent) !important;
}

@keyframes shimmerEffect {
    to {
        transform: translateX(100%);
    }
}

/* 3D tilt effect for entire about section */
.about-content {
    perspective: 1000px;
    overflow: visible;
}

/* Animated mask reveal for profile pic */
.profile-pic {
    position: relative;
    clip-path: circle(0% at center);
    animation: revealCircle 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s;
}

@keyframes revealCircle {
    to {
        clip-path: circle(100% at center);
    }
}

/* Parallax effect for bio text */
.about-content {
    transform-style: preserve-3d;
}

.profile-pic {
    transform: translateZ(50px);
}

.bio {
    transform: translateZ(20px);
}

/* Enhanced animations for icons in bio */
.bio p {
    display: flex;
    align-items: center;
}

/* Magnetic effect for bio items */
.bio p {
    transition: transform 0.3s ease-out;
}
