/* Hero Portrait Animations */
.hero-portrait {
    position: relative;
    overflow: visible;
}

.hero-portrait .pic {
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.hero-portrait .pic::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bs-primary), transparent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.hero-portrait:hover .pic {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-portrait:hover .pic::before {
    transform: scale(1.1);
    opacity: 0.5;
}

/* Glowing circles animation */
.small-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--bs-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--bs-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* About Section Portrait Animations */
.about-portrait {
    position: relative;
    overflow: hidden;
}

.about-portrait .pic {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-portrait::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--bs-primary-rgb), 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: 2;
}

.about-portrait:hover::before {
    left: 100%;
    transition: 0.8s;
}

.about-portrait:hover .pic {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Floating animation for decorative elements */
.small-circle-1 {
    animation: float 3s ease-in-out infinite;
}

.small-circle-2 {
    animation: float 3s ease-in-out infinite 0.5s;
}

.small-circle-3 {
    animation: float 3s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}