/* Floating Profile Image with Thread - Pendulum Effect */
.profile-thread {
    position: relative;
    margin-bottom: 45px;
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 300px;
    display: flex;
    justify-content: center;
    transform-origin: top center;
    animation: swingPendulum 4s ease-in-out infinite;
    margin-top: -30px;
}

@keyframes swingPendulum {
    0% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(4deg);
    }
    100% {
        transform: rotate(-4deg);
    }
}

.thread-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(100,100,100,0.2), rgba(100,100,100,0.8));
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
}

.profile-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
    position: absolute;
    top: 80px;
    z-index: 1;
    transform-origin: top center;
}

.profile-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25),
                inset 0 0 20px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.profile-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* Dark Theme Thread Adjustments */
.dark-theme .thread-line {
    background: linear-gradient(to bottom, rgba(200,200,200,0.2), rgba(255,255,255,0.7));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments for Thread and Profile */
@media (max-width: 991px) {
    .profile-thread {
        height: 260px;
        margin-top: -25px;
    }
    
    .profile-circle {
        width: 190px;
        height: 190px;
        top: 70px;
    }
    
    .thread-line {
        height: 70px;
    }
}

@media (max-width: 767px) {
    .profile-thread {
        height: 230px;
        margin-top: -20px;
    }
    
    .profile-circle {
        width: 170px;
        height: 170px;
        top: 60px;
    }
    
    .thread-line {
        height: 60px;
    }
} 